/* ==========================================================================
   Shir & Lola – landing page styles
   Contents
     1. Design tokens (colors, shadow, dark mode)
     2. Base & typography
     3. Shared components (icons, buttons, waves, reveal-on-scroll)
     4. Header / nav
     5. Sections: hero, ribbon, about, Lola CV, how, mood game, why, faq, contact
     6. Footer
     7. Lola the companion
     8. Responsive & reduced motion
   Notes: RTL site – use logical properties (inset-inline-*, margin-inline-*).
   Lola's own position uses physical `left` on purpose (viewport percentage).
   ========================================================================== */


/* 1. Design tokens ------------------------------------------------------- */
:root {
  --cream: #fbfaf6;
  --paper: #ffffff;
  --ink: #34455c;
  --ink-soft: #5a6a80;
  --sun: #f0c987;
  --coral: #d98c84;
  --coral-deep: #bf6f68;
  --leaf: #9fbac4;
  --leaf-deep: #5f8794;
  --blue: #6f8fb0;
  --sky: #dde8f0;
  --butter: #f5e7cf;
  --blush: #efd9d3;
  --lilac: #e4e4ee;
  --mint: #dce9e6;
  --shadow: 0 18px 40px -22px rgba(52, 69, 92, .5);
}

/* Dark-mode variable overrides removed on purpose: the site stays bright and pastel in every color scheme. */


/* 2. Base & typography --------------------------------------------------- */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Heebo", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Rubik", "Heebo", sans-serif; font-weight: 800; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 16px; }

section { position: relative; padding: 100px 5vw; scroll-margin-top: 10px; }
.wrap { position: relative; max-width: 1120px; margin: 0 auto; }

