/* Ostrivia — landing page styles.
   Tokens come from the Organic design system (same values the app mockups use). */

@import url('https://fonts.googleapis.com/css2?family=Caprasimo&family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: rgba(32, 30, 29, .16);

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Figtree", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(46, 43, 37, .14);
  --shadow-md: 0 3px 10px rgba(46, 43, 37, .16);
  --shadow-lg: 0 12px 32px rgba(46, 43, 37, .22);

  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1440px; margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 2;
  padding: 26px 80px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-hex {
  width: 34px; height: 39px;
  background: var(--color-accent);
  clip-path: var(--hex);
  display: flex; align-items: center; justify-content: center;
}
.brand-hex svg { width: 18px; height: 18px; fill: var(--color-bg); }
.brand-name { font-family: var(--font-heading); font-size: 24px; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav-link { color: var(--color-neutral-700); }
.nav-link:hover { color: var(--color-text); }

.btn-push {
  display: inline-block;
  white-space: nowrap;
  border-radius: 999px;
  padding: 11px 22px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 15px;
  box-shadow: 0 4px 0 var(--color-accent-700);
  cursor: pointer;
}
.btn-push:hover { background: var(--color-accent-600); }
.btn-push:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--color-accent-700); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 80px 96px;
  display: flex;
  gap: 60px;
  align-items: center;
}
.hero-blob { position: absolute; border-radius: 50%; }
.hero-blob-1 { width: 520px; height: 520px; background: var(--color-accent-2-200); top: -160px; right: -120px; }
.hero-blob-2 { width: 300px; height: 300px; background: var(--color-accent-200); bottom: -120px; left: -100px; }

.hero-copy { position: relative; flex: 1; max-width: 600px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; letter-spacing: .02em;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent-2); }
.hero h1 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 82px;
  line-height: .92;
  margin: 22px 0 0;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-sub {
  font-size: 20px; line-height: 1.55;
  color: var(--color-neutral-700);
  margin: 24px 0 0; max-width: 520px;
  text-wrap: pretty;
}
.store-row { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.store-btn {
  border-radius: 999px;
  padding: 16px 28px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.store-btn svg { width: 22px; height: 22px; }
.store-btn-label { font-size: 11px; line-height: 1; }
.store-btn-name { font-family: var(--font-heading); font-size: 19px; line-height: 1.15; }
.store-btn-ios {
  background: var(--color-accent); color: var(--color-bg);
  box-shadow: 0 5px 0 var(--color-accent-700), var(--shadow-md);
}
.store-btn-ios svg { fill: currentColor; opacity: .9; }
.store-btn-ios .store-btn-label { opacity: .85; }
.store-btn-ios:hover { background: var(--color-accent-600); }
.store-btn-ios:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--color-accent-700); }
.store-btn-play {
  background: var(--color-surface);
  box-shadow: 0 5px 0 var(--color-neutral-300), var(--shadow-sm);
}
.store-btn-play .store-btn-label { color: var(--color-neutral-600); }
.store-btn-play:hover { background: var(--color-neutral-100); }
.store-btn-play:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--color-neutral-300); }

.players-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 26px;
  color: var(--color-neutral-600); font-size: 14px;
}
.players-avatars { display: flex; }
.players-avatars div {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--color-bg);
}
.players-avatars div + div { margin-left: -9px; }

.hero-phone {
  position: relative;
  width: 520px; height: 600px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.floating-hex { position: absolute; width: 96px; height: 110px; clip-path: var(--hex); }

/* ── How it plays ───────────────────────────────────────── */

.section-how {
  position: relative; z-index: 1;
  background: var(--color-neutral-100);
  padding: 80px 80px 88px;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 46px;
  margin: 0;
  letter-spacing: -.01em;
}
.section-sub { font-size: 17px; color: var(--color-neutral-700); margin: 12px 0 0; max-width: 520px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.step-card {
  background: var(--color-surface);
  border-radius: 28px;
  padding: 32px 30px 34px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--shadow-sm);
}
.step-num {
  width: 66px; height: 76px;
  clip-path: var(--hex);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 30px;
  color: var(--color-bg);
}
.step-card h3 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 26px; margin: 24px 0 0; }
.step-card p {
  font-size: 16px; line-height: 1.6;
  color: var(--color-neutral-700);
  margin: 10px 0 0; text-wrap: pretty;
}
.step-art { display: flex; gap: 8px; margin-top: 22px; align-items: center; }
.mini-hex {
  width: 42px; height: 48px; clip-path: var(--hex);
  display: flex; align-items: center; justify-content: center;
}
.mini-hex svg { width: 21px; height: 21px; fill: #F5F0E1; }
.mini-card {
  width: 38px; height: 52px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .14);
}
.mini-card svg { width: 20px; height: 20px; fill: #F5F0E1; }

/* ── FAQ ────────────────────────────────────────────────── */

.section-faq {
  padding: 84px 80px 70px;
  display: flex; gap: 70px;
  align-items: flex-start;
}
.faq-intro { width: 340px; flex: none; }
.faq-intro p { font-size: 16px; line-height: 1.6; color: var(--color-neutral-700); margin: 14px 0 0; }
.faq-email {
  display: inline-block; margin-top: 16px;
  font-size: 16px;
  border-bottom: 2px solid var(--color-accent-300);
}
.faq-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--color-surface);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  padding: 22px 26px;
  display: flex; align-items: center; gap: 18px;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--color-neutral-100); }
