/* Home and Payments: big words, big buttons, one thing at a time.
   Same colours and type as the rest of the portal. */
:root{
  --burgundy:#8C3B38;--burgundy-dark:#6E2D2B;--cream:#F5F1E0;--ink:#231F1E;--muted:#6B6360;--line:#DCD5BF;--white:#fff;
  --green:#2F6B4F;--green-bg:#E7F2EB;--green-line:#BBD9C6;
  --amber:#8A5A0B;--amber-bg:#FCF1D8;--amber-line:#EED39A;
  --red:#A3302C;--red-bg:#FBE7E5;--red-line:#EFC2BE;
  --grey-bg:#EFEBDD;--radius:18px
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--ink);font:18px/1.55 Montserrat,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif}
.wrap{max-width:720px;margin:0 auto;padding:22px 16px 72px}
.hide{display:none !important}
a{color:var(--burgundy)}
h1{font-size:34px;line-height:1.12;margin:6px 0 6px;letter-spacing:-.015em}
h2{font-size:23px;line-height:1.2;margin:0 0 6px}
.lead{margin:0 0 22px;color:var(--muted);font-size:19px}
.eyebrow{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--burgundy);font-weight:700;margin:8px 0 0}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin:0 0 16px}
.sub{color:var(--muted);font-size:16px;margin:0}
.section-title{font-size:15px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:28px 0 12px}

/* Buttons: one big obvious one per card */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:14px 26px;border-radius:999px;border:0;
  background:var(--burgundy);color:#fff;font:inherit;font-size:19px;font-weight:700;text-decoration:none;cursor:pointer;width:100%;text-align:center;
  transition:transform .12s ease,background .12s ease}
