/* CompareMyCard, variant 1.
   Intro APR pre-lander: navy ink on a cool grey ground, a green accent for
   links and the hero button, and gold for the card mark and closing button.
   Set in Schibsted Grotesk. The contact page reuses the header and footer
   and puts its content in a white card (.inner-page / .inner-panel). */

:root {
    --ink: #13233A;
    --text: #3A4658;
    --muted: #4A5668;
    --green: #0E5F49;
    --green-deep: #0A3F31;
    --accent: #0E7A5C;        /* Hero button. Alternates in the design: #1F5FBF, #13233A */
    --gold: #F2B43A;
    --chip: #D9B45B;
    --steel: #C9D3DE;
    --line: #D5DCE4;
    --line-soft: #E3E8EE;
    --ground: #EEF2F5;
    --panel: #F7F9FB;
    --white: #FFFFFF;

    --font: 'Schibsted Grotesk', 'Helvetica Neue', Helvetica, system-ui, sans-serif;

    --maxw: 1120px;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--ground);
    min-height: 100vh;
    line-height: 1.55;
    display: flex;              /* Keeps the footer at the bottom on short interior pages */
    flex-direction: column;
}

main { flex: 1 0 auto; }

a { color: var(--green); }
a:hover { color: var(--green-deep); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

svg { flex-shrink: 0; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ============ BRAND LOCKUP ============ */
.brand-name { font-weight: 800; color: var(--ink); }

/* ============ HEADER ============ */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }

.site-header-row {
    padding-top: 14px;
    padding-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand,
.brand:hover {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.site-header .brand-mark { width: 30px; height: 30px; }
.site-header .brand-name { font-size: 20px; letter-spacing: -0.02em; }

.header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
}

.disclosure-toggle {
    font: inherit;
    font-size: 14px;
    color: var(--green);
    background: none;
    border: 0;
    padding: 12px 0;
    text-decoration: underline;
    cursor: pointer;
}
.disclosure-toggle:hover { color: var(--green-deep); }

.disclosure-panel { border-top: 1px solid var(--line); background: var(--panel); }
.disclosure-panel[hidden] { display: none; }
.disclosure-panel p {
    max-width: 1072px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 14px;
    color: var(--text);
}

/* ============ BUTTONS ============ */
.btn-cta,
.btn-cta:hover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 28px;
    border-radius: 10px;
    min-height: 44px;
    box-sizing: border-box;
}
.btn-cta svg { width: 18px; height: 18px; }

.btn-cta--accent,
.btn-cta--accent:hover { background: var(--accent); color: var(--white); }

.btn-cta--gold,
.btn-cta--gold:hover { background: var(--gold); color: var(--ink); }

/* ============ SHARED SECTION TYPE ============ */
.section-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ============ HERO ============ */
.hero {
    padding-top: 64px;
    padding-bottom: 72px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: center;
}

.hero-copy {
    flex: 1 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero-eyebrow { margin: 0; font-size: 15px; font-weight: 600; color: var(--green); }

.hero-title {
    margin: 0;
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 12ch;
}

.hero-sub { margin: 0; font-size: 1.15rem; color: var(--text); max-width: 34em; }

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.hero-note {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-note svg { width: 16px; height: 16px; color: var(--green); }

.hero-visual {
    flex: 1 1 400px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Illustrated card: drawn in CSS, not a real product image */
.card-art {
    align-self: center;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1.586;
    border-radius: 18px;
    background: var(--ink);
    position: relative;
    box-shadow: 0 24px 40px -20px rgba(19, 35, 58, 0.55);
    overflow: hidden;
}
.card-art-ring {
    position: absolute;
    right: -60px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 36px solid rgba(242, 180, 58, 0.22);
}
.card-art-chip {
    position: absolute;
    left: 28px;
    top: 38%;
    width: 46px;
    height: 34px;
    border-radius: 6px;
    background: var(--chip);
}
.card-art-wave {
    position: absolute;
    left: 86px;
    top: 39%;
    width: 26px;
    height: 30px;
    color: var(--steel);
}
.card-art-number {
    position: absolute;
    left: 28px;
    bottom: 26px;
    color: var(--steel);
    font-size: 16px;
    letter-spacing: 0.18em;
}

/* Intro APR timeline */
.apr-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.apr-card-title { font-weight: 700; font-size: 15px; }

.apr-tiles {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));  /* = intro + regular tiles in index.php */
    gap: 4px;
}
.apr-tile { height: 32px; border-radius: 4px; }
.apr-tile--intro { background: var(--gold); }
.apr-tile--regular { background: repeating-linear-gradient(135deg, var(--line) 0 5px, var(--ground) 5px 10px); }

.apr-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}
.apr-legend-after { color: var(--muted); }

.apr-card-fine { margin: 0; font-size: 13px; color: var(--muted); }

/* ============ CARD BENEFITS ============ */
.benefits {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.benefits-inner {
    padding-top: 72px;
    padding-bottom: 72px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 40em;
}
.section-lead { margin: 0; color: var(--text); font-size: 1.05rem; }

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 36px 40px;
}

.benefit { display: flex; flex-direction: column; gap: 10px; }
.benefit svg { width: 28px; height: 28px; color: var(--green); }
.benefit h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.benefit p { margin: 0; color: var(--text); }

/* ============ WHAT TO COMPARE ============ */
.compare {
    padding-top: 72px;
    padding-bottom: 72px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.compare-intro {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.compare-intro p { margin: 0; color: var(--text); }

.compare-list {
    flex: 2 1 560px;
    min-width: 0;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.compare-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-soft);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row dt { flex: 0 0 200px; font-weight: 700; }
.compare-row dd { flex: 1 1 260px; margin: 0; color: var(--text); }

/* ============ CLOSING CTA ============ */
.cta-band { background: var(--ink); color: var(--white); }

.cta-band-inner {
    padding-top: 64px;
    padding-bottom: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
}

.cta-band-copy {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cta-band-copy h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.cta-band-copy p { margin: 0; color: var(--steel); max-width: 34em; }

/* ============ FOOTER ============ */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }

.site-footer-inner {
    padding-top: 36px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
    color: var(--text);
}
.site-footer-inner p { margin: 0; }

/* Link row with thin dividers between items */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    border-left: 1px solid var(--line);
}
.footer-links a:first-child { border-left: 0; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-footer .brand-mark { width: 28px; height: 28px; }
.site-footer .brand-name { font-size: 19px; letter-spacing: -0.02em; }

.footer-disclaimer {
    max-width: 880px;
    font-size: 12.5px;
    line-height: 1.6;
}

.footer-owner { font-size: 14px; color: var(--ink); }
.footer-validation { font-size: 14px; }
.footer-validation a { color: var(--ink); text-decoration: none; }
.footer-validation a:hover { color: var(--green); text-decoration: underline; }
.footer-copyright { font-size: 14px; color: var(--muted); }

/* On phones the dividers would land at odd places when the row wraps,
   so the links drop them and wrap as a centred cluster. */
@media (max-width: 600px) {
    .footer-links { gap: 2px 4px; }
    .footer-links a { border-left: 0; padding: 10px 10px; }
}

/* ============ CONTACT / INNER PAGES ============ */
.inner-page { padding-top: 56px; padding-bottom: 72px; }

.inner-panel {
    max-width: 760px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 40px;
}
.inner-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.inner-panel h2 { margin: 28px 0 10px; font-size: 1.2rem; font-weight: 700; }
.inner-panel p,
.inner-panel li { color: var(--text); }

@media (max-width: 600px) {
    .inner-page { padding-top: 32px; padding-bottom: 48px; }
    .inner-panel { padding: 24px 20px; }
}
