:root {
    --bg: #FFF7EE;
    --bg-alt: #FFE9D6;
    --ink: #1F2330;
    --ink-soft: #4F5567;
    --accent: #FF6B6B;
    --accent-2: #6C5CE7;
    --accent-3: #00C2A8;
    --accent-4: #FFC93C;
    --card: #FFFFFF;
    --border: #EADBC8;
    --shadow: 0 6px 20px rgba(31,35,48,0.08);
    --radius: 18px;
    --radius-sm: 12px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: 'Nunito', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
  header {
    padding: 22px 0;
    background: var(--bg);
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid rgba(234,219,200,0.6);
    backdrop-filter: blur(8px);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
  .logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 12px;
    display: grid; place-items: center;
    color: white; font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255,107,107,0.35);
  }
  .nav-links { display: flex; gap: 22px; font-weight: 600; }
  .nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
  .nav-links a:hover { color: var(--accent); }
  @media (max-width: 720px) { .nav-links { display: none; } }

  /* HERO */
  .hero {
    padding: 64px 0 56px;
    background: radial-gradient(ellipse at top right, var(--bg-alt) 0%, var(--bg) 60%);
    text-align: center;
  }
  .eyebrow {
    display: inline-block;
    background: white;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 18px;
  }
  h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  h1 .ink-accent { color: var(--accent); }
  .hero p.lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto 32px;
  }

  .ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
  }
  @media (max-width: 640px) { .ctas { grid-template-columns: 1fr; } }
  .cta-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s;
    display: flex; flex-direction: column; gap: 12px;
  }
  .cta-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .cta-card.primary { border-color: var(--accent); background: linear-gradient(135deg, #fff, #FFF1ED); }
  .cta-card.secondary { border-color: var(--accent-2); background: linear-gradient(135deg, #fff, #F0EEFC); }
  .cta-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    color: white;
  }
  .cta-card.primary .cta-icon { background: var(--accent); }
  .cta-card.secondary .cta-icon { background: var(--accent-2); }
  .cta-card h3 { margin: 0; font-size: 1.25rem; }
  .cta-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
  .cta-arrow { font-weight: 800; color: var(--ink); }

  /* SECTIONS */
  section.block { padding: 64px 0; }
  section.block.alt { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    font-weight: 800;
  }
  .section-sub { color: var(--ink-soft); margin: 0 0 28px; max-width: 640px; }

  /* QUIZ */
  .quiz-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
  }
  .progress-bar {
    height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden;
    margin-bottom: 24px;
  }
  .progress-bar > div {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.3s ease;
  }
  .q-step { display: none; }
  .q-step.active { display: block; }
  .q-num { font-size: 0.85rem; font-weight: 700; color: var(--accent-2); margin-bottom: 6px; }
  .q-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
  .q-help { color: var(--ink-soft); margin: 0 0 22px; font-size: 0.95rem; }
  .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
  .opt {
    border: 2px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
    transition: all 0.15s;
    font-size: 0.97rem;
    color: var(--ink);
    display: flex; align-items: center; gap: 10px;
  }
  .opt:hover { border-color: var(--accent-2); transform: translateY(-1px); }
  .opt.selected { border-color: var(--accent); background: #FFF1ED; }
  .opt .check {
    width: 20px; height: 20px; border-radius: 6px;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 0.8rem;
    color: white;
  }
  .opt.selected .check { background: var(--accent); border-color: var(--accent); }

  .q-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
  .btn {
    border: none; padding: 13px 24px; font-size: 1rem; font-weight: 700;
    border-radius: 12px; cursor: pointer; font-family: inherit;
    transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--ink); color: white; }
  .btn-primary:hover { box-shadow: 0 6px 16px rgba(31,35,48,0.25); }
  .btn-ghost { background: transparent; color: var(--ink-soft); }
  .btn-accent { background: var(--accent); color: white; }
  .btn-accent:hover { box-shadow: 0 6px 16px rgba(255,107,107,0.35); }
  .btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

  /* RESULTS */
  .results { display: none; }
  .results.show { display: block; }
  .results-summary {
    background: linear-gradient(135deg, #FFF1ED, #F0EEFC);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
  }
  .results-summary h3 { margin: 0 0 6px; font-size: 1.6rem; }
  .results-summary p { margin: 0; color: var(--ink-soft); }
  .pick-grid { display: grid; gap: 16px; }
  .pick {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 18px;
    align-items: center;
  }
  .pick.top { border-color: var(--accent); background: linear-gradient(135deg, #fff, #FFF6F1); }
  .pick-rank {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--bg-alt); font-weight: 800; font-size: 1.4rem;
  }
  .pick.top .pick-rank { background: var(--accent); color: white; }
  .pick-body h4 { margin: 0 0 4px; font-size: 1.15rem; }
  .pick-body .why { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 6px; }
  .pick-body .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }
  .pick-body .meta span { background: var(--bg-alt); padding: 3px 10px; border-radius: 999px; color: var(--ink); font-weight: 600; }
  .pick-price { text-align: right; }
  .pick-price .num { font-size: 1.5rem; font-weight: 800; }
  .pick-price .per { color: var(--ink-soft); font-size: 0.85rem; }
  @media (max-width: 600px) {
    .pick { grid-template-columns: 1fr; text-align: left; }
    .pick-price { text-align: left; }
  }

  .total-card {
    margin-top: 20px;
    background: var(--ink);
    color: white;
    border-radius: var(--radius);
    padding: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
  }
  .total-card .label { font-size: 0.95rem; opacity: 0.7; }
  .total-card .total { font-size: 2rem; font-weight: 800; line-height: 1; }
  .total-card .vs { font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }
  .total-card.over .vs { color: #FFB1B1; }
  .total-card.under .vs { color: #B5F0E0; }

  .savings-card {
    margin-top: 18px;
    border-radius: var(--radius);
    padding: 22px 24px;
    display: flex; align-items: center; gap: 18px;
    border: 2px solid var(--border);
  }
  .savings-card.positive { background: linear-gradient(135deg, #E8F8F2, #FFF6E5); border-color: var(--accent-3); }
  .savings-card.negative { background: linear-gradient(135deg, #FFF1ED, #FFFBE8); border-color: var(--accent-4); }
  .savings-icon { font-size: 2rem; flex-shrink: 0; }
  .savings-headline { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
  .savings-sub { font-size: 0.95rem; color: var(--ink-soft); }

  /* SEARCH */
  .search-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
  }
  .search-input-wrap { position: relative; }
  .search-input {
    width: 100%;
    padding: 18px 20px 18px 52px;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-family: inherit;
    outline: none;
    background: var(--bg);
    transition: border-color 0.15s, background 0.15s;
  }
  .search-input:focus { border-color: var(--accent-2); background: white; }
  .search-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    font-size: 1.2rem; color: var(--ink-soft);
  }
  .search-results {
    margin-top: 12px;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    display: none;
  }
  .search-results.show { display: block; }
  .search-result {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: flex; align-items: center;
    gap: 12px;
    transition: background 0.1s;
  }
  .search-result:last-child { border-bottom: none; }
  .search-result:hover { background: var(--bg); }
  .search-result .title-name { font-weight: 700; }
  .search-result .title-meta { font-size: 0.85rem; color: var(--ink-soft); }
  .title-poster {
    width: 46px; height: 69px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0; background: var(--bg-alt);
  }
  .title-poster-placeholder {
    width: 46px; height: 69px; border-radius: 6px;
    background: var(--bg-alt); flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 1.4rem;
  }
  .platform-badges { display: flex; gap: 6px; flex-wrap: wrap; }
  .platform-badge {
    font-size: 0.75rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
    color: white;
  }

  .title-detail {
    margin-top: 24px;
    background: linear-gradient(135deg, #F0EEFC, #FFF1ED);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: none;
  }
  .title-detail.show { display: block; }
  .title-detail h3 { margin: 0 0 6px; font-size: 1.4rem; }
  .title-detail .where { color: var(--ink-soft); margin: 0 0 14px; }
  .title-platforms { display: grid; gap: 10px; margin-bottom: 16px; }
  .title-platform {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
  }
  .title-platform .ppx { display: flex; align-items: center; gap: 12px; }
  .title-platform .pname { font-weight: 700; }
  .title-platform .ppr { font-size: 0.9rem; color: var(--ink-soft); }
  .small-link {
    background: none; border: none; color: var(--accent-2);
    font-weight: 700; cursor: pointer; padding: 4px 0;
    font-family: inherit; font-size: 0.92rem;
  }
  .small-link:hover { text-decoration: underline; }

  .cat-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
  }
  .cat-sub {
    color: var(--ink-soft);
    margin: 0 0 22px;
    font-size: 0.95rem;
  }

  /* COMPARISON TABLE */
  .compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
  .service {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color 0.15s, transform 0.15s;
  }
  .service.highlight { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
  .service-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .service-logo {
    width: 60px; height: 60px; border-radius: 14px;
    display: grid; place-items: center;
    color: white; font-weight: 900; font-size: 0.85rem;
    flex-shrink: 0;
    overflow: hidden;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1;
    padding: 6px;
  }
  .service-logo svg { width: 100%; height: auto; max-height: 100%; }
  .service-logo .lg-text { font-size: 0.95rem; }
  .service-logo .lg-text-sm { font-size: 0.78rem; line-height: 1.05; }

  .licence-warning {
    background: #FFEBEB;
    border: 2px solid #E63946;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 12px 0;
    display: flex; align-items: flex-start; gap: 10px;
    color: #B72030;
    font-weight: 700;
    font-size: 0.95rem;
  }
  .licence-warning .lw-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #E63946;
    color: white;
    display: grid; place-items: center;
    font-weight: 900;
  }
  .service h3 { margin: 0; font-size: 1.15rem; }
  .service .tier { font-size: 0.85rem; color: var(--ink-soft); }
  .price-list { list-style: none; padding: 0; margin: 0 0 14px; font-size: 0.93rem; }
  .price-list li {
    display: flex; justify-content: space-between;
    padding: 6px 0; border-bottom: 1px dashed var(--border);
  }
  .price-list li:last-child { border-bottom: none; }
  .price-list .px { font-weight: 700; }
  .service .desc { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 10px; }

  /* BUNDLES */
  .bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
  .bundle {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
  }
  .bundle h3 { margin: 0 0 6px; }
  .bundle .from { font-size: 1.5rem; font-weight: 800; margin: 8px 0; }
  .bundle .from .small { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
  .bundle .desc { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 12px; }

  /* ALERTS */
  .alerts-card {
    background: linear-gradient(135deg, var(--accent-2), #8E7BF0);
    color: white;
    border-radius: var(--radius);
    padding: 36px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    box-shadow: 0 12px 32px rgba(108,92,231,0.25);
  }
  @media (max-width: 740px) { .alerts-card { grid-template-columns: 1fr; padding: 28px; } }
  .alerts-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 16px;
  }
  .alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
  }
  .alert-list li {
    display: flex; gap: 12px; align-items: flex-start;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    font-size: 0.96rem;
  }
  .alert-list li > span {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .alerts-form, .alerts-success {
    background: white;
    color: var(--ink);
    border-radius: var(--radius);
    padding: 24px;
  }
  .alerts-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 6px;
  }
  .alerts-form input,
  .alerts-form select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg);
    outline: none;
    transition: border-color 0.15s;
  }
  .alerts-form input:focus,
  .alerts-form select:focus {
    border-color: var(--accent-2);
    background: white;
  }
  .alerts-fineprint {
    font-size: 0.78rem;
    color: var(--ink-soft);
    text-align: center;
    margin: 12px 0 0;
  }
  .alerts-success { text-align: center; padding: 32px 24px; }

  /* TIPS */

  .tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .tip {
    background: white;
    border-left: 4px solid var(--accent-3);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    display: flex; gap: 14px; align-items: flex-start;
  }
  .tip-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 42px; height: 42px;
    background: var(--bg-alt);
    border-radius: 10px;
    display: grid; place-items: center;
  }
  .tip h4 { margin: 0 0 6px; font-size: 1rem; }
  .tip p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

  /* FOOTER */
  footer {
    padding: 40px 0 60px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.88rem;
  }
  footer a { color: var(--accent-2); text-decoration: none; }
  .disclaimer {
    background: var(--bg-alt);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 24px auto 0;
    max-width: 720px;
    font-size: 0.85rem;
    color: var(--ink-soft);
  }

/* Multi-page additions */

.nav-links a.active {
  color: var(--accent);
  font-weight: 800;
}
.page-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-soft); text-decoration: none;
  font-weight: 600; font-size: 0.9rem;
  margin-bottom: 12px;
}
.page-back:hover { color: var(--accent); }
.next-step-card {
  background: linear-gradient(135deg, #FFF1ED, #F0EEFC);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.next-step-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.next-step-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.next-step-card .btn { white-space: nowrap; }
