/* CatchUp – legal pages. Colors mirror ShapeCatch.iOS AppColors. */
/* Poppins is self-hosted (latin subset of the app's own fonts) so no visitor data goes to Google Fonts. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-semibold.woff2") format("woff2"); }
:root {
    --yellow: #ffc038;
    --yellow-soft: #fff4d6;
    --orange: #e59800;
    --purple: #5236d7;
    --purple-soft: #efebff;
    --red: #e0262b;
    --green: #1e8540;
    --green-soft: #e3f4e8;

    --bg: #faf8f3;
    --card: #ffffff;
    --text: #2a3441;
    --muted: #6b7380;
    --border: #ece8de;
    --shadow: 0 1px 2px rgba(42, 52, 65, .04), 0 8px 24px rgba(42, 52, 65, .06);
    --radius: 20px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --yellow-soft: #3a2f12;
        --purple: #9d8bff;
        --purple-soft: #262046;
        --green: #5cc58a;
        --green-soft: #15301f;

        --bg: #121317;
        --card: #1b1d22;
        --text: #eef0f4;
        --muted: #9aa1ad;
        --border: #2a2d34;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.7 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p, li { overflow-wrap: anywhere; }
strong { font-weight: 600; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    max-width: 1120px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.links { display: flex; gap: 6px; }
.links a {
    color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500;
    padding: 6px 12px; border-radius: 999px;
}
.links a:hover { color: var(--text); background: var(--card); }
.links a[aria-current="page"] { color: var(--text); background: var(--yellow-soft); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--yellow) 0%, #ffd56f 55%, #ffe7a8 100%);
    color: #2a3441;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px;
    border-radius: 50%; background: rgba(255, 255, 255, .25);
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 1120px; margin: 0 auto; padding: 56px 20px 64px;
    display: flex; align-items: center; gap: 28px;
}
.hero-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 30px rgba(120, 70, 0, .25); flex: none; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; opacity: .7; margin: 0 0 4px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.02em; }
.hero p.lead { margin: 0; font-size: 1.05rem; max-width: 560px; opacity: .85; }
.pill {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
    background: rgba(255, 255, 255, .6); padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500;
}

/* ---------- Layout ---------- */
.layout {
    max-width: 1120px; margin: -32px auto 0; padding: 0 20px 40px;
    display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start;
    position: relative; z-index: 2;
}
.toc {
    position: sticky; top: 88px; margin-top: 64px;
    font-size: .88rem;
}
.toc p { font-weight: 600; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a {
    display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent;
    color: var(--muted); text-decoration: none; line-height: 1.4;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--purple); border-left-color: var(--purple); font-weight: 500; }

.content { min-width: 0; }

/* ---------- Cards ---------- */
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 28px 32px; margin-bottom: 20px;
}
.card h2 {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.25rem; line-height: 1.3; margin: 0 0 12px; letter-spacing: -.01em;
}
.num {
    flex: none; display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 10px;
    background: var(--yellow-soft); color: var(--orange); font-size: .9rem; font-weight: 600;
}
.card h3 { font-size: 1rem; margin: 22px 0 6px; }
.card > :last-child { margin-bottom: 0; }
.card ul { padding-left: 0; list-style: none; }
.card ul li { position: relative; padding-left: 22px; margin: 6px 0; }
.card ul li::before {
    content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%;
    background: var(--yellow);
}
.card ul.cross li::before, .card ul.check li::before {
    width: auto; height: auto; background: none; top: 0; left: 0; font-weight: 700;
}
.card ul.check li::before { content: "✓"; color: var(--green); }
.card ul.cross li::before { content: "✕"; color: var(--red); }

/* ---------- Summary tiles ---------- */
.summary {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px;
}
.tile {
    background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
    padding: 20px;
}
.tile .ico {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px;
    background: var(--purple-soft); color: var(--purple);
}
.tile .ico svg { width: 22px; height: 22px; }
.tile h4 { margin: 0 0 4px; font-size: .98rem; }
.tile p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

