/* AIME launch mockups · JESSICA · 09/10/2026
   One stylesheet for the sales page, quiz, booking, thanks, privacy, accessibility.
   Tokens first (semantic names), components after. */

:root{
  /* primitives (palette locked 11/07 + #263A3C from Asit's Figma sheet) */
  --cream:#ECEBEA; --lav-light:#E5DCEF; --lav:#BCB0C8; --taupe:#DBD1C9;
  --teal:#203236; --teal2:#263A3C; --deep:#072821; --mauve:#725C73; --lime:#D1FE9F; --white:#FFFFFF;

  /* semantic */
  --ink:var(--teal);            /* text and lines on light */
  --ink-soft:var(--mauve);      /* secondary text on light (mauve keeps its role: text, not surface) */
  --surface:var(--cream);
  --surface-alt:var(--lav-light);
  --surface-dark:var(--teal2);  /* proposal: #263A3C = the dark SURFACE. #203236 stays INK */
  --accent:var(--lime);         /* one per frame */
  --tex-fallback:#B4A7BE;       /* hero texture light side, shown until the image loads */
  --tex-dark:#6D5A70;           /* texture dark side */
  --prefill:#F6F3F8;            /* field already answered in the quiz */
  --scrim-mauve:rgba(114,92,115,.5); /* even mauve veil over the texture where text sits on it */

  --head:"greycliff-hebrew-cf","Heebo",sans-serif;
  --body:"Noto Sans Hebrew","Heebo",sans-serif;
  --ease:cubic-bezier(.2,.75,.15,1);
  --gutter:clamp(20px,4.4vw,64px);
  --sec-y:clamp(88px,9vw,136px);
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--body);font-weight:400;color:var(--ink);background:var(--surface);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,svg{display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:4px}
[tabindex="-1"]:focus{outline:none}
.wrap{max-width:1440px;margin:0 auto;padding-inline:var(--gutter)}

/* ---------- type ---------- */
.h-sec{font-family:var(--head);font-weight:200;font-size:clamp(30px,3.87vw,56px);line-height:1.08;letter-spacing:-.01em}
.h-3{font-family:var(--head);font-weight:300;font-size:clamp(19px,1.6vw,23px);line-height:1.25}
.body{font-size:16px;line-height:1.8;text-wrap:pretty}
.small{font-size:14px;line-height:1.55}

/* draft tag: placeholder copy until COPFA's final copy */
/* draft tags are for internal review only: hidden on live pages, shown with ?draft=1 (html.review) */
.draft{display:none}.review .draft{display:inline-block}
.draft{font-family:var(--body);font-size:12px;font-weight:500;letter-spacing:.02em;line-height:1;color:var(--ink);border:1px dashed currentColor;border-radius:999px;padding:5px 10px;vertical-align:middle;white-space:nowrap}
.on-dark .draft{color:var(--white)}

/* lime marker, half height (signature). Two-tone text where needed */
.mark{position:relative;display:inline-block;padding-inline:.12em;margin-inline:-.12em;z-index:0}
.mark::before{content:"";position:absolute;inset:.56em -.04em .1em;background:var(--accent);border-radius:.06em;z-index:-1;transform:scaleX(0);transform-origin:100% 50%;transition:transform 1s var(--ease) .25s}
.in .mark::before,.mark.in::before{transform:scaleX(1)}
.mark .lo{position:absolute;inset:.56em 0 .1em 0;overflow:hidden;color:var(--teal);pointer-events:none;clip-path:inset(0 0 0 100%);transition:clip-path 1s var(--ease) .25s}
.in .mark .lo,.mark.in .lo{clip-path:inset(0)}
.mark .lo::after{content:attr(data-t);display:block;white-space:nowrap;padding-inline:.12em;margin-top:-.56em}

/* ---------- buttons ---------- */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:18px;text-decoration:none;background:var(--accent);color:var(--teal);
  font-family:var(--body);font-weight:500;font-size:18px;padding:10px 26px 10px 10px;border-radius:999px;min-height:60px;border:0;cursor:pointer;
  box-shadow:0 10px 24px -14px rgba(20,14,22,.6);transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.btn .arr{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--teal);transition:transform .45s var(--ease),background .45s,color .45s}
.btn .arr svg{width:18px;height:18px;transition:transform .45s var(--ease)}
.btn:hover{transform:translateY(-3px);box-shadow:0 16px 30px -14px rgba(20,14,22,.65)}
.btn:hover .arr{background:var(--teal);color:var(--accent);transform:scale(1.08)}
.btn:hover .arr svg{transform:translateX(-4px)}
/* lime on light surfaces is under 3:1, so it gets a teal hairline (rule from C8/C9) */
.light .btn{box-shadow:inset 0 0 0 1px var(--teal),0 10px 24px -14px rgba(32,50,54,.5)}
.btn2{display:inline-flex;align-items:center;justify-content:center;min-height:60px;padding:10px 26px;border-radius:999px;text-decoration:none;cursor:pointer;
  font-family:var(--body);font-weight:500;font-size:18px;color:var(--ink);background:transparent;border:0;box-shadow:inset 0 0 0 1.5px var(--ink);transition:background .35s var(--ease),color .35s var(--ease)}
