@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --bg: oklch(97% 0.012 250);
  --ink: oklch(20% 0.02 260);
  --muted: oklch(48% 0.02 255);
  --card: oklch(99% 0.006 250);
  --border: oklch(91% 0.015 250);
  --accent: oklch(55% 0.16 258);
  --accent-ink: oklch(98% 0.01 260);
  --tile: oklch(93% 0.05 258);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, oklch(93% 0.03 258 / 0.6), transparent 40%),
    radial-gradient(circle at 88% 22%, oklch(94% 0.03 270 / 0.5), transparent 45%),
    var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.5;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  transition: top 0.18s ease;
}

.skip-link:focus { top: 12px; }

h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 22px 20px 60px;
}

/* Top bar (wizard/result back-button pages) */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* Site nav (landing + browsing pages: index, blog, about, privacy, contact) */
.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 24px oklch(45% 0.05 258 / 0.14);
  z-index: 10;
}

.nav-links.open { display: flex; }

.nav-links a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: var(--tile); color: var(--accent); }

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s ease;
}

.nav-toggle:active { transform: scale(0.94); }

.nav-toggle svg { width: 18px; height: 18px; }

.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.iconbtn svg { width: 18px; height: 18px; }

/* Hero */
.hero {
  position: relative;
  border-radius: 26px;
  padding: 24px 22px 26px;
  margin-bottom: 22px;
  background: linear-gradient(150deg, oklch(34% 0.12 258), oklch(52% 0.15 270));
  color: var(--accent-ink);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: oklch(70% 0.14 265 / 0.35);
  filter: blur(4px);
}

.hero-badge {
  position: relative;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: oklch(98% 0.01 260 / 0.16);
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.hero h1 {
  position: relative;
  color: var(--accent-ink);
  font-size: 25px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  text-wrap: balance;
}

.hero p {
  position: relative;
  font-size: 13.5px;
  color: oklch(92% 0.02 260 / 0.85);
  margin: 0 0 18px;
  line-height: 1.5;
  max-width: 46ch;
}

.hero-cta {
  position: relative;
  display: inline-block;
  background: var(--accent-ink);
  color: var(--accent);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px oklch(20% 0.05 260 / 0.25);
}

.hero-cta:active {
  transform: translateY(0) scale(0.98);
}

/* Section headings (landing page, below hero) */
.section-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 34px 0 14px;
}

/* Category / result cards */
.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 20px;
  padding: 15px 16px;
  box-shadow: 0 6px 18px oklch(45% 0.05 258 / 0.1);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px oklch(45% 0.05 258 / 0.18);
}

.card:active {
  transform: translateY(-1px) scale(0.99);
}

.tile {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.tile svg { width: 23px; height: 23px; }

.card-label { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.card-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.chev {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.chev svg { width: 14px; height: 14px; }

/* Wizard options */
.opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 14px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.opt:hover { border-color: var(--accent); }
.opt:active { transform: scale(0.98); }

.wizard-nav { margin-top: 14px; }

.wizard-back {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
}

.wizard-back:disabled { visibility: hidden; }

/* Result page */
.tag {
  display: inline-block;
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--tile);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 20px;
}

.explain { color: var(--muted); font-size: 14px; line-height: 1.6; }

.product-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pcard {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px oklch(45% 0.05 258 / 0.09);
}

.pimg {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, oklch(90% 0.05 250), oklch(93% 0.05 270));
  flex-shrink: 0;
}

.pname { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; margin: 0 0 3px; }
.pnote { font-size: 12px; color: var(--muted); line-height: 1.4; }

.pbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.pbtn:hover { transform: scale(1.08); }
.pbtn:active { transform: scale(0.95); }

.pbtn svg { width: 16px; height: 16px; }

/* Blog showcase (landing page) */
.blog-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 12px;
}

.blog-date { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.blog-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.blog-excerpt { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.blog-empty {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 20px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.disclosure {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
  line-height: 1.5;
}

/* How it works */
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tile);
  color: var(--accent);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.step-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* FAQ (native <details> accordion — no JS needed) */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 18px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron { transform: rotate(90deg); }

.faq-a { font-size: 13px; color: var(--muted); line-height: 1.55; padding: 0 0 16px; }

/* Scroll-reveal (respects reduced motion) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Site footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.site-footer a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

/* Desktop overrides - placed last so they win the cascade over the
   equal-specificity mobile-first rules defined earlier in this file. */
@media (min-width: 768px) {
  .page-wide { max-width: 960px; }

  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 26px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-links a { padding: 0; border-radius: 0; }
  .nav-links a:hover { background: none; }

  .nav-toggle { display: none; }

  .hero { padding: 40px 48px 44px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 15px; }

  .section-heading { margin: 48px 0 18px; }

  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .step-title { min-height: 2.6em; display: flex; align-items: center; }
}
