/* Nourelle home page. Two layouts share this file:
   - default: a plain, static page (no WebGL, reduced motion, or scripts unavailable)
   - html.anim: the scroll story, with a fixed 3D stage driven by home.js */

@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
/* Hebrew faces: only fetched on pages that contain Hebrew text */
@font-face { font-family: "Frank Ruhl Libre"; src: url("/fonts/frank-ruhl-libre-hebrew-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; src: url("/fonts/frank-ruhl-libre-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Assistant"; src: url("/fonts/assistant-hebrew-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; src: url("/fonts/assistant-hebrew-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; src: url("/fonts/assistant-hebrew-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; src: url("/fonts/assistant-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Assistant"; src: url("/fonts/assistant-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Assistant"; src: url("/fonts/assistant-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root { --bg: #fbf6f2; --ink: #3b2230; --soft: #6b5361; --line: #f0e4e0; --cta: #5e2a47; --cta-ink: #ffffff; --hd: 60px; }
/* the story opens at night; home.js then drives these as the page warms to morning */
html.anim { --bg: #1c0f1a; --ink: #fbf6f2; --soft: rgba(251,246,242,.8); --cta: #fbf6f2; --cta-ink: #5e2a47; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang=he] body { font-family: Assistant, "Arial Hebrew", Arial, sans-serif; }
img { -webkit-user-drag: none; user-select: none; }
.serif { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -.02em; }
html[lang=he] .serif { font-family: "Frank Ruhl Libre", "Times New Roman", serif; letter-spacing: 0; }
.latin { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -.01em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #c6a26a; outline-offset: 2px; }

/* ---------- header ---------- */
#hd { position: sticky; top: 0; z-index: 5; height: var(--hd); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--bg); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-decoration: none; font-size: 21px; }
.brand img { display: block; }
.hd-end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.lang a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 38px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.lang a[aria-current=true] { background: var(--ink); color: var(--bg); }

/* ---------- copy ---------- */
.scene { max-width: 760px; margin: 0 auto; padding: 36px 24px; }
.copy { display: flex; flex-direction: column; gap: 16px; }
.copy h1, .copy h2 { margin: 0; line-height: 1.04; text-wrap: balance; }
html[lang=he] .copy h1, html[lang=he] .copy h2 { line-height: 1.1; }
.copy h1 { font-size: clamp(44px, 5.4vw, 80px); }
.copy h2 { font-size: clamp(34px, 3.9vw, 58px); }
.copy p { margin: 0; max-width: 30em; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; color: var(--soft); }
html[lang=he] .copy p { font-size: clamp(17px, 1.42vw, 21px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
html[lang=he] .btn { font-size: 17px; }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--soft); }
html[lang=he] .chips { font-size: 14px; }
.ways { gap: 8px; }
.ways li { padding: 7px 13px; border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 999px; color: var(--ink); }
.stats { display: flex; gap: 36px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .k { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.stat .k i { width: 10px; height: 10px; border-radius: 50%; }
.stat .v { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: clamp(30px, 3vw, 44px); font-variant-numeric: tabular-nums; }
.stat .pc { font-size: 15px; color: var(--soft); }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #ffffff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(94,42,71,.12); color: #3b2230; font-size: 15px; font-weight: 600; }
.pill i { width: 10px; height: 10px; border-radius: 50%; background: #8e7dbe; }
.shot { display: block; width: min(250px, 68%); height: auto; margin: 12px auto 0; border-radius: 30px; box-shadow: 0 24px 50px rgba(94,42,71,.22); }
.d-only { display: none !important; }

/* docked call to action on phones */
#dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: none; flex-direction: column; gap: 8px; padding: 12px 16px 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
#dock > span { text-align: center; font-size: 13px; color: var(--soft); }
html[lang=he] #dock > span { font-size: 14px; }

/* ---------- stage (only used by the scroll story) ---------- */
#sky, #glow, #gl, #clock, #spacer { display: none; }
html:not(.anim) [data-next] { display: none; }

html.anim #sky, html.anim #glow, html.anim #gl { display: block; position: fixed; pointer-events: none; }
html.anim #sky { inset: 0; background: var(--bg); z-index: 0; }
html.anim #glow { z-index: 1; left: 50%; bottom: 0; width: min(170vw, 1500px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(212,124,146,.62), rgba(168,75,102,.26) 55%, rgba(168,75,102,0) 100%); transform: translate(-50%, 62%); }
html.anim #gl { inset: 0; width: 100%; height: 100%; z-index: 2; }
html.anim #hd { position: fixed; left: 0; right: 0; background: transparent; }
html.anim #clock { position: fixed; top: var(--hd); left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 2px 24px 0; font-size: 12px; letter-spacing: .1em; color: #e2c394; }
html.anim #clock.day { color: #7d5f27; }
#ck-now { min-width: 5.2em; }
.ck-track { position: relative; flex: 1; height: 1px; background: currentColor; }
.ck-track::before { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: .55; }
#ck-dot { position: absolute; top: -4px; width: 9px; height: 9px; margin-inline-start: -4px; border-radius: 50%; background: currentColor; inset-inline-start: 0; }
#ck-end { color: var(--soft); }
html.anim .scene { position: fixed; inset: 0; z-index: 3; max-width: none; margin: 0; display: flex; align-items: flex-start; pointer-events: none; padding: calc(var(--hd) + 44px) 24px 0; }
html.anim .copy { width: 100%; pointer-events: auto; }
/* until home.js takes over, show only the first scene */
html.anim .scene:not(:first-child) .copy { visibility: hidden; }
html.anim .static-only { display: none; }
html.anim #spacer { display: block; position: relative; width: 1px; height: 640vh; pointer-events: none; }

/* ---------- below the story ---------- */
.after { position: relative; z-index: 7; --bg: #fbf6f2; --ink: #3b2230; --soft: #6b5361; --cta: #5e2a47; --cta-ink: #ffffff; background: var(--bg); color: var(--ink); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.after h2 { margin: 0 0 24px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.more { padding: 72px 0 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.card { padding: 22px; border-radius: 22px; background: #ffffff; border: 1px solid var(--line); }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--soft); }
.faq { padding: 40px 0 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--soft); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 20px; max-width: 46em; font-size: 16px; line-height: 1.6; color: var(--soft); }
.faq a, footer a { color: var(--cta); }
.final { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 24px 88px; text-align: center; }
.final h2 { margin: 0; }
.final p { margin: 0 0 10px; font-size: 18px; color: var(--soft); }
footer { border-top: 1px solid var(--line); padding: 24px 0 28px; font-size: 14px; color: var(--soft); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 899px) {
  #dock { display: flex; }
  .copy .btn { align-self: stretch; }
  .row .btn { flex: 1 1 auto; }
  html:not(.anim) footer { padding-bottom: 132px; }
}
@media (min-width: 900px) {
  :root { --hd: 76px; }
  #hd { padding: 0 56px; }
  .brand { font-size: 24px; }
  html.anim #clock { padding: 2px 56px 0; }
  html.anim .scene { align-items: center; padding: var(--hd) 8vw 0; }
  html.anim .copy { width: min(560px, 41vw); gap: 22px; }
  .copy { gap: 22px; }
  .d-only { display: inline-flex !important; }
  ul.d-only, div.d-only { display: flex !important; }
}