.btn:hover{background:var(--burgundy-dark)}
.btn:active{transform:scale(.98)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn.ghost{background:transparent;color:var(--burgundy);border:2px solid var(--burgundy)}
.btn.ghost:hover{background:rgba(140,59,56,.07)}
.btn.green{background:var(--green)}
.btn svg{width:24px;height:24px;flex:none}
.link{background:none;border:0;color:var(--burgundy);font:inherit;font-size:16px;text-decoration:underline;cursor:pointer;padding:6px 0}
:focus-visible{outline:3px solid #F2C14E;outline-offset:2px}

/* Icons */
.ico{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* The big "where you stand" card */
.status{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start;border-radius:var(--radius);padding:22px;margin:0 0 16px;border:2px solid}
.status .badge{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;color:#fff}
.status .badge svg{width:32px;height:32px}
.status h2{font-size:27px;margin:2px 0 4px}
.status p{margin:0;font-size:17px}
.status .btn{margin-top:16px}
.status.green{background:var(--green-bg);border-color:var(--green-line)}.status.green .badge{background:var(--green)}.status.green h2{color:var(--green)}
.status.amber{background:var(--amber-bg);border-color:var(--amber-line)}.status.amber .badge{background:#C98A1B}.status.amber h2{color:var(--amber)}
.status.red{background:var(--red-bg);border-color:var(--red-line)}.status.red .badge{background:var(--red)}.status.red h2{color:var(--red)}
.status.grey{background:var(--grey-bg);border-color:var(--line)}.status.grey .badge{background:var(--muted)}
.status .actions{grid-column:1/-1}
@media (min-width:640px){.status .actions{grid-column:2}}

.bar{height:14px;border-radius:999px;background:rgba(35,31,30,.1);overflow:hidden;margin:14px 0 6px}
.bar i{display:block;height:100%;background:var(--green);border-radius:999px;transition:width .6s ease}
.bar-note{font-size:15px;color:var(--muted)}

/* Big tiles on the home page */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (min-width:640px){.tiles{grid-template-columns:repeat(3,1fr)}}
.tile{position:relative;display:flex;flex-direction:column;gap:10px;min-height:150px;padding:18px 16px;border-radius:var(--radius);background:var(--white);
  border:1px solid var(--line);text-decoration:none;color:var(--ink);transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.tile:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(35,31,30,.08);border-color:var(--burgundy)}
.tile:active{transform:scale(.98)}
/* iPhone-style app icons: bright gradient squircle, white glyph, glossy top and a soft glow in the icon's own colour */
.tile .ic{--c1:#B4564A;--c2:#8C3B38;position:relative;overflow:hidden;width:58px;height:58px;border-radius:30%;display:grid;place-items:center;color:#fff;
  background:linear-gradient(160deg,var(--c1),var(--c2));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 6px rgba(0,0,0,.12),0 6px 14px -4px color-mix(in srgb,var(--c2) 60%,transparent),0 2px 4px rgba(35,31,30,.08);
  transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .2s ease}
.tile .ic::before{content:"";position:absolute;inset:0 0 50% 0;background:linear-gradient(180deg,rgba(255,255,255,.32),rgba(255,255,255,0));pointer-events:none}
.tile .ic svg{position:relative;width:30px;height:30px;stroke-width:2.2;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.18))}
.tile:hover .ic{transform:scale(1.07) rotate(-2deg);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 6px rgba(0,0,0,.12),0 10px 22px -6px color-mix(in srgb,var(--c2) 70%,transparent),0 2px 4px rgba(35,31,30,.08)}
.tile.locked{background:#FBF9F2;border-style:dashed;pointer-events:none}
.tile.locked .ic{filter:grayscale(1);opacity:.4;box-shadow:none}
.tile.locked .lock{position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--grey-bg);color:var(--muted)}
.tile.locked .lock svg{width:16px;height:16px}
@media (prefers-reduced-motion:reduce){.tile .ic{transition:none}.tile:hover .ic{transform:none}}
.tile b{font-size:19px;line-height:1.2}
.tile span.t{font-size:15px;color:var(--muted);line-height:1.35}
.tile .pip{position:absolute;top:14px;right:14px;background:var(--burgundy);color:#fff;border-radius:999px;font-size:13px;font-weight:700;padding:2px 10px}
.tile .pip.red{background:var(--red)}

/* "How it works" — collapsible panel with numbered steps */
.how-box{margin:28px 0 0;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(35,31,30,.04);transition:box-shadow .2s ease,border-color .2s ease}
.how-box:hover{border-color:#cfc6ab}
.how-box[open]{box-shadow:0 10px 30px -18px rgba(35,31,30,.35)}
.how-box summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-radius:var(--radius);-webkit-tap-highlight-color:transparent}
.how-box summary::-webkit-details-marker{display:none}
.how-box summary:focus-visible{outline:3px solid rgba(140,59,56,.35);outline-offset:2px}
.how-sum{display:flex;flex-direction:column;gap:2px}
.how-sum b{font-size:18px;letter-spacing:-.005em}
.how-sum span{font-size:15px;color:var(--muted)}
.how-chev{flex:none;width:34px;height:34px;border-radius:50%;background:var(--cream);position:relative;transition:transform .25s ease,background .2s ease}
.how-chev::before{content:"";position:absolute;left:50%;top:45%;width:8px;height:8px;border-right:2px solid var(--burgundy);border-bottom:2px solid var(--burgundy);transform:translate(-50%,-50%) rotate(45deg)}
.how-box[open] .how-chev{transform:rotate(180deg)}
.how-box summary:hover .how-chev{background:#efe8d0}
.how{display:grid;gap:0;counter-reset:how;padding:0 22px 8px;margin:0;border-top:1px solid var(--line)}
.how-box[open] .how{animation:how-in .25s ease}
@keyframes how-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.how li{list-style:none;counter-increment:how;position:relative;padding:16px 0 16px 50px;font-size:16px;line-height:1.45;color:var(--muted);border-bottom:1px solid #eee8d6}
.how li:last-child{border-bottom:0}
.how li::before{content:counter(how);position:absolute;left:0;top:16px;width:32px;height:32px;border-radius:50%;background:var(--burgundy);color:#fff;font-weight:700;font-size:15px;display:grid;place-items:center;box-shadow:0 4px 10px -4px rgba(140,59,56,.6)}
.how li b{display:block;font-size:17px;color:var(--ink);margin-bottom:2px}
@media (min-width:700px){
  .how{grid-template-columns:repeat(2,1fr);column-gap:32px}
  .how li:nth-last-child(2):nth-child(odd){border-bottom:0}
}
@media (prefers-reduced-motion:reduce){.how-chev,.how-box{transition:none}.how-box[open] .how{animation:none}}

/* Choosing how to pay */
.choices{display:grid;gap:14px}
@media (min-width:700px){.choices{grid-template-columns:1fr 1fr}}
.choice{background:var(--white);border:2px solid var(--line);border-radius:var(--radius);padding:22px;display:flex;flex-direction:column;gap:10px}
.choice.picked{border-color:var(--burgundy);box-shadow:0 0 0 4px rgba(140,59,56,.12)}
.choice .ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--cream);color:var(--burgundy)}
.choice .ic svg{width:28px;height:28px}
.choice h3{font-size:22px;margin:4px 0 0}
.choice .price{font-size:32px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.choice .price small{font-size:17px;font-weight:600;color:var(--muted);letter-spacing:0}
.choice ol{margin:4px 0 6px;padding-left:22px;font-size:16px;color:var(--ink)}
.choice ol li{margin:3px 0}
.choice .btn{margin-top:auto}
.choice .soon{font-size:15px;color:var(--muted);background:var(--grey-bg);border-radius:12px;padding:12px}
.tagline{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 10px;border-radius:999px;background:var(--grey-bg);color:var(--muted);align-self:flex-start}
.tagline.on{background:var(--burgundy);color:#fff}

/* Payment plan rows */
.plan-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.plan-row:last-child{border-bottom:0}
.plan-row .n{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:700;font-size:15px;background:var(--grey-bg);color:var(--muted)}
.plan-row .n svg{width:20px;height:20px}
.plan-row .m{flex:1;min-width:0}
.plan-row .m b{display:block;font-size:18px}
.plan-row .m span{font-size:15px;color:var(--muted)}
.pill{font-size:14px;font-weight:700;border-radius:999px;padding:4px 12px;white-space:nowrap}
.pill.paid{background:var(--green-bg);color:var(--green)}
.pill.processing{background:#E6EEF6;color:#2C5577}
.pill.due{background:var(--amber-bg);color:var(--amber)}
.pill.late,.pill.failed{background:var(--red-bg);color:var(--red)}
.pill.upcoming{background:var(--grey-bg);color:var(--muted)}
.plan-row.paid .n{background:var(--green);color:#fff}
.plan-row.late .n{background:var(--red);color:#fff}
.plan-row.due .n{background:#C98A1B;color:#fff}

.toast{border-radius:14px;padding:14px 16px;margin:0 0 16px;font-size:17px;font-weight:600}
.toast.good{background:var(--green-bg);color:var(--green);border:1px solid var(--green-line)}
.toast.bad{background:var(--red-bg);color:var(--red);border:1px solid var(--red-line)}
.toast.info{background:var(--white);border:1px solid var(--line)}

.skel{background:linear-gradient(90deg,#ece6d2 25%,#f6f2e4 50%,#ece6d2 75%);background-size:200% 100%;animation:sk 1.2s linear infinite;border-radius:var(--radius);min-height:120px;margin:0 0 16px}
@keyframes sk{to{background-position:-200% 0}}
.rise{animation:rise .35s ease both}
.rise:nth-child(2){animation-delay:.04s}.rise:nth-child(3){animation-delay:.08s}.rise:nth-child(4){animation-delay:.12s}.rise:nth-child(5){animation-delay:.16s}.rise:nth-child(6){animation-delay:.2s}.rise:nth-child(7){animation-delay:.24s}.rise:nth-child(8){animation-delay:.28s}.rise:nth-child(9){animation-delay:.32s}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){*{animation:none !important;transition:none !important}}

footer.foot{margin-top:32px;color:var(--muted);font-size:15px;text-align:center}
footer.foot a{color:var(--burgundy)}
@media (max-width:380px){h1{font-size:28px}.tile{min-height:132px;padding:14px 12px}.tile b{font-size:17px}}
.shops{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:-4px 0 18px;font-size:16px;color:var(--muted)}
.shops b{font-weight:600}
.shops span{background:var(--burgundy);color:#fff;font-weight:700;border-radius:999px;padding:5px 14px}
.shops span.applied{background:#fff;color:var(--burgundy);border:2px dashed var(--burgundy)}
.shops i{font-style:normal}
