/* YEUX website. Tokens mirror the app's lib/theme.ts so the site and app feel like one thing. */

@font-face { font-family: 'Heros CN'; src: url('/fonts/texgyreheroscn-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Heros CN'; src: url('/fonts/texgyreheroscn-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-400Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-400Regular_Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-600SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --white: #FFFFFF;
  --cream: #F5F4EE;
  --ink: #0A0D12;
  --hero-from: #1F2A44;
  --text: #181D27;
  --text-2: #414651;
  --text-3: #717680;
  --border: #D5D7DA;
  --border-soft: rgba(213, 215, 218, 0.5);
  --on-dark-muted: rgba(255, 255, 255, 0.62);
  --on-dark-faint: rgba(255, 255, 255, 0.18);
  --error: #B42318;

  --display: 'Heros CN', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1120px;
  --radius: 12px;
  --radius-card: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.lede, .section-head p, .feature p { text-wrap: pretty; }
h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 0.98; }
h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.02; }
h3 { font-size: 26px; line-height: 1.1; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-2); max-width: 34em; }
p { margin: 0 0 1em; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.06em; text-decoration: none; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--white); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* ---------- buttons and the waitlist form ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--white);
  font: 600 15px/1 var(--body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-light { background: var(--white); color: var(--ink); }

.waitlist { width: 100%; max-width: 460px; }
.waitlist .row { display: flex; gap: 8px; }
.waitlist input[type=email] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--text);
  font: 400 16px var(--body);
}
.waitlist input[type=email]::placeholder { color: var(--text-3); }
.waitlist input[type=email]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 13, 18, 0.08); }
.waitlist .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .small { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.waitlist .small a { color: var(--text-2); }
.waitlist .msg { margin: 12px 0 0; font-size: 15px; font-weight: 500; min-height: 0; }
.waitlist .msg.error { color: var(--error); }
.waitlist.done .row, .waitlist.done .small { display: none; }
.waitlist.done .msg { font-family: var(--display); font-size: 26px; line-height: 1.15; font-weight: 700; color: var(--ink); }
@media (max-width: 480px) { .waitlist .row { flex-direction: column; } .waitlist input[type=email] { flex: none; width: 100%; } .waitlist .btn { width: 100%; } }

.on-dark .waitlist input[type=email] { background: rgba(255, 255, 255, 0.08); border-color: var(--on-dark-faint); color: var(--white); }
.on-dark .waitlist input[type=email]::placeholder { color: var(--on-dark-muted); }
.on-dark .waitlist input[type=email]:focus { border-color: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.on-dark .waitlist .small, .on-dark .waitlist .small a { color: var(--on-dark-muted); }
.on-dark .waitlist.done .msg { color: var(--white); }
.on-dark .waitlist .msg.error { color: #FDA29B; }

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }
.hero-media { border-radius: var(--radius-card); overflow: hidden; background: var(--cream); aspect-ratio: 4 / 5; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
}

/* ---------- sections ---------- */

.section { padding: clamp(72px, 10vw, 136px) 0; }
.section + .section { border-top: 1px solid var(--border-soft); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 20px; }
.section-head p { color: var(--text-2); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* how it works: three cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { margin: 0; }
.step .frame { aspect-ratio: 4 / 5; border-radius: var(--radius-card); overflow: hidden; background: var(--cream); margin-bottom: 20px; }
.step .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.step:hover .frame img { transform: scale(1.03); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 16px; margin: 0; }
.step .credit { display: block; margin-top: 10px; font-size: 12px; color: var(--text-3); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 48px; max-width: 480px; margin: 0 auto; } }

/* features: text beside a photo */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 136px); }
.feature.flip .feature-media { order: -1; }
.feature-media { border-radius: var(--radius-card); overflow: hidden; background: var(--cream); aspect-ratio: 4 / 5; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature h2 { margin-bottom: 20px; }
.feature p { color: var(--text-2); font-size: 18px; max-width: 30em; }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { max-width: 520px; }
}

