/* My Ethnicity — Atlas identity (2026-07-10 full rebuild)
   Light museum-archive: ivory paper, ink text, terracotta accent, Fraunces + Inter */

:root {
  --bg: #F6F1E7;
  --paper: #F2EBDD;
  --paper-2: #EDE4D2;
  --surface: #FDFBF5;
  --ink: #263140;
  --ink-deep: #1C2532;
  --ink-soft: #55606E;
  --muted: #7A8494;
  --terra: #C05A33;
  --terra-deep: #9E4526;
  --terra-soft: #E3B49E;
  --hairline: #E2D9C6;
  --white: #ffffff;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 50px -24px rgba(28, 37, 50, 0.28);
  --shadow-sm: 0 6px 20px -12px rgba(28, 37, 50, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* subtle paper texture via a faint radial wash */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(1100px 700px at 85% -5%, rgba(192, 90, 51, 0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(226, 217, 198, 0.5), transparent 55%);
}

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.serif-light { font-weight: 300; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terra-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--terra); display: inline-block; }
.terra { color: var(--terra); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 15px 26px; border-radius: 14px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--terra); color: var(--white); box-shadow: 0 12px 26px -14px rgba(192, 90, 51, 0.7); }
.btn--primary:hover { transform: translateY(-2px); background: var(--terra-deep); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(246, 241, 231, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); box-shadow: 0 6px 24px -20px rgba(28,37,50,.3); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; }
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.site-nav a:hover { color: var(--terra-deep); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* language switch */
.i18n-switch { position: relative; }
.i18n-switch__btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 9px 12px; font-family: var(--sans); font-size: 0.88rem; font-weight: 500; color: var(--ink-soft);
}
.i18n-switch__btn:hover { border-color: var(--terra-soft); }
.i18n-switch__chev { transition: transform .2s; }
.i18n-switch[aria-expanded="true"] .i18n-switch__chev { transform: rotate(180deg); }
.i18n-switch__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow);
  list-style: none; padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease; z-index: 60;
}
.i18n-switch.is-open .i18n-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.i18n-switch__item { display: block; padding: 9px 12px; border-radius: 9px; font-size: 0.9rem; color: var(--ink-soft); }
.i18n-switch__item:hover { background: var(--paper); color: var(--ink); }
.i18n-switch__item.is-active { color: var(--terra-deep); font-weight: 600; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: .25s; }
.nav-toggle__bars::before { transform: translate(-50%, -7px); }
.nav-toggle__bars::after { transform: translate(-50%, 5px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 40px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 4.3rem); margin: 18px 0 20px; }
.hero__title .l2 { color: var(--terra); font-style: italic; font-weight: 300; }
.hero__body { font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; }
.hero__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 14px;
  background: var(--ink); color: var(--white); font-size: 0.9rem;
}
.store-badge small { display: block; font-size: 0.62rem; opacity: 0.7; letter-spacing: 0.04em; }
.store-badge b { font-weight: 600; font-size: 0.98rem; }
.store-badge.is-soon { background: var(--surface); color: var(--ink-soft); border: 1px dashed var(--hairline); }
.hero__note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

/* hero phones */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual .phone-main { width: min(340px, 78%); filter: drop-shadow(0 30px 60px rgba(28,37,50,.22)); position: relative; z-index: 2; animation: floaty 6s ease-in-out infinite; }
.hero__visual .phone-side { position: absolute; width: 46%; right: -4%; bottom: 6%; z-index: 1; filter: drop-shadow(0 24px 44px rgba(28,37,50,.2)); animation: floaty 6s ease-in-out infinite 1.5s; }
.hero__glow { position: absolute; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(192,90,51,.22), transparent 68%); top: 12%; left: 20%; filter: blur(24px); z-index: 0; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- generic section ---------- */
section { position: relative; }
.section-pad { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 14px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- features ---------- */
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--terra-soft); }
.feature-card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(192, 90, 51, 0.1); color: var(--terra); margin-bottom: 18px;
}
.feature-card__icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.24rem; margin-bottom: 9px; }
.feature-card p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- showcase (alternating phone rows) ---------- */
.showcase { display: flex; flex-direction: column; gap: 96px; }
.showcase__row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase__row:nth-child(even) .showcase__media { order: 2; }
.showcase__media { display: flex; justify-content: center; position: relative; }
.showcase__media::after { content: ""; position: absolute; width: 62%; aspect-ratio: 1; background: radial-gradient(circle, rgba(192,90,51,.16), transparent 70%); z-index: 0; filter: blur(10px); }
.showcase__media img { width: min(300px, 74%); position: relative; z-index: 1; }
.showcase__text h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 14px 0 16px; }
.showcase__text p { color: var(--ink-soft); font-size: 1.06rem; max-width: 30em; }
.showcase__list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.showcase__list li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-soft); font-size: 1rem; }
.showcase__list svg { flex: none; width: 20px; height: 20px; color: var(--terra); margin-top: 3px; }

