:root {
  --bg: #faf9f6;
  --bg-alt: #f3f1ec;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #5c6370;
  --border: #e7e4dd;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: #eaf1fe;
  --green: #0e9f6e;
  --green-soft: #e6f6ef;
  --amber: #b45309;
  --amber-soft: #fdf1df;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.05), 0 8px 24px rgba(22, 24, 29, 0.06);
}

html.dark {
  --bg: #0f1115;
  --bg-alt: #12151b;
  --card: #171a21;
  --ink: #e8eaee;
  --muted: #9aa2b1;
  --border: #262b36;
  --accent: #5b8cff;
  --accent-ink: #0b1020;
  --accent-soft: #1a2338;
  --green: #34d399;
  --green-soft: #12271f;
  --amber: #fbbf24;
  --amber-soft: #2a2110;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
}

h1,
h2,
h3,
.brand-name,
.brand-mark,
.hero-card-title {
  font-family: "Sora", "Inter", sans-serif;
}

.mode-banner {
  background: var(--amber-soft);
  color: var(--amber);
  text-align: center;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
}

.mode-banner a {
  color: inherit;
  font-weight: 700;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--accent);
}

html.dark .icon-sun { display: none; }
html:not(.dark) .icon-moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--border);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(60% 80% at 80% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

.hero-points li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  margin-right: 10px;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  transform: rotate(1.5deg);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.hero-card-title {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-row-final {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 16.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.product-card .tagline {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.product-card.featured {
  border: 2px solid var(--accent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--card)), var(--card));
}

.product-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  padding-right: 70px;
}

.bullets {
  list-style: none;
  margin-bottom: 18px;
  flex-grow: 1;
}

.bullets li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 5px;
}

.bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.price {
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.anchor {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 15px;
}

.save-pill {
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.buy-btn {
  width: 100%;
}

.pay-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.2px;
}

.flag {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.how-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.how-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.how-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}

.how-step strong {
  font-family: "Sora", sans-serif;
  font-size: 15.5px;
}

.how-step p {
  color: var(--muted);
  font-size: 13.5px;
}

.guarantee-band {
  padding: 56px 0;
}

.guarantee-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.guarantee-inner h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 8px;
}

.guarantee-inner p {
  color: var(--muted);
  max-width: 62ch;
  font-size: 15.5px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-cat {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-free { background: var(--green-soft); color: var(--green); }
.badge-paid { background: var(--amber-soft); color: var(--amber); }
.badge-freemium { background: var(--accent-soft); color: var(--accent); }

#resource-grid h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.rating {
  font-size: 12px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  vertical-align: middle;
  white-space: nowrap;
}

#resource-grid .card p {
  color: var(--muted);
  font-size: 14px;
  flex-grow: 1;
  margin-bottom: 16px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.card-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.grid-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.newsletter-box {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #111));
  color: #fff;
  border-radius: 22px;
  padding: 56px 32px;
  text-align: center;
}

.newsletter-box h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}

.newsletter-box p {
  max-width: 54ch;
  margin: 0 auto 28px;
  opacity: 0.92;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: #16181d;
}

.newsletter-form input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
}

.newsletter-form .btn-primary {
  background: #fff;
  color: #16181d;
}

.newsletter-note {
  margin-top: 14px !important;
  font-size: 13px !important;
  opacity: 0.75 !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 30px;
  box-shadow: var(--shadow);
}

.modal h3 {
  font-size: 21px;
  margin-bottom: 14px;
}

.modal p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.modal-small {
  font-size: 13px !important;
}

.modal code {
  background: var(--bg-alt);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink);
}

.modal-download {
  margin: 8px 0 4px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--ink);
}

.container-narrow details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

.container-narrow summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 15.5px;
  list-style-position: inside;
}

.container-narrow details p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14.5px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

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

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

.copyright {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-card {
    max-width: 420px;
    transform: none;
    margin: 0 auto;
  }
  .nav-links {
    display: none;
  }
  .section {
    padding: 60px 0;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .product-card h3 {
    padding-right: 0;
  }
}

.hidden {
  display: none !important;
}