/* ---------- Callouts ---------- */
.callout {
    display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; margin: 16px 0;
    background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--yellow) 45%, transparent);
}
.callout.info { background: var(--purple-soft); border-color: color-mix(in srgb, var(--purple) 25%, transparent); }
.callout.ok { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.callout .ico { flex: none; font-size: 1.3rem; line-height: 1.5; }
.callout p { margin: 0; }

/* ---------- Providers ---------- */
.providers { display: grid; gap: 14px; margin-top: 12px; }
.provider {
    border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; background: var(--bg);
}
.provider-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.provider-head h3 { margin: 0; }
.tag {
    font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    background: var(--purple-soft); color: var(--purple); white-space: nowrap;
}
.provider p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.provider ul { margin: 8px 0 0; font-size: .95rem; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 12px 0 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--purple) 0%, #6c52ff 100%); color: #fff; border: 0;
}
.contact h2 { color: #fff; margin: 0 0 4px; }
.contact p { margin: 0; opacity: .85; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #5236d7; font-weight: 600; text-decoration: none;
    padding: 12px 20px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}
.btn:hover { transform: translateY(-1px); }

/* ---------- Footer ---------- */
footer {
    max-width: 1120px; margin: 0 auto; padding: 24px 20px 48px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    color: var(--muted); font-size: .85rem;
}
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }

/* ---------- Home ---------- */
.home-hero .hero-inner { flex-direction: column; text-align: center; padding: 88px 20px 96px; }
.home-hero .hero-icon { width: 128px; height: 128px; border-radius: 30px; }
.home-hero p.lead { margin: 0 auto; }
.store-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
    background: #111; color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 14px; font-weight: 500;
}
.store-btn svg { width: 22px; height: 22px; fill: #fff; }
.store-btn small { display: block; font-size: .7rem; opacity: .75; line-height: 1; }
.store-btn span { line-height: 1.2; text-align: left; }
.home-links { max-width: 760px; margin: -40px auto 0; padding: 0 20px 24px; position: relative; z-index: 2; }
.home-links .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-links a.tile { text-decoration: none; color: inherit; transition: transform .15s ease; }
.home-links a.tile:hover { transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .toc { display: none; }
}
@media (max-width: 600px) {
    .summary, .home-links .summary { grid-template-columns: 1fr; }
    .hero-inner { flex-direction: column; align-items: flex-start; padding: 36px 16px 56px; gap: 18px; }
    .hero-icon { width: 72px; height: 72px; border-radius: 18px; }
    .layout { padding: 0 16px 32px; }
    .card { padding: 22px 18px; border-radius: 18px; }
    .topbar-inner { padding: 10px 16px; }
    .brand span { display: none; }
    .links a { padding: 6px 10px; font-size: .85rem; }
    footer { padding: 20px 16px 40px; }
}

@media print {
    .topbar, .toc, .contact .btn { display: none; }
    .hero { background: none; }
    .layout { display: block; margin: 0; }
    .card { box-shadow: none; break-inside: avoid; }
}

/* ---------- Home sections ---------- */
.home { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.home-section { margin: 56px 0; }
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; margin: 0 0 6px; text-align: center; }
.section-lead { color: var(--muted); text-align: center; margin: 0 auto 24px; max-width: 560px; }
.features .tile h3 { margin: 0 0 4px; font-size: .98rem; }
.hero-meta { margin: 14px 0 0; font-size: .85rem; opacity: .75; }
.home-hero .eyebrow { margin-top: 8px; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
    padding: 4px 20px;
}
.faq summary {
    cursor: pointer; list-style: none; font-weight: 600; padding: 14px 28px 14px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
    background: var(--yellow-soft); color: var(--orange); font-weight: 600;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
@media (max-width: 600px) {
    .home { padding: 0 16px; }
    .home-section { margin: 40px 0; }
    .links a[href^="#"] { display: none; }
}
