/* YEVGRAFOVA: Swiss / modernist / luxury-minimal. Flat colors only. */
:root {
  --ivory: #F5F2EC;
  --paper: #EDE8DF;
  --ink: #111111;
  --stone: #625E57;
  --mist: #A8A39A;
  --line: #D9D3C8;
  --clay: #8C4F35;
}

html { scroll-behavior: smooth; }
body { font-size: 17px; line-height: 1.6; }
::selection { background: var(--ink); color: var(--ivory); }

/* Type scale */
.display-xl { font-size: clamp(3.25rem, 10.5vw, 10rem); line-height: 0.92; letter-spacing: -0.045em; }
.display-lg { font-size: clamp(2.5rem, 6vw, 6rem); line-height: 0.98; letter-spacing: -0.035em; }
.meta { font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--clay); display: inline-block; }

/* Skip link + focus */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--ivory); padding: .75rem 1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.bg-ink :focus-visible, footer :focus-visible { outline-color: var(--ivory); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; height: 48px; padding: 0 1.5rem; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: .01em; border: 1px solid transparent; transition: background-color .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn-ink { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-ink:hover { background: transparent; color: var(--ink); }
.btn-ivory { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-ivory:hover { background: transparent; color: var(--ivory); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

/* Nav */
.nav-link { position: relative; padding: 4px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 999px; background: var(--clay); }
.link-ivory { border-bottom: 1px solid transparent; transition: border-color .2s; }
.link-ivory:hover { border-color: var(--ivory); }

.menu-icon { display: inline-flex; flex-direction: column; gap: 6px; width: 22px; }
.menu-icon span { height: 1px; background: var(--ink); transition: transform .3s; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Phones */
.phones { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.75rem); align-items: start; }
.phone { aspect-ratio: 9 / 19; border-radius: clamp(22px, 3vw, 40px); background: var(--ink); padding: clamp(5px, .6vw, 8px); box-shadow: 0 30px 60px -30px rgba(17, 17, 17, .35); }
.phone-b { margin-top: clamp(2rem, 6vw, 5rem); }
.phone-c { margin-top: clamp(1rem, 3vw, 2.5rem); }
.phone-screen { height: 100%; border-radius: clamp(17px, 2.4vw, 32px); background: var(--ivory); color: var(--ink); padding: clamp(.6rem, 1.4vw, 1.25rem); display: flex; flex-direction: column; overflow: hidden; font-size: clamp(8px, 1vw, 12px); }
.phone-ink .phone-screen { background: #1C1B19; color: var(--ivory); }
.phone-bar { display: flex; justify-content: space-between; align-items: center; font-size: .8em; font-weight: 600; margin-bottom: 1.6em; letter-spacing: .02em; }
.phone-bar span:last-child { font-size: .55em; letter-spacing: .1em; }
.phone-notch { width: 34%; height: 1.5em; border-radius: 999px; background: var(--ink); }
.phone-ink .phone-notch { background: #000; }
.ph-meta { font-size: .78em; text-transform: uppercase; letter-spacing: .14em; opacity: .6; }
.ph-title { font-size: 1.9em; line-height: 1.05; margin-top: .5em; }
.ph-sub { font-size: .9em; opacity: .6; margin-top: .3em; }
.ph-rule { height: 1px; background: currentColor; opacity: .2; margin: 1.2em 0; }
.ph-lines { display: flex; flex-direction: column; gap: .7em; flex: 1; }
.ph-lines span { height: .42em; border-radius: 2px; background: currentColor; opacity: .14; }
.ph-lines .gap { height: .4em; background: transparent; }
.ph-progress { height: 2px; background: var(--line); margin-top: 1em; }
.ph-progress span { display: block; height: 100%; background: var(--ink); }
.ph-cover { aspect-ratio: 1; margin: 1em 0 .6em; border-radius: .8em; background: var(--ivory); color: var(--ink); display: grid; place-items: center; }
.ph-cover span { font-size: 5em; font-weight: 300; letter-spacing: -.06em; }
.ph-wave { display: flex; align-items: center; gap: 3%; height: 2.6em; margin-top: 1.2em; }
.ph-wave span { flex: 1; background: var(--ivory); opacity: .85; border-radius: 1px; }
.ph-wave span:nth-child(n+8) { opacity: .3; }
.ph-time { display: flex; justify-content: space-between; font-size: .75em; opacity: .6; margin-top: .6em; }
.ph-controls { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 8%; }
.ph-skip { width: 2.6em; height: 2.6em; border: 1px solid rgba(245, 242, 236, .4); border-radius: 999px; display: grid; place-items: center; font-size: .8em; }
.ph-play { width: 4.2em; height: 4.2em; border-radius: 999px; background: var(--ivory); display: grid; place-items: center; }
.ph-play span { width: 0; height: 0; border-left: 1.1em solid var(--ink); border-top: .7em solid transparent; border-bottom: .7em solid transparent; margin-left: .25em; }
.ph-breath { position: relative; aspect-ratio: 1; margin: 1.5em 0 1em; display: grid; place-items: center; }
.ph-breath .ring { position: absolute; border-radius: 999px; border: 1px solid var(--ink); }
.ph-breath .r1 { inset: 0; opacity: .15; }
.ph-breath .r2 { inset: 14%; opacity: .3; }
.ph-breath .core { width: 56%; height: 56%; border-radius: 999px; background: var(--ink); animation: breathe 8s ease-in-out infinite; }
.ph-steps { display: flex; gap: 4%; margin-top: auto; }
.ph-steps span { flex: 1; height: 2px; background: var(--line); }
.ph-steps .on { background: var(--ink); }
@keyframes breathe { 0%, 100% { transform: scale(.72); } 50% { transform: scale(1); } }

/* Marquee */
.marquee { white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 2.5rem; align-items: center; animation: marquee 40s linear infinite; padding-left: 2.5rem; }
.marquee .sep { font-size: .35em; color: var(--clay); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Accordion */
.acc-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .3s; }
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-panel[hidden] { display: none; }

/* Form */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { width: 100%; height: 56px; background: transparent; border: 0; border-bottom: 1px solid rgba(245, 242, 236, .35); color: var(--ivory); font-size: 18px; padding: 0; border-radius: 0; }
.field:focus { outline: none; border-bottom-color: var(--ivory); }
.field:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.check { width: 18px; height: 18px; accent-color: var(--ivory); flex-shrink: 0; }
#wl-status { min-height: 1.5em; color: var(--ivory); }
#wl-status.is-error { color: #E7C9BC; }
.waitlist-form.is-loading button[type="submit"] { opacity: .6; pointer-events: none; }

/* Legal pages */
.legal { max-width: 46rem; }
.legal h2 { font-family: "Inter Tight", Inter, sans-serif; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-top: 1rem; color: #3A3733; }
.legal ul { list-style: none; padding: 0; }
.legal li { position: relative; padding-left: 1.5rem; margin-top: .6rem; }
.legal li::before { content: "\2014"; position: absolute; left: 0; color: var(--stone); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal strong { font-weight: 600; color: var(--ink); }
.legal code { font-size: .9em; background: var(--paper); padding: .1em .35em; }
.legal-toc { position: relative; }
@media (min-width: 1024px) { .legal-toc { position: sticky; top: 7rem; align-self: start; } }
.legal-toc a { color: var(--stone); }
.legal-toc a:hover { color: var(--ink); }

/* Initial hidden state only when JS + motion are available (set by main.js) */
.motion [data-reveal], .motion [data-stagger] > * { opacity: 0; transform: translateY(24px); }
.motion [data-split] .line { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
