/* SugarWhisper landing site — palette derived from app icon:
   navy #202539 / #23293f, mint-teal #43cdb2, light mint #7ee8d2 */

:root {
  --navy-900: #181c2e;
  --navy-800: #202539;
  --navy-700: #2a3049;
  --navy-600: #353c5a;
  --teal-600: #1f8a76;
  --teal-500: #2aa88f;
  --teal-400: #43cdb2;
  --mint-300: #7ee8d2;
  --mint-100: #e6f9f4;
  --bg: #f7faf9;
  --surface: #ffffff;
  --text: #232941;
  --text-soft: #4c5470;
  --border: #dde6e3;
  --accent: var(--teal-600);
  --accent-strong: #16705f;
  --hero-bg: linear-gradient(160deg, #1c2136 0%, #232941 55%, #263450 100%);
  --shadow: 0 10px 30px rgba(32, 37, 57, 0.10);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181c2e;
    --surface: #212639;
    --text: #eef2f1;
    --text-soft: #a9b2c9;
    --border: #333b56;
    --accent: #43cdb2;
    --accent-strong: #7ee8d2;
    --mint-100: #22483f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-400);
  color: #10251f;
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy-800);
  color: #eef2f1;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(126, 232, 210, 0.15);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #eef2f1;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span em { color: var(--mint-300); font-style: normal; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--mint-300);
  color: var(--mint-300);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}
.site-nav a {
  color: #cfe9e2;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
}
.site-nav a:hover { color: var(--mint-300); }
.nav-cta {
  background: var(--teal-400);
  color: #10251f !important;
  font-weight: 700;
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--mint-300); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 0.75rem 0 1rem; }
  .site-nav a { display: block; padding: 0.5rem 0; font-size: 1.05rem; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg);
  color: #eef2f1;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--mint-300); font-style: normal; }