.eyebrow { display: inline-block; margin-bottom: 14px; padding: 4px 14px; border-radius: 999px; background: var(--sky); color: #4a6a90; font-weight: 800; font-size: .95rem; }
.sub { max-width: 54ch; color: var(--ink-soft); font-size: 1.2rem; }
.hl { padding-inline: 4px; background: linear-gradient(transparent 71%, var(--sun) 71% 93%, transparent 93%); }


/* 3. Shared components --------------------------------------------------- */

/* SVG icons (sprite at the top of <body>) */
.i { flex: none; width: 1em; height: 1em; fill: currentColor; vertical-align: -.14em; }
.btn .i { width: 1.2em; height: 1.2em; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 999px; font-size: 1.1rem; font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(2px) scale(.97); }
.btn-sun { background: var(--sun); color: #2b3a4d; box-shadow: 0 10px 0 -4px #cfa458, 0 18px 28px -12px rgba(240, 201, 135, .8); }
.btn-sun:hover { box-shadow: 0 12px 0 -4px #cfa458, 0 22px 30px -12px rgba(240, 201, 135, .9); }
.btn-line { border: 2.5px solid var(--blue); color: var(--ink); }
.btn-line:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

/* wavy section dividers: the wave takes the color of the NEXT section via --next */
.wave { position: absolute; bottom: -1px; inset-inline: 0; display: block; width: 100%; height: 70px; }
.wave path { fill: var(--next); }

/* floating paw / foot prints (hero and contact) */
.paws { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.paws b { position: absolute; bottom: -40px; inset-inline-start: var(--x); display: block; width: 1.8rem; height: 1.8rem; color: var(--ink); opacity: .12; animation: drift 14s linear infinite; animation-delay: var(--d); }
.paws b .i { width: 100%; height: 100%; }
@keyframes drift { to { transform: translateY(-115vh) rotate(40deg); } }

/* reveal on scroll (js/main.js adds .in) */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bounce { 50% { transform: translateY(-6px); } }


/* 4. Header / nav -------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 12px 5vw; background: color-mix(in srgb, var(--cream) 85%, transparent); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; gap: 8px; font-family: "Rubik", sans-serif; font-size: 1.45rem; font-weight: 800; }
.logo .i { width: 1.1em; height: 1.1em; color: var(--blue); animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-18deg); } 92% { transform: rotate(14deg); } }

.nav nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.nav a:hover { color: var(--coral-deep); }
.nav .pill { padding: 9px 20px; border-radius: 999px; background: var(--blue); color: #fff; }
.nav .pill:hover { background: var(--coral-deep); color: #fff; }


/* 5. Sections ------------------------------------------------------------ */

/* 5.1 Hero – always light, even in dark mode */
#hero {
  --next: var(--coral);
  display: grid;
  align-items: center;
  min-height: calc(100vh - 60px);
  padding-top: 40px;
  padding-bottom: 150px;
  overflow: hidden;
  color: #34455c;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, .85), transparent 28%),
    radial-gradient(circle at 90% 85%, rgba(255, 255, 255, .7), transparent 30%),
    linear-gradient(135deg, #f4ecdf 0%, #f2dfd8 38%, #e6edf3 72%, #dce9e6 100%);
}
#hero .eyebrow { background: #fff; }
#hero .paws b { width: calc(var(--s, 2rem) * 1.35); height: calc(var(--s, 2rem) * 1.35); color: var(--c, #d98c84); opacity: .55; }

.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }

#hero h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 6.2vw, 4.7rem); letter-spacing: -.5px; color: #34455c; }
#hero h1 .w { display: inline-block; animation: pop .8s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d); }
#hero h1 .coral { color: var(--coral); }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.8) rotate(-4deg); } }

.lead { max-width: 36ch; margin-bottom: 32px; color: #4c5d78; font-size: 1.3rem; }
#hero .btn-line { color: #34455c; }
#hero .btn-line:hover { color: #fff; }

.perks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.perks span { padding: 8px 16px; border-radius: 999px; color: #34455c; font-weight: 700; font-size: .95rem; box-shadow: 0 6px 0 -2px rgba(52, 69, 92, .1); }
.perks span:nth-child(1) { background: #efd9d3; }
.perks span:nth-child(2) { background: #f3dfb0; }
.perks span:nth-child(3) { background: #dce9e6; }
.perks .i { margin-inline-end: 4px; color: var(--coral); }

/* "click anywhere and Lola fetches a ball" game */
.hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #4c5d78; font-weight: 700; font-size: .98rem; }
.hint .i { color: var(--coral); animation: bounce 1.2s ease-in-out infinite; }
.ball { position: fixed; z-index: 49; top: 0; left: 0; width: 64px; height: 64px; color: #ff7a52; pointer-events: none; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .25)); }
.ball .i { width: 100%; height: 100%; }
@keyframes bob { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-6px) rotate(6deg); } }
/* shadow under a falling toy */
.ball-shadow { position: fixed; z-index: 48; top: 0; left: 0; width: 64px; height: 12px; border-radius: 50%; background: #2b3a4d; pointer-events: none; }
/* magic puff where a toy appears */
.puff { position: fixed; z-index: 48; top: 0; left: 0; width: 0; height: 0; pointer-events: none; color: var(--c); }
.puff .ring { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 4px solid currentColor; animation: ring .7s ease-out forwards; }
.puff .spk { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: #f0c987; animation: spk .9s ease-out forwards; }
@keyframes ring { from { transform: scale(.1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@keyframes spk { 0% { transform: translate(0, 0) scale(0); opacity: 1; } 40% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1.3) rotate(120deg); opacity: 0; } }

.hero-art { position: relative; width: 100%; max-width: 440px; margin-inline: auto; padding-bottom: 60px; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 8px solid #fff; border-radius: 48% 52% 46% 54% / 40% 40% 60% 60%; background: var(--leaf); box-shadow: 0 30px 50px -28px rgba(43, 58, 77, .6); animation: morph 10s ease-in-out infinite; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 12%; }
/* intro: Shir's photo tumbles in like a dropped polaroid, then the stickers fade in */
.hero-art { animation: photoIn 1.5s cubic-bezier(.3, 1.4, .5, 1) .35s both; }
.hero-photo img { animation: focusIn 1.6s ease-out .35s both; }
.hero-art .sticker { animation: float 5s ease-in-out infinite, stickerFade .5s ease-out both; }
.hero-art .sticker.a { animation-delay: 0s, 1.5s; }
.hero-art .sticker.b { animation-delay: -2s, 1.8s; }
@keyframes photoIn { 0% { opacity: 0; transform: translateY(-110vh) rotate(-24deg) scale(.55); } 55% { opacity: 1; transform: translateY(14px) rotate(7deg) scale(1.02); } 75% { transform: translateY(-8px) rotate(-3deg); } 100% { opacity: 1; transform: none; } }
@keyframes focusIn { 0% { filter: blur(14px) saturate(0); transform: scale(1.25); } 100% { filter: none; transform: none; } }
@keyframes stickerFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-art, .hero-photo img { animation: none; } .hero-art .sticker { animation: float 5s ease-in-out infinite; } }
@keyframes morph { 50% { border-radius: 54% 46% 55% 45% / 46% 52% 48% 54%; } }

.sticker { position: absolute; padding: 10px 16px; border-radius: 18px; background: var(--paper); font-weight: 800; font-size: .95rem; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.sticker .i { margin-inline-end: 4px; vertical-align: -.2em; }
.sticker.a { top: 8%; inset-inline-start: -6%; background: #fff; color: #34455c; transform: rotate(-6deg); }
.sticker.b { top: 46%; inset-inline-end: -8%; background: var(--sun); color: #2b3a4d; transform: rotate(5deg); animation-delay: -2s; }
@keyframes float { 50% { translate: 0 -12px; } }

/* 5.2 Ribbon (scrolling words) */
.ribbon { position: relative; z-index: 3; margin-block: -22px; padding: 16px 0; overflow: hidden; background: var(--coral); color: #fff; transform: rotate(-1.2deg); }
.ribbon div { display: flex; gap: 48px; width: max-content; font-family: "Rubik", sans-serif; font-weight: 800; font-size: 1.35rem; animation: scroll 40s linear infinite; }
.ribbon .i { width: .9em; height: .9em; margin-inline-end: 12px; color: var(--sun); }
@keyframes scroll { to { transform: translateX(50%); } }

/* 5.3 About ("נעים להכיר") – fixed pastel lilac in both color schemes */
#about { --next: #b9cfdf; padding-top: 130px; background: #e8c3bf; color: #34455c; }
#about .sub { color: #5a6a84; }
#about .eyebrow { background: #fff; }
#about .hl { background: linear-gradient(transparent 62%, #f0c987 62% 92%, transparent 92%); }
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about p + p { margin-top: 14px; }
.about-wrap { position: relative; width: 100%; max-width: 400px; margin-inline: auto; }
.about-wrap::before { content: ""; position: absolute; inset: -18px; border: 3px dashed var(--coral); border-radius: 50%; animation: spin 40s linear infinite; }
.about-photo { position: relative; aspect-ratio: 1; width: 100%; overflow: hidden; border: 8px solid #fff; border-radius: 50%; background: var(--leaf); box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }

/* 5.4 Lola's "CV" */
#lola-cv { --next: var(--cream); padding-bottom: 130px; background: #b9cfdf; }
.cv-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.cv-photo { position: relative; width: 100%; max-width: 480px; margin-inline: auto; transform: rotate(2deg); }
.cv-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 42% 40%; border: 8px solid #fff; border-radius: 28px; box-shadow: var(--shadow); }
.cv-photo .tag { position: absolute; bottom: -16px; inset-inline-start: 24px; padding: 8px 18px; border-radius: 999px; background: var(--sun); color: #34455c; font-weight: 800; box-shadow: var(--shadow); transform: rotate(-3deg); }

.cv { position: relative; padding: 34px 32px 28px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-1.2deg); transition: transform .3s; }
.cv:hover { transform: rotate(0); }
.cv::before { content: ""; position: absolute; top: -14px; inset-inline-start: 50%; width: 110px; height: 30px; margin-inline-start: -55px; border-radius: 4px; background: rgba(240, 201, 135, .75); transform: rotate(-2deg); } /* tape */
.cv-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 3px dashed var(--sky); }
.cv-head .stamp { display: grid; flex: none; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--coral); color: #fff; }
.cv-head .stamp .i { width: 32px; height: 32px; }
.cv-head small { color: var(--ink-soft); font-weight: 700; letter-spacing: .5px; }
.cv-head h3 { font-size: 2rem; }
.cv dl { display: grid; gap: 14px; }
.cv .row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; align-items: start; }
.cv dt { color: var(--blue); font-weight: 800; }
.cv dd { margin: 0; color: var(--ink-soft); }
.cv .promise { margin-top: 20px; padding: 14px 18px; border-radius: 18px; background: var(--butter); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 4px 14px; border-radius: 999px; color: #34455c; font-weight: 700; font-size: .95rem; }
.chips span:nth-child(5n+1) { background: #efd9d3; }
.chips span:nth-child(5n+2) { background: #f3dfb0; }
.chips span:nth-child(5n+3) { background: #dce9e6; }
.chips span:nth-child(5n+4) { background: #dde8f0; }
.chips span:nth-child(5n+5) { background: #e4e4ee; }

/* 5.5 How it works */
#how { --next: #a9bfd8; padding-bottom: 130px; background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; counter-reset: s; }
.step { position: relative; padding: 40px 28px 30px; border-radius: 30px; box-shadow: var(--shadow); counter-increment: s; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.step:hover { transform: translateY(-10px) rotate(-1.5deg); }
.step:nth-child(1) { background: var(--mint); }
.step:nth-child(2) { background: var(--butter); }
.step:nth-child(3) { background: var(--lilac); }
.step::before { content: counter(s); position: absolute; top: -22px; inset-inline-start: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-family: "Rubik", sans-serif; font-weight: 800; font-size: 1.4rem; }
.step .ico { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 14px; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); transition: transform .4s; }
.step .ico .i { width: 34px; height: 34px; }
.step:hover .ico { transform: scale(1.25) rotate(10deg); }
.step h3 { margin-bottom: 8px; font-size: 1.5rem; }
.step p { color: var(--ink-soft); }

/* 5.6 Mood game ("איך מרגישים היום?") */
#mood { --next: #eab4a8; padding-bottom: 130px; background: linear-gradient(180deg, #a9bfd8, #c9c7e0); text-align: center; }
#mood .sub { margin-inline: auto; }
.moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 38px; }
.mood { appearance: none; width: 132px; padding: 18px 16px 14px; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 800; cursor: inherit; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.3, 1.7, .5, 1), box-shadow .2s; }
.mood svg { display: block; width: 76px; height: 76px; margin: 0 auto 8px; transition: transform .4s cubic-bezier(.3, 1.7, .5, 1); }
.mood:hover { transform: translateY(-8px) rotate(-3deg); }
.mood:hover svg { transform: scale(1.12) rotate(6deg); }
.mood:active { transform: scale(.94); }
.mood.on { outline: 4px solid var(--blue); transform: translateY(-8px) scale(1.06); }
.mood:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.reply { display: grid; place-items: center; max-width: 560px; min-height: 96px; margin: 30px auto 0; padding: 22px 28px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); font-size: 1.2rem; font-weight: 700; }
.reply.pop { animation: popin .5s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes popin { from { transform: scale(.85) rotate(-2deg); opacity: .4; } }
.note { margin-top: 14px; color: var(--ink-soft); font-size: .9rem; }

/* 5.7 Why animals – deep navy block */
#why { --next: var(--cream); background: #eab4a8; color: #34455c; }
#why h2, #why .sub { color: #34455c; }
#why .sub { color: #66768c; max-width: none; }
@media (min-width: 900px) { #why .sub { white-space: nowrap; } }
#lola-cv .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 6px; border-radius: 0; background: none; border-bottom: 3px dotted var(--coral); color: var(--coral); font-size: 1.1rem; letter-spacing: .5px; }
#lola-cv .eyebrow .i { width: 1.1em; height: 1.1em; }
#why .eyebrow { background: #fff; color: #34455c; }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.why div { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 22px; background: rgba(255, 255, 255, .7); color: #34455c; box-shadow: 0 10px 24px -18px rgba(52, 69, 92, .4); font-weight: 700; font-size: 1.15rem; transition: background .25s, transform .25s; }
.why div:hover { background: #fff; transform: translateX(-6px); }
.why span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: #2b3a4d; }
.why span .i { width: 28px; height: 28px; }

/* 5.8 FAQ */
#faq { --next: #a9bfd8; padding-bottom: 130px; background: #f3dfb0; }
.faq { display: grid; gap: 14px; max-width: 780px; margin-top: 36px; }
details { padding: 4px 24px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; font-weight: 800; font-size: 1.15rem; list-style: none; cursor: inherit; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: #2b3a4d; font-size: 1.4rem; transition: transform .3s; }
details[open] summary::after { transform: rotate(135deg); }
details p { padding-bottom: 18px; color: var(--ink-soft); }

/* 5.9 Contact */
#contact { padding-bottom: 170px; overflow: hidden; background: linear-gradient(150deg, #a9bfd8 0%, #9fc0cc 55%, #a8cbc1 100%); color: #34455c; text-align: center; }
#contact h2 { color: #34455c; font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
#contact .sub { margin-inline: auto; color: #66768c; }
#contact .eyebrow { background: #fff; color: #34455c; }
#contact .actions { justify-content: center; margin-top: 32px; }
#contact .btn-line { border-color: var(--blue); color: #34455c; }
#contact .btn-line:hover { background: var(--blue); color: #fff; }
#contact .paws b { color: #34455c; }
#contact { position: relative; }
#contact .form-wrap { position: relative; max-width: 500px; margin: 24px auto 0; }
#contact .form-wrap .form { position: relative; z-index: 1; margin: 0; }
#contact .pup-stage { position: absolute; top: 34%; left: 0; width: 0; height: 0; pointer-events: none; }
#contact .pup-dog { position: absolute; z-index: 0; top: -80px; right: 0; width: 160px; height: 160px; transform: translateX(calc(110px - var(--p) * 75px)); transition: transform 1s cubic-bezier(.3, 1.4, .5, 1); }
#contact .pup-rot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: rotate(-14deg); }
#contact .pup-rot svg { display: block; width: 120px; overflow: visible; }
#contact .pup-stage.tilt .pup-rot svg { animation: pupTilt .8s ease; }
#contact .pup-stage.bounce .pup-rot svg { animation: pupBounce .6s ease; }
#contact .pup-say { position: absolute; z-index: 2; top: -104px; right: 70px; width: max-content; max-width: 190px; padding: 12px 18px; border-radius: 30px; background: #fff; color: #34455c; font-weight: 700; font-size: .92rem; line-height: 1.35; box-shadow: var(--shadow); }
#contact .pup-say { border-radius: 40px; }
#contact .pup-say::before, #contact .pup-say::after { content: ""; position: absolute; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
#contact .pup-say::before { bottom: -20px; right: 26px; width: 15px; height: 15px; }
#contact .pup-say::after { bottom: -36px; right: 10px; width: 9px; height: 9px; }
#contact .pup-stage { transition: opacity .4s; }
#contact .pup-stage.gone { opacity: 0; }
#contact .pup-say.pop { animation: pupPop .4s ease; }
@keyframes pupTilt { 30% { transform: rotate(-10deg); } 70% { transform: rotate(8deg); } }
@keyframes pupBounce { 40% { transform: translateX(10px); } 70% { transform: translateX(-3px); } }
@keyframes pupPop { 0% { transform: scale(.7); } 60% { transform: scale(1.08); } }
@media (max-width: 1000px) { #contact .pup-say { right: auto; left: 8px; top: -108px; } #contact .pup-say::before { right: auto; left: 22px; } #contact .pup-say::after { right: auto; left: 6px; } }
@media (max-width: 700px) { #contact .pup-dog { width: 110px; height: 110px; top: -55px; transform: translateX(calc(78px - var(--p) * 52px)); } #contact .pup-rot svg { width: 84px; } #contact .pup-say { top: -90px; max-width: 150px; padding: 9px 14px; font-size: .78rem; } }
@media (prefers-reduced-motion: reduce) { #contact .pup-dog { transition: none; } #contact .pup-stage * { animation: none !important; } }
.lola.away { opacity: 0; pointer-events: none; }
#contact .form { max-width: 500px; margin: 24px auto 0; padding: 14px 18px; border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); text-align: start; }
#contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#contact .field { margin-bottom: 9px; }
#contact .field label { display: block; margin-bottom: 3px; font-weight: 700; font-size: .88rem; }
#contact .field input, #contact .field textarea { width: 100%; padding: 8px 12px; border: 2px solid var(--sky); border-radius: 14px; background: var(--cream); color: var(--ink); font: inherit; }
#contact .field input:focus, #contact .field textarea:focus { outline: none; border-color: var(--blue); }
#contact .field .bad { border-color: var(--coral); }
#contact .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
#contact .submit { width: 100%; justify-content: center; border: 0; cursor: inherit; font-family: inherit; }
#contact .submit:disabled { opacity: .6; cursor: inherit; }
#contact .form-msg { min-height: 1.5em; margin-top: 8px; text-align: center; font-weight: 700; color: var(--leaf-deep); }
#contact .form-msg.err { color: var(--coral-deep); }
@media (max-width: 560px) { #contact .row2 { grid-template-columns: 1fr; } }

/* contact: Pip the puppy, peeks higher and reacts as the form fills */
#contact .submit.ready { animation: pupShake .7s ease 2; }
@keyframes pupShake { 20%, 60% { transform: translateX(-6px) rotate(-3deg); } 40%, 80% { transform: translateX(6px) rotate(3deg); } }


/* 6. Footer -------------------------------------------------------------- */
footer { padding: 0 5vw 40px; background: #a8cbc1; color: #2b3a4d; text-align: center; font-size: .95rem; }


/* 7. Lola the companion ---------------------------------------------------
   Fixed SVG corgi (side view, faces right). js/main.js moves her via left/bottom/width
   and toggles the classes .walking, .hop, .happy and .flip (flip = walking left).
   Keep the .pupil, .tail, .tongue, .mouth, .leg (.a/.b) and .earN/.earF names. */
.lola { position: fixed; z-index: 50; bottom: 0; width: 170px; cursor: inherit; user-select: none; -webkit-tap-highlight-color: transparent; transform-origin: bottom center; transition: left 2.6s cubic-bezier(.5, .1, .2, 1), bottom 2.6s cubic-bezier(.5, .1, .2, 1), width 2.6s cubic-bezier(.5, .1, .2, 1); }
.lola svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .2)); }
.lola.hop svg { animation: hop .5s ease-out; }
@keyframes hop { 40% { transform: translateY(-34px) scale(1.04, .96); } }
.lola .face { transform-box: fill-box; transform-origin: center; }
.lola.flip .face { transform: scaleX(-1); }

.lola .tail { transform-origin: 112px 140px; animation: wag .5s ease-in-out infinite alternate; }
.lola.happy .tail, .lola.walking .tail { animation-duration: .2s; }
@keyframes wag { from { transform: rotate(-22deg); } to { transform: rotate(28deg); } }
.lola .dog-side .head { transform-origin: 282px 150px; }
.lola .earN { transform-origin: 322px 62px; }
.lola .earF { transform-origin: 304px 64px; }
.lola .mouth, .lola .tongue { transform-box: fill-box; transform-origin: 50% 0; opacity: 0; transition: opacity .2s; }
.lola.happy .mouth, .lola.happy .tongue, .lola.walking .mouth, .lola.walking .tongue { opacity: 1; }
.lola .blink { transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.pupil { transition: transform .08s linear; }

/* trot: diagonal pairs of legs swing in turn, body bobs, ears flop */
.lola.walking .bob { animation: bob .65s ease-in-out infinite; }
.lola.walking .head { animation: headbob .65s ease-in-out infinite; }
.lola.walking .earN { animation: earflop .65s ease-in-out infinite; }
.lola.walking .earF { animation: earflop .65s ease-in-out infinite .1s; }
.lola.walking .mouth { animation: pant .65s ease-in-out infinite; }
.lola.walking .leg.a { animation: swing 1.3s linear infinite; }
.lola.walking .leg.b { animation: swing 1.3s linear infinite -.65s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes headbob { 0%, 100% { transform: rotate(1.5deg); } 50% { transform: rotate(-2.5deg); } }
@keyframes earflop { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
@keyframes pant { 0%, 100% { transform: scaleY(.85); } 50% { transform: scaleY(1.12); } }
@keyframes swing {
  0% { transform: rotate(-30deg) translateY(0); }
  50% { transform: rotate(30deg) translateY(0); }
  72% { transform: rotate(2deg) translateY(-11px); }
  100% { transform: rotate(-30deg) translateY(0); }
}

/* face-on: when she stops walking she turns to the visitor (sitting, front view) */
/* the front view's box has 64 extra units of headroom so the drop-shadow filter doesn't clip her ears when they perk; the negative margin cancels it (64/230 of 50% of the width) */
.lola .dog-front { display: none; width: 50%; margin-inline: auto; margin-top: -13.9%; }
.lola .dog-side { scale: 1.35; transform-origin: bottom center; } /* a bit taller while she walks; `scale` is separate from `transform`, so the hop animation doesn't override it */
.lola:not(.walking) .dog-side { display: none; }
.lola:not(.walking) .dog-front { display: block; }
.lola .sit { transform-origin: 200px 420px; animation: breathe 3s ease-in-out infinite; }
.lola .fhead { transform-origin: 200px 235px; animation: tilt 7s ease-in-out infinite; }
.lola .earL { transform-origin: 150px 118px; animation: twitchL 6s ease-in-out infinite; }
.lola .earR { transform-origin: 250px 118px; animation: twitchR 7.5s ease-in-out infinite; }
.lola .brow { animation: brow 7s ease-in-out infinite; }
.lola .tailF { transform-origin: 262px 392px; animation: wagF .45s ease-in-out infinite alternate; }
.lola.happy .tailF { animation-duration: .15s; }
.lola .ftongue, .lola .jaw { transform-box: fill-box; transform-origin: 50% 0; animation: pantF .6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.02); } }
@keyframes tilt { 0%, 12%, 60%, 100% { transform: rotate(0); } 20%, 45% { transform: rotate(-7deg); } 68%, 85% { transform: rotate(6deg); } }
@keyframes twitchL { 0%, 70%, 80%, 100% { transform: rotate(0); } 73% { transform: rotate(-13deg); } 76% { transform: rotate(4deg); } }
@keyframes twitchR { 0%, 40%, 52%, 100% { transform: rotate(0); } 44% { transform: rotate(13deg); } 48% { transform: rotate(-4deg); } }
@keyframes brow { 0%, 15%, 50%, 100% { transform: translateY(0); } 22%, 40% { transform: translateY(-5px); } }
@keyframes wagF { from { transform: rotate(-16deg); } to { transform: rotate(30deg); } }
@keyframes pantF { 0%, 100% { transform: scaleY(.93); } 50% { transform: scaleY(1.1); } }

.say { position: absolute; bottom: 100%; inset-inline-start: 50%; margin-bottom: 4px; padding: 9px 18px; border-radius: 20px; background: #fff; color: #2b3a4d; font-weight: 800; font-size: 1rem; width: max-content; max-width: min(230px, calc(100vw - 16px)); text-align: center; line-height: 1.3; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; translate: var(--sh, 0px); transform: translateX(50%) scale(.6); transform-origin: bottom center; transition: opacity .25s, transform .25s; }
.say::after { content: ""; position: absolute; top: 100%; inset-inline-start: 50%; margin-inline-start: -6px; border: 6px solid transparent; border-top-color: #fff; translate: var(--ah, 0px); }
.say.on { opacity: 1; transform: translateX(50%) scale(1); }

.heart { position: fixed; z-index: 51; width: 1.6rem; height: 1.6rem; pointer-events: none; animation: rise 1.4s ease-out forwards; }
.heart .i { width: 100%; height: 100%; }
@keyframes rise { to { transform: translateY(-110px) scale(1.4); opacity: 0; } }


/* 8. Responsive & reduced motion ---------------------------------------- */
@media (max-width: 900px) {
  .cv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .actions, .hero-grid .perks { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-art { max-width: 300px; }
  .sticker.a { inset-inline-start: -12%; }
  .sticker.b { inset-inline-end: -12%; }
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  section { padding-block: 80px; }
  .why { grid-template-columns: 1fr; }
  .lola { width: 120px; }
  .say { font-size: .85rem; }
}

@media (max-width: 640px) {
  .nav a:not(.pill) { display: none; }
}

@media (max-width: 480px) {
  .cv .row { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, .lola { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* perky ears: when she is excited the ears shoot up and stay alert */
.lola.happy .earL, .lola.perk .earL { animation: perkL .5s cubic-bezier(.3, 1.8, .5, 1) forwards; }
.lola.happy .earR, .lola.perk .earR { animation: perkR .5s cubic-bezier(.3, 1.8, .5, 1) .05s forwards; }
.lola.happy:not(.walking) .earN, .lola.happy:not(.walking) .earF, .lola.perk .earN, .lola.perk .earF { animation: perkSide .5s cubic-bezier(.3, 1.8, .5, 1) forwards; }
@keyframes perkL { to { transform: rotate(11deg) translateY(-5px); } }
@keyframes perkR { to { transform: rotate(-11deg) translateY(-5px); } }
@keyframes perkSide { to { transform: rotate(-5deg) translateY(-4px); } }
/* jump to catch a toy in the air */
.lola.jump svg { animation: jump .7s cubic-bezier(.3, .7, .4, 1); }
@keyframes jump { 45% { transform: translateY(-110px) scale(.96, 1.06); } 100% { transform: translateY(0); } }

/* dog-paw cursor everywhere, also over links and buttons (text fields keep the text caret) */
:root { --paw: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><g fill='%23b9824f' stroke='white' stroke-width='1.4' stroke-linejoin='round'><ellipse cx='12' cy='16' rx='5.2' ry='4.4'/><ellipse cx='5.2' cy='11.2' rx='2.2' ry='2.8'/><ellipse cx='9.4' cy='6.6' rx='2.2' ry='2.9'/><ellipse cx='14.6' cy='6.6' rx='2.2' ry='2.9'/><ellipse cx='18.8' cy='11.2' rx='2.2' ry='2.8'/></g></svg>") 24 24, auto; }
html, body, a, button, summary, label, [role="button"], .mood, .lola, #hero { cursor: var(--paw); }

/* form stage: the peeking puppy's ears pop up every few seconds, and shoot up whenever she reacts */
#contact .pup-rot .earL { transform-origin: 150px 118px; animation: twitchL 3.2s ease-in-out infinite; }
#contact .pup-rot .earR { transform-origin: 250px 118px; animation: twitchR 4s ease-in-out infinite; }
#contact .pup-stage.bounce .earL, #contact .pup-stage.tilt .earL { animation: pupPerkL .9s cubic-bezier(.3, 1.8, .5, 1); }
#contact .pup-stage.bounce .earR, #contact .pup-stage.tilt .earR { animation: pupPerkR .9s cubic-bezier(.3, 1.8, .5, 1) .05s; }
@keyframes pupPerkL { 25%, 70% { transform: rotate(13deg) translateY(-6px); } }
@keyframes pupPerkR { 25%, 70% { transform: rotate(-13deg) translateY(-6px); } }

/* arriving: she turns from her walking profile to face the visitor with a quick squash-turn */
.lola.turn svg { animation: turnTo .42s ease-in-out; }
@keyframes turnTo { 50% { transform: scaleX(.04); } }


/* 9. Accessibility ------------------------------------------------------- */
.skip { position: fixed; z-index: 1000; inset-block-start: 8px; inset-inline-start: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; transform: translateY(-200%); }
.skip:focus { transform: none; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid #1f2d44; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
#contact .field input:focus-visible, #contact .field textarea:focus-visible { outline: 3px solid #1f2d44; outline-offset: 2px; }
summary:focus-visible { border-radius: 8px; }
footer a { color: inherit; font-weight: 700; text-decoration: underline; }

/* toolbar */
.a11y { position: fixed; z-index: 90; inset-inline-start: auto; left: 12px; top: 50%; transform: translateY(-50%); font-family: "Heebo", system-ui, sans-serif; font-size: 16px; line-height: 1.4; }
.a11y button { font: inherit; cursor: pointer; }
.a11y-open { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #1f2d44; color: #fff; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.a11y-open svg { width: 28px; height: 28px; fill: currentColor; }
.a11y-panel { position: absolute; left: 0; top: 58px; width: 250px; max-height: 80vh; overflow: auto; padding: 14px; border-radius: 18px; background: #fff; color: #1f2d44; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); border: 2px solid #1f2d44; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 1.1rem; }
.a11y-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #e8edf3; color: #1f2d44; font-size: 1.4rem; line-height: 1; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-weight: 700; }
.a11y-size { display: inline-flex; align-items: center; gap: 6px; }
.a11y-size button { width: 36px; height: 36px; border: 2px solid #1f2d44; border-radius: 10px; background: #fff; color: #1f2d44; font-weight: 800; }
.a11y-size output { min-width: 3.2em; text-align: center; font-weight: 700; }
.a11y-tog, .a11y-reset { display: block; width: 100%; margin-top: 6px; padding: 9px 12px; border: 2px solid #1f2d44; border-radius: 10px; background: #fff; color: #1f2d44; font-weight: 700; text-align: start; }
.a11y-tog[aria-pressed="true"] { background: #1f2d44; color: #fff; }
.a11y-reset { background: #e8edf3; }
.a11y-statement { display: block; margin-top: 10px; color: #1f2d44; font-weight: 700; text-align: center; }

/* user-selected modes (classes on <html>) */
html.a11y-gray { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable button, html.a11y-readable input, html.a11y-readable textarea { font-family: Arial, "Heebo", sans-serif !important; letter-spacing: .02em; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-nomotion .reveal { opacity: 1; transform: none; }
html.a11y-bigcursor, html.a11y-bigcursor * { cursor: auto !important; }
html.a11y-bigcursor a, html.a11y-bigcursor button, html.a11y-bigcursor summary { cursor: pointer !important; }
html.a11y-contrast body, html.a11y-contrast section, html.a11y-contrast header, html.a11y-contrast footer, html.a11y-contrast div:not(.lola):not(.lola *), html.a11y-contrast p, html.a11y-contrast span:not(.lola *), html.a11y-contrast details, html.a11y-contrast summary, html.a11y-contrast label, html.a11y-contrast input, html.a11y-contrast textarea, html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast li { background: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast a, html.a11y-contrast a * { color: #ff0 !important; }
html.a11y-contrast .btn, html.a11y-contrast .nav .pill, html.a11y-contrast button { background: #000 !important; color: #ff0 !important; border: 2px solid #ff0 !important; }
html.a11y-contrast .a11y-tog[aria-pressed="true"] { background: #ff0 !important; color: #000 !important; }
html.a11y-contrast .wave, html.a11y-contrast .ribbon, html.a11y-contrast .paws, html.a11y-contrast .pup-stage { display: none !important; }
html.a11y-contrast .nav, html.a11y-contrast .a11y-panel { border: 2px solid #fff; }
html.a11y-contrast :focus-visible { outline: 3px solid #ff0 !important; box-shadow: none !important; }

/* statement page */
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.legal h2 { font-size: 1.5rem; margin: 32px 0 8px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-inline-start: 1.4em; }
.legal a { color: var(--ink); font-weight: 700; }
