/* ===== Design tokens ===== */
:root {
  color-scheme: light;
  --paper: #F8FBFB;        /* page background, white with a whisper of teal */
  --surface: #FFFFFF;      /* cards, phone screen */
  --ink: #16302F;          /* headings, primary text */
  --muted: #516866;        /* secondary text */
  --line: #E2ECEB;         /* hairline borders */
  --accent: #12807E;       /* deep teal for links and buttons (AA on white) */
  --accent-soft: #E4F4F3;  /* teal tint for step badges */
  /* wheel segment pastels, used only in the hero graphic and small accents */
  --joy: #F6C453; --power: #F09A57; --peace: #83C79B;
  --sad: #7BA7DB; --scared: #A393DE; --mad: #E57F79;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.25rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.0625rem; font-weight: 650; }
p  { margin: 0; }
.lede { color: var(--muted); font-size: clamp(1.1rem, 2.2vw, 1.25rem); max-width: 34em; }

a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

section { padding: 5.5rem 0; }
.section-head { max-width: 38em; margin-bottom: 3rem; }
.section-head p { color: var(--muted); margin-top: 0.75rem; }

/* ===== Header ===== */
header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 650; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.header-cta {
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--accent);
  padding: 0.5rem 1rem; border-radius: 99px;
  transition: opacity 120ms ease;
}
.header-cta:hover { opacity: 0.85; }

/* ===== Hero ===== */
.hero { padding: 5rem 0 5.5rem; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-note { color: var(--muted); font-size: 0.9rem; }
.stars { color: var(--joy); letter-spacing: 0.05em; margin-right: 0.25rem; }

/* Store buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 0.7rem 1.25rem; border-radius: 12px;
  transition: opacity 120ms ease;
}
.store-btn:hover { opacity: 0.85; }
.store-btn svg { flex: none; }
.store-btn small { display: block; font-size: 0.68rem; opacity: 0.8; line-height: 1.2; }
.store-btn strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

/* ===== Phone mockup (pure CSS/SVG, swap for a real screenshot if preferred) ===== */
.phone {
  width: min(290px, 100%); margin: 0 auto;
  border: 10px solid var(--ink); border-radius: 44px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(22, 48, 47, 0.14);
  padding: 2.4rem 1.1rem 1.4rem; position: relative;
}
.phone::before { /* notch pill */
  content: ""; position: absolute; top: 0.7rem; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 8px; border-radius: 99px; background: var(--line);
}
.phone-title { text-align: center; font-weight: 650; font-size: 1rem; margin-bottom: 1rem; }
.phone svg { display: block; width: 100%; height: auto; }
.chips { display: flex; justify-content: center; gap: 0.4rem; margin: 1rem 0 0.9rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 99px; padding: 0.25rem 0.7rem;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.phone-log {
  display: block; text-align: center; background: var(--accent); color: #fff;
  font-weight: 650; font-size: 0.9rem; border-radius: 12px; padding: 0.6rem;
}

/* ===== Problem → Solution ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 2rem;
}
.panel h3 { margin-bottom: 1rem; }
.panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.panel li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.panel li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
}
.panel.solution li::before { background: var(--accent); }

/* ===== Features ===== */
.features { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.card svg { color: var(--accent); }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 0.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; display: grid; place-items: center; margin-bottom: 0.4rem;
}
.step p { color: var(--muted); font-size: 0.98rem; }

/* ===== Testimonials (placeholder) ===== */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.quote blockquote { margin: 0; color: var(--muted); font-size: 0.98rem; }
.quote cite { font-style: normal; font-weight: 600; font-size: 0.9rem; }

/* ===== Final CTA ===== */
.final-cta { text-align: center; border-top: 1px solid var(--line); }
.final-cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.final-cta .lede { margin: 0 auto; }
.final-cta .store-buttons { justify-content: center; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.9rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
footer a { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  section { padding: 4rem 0; }
  .hero { padding: 3rem 0 4rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 3.5rem; }
  .split, .steps { grid-template-columns: 1fr; }
}

/* ===== Language switcher ===== */
.header-right { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; gap: 0.6rem; font-size: 0.9rem; }
.lang a { color: var(--muted); text-decoration: none; font-weight: 600; }
.lang a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.eyebrow { color: var(--accent); font-weight: 650; font-size: 0.95rem; letter-spacing: 0.02em; }

/* ===== Explainer (what is a feelings wheel) ===== */
.explainer { border-top: 1px solid var(--line); }
.prose { max-width: 40em; display: flex; flex-direction: column; gap: 1.1rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose h2 { margin-bottom: 0.4rem; }
.prose h3 { margin-top: 1rem; }
.prose ol { margin: 0; padding-left: 1.3rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.5rem; }

/* ===== Words on the wheel ===== */
.words { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.word-group {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.25rem 1.4rem;
}
.word-group h3 { margin-bottom: 0.4rem; }
.word-group p { color: var(--muted); font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--line); }
.faq-list { max-width: 44em; display: flex; flex-direction: column; gap: 0.75rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.1rem 1.4rem;
}
.faq summary { cursor: pointer; font-weight: 650; list-style-position: outside; }
.faq details p { color: var(--muted); margin-top: 0.75rem; }

footer .made { font-size: 0.85rem; }

@media (max-width: 520px) {
  .header-cta { display: none; }
}