.btn2:hover{background:var(--ink);color:var(--cream)}
.on-dark .btn2{color:var(--white);box-shadow:inset 0 0 0 1.5px var(--white)}
.on-dark .btn2:hover{background:var(--white);color:var(--teal)}
.on-dark :focus-visible{outline-color:var(--white)}
.micro{font-size:14px;line-height:1.45;margin:0}

/* CTA pair. Desktop = C12c (line under each button). Mobile = C12b (quiz line above, call line below) */
.act{display:grid;grid-template-columns:auto auto;justify-content:start;align-items:center;column-gap:28px;row-gap:8px}
.act .cta1,.act .cta2{display:contents}
.act .b1{grid-area:1/1;justify-self:start}.act .b2{grid-area:1/2;justify-self:start}
.act .m1{grid-area:2/1}.act .m2{grid-area:2/2}
.act .micro{width:0;min-width:100%}
@media (max-width:860px){
  .act{grid-template-columns:1fr;row-gap:12px}
  .act .b1,.act .b2,.act .m1,.act .m2{grid-column:1;justify-self:stretch}
  .act .m1{grid-row:1;margin-bottom:-4px;width:auto}
  .act .b1{grid-row:2}
  .act .b2{grid-row:3;margin-top:10px}
  .act .m2{grid-row:4;margin-top:-4px;width:auto}
  .btn,.btn2{font-size:17px}
}

/* ---------- reveal motion ---------- */
.rv{opacity:0;transform:translateY(22px);transition:opacity .9s var(--ease),transform .9s var(--ease);transition-delay:var(--d,0s)}
.rv.in{opacity:1;transform:none}

/* ---------- fixed corner (accessibility widget placement) ---------- */
.fab{position:fixed;bottom:16px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;z-index:60;text-decoration:none}
.fab.a11y{left:16px;background:var(--teal);color:var(--cream);box-shadow:0 0 0 2px var(--cream),0 8px 20px -10px rgba(32,50,54,.6)}
/* right-bottom corner stays reserved for the bot, which joins about a week after launch */

/* ---------- header on light pages ---------- */
.bar{display:flex;align-items:center;justify-content:space-between;padding:28px var(--gutter) 0;max-width:1440px;margin:0 auto}
.bar .logo svg{height:30px;width:auto}
.bar .back{font-size:15px;text-decoration:none;display:inline-flex;gap:8px;align-items:center;color:var(--ink)}
.bar .back:hover{text-decoration:underline;text-underline-offset:4px}
@media (max-width:860px){.bar{padding-top:20px}.bar .logo svg{height:24px}}