/* ---------- how ---------- */
.how { background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 34px 28px; text-align: center; }
.step__num { font-family: var(--serif); font-size: 2.6rem; font-weight: 300; color: var(--terra); font-style: italic; margin-bottom: 12px; }
.step h3 { font-size: 1.28rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- faq ---------- */
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--terra); font-weight: 300; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__answer { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- cta band ---------- */
.cta-band { text-align: center; }
.cta-band__inner { background: linear-gradient(135deg, var(--ink), var(--ink-deep)); color: var(--bg); border-radius: var(--radius-lg); padding: 64px 32px; position: relative; overflow: hidden; }
.cta-band__inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(192,90,51,.3), transparent 60%); }
.cta-band h2 { color: var(--bg); font-size: clamp(2rem, 3.6vw, 2.8rem); position: relative; }
.cta-band p { color: rgba(246,241,231,.72); margin: 14px auto 26px; max-width: 34em; position: relative; }
.cta-band .store-badges { justify-content: center; position: relative; }
.cta-band .store-badge { background: var(--terra); }
.cta-band .store-badge.is-soon { background: rgba(255,255,255,.08); color: rgba(246,241,231,.8); border-color: rgba(255,255,255,.2); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,241,231,.7); padding: 60px 0 30px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { max-width: 26em; font-size: 0.96rem; }
.footer-col h4 { font-family: var(--sans); color: var(--bg); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.96rem; transition: color .2s; }
.footer-col a:hover { color: var(--terra-soft); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.88rem; gap: 16px; flex-wrap: wrap; }
.site-footer__bottom .legal { display: flex; gap: 20px; }
.site-footer__bottom a:hover { color: var(--terra-soft); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero__visual .phone-main, .hero__visual .phone-side { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero__body { margin-inline: auto; }
  .hero__ctas, .eyebrow { justify-content: center; }
  .hero__visual { margin-top: 10px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .showcase__row { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .showcase__row:nth-child(even) .showcase__media { order: 0; }
  .showcase__list { display: inline-flex; text-align: left; }
  .how__steps { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }

  /* mobile nav drawer */
  .site-nav.is-open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--hairline); padding: 8px 24px 16px; box-shadow: var(--shadow); }
  .site-nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
  .section-pad { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .cta-band__inner { padding: 44px 22px; }
}

/* legal pages (privacy/terms) */
.legal-section { padding: 56px 0 80px; }
.legal-section .container { max-width: 820px; }
.legal-page__head { margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--hairline); }
.legal-page__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.legal-page__effective { color: var(--muted); font-size: 0.92rem; }
.legal-page__content > section { margin-bottom: 26px; }
.legal-page__content h2 { font-size: 1.35rem; margin: 30px 0 12px; }
.legal-page__content p { color: var(--ink-soft); margin-bottom: 12px; }
.legal-page__content a { color: var(--terra-deep); text-decoration: underline; }
.legal-page__content ul { padding-left: 22px; }
.legal-page__content li { color: var(--ink-soft); margin-bottom: 8px; }
/* minimal chrome for legal pages */
.legal-header .container { justify-content: space-between; }
.legal-footer { background: var(--ink); color: rgba(246,241,231,.7); padding: 40px 0; margin-top: 40px; }
.legal-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; }
.legal-footer img { height: 34px; }
.legal-footer a { color: rgba(246,241,231,.8); }
.legal-footer a:hover { color: var(--terra-soft); }
.legal-footer .legal { display: flex; gap: 18px; }