/* small things grid */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.grid4 h3 { font-size: 22px; margin-bottom: 8px; }
.grid4 p { color: var(--text-2); font-size: 15px; margin: 0; }
.grid4 .icon { width: 28px; height: 28px; margin-bottom: 16px; color: var(--ink); }
@media (max-width: 880px) { .grid4 { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 480px) { .grid4 { grid-template-columns: 1fr; } }

/* quiet by design: dark */
.dark {
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--ink) 100%);
  color: var(--white);
}
.dark h2 { color: var(--white); }
.dark .eyebrow { color: var(--on-dark-muted); }
.dark p { color: var(--on-dark-muted); }
.nots { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--on-dark-faint); border-radius: var(--radius); overflow: hidden; }
.nots li { background: var(--ink); padding: 24px; font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--white); }
.nots li span { display: block; font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--on-dark-muted); margin-top: 6px; line-height: 1.5; }
@media (max-width: 720px) { .nots { grid-template-columns: 1fr; } }

/* sources band */
.sources { background: var(--cream); padding: clamp(56px, 7vw, 88px) 0; text-align: center; }
.sources p { max-width: 44em; margin: 0 auto; color: var(--text-2); font-size: 17px; }
.sources strong { color: var(--ink); font-weight: 600; }

/* closing call to action */
.cta { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.cta .bg { position: absolute; inset: 0; }
.cta .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.cta .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,18,0.2) 0%, rgba(10,13,18,0.85) 100%); }
.cta .wrap { position: relative; padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(72px, 10vw, 120px); }
.cta h2 { color: var(--white); font-size: clamp(44px, 7vw, 80px); margin-bottom: 20px; max-width: 10em; }
.cta p { color: var(--on-dark-muted); font-size: 18px; max-width: 30em; }
.cta .waitlist { margin-top: 32px; }
.cta .credit { position: relative; display: block; margin-top: 56px; font-size: 12px; color: var(--on-dark-muted); }
.cta .ig { color: var(--white); }

/* ---------- footer ---------- */

.site-footer { padding: 48px 0 56px; font-size: 14px; color: var(--text-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--text-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .wordmark { font-size: 20px; }

/* ---------- long-form pages (privacy, support) ---------- */

.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.doc h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 16px; }
.doc .updated { color: var(--text-3); font-size: 14px; margin-bottom: 48px; }
.doc h2 { font-size: 30px; margin: 56px 0 16px; }
.doc h3 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .short {
  background: var(--cream); border-radius: var(--radius-card); padding: 28px 32px; margin: 0 0 16px;
}
.doc .short p { margin: 0; font-size: 19px; color: var(--text); }
.doc .todo { background: #FEF3F2; color: var(--error); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }

.faq { border-top: 1px solid var(--border-soft); }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 300 28px var(--body); color: var(--text-3); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; }
.contact-card { margin-top: 56px; background: var(--cream); border-radius: var(--radius-card); padding: 32px; }
.contact-card h2 { margin: 0 0 8px; }
.contact-card p { margin: 0 0 20px; }

/* ---------- gentle entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s ease, transform 0.8s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
.sources .eyebrow { margin-bottom: 16px; }
@media (max-width: 480px) { .doc .short { padding: 22px 20px; } .doc .short p { font-size: 17px; } .contact-card { padding: 24px 20px; } }

/* logo lockup (app icon + wordmark) */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.logo-sm img { height: 28px; }
.features .feature + .feature { margin-top: clamp(96px, 12vw, 160px); }
@media (min-width: 881px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }

/* Instagram icon in the header */
.nav .icon-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); }
.nav .icon-link:hover { background: var(--cream); }

/* museum credit, small, above the footer logo */
.site-footer .footer-credit { display: block; margin-top: 24px; }
.site-footer .footer-credit p { margin: 0; max-width: 46em; text-align: left; }
.site-footer .footer-credit small { font-size: 13px; line-height: 1.6; color: var(--text-3); }
