/* Compare Kiwi: brand styles (from the Halves brand kit) */
:root {
    --forest: #14261A;
    --ink: #1D2A1A;
    --kiwi: #86B23A;
    --kiwi-deep: #4F7A17;
    --kiwi-deeper: #3F6312;
    --lime: #A8D05A;
    --cream: #F7F8F0;
    --cream-2: #EEF2D2;
    --brown: #5C4426;
    --grey: #5B6358;
    --grey-light: #E4E7DC;
    --white: #FFFFFF;
    --error: #B42318;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(20, 38, 26, 0.12);
    --head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--kiwi-deep); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--grey); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.hidden { display: none !important; }
.eyebrow { font-family: var(--head); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--kiwi-deep); margin-bottom: 0.9rem; }
.hl { color: var(--kiwi-deep); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--grey-light); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; font-weight: 600; font-size: 0.92rem; }
.nav a { color: var(--grey); text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--forest); }
@media (max-width: 860px) { .nav { display: none; } .logo img { height: 24px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 1rem; border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.btn-primary { background: var(--kiwi-deep); color: var(--white); }
.btn-primary:hover { background: var(--kiwi-deeper); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-small { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; border-radius: 14px; padding: 18px; }
.btn-light { background: var(--lime); color: var(--forest); }
.btn-light:hover { background: #9BC74A; }

/* Hero */
.hero { background: var(--forest); color: var(--cream); padding: 64px 0 120px; text-align: center; position: relative; overflow: hidden; }
.hero h1 { color: var(--white); }
.hero h1 .hl { color: var(--lime); }
.hero .eyebrow { color: var(--lime); }
.hero p.lead { font-size: 1.12rem; color: #D5DCCB; max-width: 660px; margin: 0 auto 0.75rem; }
.hero .mark-bg { position: absolute; width: 420px; opacity: 0.06; right: -120px; top: -60px; pointer-events: none; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; font-size: 0.92rem; font-weight: 600; color: #D5DCCB; }
.checks i { color: var(--lime); margin-right: 6px; }
@media (max-width: 640px) {
    .hero { padding: 36px 0 104px; }
    .hero h1 br { display: none; }
    .hero p.lead { font-size: 1rem; }
    .checks { gap: 6px 16px; font-size: 0.82rem; margin-top: 18px; }
    .site-header .btn-small { padding: 9px 14px; font-size: 0.82rem; }
    .site-header .wrap { height: 60px; }
}

/* Choice cards on the home page */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: -80px auto 0; position: relative; z-index: 2; padding: 0 20px; }
@media (max-width: 720px) { .choices { grid-template-columns: 1fr; } }
.choice { background: var(--white); border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color 0.15s, transform 0.15s; display: flex; flex-direction: column; }
.choice:hover { border-color: var(--kiwi); transform: translateY(-3px); }
.choice .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--kiwi-deep); margin-bottom: 18px; }
.choice h2 { font-size: 1.5rem; margin-bottom: 0.4em; }
.choice p { color: var(--grey); flex: 1; }
.choice .go { font-family: var(--head); font-weight: 700; color: var(--kiwi-deep); }

/* Quiz card */
.quiz { max-width: 640px; margin: -84px auto 0; background: var(--white); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; position: relative; z-index: 2; }
@media (max-width: 680px) { .quiz { margin-left: 16px; margin-right: 16px; } }
.quiz-top { background: var(--ink); padding: 16px 24px; color: var(--white); }
.quiz-top .row { display: flex; justify-content: space-between; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.quiz-top .row span:last-child { color: #A9B3A2; letter-spacing: 0.04em; }
.bar { height: 6px; background: rgba(255,255,255,0.15); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.bar div { height: 100%; width: 16%; background: var(--lime); border-radius: 99px; transition: width 0.3s; }
.quiz form { padding: 32px 28px 28px; }
@media (max-width: 480px) { .quiz form { padding: 26px 18px 22px; } }
.step { display: none; }
.step.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: 1.5rem; text-align: center; margin-bottom: 0.35em; }
.step .hint { text-align: center; color: var(--grey); font-size: 0.92rem; margin-bottom: 22px; }
.step h2 + .options { margin-top: 22px; }
.options { display: grid; gap: 10px; }
.options.two { grid-template-columns: 1fr 1fr; }
.opt { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--ink); text-align: left; background: var(--white); border: 2px solid var(--grey-light); border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: border-color 0.12s, background 0.12s; display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; }
.opt:hover, .opt:focus-visible { border-color: var(--kiwi-deep); background: #F4F8EA; outline: none; }
.opt.selected { border-color: var(--kiwi-deep); background: #F4F8EA; }
.opt i { color: var(--kiwi-deep); width: 20px; text-align: center; }
.opt .sub { color: var(--grey); font-weight: 500; font-size: 0.88rem; }
.opt .tick { margin-left: auto; opacity: 0; }
.opt.selected .tick { opacity: 1; }
.options.two .opt { justify-content: center; text-align: center; }
.back { background: none; border: 0; color: var(--grey); font-weight: 600; font-size: 0.9rem; cursor: pointer; margin-top: 18px; padding: 4px 0; }
.back:hover { color: var(--forest); }

.field { width: 100%; font-family: var(--body); font-size: 1rem; font-weight: 500; padding: 15px 16px; background: #F5F6F1; border: 2px solid transparent; border-radius: 12px; color: var(--ink); }
.field:focus { outline: none; border-color: var(--kiwi-deep); background: var(--white); }
.fields { display: grid; gap: 12px; }
.label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey); margin: 6px 0 8px; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.times .opt { padding: 12px 8px; font-size: 0.88rem; justify-content: center; text-align: center; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--grey); cursor: pointer; margin-top: 4px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--kiwi-deep); flex-shrink: 0; }
.error { color: var(--error); font-weight: 600; font-size: 0.9rem; margin: 0; }
.fine { font-size: 0.75rem; color: #7B8476; line-height: 1.55; margin: 4px 0 0; }

.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--cream-2); color: var(--kiwi-deep); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 18px; }
.done-box { background: var(--cream); border-radius: 16px; padding: 18px 20px; text-align: left; font-size: 0.92rem; margin-top: 18px; }
.done-box ul { list-style: none; padding: 0; margin: 8px 0; }
.done-box li { margin: 4px 0; }
.done-box li i { color: var(--kiwi-deep); margin-right: 8px; }

/* Sections */
section.block { padding: 72px 0; }
section.alt { background: var(--white); }
section.dark { background: var(--forest); color: #D5DCCB; }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark .eyebrow { color: var(--lime); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius); padding: 26px; }
section.alt .card { background: var(--cream); border-color: transparent; }
section.dark .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.card .num { font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--kiwi); line-height: 1; margin-bottom: 12px; }
.card .ico { font-size: 1.4rem; color: var(--lime); margin-bottom: 14px; }
.card p { margin: 0; font-size: 0.95rem; }
section.dark .card p { color: #C4CDB9; }
.section-head { max-width: 640px; margin-bottom: 36px; }

/* Accordions */
details.acc { background: var(--white); border: 1px solid var(--grey-light); border-radius: 14px; padding: 18px 20px; margin-bottom: 10px; }
section.alt details.acc { background: var(--cream); border-color: transparent; }
details.acc summary { list-style: none; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary i { color: var(--kiwi-deep); transition: transform 0.2s; flex-shrink: 0; }
details.acc[open] summary i { transform: rotate(45deg); }
details.acc p { margin: 12px 0 0; color: var(--grey); font-size: 0.95rem; }

/* Fact strip */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--cream-2); border-radius: 16px; padding: 22px; }
.fact .big { font-family: var(--head); font-size: 1.7rem; font-weight: 800; color: var(--forest); line-height: 1.1; margin-bottom: 6px; }
.fact p { margin: 0; font-size: 0.92rem; color: var(--ink); }

/* Legal pages */
.legal { background: var(--white); border-radius: 22px; padding: 40px; margin: 48px auto; box-shadow: 0 4px 24px rgba(20,38,26,0.06); }
@media (max-width: 600px) { .legal { padding: 26px 20px; margin: 24px 16px; } }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 1.8em; }
.legal p, .legal li { color: #3B4637; font-size: 0.97rem; }

/* Footer */
footer { background: var(--ink); color: #A9B3A2; padding: 56px 0 28px; font-size: 0.88rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer img { height: 26px; width: auto; margin-bottom: 16px; }
footer h4 { font-family: var(--head); color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #D5DCCB; text-decoration: none; }
footer a:hover { color: var(--lime); }
footer .base { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 0.78rem; text-align: center; }

/* Guides */
.page-hero { background: var(--forest); color: #D5DCCB; padding: 56px 0 64px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 820px; }
.page-hero .eyebrow { color: var(--lime); }
.page-hero p { max-width: 680px; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: 0.82rem; margin-bottom: 18px; color: #A9B3A2; }
.crumbs a { color: #D5DCCB; text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.article { max-width: 720px; margin: 0 auto; padding: 48px 20px 24px; }
.article h2 { font-size: 1.55rem; margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { font-size: 1.04rem; color: #2B3628; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 0.45em; }
.article .meta { font-size: 0.85rem; color: var(--grey); margin-bottom: 28px; }
.callout { background: var(--cream-2); border-left: 4px solid var(--kiwi-deep); border-radius: 12px; padding: 18px 20px; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.example { background: var(--white); border: 1px solid var(--grey-light); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.example table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.example td { padding: 7px 0; border-bottom: 1px solid var(--grey-light); }
.example td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.example tr.total td { font-weight: 700; border-bottom: 0; }
.cta-box { background: var(--forest); color: #D5DCCB; border-radius: 22px; padding: 32px; margin: 40px 0 8px; text-align: center; }
.cta-box h2 { color: var(--white); margin-top: 0; font-size: 1.5rem; }
.cta-box p { color: #D5DCCB; }
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .guide-list { grid-template-columns: 1fr; } }
.guide-card { background: var(--white); border: 1px solid var(--grey-light); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s; }
.guide-card:hover { border-color: var(--kiwi); transform: translateY(-2px); }
.guide-card .tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--kiwi-deep); margin-bottom: 10px; }
.guide-card h2 { font-size: 1.25rem; }
.guide-card p { color: var(--grey); font-size: 0.95rem; flex: 1; }
.guide-card .go { font-family: var(--head); font-weight: 700; color: var(--kiwi-deep); }
.related { border-top: 1px solid var(--grey-light); margin-top: 40px; padding-top: 24px; }
.related a { display: block; font-weight: 600; margin-bottom: 8px; }
