/* Wawata marketing site. Matches app tokens (Pango / Mā / Whero) */
:root {
  --bg: #ffffff;
  --surface: #f7f6f2;
  --surface-high: #eeede7;
  --divider: #e2e0da;
  --ink: #0f1110;
  --ink-soft: #3a3934;
  --ink-muted: #6b675f;
  --ink-faint: #b0aca3;
  --whero: #b8392e;
  --whero-soft: #d8675c;
  --kowhai: #d4a848;
  --pounamu: #6e9457;
  --mawhero: #9e5c7a;
  --kikorangi: #4a7494;
  --karaka: #d17a4a;
  --parauri: #6b5344;
  --max: 1080px;
  --legal-max: 720px;
  --radius: 16px;
  --radius-lg: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--whero);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Layout ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--divider);
}

.site-header__inner,
.section-inner,
.legal-wrap,
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.brand__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--whero);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--whero);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184, 57, 46, 0.28);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* ── Hero ── */
.hero {
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 55%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(184, 57, 46, 0.1);
  border: 1px solid rgba(184, 57, 46, 0.2);
  color: var(--whero);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: 12px;
}

.hero__proverb {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  color: var(--whero);
  font-size: 1rem;
  margin-bottom: 28px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.store-row--center {
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  height: 48px;
  line-height: 0;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge img {
  display: block;
  height: 48px;
  width: auto;
}

a.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge--soon {
  cursor: default;
  opacity: 0.52;
  filter: grayscale(0.35);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-btn--primary {
  background: var(--whero);
  color: #fff;
  box-shadow: 0 10px 28px rgba(184, 57, 46, 0.22);
}

.store-btn--primary:hover {
  transform: translateY(-2px);
}

.store-btn--ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--divider);
}

.hero__note {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* iPhone-style device mock with screenshot carousel */
.device {
  justify-self: end;
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 8px 0 24px;
}

.device__shell {
  position: relative;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 40%, #0f0f0f 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px rgba(15, 17, 16, 0.22),
    0 12px 24px rgba(15, 17, 16, 0.12);
}

.device__bezel {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  background: #000;
}

.device__screen {
  position: relative;
  aspect-ratio: 390 / 844;
  background: #0f1110;
}

.device__carousel {
  position: absolute;
  inset: 0;
}

.device__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
  will-change: opacity;
}

.device__shot.is-active {
  opacity: 1;
  z-index: 1;
}

.device__island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 28%;
  max-width: 108px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.device__home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 3;
  width: 34%;
  max-width: 120px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.device__btn {
  position: absolute;
  background: #2a2a2a;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.device__btn--silent {
  left: -2px;
  top: 108px;
  width: 3px;
  height: 28px;
}

.device__btn--vol-up {
  left: -2px;
  top: 152px;
  width: 3px;
  height: 44px;
}

.device__btn--vol-down {
  left: -2px;
  top: 206px;
  width: 3px;
  height: 44px;
}

.device__btn--power {
  right: -2px;
  top: 168px;
  width: 3px;
  height: 64px;
}

@media (prefers-reduced-motion: reduce) {
  .device__shot {
    transition: none;
  }

  .device__shot:not(.is-active) {
    display: none;
  }
}

/* ── Sections ── */
.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--surface);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--whero);
  margin-bottom: 12px;
}

.section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.section--alt .feature {
  background: var(--bg);
}

.feature__icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.feature__icon--img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  font-size: 0;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  font-size: 0.875rem;
}

.pricing-table th {
  background: var(--surface-high);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.check {
  color: var(--pounamu);
  font-weight: 700;
}

.dash {
  color: var(--ink-faint);
}

/* Māori accent swatches (matches lib/theme/wawata_theme.dart) */
.accent-showcase {
  margin-top: 32px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
}

.accent-showcase__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
  text-align: center;
}

.accent-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 8px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.accent-row::-webkit-scrollbar {
  display: none;
}

.accent-cell {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 52px;
}

.accent-ball {
  flex-shrink: 0;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.accent-ball--whero { background-color: var(--whero); }
.accent-ball--kowhai { background-color: var(--kowhai); }
.accent-ball--pounamu { background-color: var(--pounamu); }
.accent-ball--mawhero { background-color: var(--mawhero); }
.accent-ball--kikorangi { background-color: var(--kikorangi); }
.accent-ball--karaka { background-color: var(--karaka); }
.accent-ball--parauri { background-color: var(--parauri); }

.accent-name {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.accent-cell:not(.accent-cell--pro) .accent-name {
  color: var(--whero);
}

.accent-showcase__note {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-align: center;
  font-style: italic;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 36rem;
}

.step {
  display: flex;
  gap: 20px;
}

.step__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--whero);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Fraunces", Georgia, serif;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.cta-band {
  text-align: center;
  padding: 72px 24px;
  background: var(--ink);
  color: #f1ece0;
}

.cta-band h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(241, 236, 224, 0.75);
  margin-bottom: 28px;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .store-btn--primary {
  background: var(--whero-soft);
}

/* ── Legal pages ── */
.legal-wrap {
  max-width: var(--legal-max);
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal-wrap h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.legal-wrap h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.legal-wrap ul {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

.legal-wrap li {
  margin-bottom: 8px;
}

.legal-wrap strong {
  color: var(--ink);
  font-weight: 600;
}

/* Support */
.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  padding-bottom: 16px;
  margin-bottom: 0;
}

.faq__coming-soon {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq__coming-soon img {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card {
  margin-top: 40px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 40px 0;
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--whero);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead,
  .hero__proverb {
    margin-left: auto;
    margin-right: auto;
  }

  .store-row {
    justify-content: center;
  }

  .device {
    order: -1;
    width: min(100%, 280px);
  }

  .features {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    gap: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .accent-row {
    justify-content: flex-start;
  }
}
