/* Suba Disa - site styles (colours and type from the approved landing design, 28 Nov 2026) */
:root {
  --maroon: #6E1E2B; --maroon-dk: #5C1522; --maroon-hi: #84283A; --ink: #3B2A24; --muted: #6B5A50;
  --cream: #FBF6EC; --sand: #F4EADA; --sand-2: #F1E6D2; --line: #EADFCB; --line-2: #D8C9AE;
  --gold: #E0A33A; --gold-lt: #F8E7C4; --gold-ink: #3A0F17; --green: #2F6B3A; --wa: #178B50; --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Noto Sans Sinhala', system-ui, sans-serif; font-size: 18px; line-height: 1.6; }
.page { max-width: 520px; margin: 0 auto; background: var(--cream); min-height: 100vh; }
a { color: var(--maroon); } a:hover { color: #4A121C; }
h1, h2, h3 { margin: 0; }
.serif { font-family: 'Noto Serif Sinhala', serif; }
.hide { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--cream); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .si { font-family: 'Noto Serif Sinhala', serif; font-weight: 700; font-size: 22px; color: var(--maroon-dk); line-height: 1.1; }
.brand .en { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 10px; letter-spacing: .32em; color: #A87A2C; margin-top: 2px; line-height: 1.1; }
.brand .words { display: flex; flex-direction: column; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px; border: 0; font-weight: 700; text-decoration: none; text-align: center; padding: 6px 16px; width: 100%; font-size: 18px; line-height: 1.35; }
.btn-lg { min-height: 56px; font-size: 19px; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 20px rgba(240,180,70,.55), 0 4px 12px rgba(0,0,0,.18); }
.btn-gold-soft { background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 18px rgba(224,163,58,.35); }
.btn-maroon { background: var(--maroon); color: #fff; box-shadow: 0 4px 14px rgba(110,30,43,.28); }
.btn-maroon:hover { color: #fff; }
.btn-outline { background: #fff; color: var(--maroon); border: 2px solid var(--maroon); box-shadow: 0 2px 10px rgba(110,30,43,.12); }
.btn-wa { background: var(--wa); color: #fff; font-size: 17px; box-shadow: 0 0 18px rgba(46,204,113,.40), 0 3px 10px rgba(0,0,0,.18); }
.btn-wa:hover { color: #fff; }
.btn-link { background: transparent; color: var(--maroon); min-height: 44px; font-weight: 500; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 32px 20px 28px; background: radial-gradient(120% 80% at 100% 0%, var(--maroon-hi) 0%, var(--maroon) 55%, #5E1724 100%); color: #FFF8EC; display: flex; flex-direction: column; gap: 16px; }
.hero .bg { position: absolute; z-index: -1; pointer-events: none; right: -96px; top: 36px; }
.hero .kicker { font-size: clamp(12px, 3.4vw, 15px); white-space: nowrap; color: #F3D9A4; font-weight: 500; }
.hero h1 { font-family: 'Noto Serif Sinhala', serif; font-size: 34px; line-height: 1.35; font-weight: 700; }
.hero p { margin: 0; color: #F7EBD8; }
.hero .small { font-size: 14px; color: #F3D9A4; }

section.block { padding: 28px 16px; display: flex; flex-direction: column; gap: 14px; }
.h2 { font-family: 'Noto Serif Sinhala', serif; font-size: 26px; line-height: 1.4; color: var(--maroon); }
.lead { margin: 0; font-size: 16px; color: var(--muted); }
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 24px 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 10px rgba(59,42,36,.06); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.trust .card { border-radius: 14px; padding: 14px; gap: 6px; }
.trust .t { font-weight: 700; font-size: 16px; line-height: 1.4; }
.trust .d { font-size: 14px; color: var(--muted); line-height: 1.5; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-row h3 { font-size: 21px; line-height: 1.4; }
.price { font-size: 22px; font-weight: 700; color: var(--maroon); white-space: nowrap; }
.card p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.55; }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.tick svg { flex: none; margin-top: 4px; }
.badge { align-self: flex-start; background: var(--gold-lt); color: #5A3A05; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { min-height: 58px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 10px; border-radius: 12px; font-size: 16px; line-height: 1.35; border: 1px solid var(--line-2); background: var(--cream); color: var(--ink); }
.chip[aria-pressed="true"] { border: 2px solid var(--maroon); background: var(--maroon); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(110,30,43,.22); }
.row-btn { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 12px; font-size: 16px; text-align: left; border: 1px solid var(--line-2); background: #fff; color: var(--ink); width: 100%; }
.row-btn[aria-pressed="true"] { border: 2px solid var(--maroon); background: var(--gold-lt); }
.dash-btn { min-height: 44px; border-radius: 12px; border: 1px dashed #B9A584; background: transparent; color: var(--maroon); font-size: 16px; font-weight: 700; }
.note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.hint { background: var(--gold-lt); border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.5; color: #5A3A05; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.steps { background: var(--sand); }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.join { position: relative; isolation: isolate; overflow: hidden; padding: 28px 16px; background: radial-gradient(110% 70% at 0% 100%, var(--maroon-hi) 0%, var(--maroon) 60%); color: #FFF8EC; display: flex; flex-direction: column; gap: 14px; }
.join .bg { position: absolute; z-index: -1; pointer-events: none; left: -70px; bottom: -70px; }
.join input, .join select { min-height: 52px; border-radius: 12px; border: 0; padding: 0 14px; font: inherit; font-size: 18px; background: #FFF8EC; color: var(--ink); width: 100%; }
footer.foot { padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
footer.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 500; }
.field select, .field input[type=text], .field input[type=tel], .field input[type=search] { min-height: 52px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 12px; font: inherit; font-size: 18px; font-weight: 400; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.picked { font-size: 15px; font-weight: 400; color: var(--maroon); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 16px; }
.check input { width: 22px; height: 22px; accent-color: var(--maroon); flex: none; }
.err { background: #FBE3E0; color: #7A1E14; border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.5; }
.warn { background: var(--gold-lt); color: #5A3A05; border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.5; }
.ok { background: #E8F3E6; color: #24502D; border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.5; }

/* searchable list */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 8px 24px rgba(59,42,36,.15); padding: 4px; }
.combo-list button { display: block; width: 100%; text-align: left; min-height: 44px; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; font-size: 17px; line-height: 1.35; }
.combo-list button:hover, .combo-list button:focus { background: var(--sand); outline: none; }
.combo-list .sub { display: block; font-size: 13px; color: var(--muted); }
.combo-list .none { padding: 10px; font-size: 15px; color: var(--muted); }

/* bottom sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(59,42,36,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--cream); width: 100%; max-width: 520px; max-height: 94vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 14px; }
.sheet .grip { align-self: center; width: 48px; height: 5px; border-radius: 999px; background: var(--line-2); }
.sheet h2 { font-family: 'Noto Serif Sinhala', serif; font-size: 24px; line-height: 1.4; color: var(--maroon); }

/* chart view */
.view { padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.fact .k { font-size: 14px; color: var(--muted); }
.fact .v { font-size: 18px; font-weight: 700; line-height: 1.4; }
.fact .s { font-size: 13px; color: var(--muted); line-height: 1.4; }
table.pl { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
table.pl th, table.pl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.pl th { background: var(--sand); font-weight: 700; font-size: 14px; }
.kendara { width: 100%; max-width: 360px; align-self: center; }
.res { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; }
.res .mk { flex: none; width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.res .mk.y { background: #E8F3E6; color: var(--green); }
.res .mk.n { background: #FBE3E0; color: #7A1E14; }
.score { font-family: 'Noto Serif Sinhala', serif; font-size: 40px; font-weight: 700; color: var(--maroon); line-height: 1.2; }

/* policy pages */
.doc { padding: 24px 18px 48px; }
.doc h1 { font-family: 'Noto Serif Sinhala', serif; font-size: 28px; color: var(--maroon); line-height: 1.4; }
.doc h2 { font-size: 19px; color: var(--maroon); margin: 22px 0 6px; line-height: 1.45; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; }
.doc .sub { color: var(--muted); font-size: 15px; margin: 4px 0; }
.doc .en { margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--line); font-family: system-ui, sans-serif; }
.ph { background: #FFF1B8; padding: 0 3px; border-radius: 3px; }

@media (min-width: 521px) { body { background: var(--sand-2); } .page { box-shadow: 0 0 30px rgba(59,42,36,.08); } }
