/* Finday — "eligibility-first fintech" theme, matched to the Play Store app.
   Brand red + white on a warm off-white, echoing the FinDay app icon
   (white calendar + growth badge on a red squircle). A rich red hero built
   around an approval-score gauge, a three-step "how eligibility works" strip,
   red icon-tile list cards, red KPI results. */

:root {
  --brand: #e23a34;          /* app-icon red */
  --brand-600: #cc2f2b;
  --brand-700: #b3251f;      /* deep red — headings/links accent */
  --accent: #f5a524;         /* warm amber — interest segment / highlights */
  --invest: #2f7df6;         /* blue — investment calcs */
  --tax: #7c5cf6;            /* violet — tax calcs */
  --ink: #241110;            /* near-black warm */
  --ink-2: #5b403d;
  --muted: #8a716e;
  --brand-tint: #fdeceb;
  --brand-tint-2: #f7cbc8;

  --bg: #fdf6f5;             /* warm off-white */
  --bg-panel: #ffffff;
  --bg-dark: #2b1210;        /* deep maroon-black */
  --line: #f2e3e1;
  --line-2: #ecd2cf;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(43,18,16,.06);
  --shadow: 0 2px 6px rgba(179,37,31,.06), 0 12px 28px rgba(179,37,31,.10);
  --shadow-lg: 0 24px 60px rgba(43,18,16,.20);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.14; margin: 0 0 .5em; color: var(--ink); font-weight: 800; letter-spacing: -.022em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.num, .value { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .95rem; cursor: pointer; border: 1.5px solid transparent; border-radius: 11px; padding: .74em 1.45em; transition: transform .12s, box-shadow .12s, background .12s; font-family: var(--sans); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(226,58,52,.30); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a1c19; color: #fff; transform: translateY(-2px); }

/* ---------------- Header (solid top app-bar) ---------------- */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.header-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: .7rem clamp(18px, 4vw, 40px); display: flex; align-items: center; gap: 1.4rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink); font-size: 1.28rem; letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo b { color: var(--brand); font-weight: 800; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.site-nav a { color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: .5rem .85rem; border-radius: 8px; }
.site-nav a:not(.app-link):hover { color: var(--brand-700); background: var(--brand-tint); }
.app-link { margin-left: .5rem; background: var(--brand); color: #fff !important; border-radius: 10px; padding: .55rem 1.1rem; font-weight: 700; box-shadow: 0 6px 16px rgba(226,58,52,.26); }
.app-link:hover { background: var(--brand-600); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); margin-left: auto; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: .6rem clamp(18px,4vw,40px) 1rem; gap: .1rem; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .4rem; }
  .app-link { margin: .5rem 0 0; text-align: center; justify-content: center; }
}

/* ---------------- Hero (rich red + eligibility gauge) ---------------- */
.home-hero { background: radial-gradient(1100px 520px at 82% -10%, rgba(255,140,120,.40), transparent 60%), linear-gradient(158deg, #9e1c1a 0%, #c62f28 52%, #e0403a 100%); color: #fff; border-radius: 0 0 34px 34px; padding: clamp(2.8rem, 5vw, 4.6rem) 0 clamp(3.4rem, 6vw, 5.4rem); position: relative; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; left: -140px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,120,.16), transparent 68%); }
.home-hero .hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 3.8rem); align-items: center; }
.home-hero h1 { color: #fff; }
.home-hero h1 .accent { color: #ffcf6b; }
.kicker { display: inline-flex; align-items: center; gap: .5em; font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-tint); border: 1px solid var(--brand-tint-2); padding: .4em .9em; border-radius: 999px; margin-bottom: 1.1rem; }
.home-hero .kicker { color: #ffe0dc; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.26); }
.home-hero .lede { color: #ffe1de; font-size: clamp(1.02rem, 1.7vw, 1.2rem); max-width: 47ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.home-hero .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 12px 26px rgba(0,0,0,.22); }
.home-hero .btn-primary:hover { background: #fff1f0; color: var(--brand-700); }
.home-hero .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.38); }
.home-hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.16); }
.hero-trust { display: flex; gap: 1.8rem; margin-top: 2.1rem; flex-wrap: wrap; }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t strong { font-size: 1.55rem; color: #fff; }
.hero-trust .t span { font-size: .8rem; color: #f6b8b3; font-weight: 600; }

/* eligibility gauge card */
.hero-elig { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.5); }
.elig-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.elig-title { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.elig-live { display: inline-flex; align-items: center; gap: .4em; font-size: .72rem; font-weight: 700; color: var(--brand-700); background: var(--brand-tint); border-radius: 999px; padding: .22em .7em; }
.elig-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(226,58,52,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226,58,52,.45); } 70% { box-shadow: 0 0 0 7px rgba(226,58,52,0); } 100% { box-shadow: 0 0 0 0 rgba(226,58,52,0); } }
.gauge { position: relative; margin: .2rem auto .2rem; max-width: 260px; }
.gauge-svg { width: 100%; height: auto; display: block; }
.gauge-center { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.g-score { font-size: 2.9rem; font-weight: 800; color: var(--brand-700); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.g-cap { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: .25rem; }
.elig-badge { display: block; text-align: center; font-weight: 700; font-size: .92rem; color: var(--brand-700); background: var(--brand-tint); border: 1px solid var(--brand-tint-2); border-radius: 10px; padding: .55rem; margin: .4rem 0 1rem; }
.elig-readouts { display: flex; flex-direction: column; gap: .1rem; }
.ro { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.ro-l { color: var(--ink-2); }
.ro-v { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ro-v i { font-style: normal; font-weight: 600; color: var(--muted); font-size: .8em; }
@media (max-width: 880px) {
  .home-hero .hero-inner { grid-template-columns: 1fr; }
  .hero-elig { max-width: 380px; }
}

/* ---------------- Page hero (interior) ---------------- */
.page-hero { padding: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(1.4rem, 3vw, 2rem); border-bottom: 1px solid var(--line); background: #fff; }
.page-hero .hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1rem; font-size: .82rem; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: var(--line-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.lede { font-size: clamp(1rem, 1.7vw, 1.15rem); color: var(--ink-2); max-width: 60ch; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section > .wrap, .section > .section-head, .section .prose, .section .feature-cards, .section .cat, .section .card-grid, .section .app-banner, .section .how { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section-head { margin-bottom: 1.8rem; }
.section-head h2 { margin-bottom: .3rem; }
.section-head .sub { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------------- Featured cards (icon-tile) ---------------- */
.featured { padding: 0; }
.feature-cards { width: 100%; max-width: var(--maxw); margin: -3.6rem auto 0; padding-inline: clamp(18px, 4vw, 40px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; z-index: 5; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .14s, box-shadow .14s; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.ficon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-700); display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; margin-bottom: .8rem; }
.fcard .badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-bottom: .3rem; }
.fcard h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.fcard p { color: var(--muted); font-size: .84rem; margin: 0 0 .9rem; flex: 1; }
.fcard .cta { font-weight: 700; font-size: .85rem; color: var(--brand-700); }
@media (max-width: 900px) { .feature-cards { grid-template-columns: repeat(2, 1fr); margin-top: -2.6rem; } }
@media (max-width: 520px) { .feature-cards { grid-template-columns: 1fr; } }

/* ---------------- How eligibility works (three-step strip) ---------------- */
.how-sec { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .85rem; box-shadow: 0 6px 14px rgba(226,58,52,.30); }
.step h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.how-steps .step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -.85rem; transform: translateY(-50%); color: var(--brand-tint-2); font-weight: 800; font-size: 1.2rem; z-index: 1; }
@media (max-width: 820px) { .how-steps { grid-template-columns: 1fr; } .how-steps .step:not(:last-child)::after { content: "↓"; top: auto; bottom: -.95rem; right: 50%; transform: translateX(50%); } }

/* ---------------- Category index (icon-tile list cards) ---------------- */
.cat { margin-bottom: 2.6rem; }
.cat-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.cat-chip { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-700); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.cat--invest .cat-chip { background: #e4eefe; color: var(--invest); }
.cat--tax .cat-chip { background: #ece7fe; color: var(--tax); }
.cat-head h3 { font-size: 1.3rem; margin: 0; flex: 1; }
.cat-head .count { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .25em .8em; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.lcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; align-items: center; gap: .9rem; transition: transform .14s, box-shadow .14s, border-color .14s; }
.lcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-tint-2); color: var(--ink); }
.licon { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-tint); color: var(--brand-700); display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex: none; }
.cat--invest .licon { background: #e4eefe; color: var(--invest); }
.cat--tax .licon { background: #ece7fe; color: var(--tax); }
.lbody { flex: 1; min-width: 0; }
.lbody h4 { margin: 0 0 .1rem; font-size: .98rem; }
.lbody p { margin: 0; font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard .arrow { color: var(--muted); font-weight: 700; }
.lcard:hover .arrow { color: var(--brand); }
.lcard:hover h4 { color: var(--brand-700); }

/* generic card grid (related / blog) */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; transition: transform .14s, box-shadow .14s, border-color .14s; }
.calc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-tint-2); color: var(--ink); }
.calc-card-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .45rem; }
.calc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.calc-card--invest .calc-dot { background: var(--invest); }
.calc-card--tax .calc-dot { background: var(--tax); }
.calc-card-head h4 { margin: 0; font-size: 1.02rem; flex: 1; }
.calc-arrow { color: var(--muted); font-weight: 700; }
.calc-card:hover .calc-arrow { color: var(--brand); }
.calc-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.calc-card .post-meta { margin-top: .8rem; }

/* ---------------- App banner ---------------- */
.app-banner { margin-top: 1rem; background: var(--bg-dark); color: #e9cbc7; border-radius: var(--radius-lg); padding: clamp(1.6rem, 3.5vw, 2.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.app-banner::after { content: ""; position: absolute; right: -50px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(var(--brand), transparent 68%); opacity: .55; }
.app-banner h3 { color: #fff; margin: 0 0 .3rem; font-size: 1.35rem; }
.app-banner p { margin: 0; color: #d8b4b0; max-width: 52ch; }
.app-banner .btn { background: #fff; color: var(--brand-700); position: relative; z-index: 1; }
.app-banner .btn:hover { background: #fff1f0; color: var(--brand-700); transform: translateY(-2px); }

/* ---------------- Calculator app (two-column) ---------------- */
.calc-section { padding: clamp(1.6rem, 4vw, 2.6rem) 0; }
.calc-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(18px,4vw,40px); display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: start; }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 1.1rem; margin: 0; }
.head-meta { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); font-weight: 700; display: flex; align-items: center; gap: .4em; }
.head-meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.card-body { padding: 1.3rem; }

/* fields */
.field { margin-bottom: 1.5rem; }
.field:last-child { margin-bottom: 0; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.field-head label { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.field-value { display: inline-flex; align-items: center; gap: .2ch; background: var(--brand-tint); border: 1px solid var(--brand-tint-2); border-radius: 8px; padding: .28em .6em; font-weight: 700; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.field-value input { border: 0; background: transparent; font: inherit; color: inherit; width: 8ch; text-align: right; padding: 0; }
.field-value input:focus { outline: none; }
.field-value .unit { color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--brand-tint-2); outline: none; margin: .25rem 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--brand); cursor: pointer; box-shadow: 0 2px 6px rgba(226,58,52,.4); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--brand); cursor: pointer; }
.range-bounds { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: .3rem; font-variant-numeric: tabular-nums; }
.in-words { font-size: .78rem; color: var(--brand-700); font-weight: 600; margin-top: .5rem; }
select { width: 100%; padding: .7em .9em; border: 1px solid var(--line-2); border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.chip, .seg button { font-size: .8rem; font-weight: 600; cursor: pointer; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 8px; padding: .38em .8em; transition: .12s; font-variant-numeric: tabular-nums; }
.chip[aria-pressed=true] { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip:hover { border-color: var(--brand); }
.seg { display: flex; gap: .4rem; }
.seg button { flex: 1; border-radius: 8px; padding: .6em; }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* result — red summary band + KPI tiles */
.result-card .card-head .head-meta { color: var(--brand-700); }
.result-card .card-head .head-meta::before { background: var(--brand); }
#resultBody { padding: 1.3rem; }
.result-hero { background: linear-gradient(150deg, var(--brand), var(--brand-700)); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; text-align: center; margin-bottom: 1.2rem; box-shadow: 0 12px 26px rgba(179,37,31,.24); }
.result-hero .label { font-size: .78rem; color: #f8cecb; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.result-hero .value { font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; margin-top: .1rem; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.1rem; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: .85rem .95rem; position: relative; }
.kpi::before { content: ""; position: absolute; left: 0; top: .95rem; bottom: .95rem; width: 4px; border-radius: 4px; background: var(--seg, var(--brand)); }
.kpi { padding-left: 1.2rem; }
.kpi .kl { font-size: .76rem; color: var(--muted); font-weight: 600; }
.kpi .kv { font-size: 1.2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: .1rem; }
.prop-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--brand-tint); margin-bottom: 1.2rem; }
.prop-bar i { height: 100%; }

.result-rows { display: flex; flex-direction: column; }
.result-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .62rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.result-row .k { color: var(--ink-2); }
.result-row .v { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.result-row.total { border-bottom: 0; margin-top: .3rem; padding-top: .9rem; border-top: 2px solid var(--ink); }
.result-row.total .v { color: var(--brand-700); font-size: 1.2rem; }
.result-note { font-size: .83rem; color: var(--muted); margin: 1.1rem 0 0; background: var(--bg); border-radius: 9px; padding: .7rem .9rem; }

.actions { display: flex; gap: .6rem; padding: 0 1.3rem 1.3rem; }
.actions .btn { flex: 1; justify-content: center; }
.schedule-wrap { margin: 1rem 1.3rem 0; }
.schedule-wrap summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--brand-700); padding: .6rem 0; }
.table-scroll { overflow-x: auto; margin-top: .6rem; }
table.sched { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.sched th, table.sched td { padding: .56rem .6rem; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.sched th { background: var(--bg); color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; position: sticky; top: 0; }
table.sched th:first-child, table.sched td:first-child { text-align: left; }

/* ---------------- Prose ---------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose h2.faq-h { margin-top: 2.4rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.callout { background: var(--brand-tint); border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; padding: 1rem 1.1rem; margin: 1.4rem 0; font-size: .9rem; color: var(--ink-2); }
.callout.warn { background: #fef4e2; border-left-color: var(--accent); }
.callout.warn p { margin: 0; }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .7rem; background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 700; font-size: .95rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: .9rem 1.1rem 1.1rem; color: var(--ink-2); font-size: .9rem; }
.cta-box { background: var(--bg-dark); color: #e9cbc7; border-radius: var(--radius-lg); padding: 1.7rem; margin: 2rem 0; }
.cta-box h3 { color: #fff; margin-top: 0; }
.cta-box p { color: #d8b4b0; }
.cta-box .btn { margin-top: .5rem; background: #fff; color: var(--brand-700); }
.cta-box .btn:hover { background: #fff1f0; color: var(--brand-700); }
.post-meta { font-size: .8rem; color: var(--muted); }

/* ---------------- Footer ---------------- */
footer { background: var(--bg-dark); color: #d8b4b0; margin-top: 3rem; }
.footer-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(2.4rem,5vw,3.4rem) clamp(18px,4vw,40px) 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: #fff; font-size: 1.28rem; }
.footer-logo img { width: 32px; height: 32px; border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.footer-links a { color: #d8b4b0; font-size: .9rem; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-business { padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.biz-name { color: #fff; font-weight: 700; margin-bottom: .7rem; }
.footer-business address { font-style: normal; display: flex; flex-direction: column; gap: .35rem; font-size: .86rem; }
.footer-business address a { color: #ff9a90; }
.biz-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.biz-badge { font-size: .74rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .3em .8em; color: #eccecb; }
.footer-disc { font-size: .78rem; color: #a9817d; margin: 1.4rem 0 0; line-height: 1.6; }
.footer-copy { font-size: .8rem; color: #a9817d; margin-top: 1.2rem; }

@media print { header, footer, .actions, .app-banner, .hero-cta, .nav-toggle { display: none !important; } body { background: #fff; } .card { box-shadow: none; border: 1px solid #ccc; } .result-hero { background: #eee; color: #000; } }
