/* Typographic/layout system ported from MyMi's client/src/index.css, Atomic's own colour palette
   swapped in. Same fonts, same heading/eyebrow/body recipe, same section rhythm — see brand memory. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
img { max-width: 100%; display: block; }
p, h1, h2, h3 { margin: 0; }

:root {
  --bg:           #FAF8F5;
  --surface:      #FFFFFF;
  --text:         #111111;
  --text-muted:   #5E5A54;
  --accent:       #1989AC;
  --accent-dark:  #13667F;
  --accent-bg:    #EAF5F8;
  --border:       #E8E4DD;
  --dark:         #111111;
  --dark-muted:   #948F87;
  --dark-text:    #F5F3EF;
  --nav-bg:       rgba(250, 248, 245, 0.92);

  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 62.5%;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { font-size: 1.8rem; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #15130F;
    --surface:      #1C1A16;
    --text:         #F1EFEA;
    --text-muted:   #A9A79F;
    --accent:       #1FACD8;
    --accent-dark:  #7BDBF5;
    --accent-bg:    rgba(31, 172, 216, 0.14);
    --border:       #2E2B25;
    --dark:         #1C1A16;
    --dark-muted:   #A9A79F;
    --dark-text:    #F1EFEA;
    --nav-bg:       rgba(21, 19, 15, 0.85);
  }
}

/* Eyebrow label — small caps tag above a heading */
.section-label {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Standard section heading */
.section-heading {
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 24px;
}

/* Body copy under a section heading */
.section-body {
  font-size: 1.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.section-body a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 84px;
  width: auto;
}
.nav__logo-img--dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .nav__logo-img--light { display: none; }
  .nav__logo-img--dark  { display: block; }
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.nav__links a {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.5rem;
}
a.nav__cta {
  color: var(--accent);
  font-weight: 600;
}

/* Hero */
.hero {
  background: var(--surface);
  padding: 100px 40px 110px;
}
.hero__inner {
  max-width: 720px;
  margin: 0 auto;
}
.hero__label {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero__heading {
  font-size: clamp(4.4rem, 8vw, 6.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}
.hero__heading em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  font-size: 2rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1.2rem 2.4rem;
  border-radius: 0.8rem;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 1.2rem 0;
}
.btn--ghost:hover {
  color: var(--accent-dark);
}
.btn--light {
  background: #FFFFFF;
  color: var(--dark);
}
.btn--light:hover {
  background: #F3F4F6;
  transform: translateY(-1px);
}
.panel__cta {
  margin-top: 32px;
}

.link-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.6rem;
  text-decoration: none;
}
.link-more:hover {
  text-decoration: underline;
}

/* Page header — About / Contact / Explore / Privacy / Terms */
.page-header {
  background: var(--surface);
  padding: 100px 40px 24px;
}
.page-header__inner {
  max-width: 720px;
  margin: 0 auto;
}

.content {
  background: var(--surface);
  padding: 32px 40px 100px;
}
.content__inner {
  max-width: 720px;
  margin: 0 auto;
}
.content p {
  font-size: 1.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.content p:last-child {
  margin-bottom: 0;
}
.content--flush-bottom {
  padding-bottom: 0;
}
.legal-updated {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.legal-heading {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: 32px 0 8px;
}
.legal-heading:first-child {
  margin-top: 0;
}
.content .field-label {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}
.contact-field {
  margin-top: 40px;
}
.contact-field:first-child {
  margin-top: 0;
}
.contact-field p {
  line-height: 1.5;
}
.contact-field--note {
  margin-top: 64px;
}
.contact-field--note p {
  font-size: 1.3rem;
  color: var(--text-muted);
}
.contact-email-btn {
  margin-bottom: 8px;
}
.content ul {
  margin: 0;
  padding-left: 20px;
}
.content li {
  font-size: 1.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.content a:not(.btn) {
  color: var(--accent);
}

/* Panel — full-bleed section wrapper, reused for every Home/Explore section.
   Inner content always carries .section-label / .section-heading / .section-body directly,
   so those three classes stay the single source of truth for typography everywhere. */
.panel {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}
.panel--alt {
  background: var(--surface);
}
.panel__inner {
  max-width: 720px;
  margin: 0 auto;
}
.panel__inner--wide {
  max-width: 920px;
}

.panel-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}
.chart-grid {
  stroke: var(--border);
  stroke-width: 1;
}
.chart-band {
  fill: var(--accent-bg);
}
.chart-line {
  stroke: var(--text-muted);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-dot {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart-dot-high {
  fill: #b45309;
  stroke: var(--surface);
  stroke-width: 2;
}
.chart-dot-halo {
  fill: var(--accent);
  opacity: 0.15;
}
@media (max-width: 768px) {
  .panel-split { grid-template-columns: 1fr; gap: 40px; }
}

.panel--accent {
  background: var(--accent);
  border-top: none;
}
.panel--accent .section-label {
  color: rgba(255, 255, 255, 0.7);
}
.panel--accent .section-heading {
  color: #FFFFFF;
}
.panel--accent .section-body,
.panel--accent .item-card p {
  color: rgba(255, 255, 255, 0.85);
}
.panel--accent p.item-card__title {
  color: #FFFFFF;
}

.panel--dark {
  background: var(--dark);
  border-top: none;
}
.panel--dark .section-heading {
  color: var(--dark-text);
}
.panel--dark .section-body,
.panel--dark .item-card p {
  color: var(--dark-muted);
}
.panel--dark p.item-card__title {
  color: var(--dark-text);
}

/* Grouped item cards — MyMi's HowItWorks/Trust grid pattern, no icons, just hierarchy */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 48px;
}
.item-card p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-muted);
}
p.item-card__title {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--text);
  margin-bottom: 8px;
}

.footer {
  background: var(--surface);
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 1.4rem;
}
.footer__info p {
  margin: 0 0 4px;
}
.footer__info p:last-child {
  margin-bottom: 0;
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.4rem;
}
.footer__links a:hover {
  color: var(--text);
}

/* Holding page (coming-soon.html) */
.holding {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.holding__logo {
  height: 72px;
  margin-bottom: 48px;
}
.holding__eyebrow {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.holding h1 {
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.holding p {
  font-size: 1.9rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
}
.holding__footer {
  margin-top: 64px;
  font-size: 1.3rem;
  color: var(--text-muted);
}
.holding__footer p {
  margin: 0 0 4px;
  max-width: none;
}
.holding__footer p:last-child {
  margin-bottom: 0;
}

/* Scroll-reveal (see assets/reveal.js) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .hero { padding: 72px 24px 80px; }
  .panel { padding: 72px 24px; }
  .page-header { padding: 72px 24px 20px; }
  .footer { padding: 24px; flex-direction: column; text-align: center; }
  .item-grid { gap: 32px; }
}

/* Below this, the logo (still shrinking fluidly) and the nav links no longer both fit on one
   row — measured against the real rendered widths, not guessed. */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle.is-active .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle.is-active .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 578px) {
  .nav { position: relative; padding: 12px 20px; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
  }
  .nav__links.is-open {
    display: flex;
  }
}