.hero .lede {
  font-size: 1.15rem;
  color: #c3cde0;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-bottom: 1.25rem; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid #6b7392;
  border-radius: 12px;
  padding: 0.55rem 1.1rem;
  line-height: 1.15;
}
.store-badge:hover { border-color: var(--mint-300); color: #fff; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .small { display: block; font-size: 0.66rem; letter-spacing: 0.02em; opacity: 0.85; }
.store-badge .big { display: block; font-size: 1.05rem; font-weight: 600; }

.hero-meta { font-size: 0.85rem; color: #99a3bd; }
.hero-meta strong { color: var(--mint-300); }

/* phone-style text mock (no screenshots available; built from verified features) */
.phone-mock {
  background: #1a1f31;
  border: 1px solid #3b4362;
  border-radius: 28px;
  padding: 1.4rem 1.2rem;
  max-width: 330px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.phone-mock .mock-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8b95b3;
  margin-bottom: 0.9rem;
  text-align: center;
}
.mock-emotions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  list-style: none;
}
.mock-emotions li {
  background: #232941;
  border: 1px solid #39415f;
  border-radius: 12px;
  text-align: center;
  padding: 0.5rem 0.15rem;
  font-size: 0.68rem;
  color: #c3cde0;
}
.mock-emotions li span { display: block; font-size: 1.15rem; margin-bottom: 0.15rem; }
.mock-emotions li.sel { border-color: var(--teal-400); background: #1f3a37; color: var(--mint-300); }
.mock-scale { display: flex; gap: 0.4rem; justify-content: center; margin-bottom: 1rem; }
.mock-scale i {
  width: 30px; height: 8px; border-radius: 99px;
  background: #39415f; font-style: normal;
}
.mock-scale i.on { background: var(--teal-400); }
.mock-ritual {
  background: #1f3a37;
  border: 1px solid var(--teal-600);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  color: #d9f5ee;
}
.mock-ritual strong { color: var(--mint-300); display: block; font-size: 0.85rem; }
.mock-caption { text-align: center; font-size: 0.72rem; color: #78829f; margin-top: 0.8rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-mock { margin-top: 0.5rem; }
}

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em; }
.section-head p { color: var(--text-soft); margin-top: 0.75rem; font-size: 1.05rem; }

.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (prefers-color-scheme: dark) {
  .alt { background: #1d2234; }
}

/* problem / solution */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.panel {
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.panel.problem { border-left: 5px solid #b0637a; }
.panel.solution { border-left: 5px solid var(--teal-400); }
.panel h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.panel ul { list-style: none; }
.panel li { padding: 0.45rem 0 0.45rem 1.7rem; position: relative; color: var(--text-soft); }
.panel.problem li::before { content: "✕"; color: #b0637a; position: absolute; left: 0; font-weight: 700; }
.panel.solution li::before { content: "✓"; color: var(--teal-500); position: absolute; left: 0; font-weight: 700; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.feature-card .f-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--mint-100);
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-soft); font-size: 0.95rem; }
.feature-card ul { margin-top: 0.5rem; padding-left: 1.1rem; color: var(--text-soft); font-size: 0.92rem; }
.feature-card li { margin: 0.25rem 0; }

/* how it helps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.1rem; max-width: 46rem; }
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.3rem 4.3rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem; top: 1.25rem;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--mint-300);
  font-weight: 700;
  display: grid; place-items: center;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.steps p { color: var(--text-soft); font-size: 0.95rem; }

/* privacy strip */
.privacy-strip {
  background: var(--navy-800);
  color: #d7dfef;
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.privacy-strip .lock {
  font-size: 2rem;
  background: rgba(126, 232, 210, 0.12);
  border-radius: 14px;
  width: 64px; height: 64px;
  display: grid; place-items: center;
}
.privacy-strip h3 { color: var(--mint-300); margin-bottom: 0.35rem; }
.privacy-strip p { font-size: 0.95rem; }
@media (max-width: 600px) { .privacy-strip { grid-template-columns: 1fr; } }

/* guides teaser */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.3rem; }
.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); border-color: var(--teal-400); color: var(--text); }
.guide-card .tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.guide-card h3 { font-size: 1.05rem; margin: 0.5rem 0 0.5rem; line-height: 1.35; }
.guide-card p { color: var(--text-soft); font-size: 0.9rem; }
.guide-card .more { display: inline-block; margin-top: 0.75rem; font-weight: 600; color: var(--accent); font-size: 0.9rem; }

/* FAQ */
.faq-list { max-width: 46rem; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.9rem; background: var(--surface); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  line-height: 1.4;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 1.25rem 1.15rem; color: var(--text-soft); display: none; }
.faq-a p + p { margin-top: 0.6rem; }
.faq-item.open .faq-a { display: block; }
.no-js .faq-a { display: block; }

/* final CTA */
.cta-final {
  background: var(--hero-bg);
  color: #eef2f1;
  text-align: center;
  border-radius: var(--radius);
  padding: 3.25rem 1.5rem;
}
.cta-final h2 { color: #fff; }
.cta-final h2 em { color: var(--mint-300); font-style: normal; }
.cta-final p { color: #c3cde0; max-width: 36rem; margin: 0.9rem auto 1.6rem; }
.cta-final .hero-badges { justify-content: center; }
.cta-final .hero-meta { margin-top: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #a9b2c9;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h3 { color: #eef2f1; font-size: 0.95rem; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 0.4rem 0; }
.site-footer a { color: #a9b2c9; text-decoration: none; }
.site-footer a:hover { color: var(--mint-300); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #eef2f1; font-weight: 700; margin-bottom: 0.7rem; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-note { border-top: 1px solid #2c3350; padding-top: 1.4rem; font-size: 0.82rem; color: #78829f; }
.footer-note p + p { margin-top: 0.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Guide / article pages ---------- */
.article-hero { background: var(--hero-bg); color: #eef2f1; padding: 3rem 0 2.5rem; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; font-size: 0.85rem; margin-bottom: 1.1rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.45rem; color: #78829f; }
.breadcrumb a { color: var(--mint-300); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: #c3cde0; }
.article-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; max-width: 46rem; }
.article-hero .lede { color: #c3cde0; margin-top: 0.9rem; max-width: 42rem; font-size: 1.08rem; }

.article-body { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 1rem; }
.article-body h2 { margin: 2.2rem 0 0.9rem; font-size: 1.45rem; }
.article-body h3 { margin: 1.6rem 0 0.6rem; font-size: 1.12rem; }
.article-body p { margin-bottom: 1rem; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.4rem; }
.article-body li { margin: 0.4rem 0; }
.article-body blockquote {
  border-left: 4px solid var(--teal-400);
  background: var(--mint-100);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1.4rem 0;
  color: var(--text);
}
.app-help-box {
  background: var(--surface);
  border: 1px solid var(--teal-500);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin: 2.2rem 0;
  box-shadow: var(--shadow);
}
.app-help-box h2, .app-help-box h3 { margin-top: 0; }
.app-help-box .kicker { margin-bottom: 0.4rem; }
.disclaimer {
  font-size: 0.85rem;
  color: var(--text-soft);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 1.6rem 0;
}
.next-guides { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.8rem; }
.next-guides h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.next-guides ul { list-style: none; margin: 0; }
.next-guides li { margin: 0.55rem 0; padding-left: 1.4rem; position: relative; }
.next-guides li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

@media (max-width: 420px) {
  .hero { padding: 3rem 0 2.75rem; }
  section { padding: 2.75rem 0; }
  .hero-badges { flex-direction: column; align-items: flex-start; }
}