/* ---------- footer ---------- */
.foot{background:var(--surface-dark);color:var(--cream)}
.foot .wrap{padding-block:72px 40px;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:48px;align-items:start}
.foot .logo svg{height:36px;width:auto}
.foot .tag{margin-top:20px;font-family:var(--head);font-weight:200;font-size:22px;line-height:1.3;color:var(--cream);max-width:16ch}
.foot h4{font-size:13px;font-weight:500;letter-spacing:.08em;color:var(--lav);margin-bottom:16px}
.foot ul{list-style:none;display:grid;gap:12px}
.foot a{text-decoration:none;font-size:16px;color:var(--cream)}
.foot a:hover{text-decoration:underline;text-underline-offset:4px}
.foot .talk a{display:inline-flex;align-items:center;gap:10px}
.foot .talk svg{width:18px;height:18px}
/* WhatsApp's own button language (brand green #25D366). Dark label for AA contrast; the site states AA */
.foot .talk a.wa-btn{gap:10px;min-height:48px;padding:8px 20px 8px 18px;border-radius:999px;background:#25D366;color:#072821;font-weight:500;text-decoration:none;transition:background .3s}
.foot .talk a.wa-btn svg{width:22px;height:22px}
.foot .talk a.wa-btn:hover{background:#1EBE5A;text-decoration:none}
.foot .legal{grid-column:1/-1;border-top:1px solid rgba(236,235,234,.16);padding-top:22px;display:flex;justify-content:space-between;gap:16px;font-size:13px;color:var(--lav)}
@media (max-width:860px){.foot .wrap{grid-template-columns:1fr;gap:36px;padding-block:56px 100px}.foot .legal{flex-direction:column}}

/* ---------- modal (quiz + booking) ---------- */
.modal{position:fixed;inset:0;z-index:80;display:none;align-items:center;justify-content:center;padding:24px}
.modal.open{display:flex}
.modal .scrim{position:absolute;inset:0;background:rgba(32,50,54,.58);backdrop-filter:blur(4px)}
.modal .panel{position:relative;width:min(780px,100%);max-height:calc(100vh - 48px);overflow:auto;background:var(--cream);border-radius:28px;padding:26px 44px 40px;
  box-shadow:0 40px 80px -30px rgba(7,40,33,.55);animation:panelin .6s var(--ease) both}
.modal .ptop{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}
.modal .x{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:transparent;box-shadow:inset 0 0 0 1px rgba(32,50,54,.3);color:var(--ink);cursor:pointer;display:grid;place-items:center}
.modal .x:hover{background:var(--ink);color:var(--cream)}
.prog{flex:1;display:flex;align-items:center;gap:14px;font-size:14px;color:var(--ink-soft)}
.prog .track{flex:1;height:4px;border-radius:4px;background:rgba(32,50,54,.12);overflow:hidden}
.prog .fill{height:100%;background:var(--teal);border-radius:4px;transition:width .6s var(--ease)}
@keyframes panelin{from{opacity:0;transform:translateY(28px) scale(.98)}to{opacity:1;transform:none}}
@media (max-width:860px){.modal{padding:0;align-items:stretch}.modal .panel{border-radius:0;max-height:none;height:100%;padding:16px 20px 32px}}

.q{font-family:var(--head);font-weight:200;font-size:clamp(25px,2.86vw,37px);line-height:1.15;margin-bottom:10px;text-wrap:balance}
.q-sub{font-size:16px;line-height:1.6;color:var(--ink-soft);margin-bottom:26px}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.choice{position:relative;display:flex;align-items:center;gap:14px;min-height:58px;padding:12px 18px;border-radius:16px;background:var(--white);box-shadow:inset 0 0 0 1px rgba(32,50,54,.14);
  font-size:16px;cursor:pointer;transition:box-shadow .3s var(--ease),transform .3s var(--ease);text-align:right;font-family:var(--body);color:var(--ink);border:0;width:100%}
.choice:hover{box-shadow:inset 0 0 0 1.5px var(--teal);transform:translateY(-2px)}
.choice .dot{flex:none;width:20px;height:20px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--teal);display:grid;place-items:center}
.choice[aria-checked="true"]{box-shadow:inset 0 0 0 2px var(--teal)}
.choice[aria-checked="true"] .dot{background:var(--teal)}
.choice[aria-checked="true"] .dot::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
.part{margin-top:24px}
.part .lbl{display:flex;gap:10px;align-items:baseline;font-size:16px;font-weight:500;line-height:1.45;margin-bottom:12px}
.part .lbl b{font-family:var(--head);font-weight:300;font-size:22px;color:var(--ink-soft)}
.part.dim{opacity:.4}
.qnav{display:flex;justify-content:space-between;align-items:center;margin-top:32px;gap:16px}
.link{background:none;border:0;font:inherit;font-size:16px;color:var(--ink);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
@media (max-width:860px){.choices{grid-template-columns:1fr}.choice{min-height:54px}.qnav{flex-direction:column-reverse;align-items:stretch;text-align:center}.qnav .btn{width:100%}}

/* form */
.field{display:grid;gap:8px;align-content:start}
.field label{font-size:15px;font-weight:500}
.field label .req{color:var(--ink-soft);font-weight:400}
.field input,.field select,.field textarea{font:inherit;font-size:17px;color:var(--ink);background:var(--white);border:0;border-radius:14px;min-height:54px;padding:12px 16px;box-shadow:inset 0 0 0 1px rgba(32,50,54,.24);width:100%}
.field textarea{min-height:120px;resize:vertical;line-height:1.6}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;box-shadow:inset 0 0 0 2px var(--teal)}
/* field names live inside the fields (Asit 10/10). The label stays for screen readers, hidden only visually */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.field input::placeholder,.field textarea::placeholder{color:var(--ink-soft);opacity:1}  /* mauve on white 6.0:1, on the prefill tint 5.5:1 (AA) */
.field input[dir="ltr"]:placeholder-shown{direction:rtl}  /* Hebrew name sits right while empty; typing is LTR */
.field select:has(option[value=""]:checked){color:var(--ink-soft)}
.field select option{color:var(--ink)}
.field .hint{font-size:13px;color:var(--ink-soft)}
.field.pre input,.field.pre select{background:var(--prefill)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px 18px}
.grid2 .full{grid-column:1/-1}
@media (max-width:860px){.grid2{grid-template-columns:1fr}}
.check{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.55}
.check input{flex:none;width:22px;height:22px;margin-top:2px;accent-color:var(--teal)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .rv{opacity:1;transform:none}
  .mark::before{transform:none}.mark .lo{clip-path:none}
}
/* capture mode: final states, no motion (screenshots) */
.capture *,.capture *::before,.capture *::after{animation:none!important;transition:none!important}
.capture .rv{opacity:1;transform:none}
.capture .mark::before{transform:none}.capture .mark .lo{clip-path:none}
/* screenshot helper: show an open modal at full content height (?shot=modal). Not part of the design */
.shot-modal body{background:var(--teal)}
.shot-modal body>*:not(.modal){display:none!important}
.shot-modal .modal.open{position:relative;inset:auto;min-height:100vh;padding:48px 24px}
.shot-modal .modal .panel{max-height:none;height:auto;animation:none}
.shot-modal .modal .scrim{display:none}
@media (max-width:860px){.shot-modal .modal.open{padding:0}.shot-modal .modal .panel{min-height:100vh}}

/* booking validation */
.err{display:block;min-height:1.2em;font-size:13px;color:#B3261E;margin-top:4px}
/* no reserved height while empty: the message takes room only when it exists (cancels the field's 8px gap too) */
.field .err:empty{min-height:0;margin-top:-8px}
[aria-invalid="true"]{border-color:#B3261E!important}
/* errors inside the field (Asit 10/10, KAI). Red #B3261E on pink #FDECEC = 9.1:1 (AA needs 4.5:1).
   Missing value: the placeholder becomes the error text. Wrong format: the value stays and the error sits
   inside the field's right edge (only LTR fields have a format rule, so it never covers the typed value).
   The .err span stays in the DOM for screen readers (aria-describedby + aria-live) and is shown only for format errors. */
.field{position:relative}
.field [aria-invalid="true"]{background:#FDECEC!important;box-shadow:inset 0 0 0 1.5px #B3261E!important}
.field [aria-invalid="true"]::placeholder{color:#B3261E;opacity:1}
.field .err,.field .err:empty{position:absolute;width:1px;height:1px;min-height:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.field.bad .err{width:auto;height:auto;overflow:visible;clip-path:none;top:27px;right:16px;transform:translateY(-50%);max-width:calc(100% - 96px);font-size:13px;font-weight:500;line-height:1.3;color:#B3261E;pointer-events:none;white-space:normal;text-align:right}
.field.bad input{padding-right:min(210px,calc(100% - 96px))}

/* ===== cookie banner (launch blocker; copy by DIN/COPFA) ===== */
.cookies[hidden]{display:none}
/* compact, pinned to the left edge (Asit 10/10). Sits just above the accessibility button so both stay reachable */
.cookies{position:fixed;z-index:70;left:16px;bottom:76px;width:min(380px,calc(100% - 32px));background:var(--surface-dark);color:var(--cream);border-radius:16px;padding:14px 16px;box-shadow:0 24px 48px -24px rgba(7,40,33,.7);display:grid;gap:8px}
.cookies p{font-size:13px;line-height:1.55}  /* cream on #263A3C = 10.9:1 */
.cookies p a{color:var(--cream)}
.cookies .row{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px!important}  /* overrides the inline 14px from site.js, style only */
.cookies button{font:inherit;font-size:13px;font-weight:500;min-height:40px;padding:4px 10px;border-radius:999px;border:0;cursor:pointer;background:transparent;color:var(--cream);box-shadow:inset 0 0 0 1px var(--cream);white-space:nowrap}
/* three choices, identical size and weight: refusing is as easy as agreeing */
.cookies h2{font-family:var(--head);font-weight:300;font-size:16px;display:flex;gap:10px;align-items:center}
.cookies .row button{flex:1}
.cookies button:hover{background:var(--cream);color:var(--teal)}
.cookies :focus-visible{outline:2px solid var(--cream);outline-offset:3px}
@media (max-width:860px){.cookies{left:12px;right:12px;bottom:12px;width:auto;border-radius:16px;padding:12px 14px 14px;gap:6px}
  .cookies button{min-height:44px}  /* touch target */
  body:has(.cookies:not([hidden])) .fab{display:none}}
/* second layer ("לבחור בעצמי" / footer "העדפות עוגיות"): categories, essential always on (DIN ג.2) */
.cookies .ck-cats{display:grid;gap:10px;margin:0;padding:0;border:0}
.cookies .ck-cats label{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:start;font-size:13px;line-height:1.5;cursor:pointer}
.cookies .ck-cats input{width:20px;height:20px;margin-top:2px;accent-color:var(--accent,#D1FE9F)}
.cookies .ck-cats b{font-weight:500;font-size:14px}
.cookies .ck-cats span{grid-column:2;color:rgba(255,255,255,.75)}
.cookies [data-layer][hidden]{display:none}