.faq-q { flex: 1; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 21px; }
.faq-sign {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--color-accent-200); color: var(--color-accent-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1;
}
.faq-sign::before { content: "+"; }
.faq-item[open] .faq-sign::before { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 76px 24px 26px;
  font-size: 16px; line-height: 1.65;
  color: var(--color-neutral-700);
  text-wrap: pretty;
}

/* ── CTA band ───────────────────────────────────────────── */

.cta-band {
  margin: 0 80px 80px;
  border-radius: 34px;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 52px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  box-shadow: 0 6px 0 var(--color-accent-700);
}
.cta-band h2 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 42px; margin: 0; line-height: 1.05;
}
.cta-band > div:first-child p { margin: 12px 0 0; font-size: 17px; opacity: .9; }
.cta-buttons { display: flex; gap: 14px; flex: none; }
.cta-btn {
  border-radius: 999px;
  padding: 15px 28px;
  font-family: var(--font-heading);
  font-size: 18px;
  cursor: pointer;
}
.cta-btn-solid {
  background: var(--color-bg); color: var(--color-accent-900);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .18);
}
.cta-btn-solid:hover { background: #fff; }
.cta-btn-solid:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.cta-btn-ghost {
  background: rgba(255, 255, 255, .18); color: var(--color-bg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}
.cta-btn-ghost:hover { background: rgba(255, 255, 255, .28); }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--color-neutral-200);
  padding: 44px 80px 40px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
}
.footer-brand-hex {
  width: 26px; height: 30px;
  background: var(--color-neutral-600);
  clip-path: var(--hex);
}
.footer-about {
  margin: 14px 0 0;
  font-size: 13px; color: var(--color-neutral-600);
  max-width: 320px; line-height: 1.6;
}
.footer-cols { display: flex; gap: 64px; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-neutral-500);
}
.footer-col a { color: var(--color-neutral-700); }
.footer-col a:hover { color: var(--color-text); }

.legal-bar {
  background: var(--color-neutral-200);
  padding: 0 80px 28px;
  font-size: 12px; color: var(--color-neutral-500);
  line-height: 1.7;
}
.legal-bar p { margin: 0 0 6px; max-width: 900px; }

/* ── Inner pages (privacy) ──────────────────────────────── */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 22px 80px;
}
.page h1 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 44px; letter-spacing: -.01em; margin: 40px 0 8px; }
.page h2 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 24px; margin: 34px 0 8px; }
.page p, .page li { font-size: 16px; line-height: 1.65; color: var(--color-neutral-800); }
.page .muted { color: var(--color-neutral-600); font-size: 14px; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1180px) {
  .hero { gap: 30px; }
  .hero h1 { font-size: 64px; }
  .floating-hex { display: none; }
  .hero-phone { width: 340px; }
}

@media (max-width: 900px) {
  .site-header { padding: 20px 22px 0; }
  .site-nav .nav-link { display: none; }
  .site-nav { gap: 12px; }
  .btn-push { padding: 10px 16px; font-size: 14px; }

  .hero { flex-direction: column; padding: 40px 22px 44px; align-items: flex-start; }
  .hero h1 { font-size: 44px; line-height: .95; margin-top: 16px; }
  .hero-sub { font-size: 17px; margin-top: 16px; }
  .store-row { margin-top: 26px; }
  .hero-phone { width: 100%; height: 560px; margin-top: 8px; }

  .section-how { padding: 40px 22px 44px; }
  .section-title { font-size: 32px; }
  .steps-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }

  .section-faq { flex-direction: column; gap: 26px; padding: 40px 22px 34px; }
  .faq-intro { width: auto; }
  .faq-q { font-size: 18px; }
  .faq-item summary { padding: 18px 20px; }
  .faq-item p { padding: 0 20px 20px; }

  .cta-band {
    margin: 0 22px 44px;
    padding: 28px 22px 26px;
    flex-direction: column; align-items: flex-start; gap: 22px;
  }
  .cta-band h2 { font-size: 28px; }

  .site-footer { flex-direction: column; padding: 34px 22px 30px; gap: 26px; }
  .legal-bar { padding: 0 22px 24px; }
}

/* ── Language switcher ──────────────────────────────────── */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1.5px var(--color-neutral-300), inset 0 1px 0 rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}
.lang-globe {
  width: 15px; height: 15px;
  margin: 0 3px 0 8px;
  color: var(--color-neutral-500);
  flex: none;
}
.lang-switch a {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--color-neutral-600);
  line-height: 1;
}
.lang-switch a:hover { color: var(--color-text); background: var(--color-neutral-100); }
.lang-switch a[aria-current="true"] {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 2px 0 var(--color-accent-700);
}
.legal-bar .lang-switch { margin-bottom: 14px; }

@media (max-width: 600px) {
  /* the hero's big App Store button is one glance below — the header CTA
     just crowds the brand and the language pill at phone widths */
  .site-nav .btn-push { display: none; }
}
