/*
 * WearWin marketing site — shared styles.
 * Single source of truth for the brand design tokens and base/component
 * styles. Linked by every page (index.html, 404.html, …) so the palette
 * and typography never fork. Tokens mirror apps/mobile/src/theme/tokens.ts.
 */

:root {
  --cream: #f7f2e8;
  --cream-deep: #ede5d6;
  --card: #fffcf5;
  --ink: #1a2218;
  --ink-soft: #5a6056;
  --green: #2f6b4a;
  --green-deep: #1b4732;
  --green-ink: #0f4d3a;
  --green-soft: #e5ebdb;
  --gold: #ffb937;
  --gold-deep: #a88a4f;

  --maxw: 1080px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-card: 0 4px 16px rgba(26, 34, 24, 0.08);
  --shadow-elev: 0 8px 24px rgba(26, 34, 24, 0.12);
  --shadow-green: 0 6px 16px rgba(15, 77, 58, 0.4);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--green-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--green-deep);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--green-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 34, 24, 0.18);
}
.btn-ghost:hover {
  background: rgba(26, 34, 24, 0.04);
}

/* App Store badge (text-based, no external image) */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 11px 20px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: var(--shadow-card);
}
.appstore:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: var(--shadow-elev);
}
.appstore svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.appstore-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.appstore .small {
  font-size: 11px;
  line-height: 1.1;
  opacity: 0.85;
}
.appstore .big {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
}

/* ── Header ───────────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 232, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(26, 34, 24, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-cta {
  display: inline-flex;
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}
.hero h1 em {
  font-style: italic;
  color: var(--green);
}
.hero .lead {
  font-size: 20px;
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 30ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.trust {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust .dot {
  color: var(--gold-deep);
}
.hero-art {
  position: relative;
  background: radial-gradient(120% 120% at 70% 20%, var(--green-soft), var(--cream-deep));
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow-elev);
  display: grid;
  place-items: center;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.hero-chip {
  position: absolute;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-chip .num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--green);
}
.hero-chip.cpw {
  bottom: 24px;
  left: -14px;
}
.hero-chip.win {
  top: 28px;
  right: -10px;
  color: var(--green-deep);
}
.hero-chip.win .star {
  color: var(--gold);
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero .lead {
    max-width: none;
  }
  .hero-chip.cpw {
    left: 8px;
  }
  .hero-chip.win {
    right: 8px;
  }
}

/* ── Generic section ──────────────────────────────────── */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
}
.section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 14px;
}

/* ── Problem ──────────────────────────────────────────── */
.problem {
  background: var(--green-deep);
  color: var(--cream);
}
.problem h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  max-width: 18ch;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.problem p {
  color: rgba(247, 242, 232, 0.82);
  font-size: 18px;
  margin-top: 18px;
}
.problem .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: #fff;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}
@media (max-width: 760px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Features ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--card);
  border: 1px solid rgba(26, 34, 24, 0.06);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elev);
}
.feature .ico {
  width: 64px;
  height: 64px;
  padding: 7px;
  border-radius: 16px;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature .ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--ink-soft);
  font-size: 15.5px;
}
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ── How it works ─────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: var(--green);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.step p {
  color: var(--ink-soft);
  font-size: 15.5px;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ── Meet Otto ────────────────────────────────────────── */
.otto {
  background: var(--green-soft);
}
.otto-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.otto-art {
  display: grid;
  place-items: center;
}
.otto-art img {
  width: min(280px, 70%);
  filter: drop-shadow(0 16px 24px rgba(26, 34, 24, 0.16));
}
.otto h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.otto p {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 16px;
}
@media (max-width: 760px) {
  .otto-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .otto-art {
    order: -1;
  }
}

/* ── FAQ ──────────────────────────────────────────────── */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
details {
  background: var(--card);
  border: 1px solid rgba(26, 34, 24, 0.08);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
summary {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  font-size: 26px;
  color: var(--green);
  font-family: var(--font-body);
  line-height: 1;
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  color: var(--ink-soft);
  padding: 0 0 20px;
  font-size: 16px;
}

/* ── Final CTA ────────────────────────────────────────── */
.cta {
  text-align: center;
}
.cta-card {
  background: var(--green-deep);
  color: #fff;
  border-radius: 32px;
  padding: 56px 32px;
  box-shadow: var(--shadow-elev);
  position: relative;
  overflow: hidden;
}
.cta-card img.otto-trophy {
  width: 120px;
  margin: 0 auto 8px;
}
.cta-card h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
}
.cta-card p {
  color: rgba(247, 242, 232, 0.85);
  font-size: 18px;
  margin: 14px auto 28px;
  max-width: 46ch;
}
.cta-card .appstore {
  background: var(--cream);
  color: var(--ink);
}

/* ── Footer ───────────────────────────────────────────── */
footer.site {
  padding: 48px 0;
  border-top: 1px solid rgba(26, 34, 24, 0.08);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.foot .links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.foot a {
  color: var(--ink-soft);
  font-size: 15px;
}
.foot .copy {
  color: var(--ink-soft);
  font-size: 14px;
}

/* ── Not found (404) ──────────────────────────────────── */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}
.notfound img {
  width: 160px;
  margin: 0 auto 8px;
}
.notfound h1 {
  font-size: 40px;
  margin: 0 0 8px;
}
.notfound p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
