/* Account pages (subscription service): sign-up, welcome, Mijn abonnement,
   messages. Served at /css/account.css; in dev shadow-cljs swaps it in place
   on save (dev/repl.clj). Colours and type follow gader-website
   (tailwind.config.js); keep them in step. */

@font-face { font-family: "Ubuntu"; src: url("/fonts/Ubuntu-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("/fonts/Ubuntu-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("/fonts/Ubuntu-Bold.ttf"); font-weight: 700; font-display: swap; }

:root {
  --teal: #279989;
  --teal-light: #54aea2;
  --teal-lighter: #84c5bc;
  --teal-pale: #d1ebe6;
  --mint: #dff0ed;
  --teal-white: #e8f5f1;
  --teal-dark: #285752;
  --coral: #ffa089;
  --coral-light: #f9ac93;
  --coral-dark: #e87765;
  --ink: #293133;
  --muted: #5b6b6e;
  --line: #c9dcd8;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Ubuntu", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--teal-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

/* one frame width on every page (header, footer, main), so the logo never
   moves; a form keeps its narrow card within it (main.wrap > .card) */
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* frame */
/* header and footer as gader.io's hero: a dark teal gradient (sampled from
   its background image), the logo in white and teal, the button in teal */
header.site, footer.site { background: #265f58 linear-gradient(100deg, #265f58 0%, #277369 55%, #278679 100%); }
header.site { padding: 1.1rem 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header.site .brand { display: block; line-height: 0; }
header.site .brand svg { height: 32px; width: auto; }
header.site .account-link {
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
header.site .account-link:hover { background: var(--teal-dark); color: #fff; }
/* on the account page itself: there, not a way to it */
header.site .account-link[aria-current] { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
/* a short message after a redirect ("you already have a subscription"): over
   the page, gone after six seconds, paused while the pointer is on it */
.toast {
  position: fixed; z-index: 10;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 2rem);
  margin: 0; padding: .8rem 1.2rem;
  border-radius: var(--radius);
  background: var(--teal-dark); color: #fff;
  box-shadow: 0 8px 24px rgba(40, 87, 82, .3);
  animation: toast 6s ease-in forwards;
}
.toast:hover { animation-play-state: paused; }
@keyframes toast { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .toast { animation-timing-function: steps(1, end); } }
@media (min-width: 640px) {
  header.site .brand svg { height: 41px; }
  header.site .account-link { font-size: 1.05rem; padding: .65rem 1.4rem; }
}
main.wrap { flex: 1; padding-top: 2rem; padding-bottom: 2rem; }
main.wrap > .card { max-width: 38rem; margin: 0 auto; }
.card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  box-shadow: 0 1px 2px rgba(41, 49, 51, .06), 0 8px 24px rgba(40, 87, 82, .08);
}
footer.site { padding: 1.25rem 0; font-size: .875rem; color: #fff; text-align: center; }
footer.site a { color: #fff; }
footer.site a:hover { color: var(--teal-white); }

/* type */
h1 { font-size: 1.75rem; font-weight: 500; line-height: 1.25; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }
small { color: var(--muted); font-size: .875rem; }
strong { font-weight: 500; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
  background: var(--teal-white);
  padding: .15rem .4rem;
  border-radius: 4px;
  word-break: break-all;
}

/* buttons */
.btn {
  display: inline-block;
  margin-top: .5rem;
  padding: .75rem 1.5rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  min-height: 3rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.alt { background: #fff; color: var(--teal-dark); border-color: var(--line); }
.btn.alt:hover { background: var(--teal-white); border-color: var(--teal-light); color: var(--teal-dark); }

/* form */
form { margin-top: 1rem; }
label { display: block; margin-top: 1rem; margin-bottom: .3rem; font-weight: 500; }
input[type=text], input[type=email] {
  width: 100%;
  height: 3rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input[type=text]:focus, input[type=email]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-pale);
}
input[readonly] { background: var(--teal-white); color: var(--muted); }
input[type=radio], input[type=checkbox] { accent-color: var(--teal); width: 1.05rem; height: 1.05rem; vertical-align: -2px; }
/* two fields side by side: the labels share a line and the inputs the next,
   so an error under one label does not push its input below its neighbour */
.row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.row > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }
.err { display: block; color: var(--coral-dark); font-weight: 400; font-size: .9rem; }
.check label { font-weight: 400; }
form .btn[type=submit] { margin-top: 1.5rem; }

/* notes */
.note {
  background: var(--mint);
  border-left: 4px solid var(--teal);
  padding: .8rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

@media (max-width: 480px) {
  .card { padding: 1.5rem 1.25rem; border-radius: 12px; }
  main.wrap { padding-top: 1rem; }
  h1 { font-size: 1.5rem; }
  .row { grid-template-columns: 1fr; }
}

/* sign-up */
.social { display: flex; gap: .75rem; margin-top: .75rem; }
.divider.lead { margin-top: 1.25rem; }
.social .btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 0; padding: .75rem 1rem; white-space: nowrap; }
.divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 0; color: var(--muted); font-size: .9rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.hint { display: block; margin-top: .35rem; line-height: 1.45; }
/* the plan the form starts */
.plan {
  margin-top: 1.25rem;
  padding: .9rem 1rem;
  border: 1px solid var(--teal-lighter);
  border-radius: var(--radius);
  background: var(--teal-white);
}
.plan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.plan-price { color: var(--teal-dark); font-weight: 500; white-space: nowrap; }
.plan p { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }
.plan + .note { margin-top: 1rem; }
/* a paid plan's automatic renewal, at the price: bold and framed, as the
   law asks for consumers (KAN-1278), in the notes' style so it reads as
   text, not as a button */
.plan .renewal {
  margin-top: .6rem;
  padding: .45rem .75rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
}
/* the payment page's way back to the details, above its title */
a.back { display: inline-block; margin-bottom: .75rem; font-size: .95rem; text-decoration: none; }
a.back::before { content: "← "; }
a.back:hover { text-decoration: underline; }
/* Stripe's payment form (pay.js mounts it), on the card's white */
#checkout { margin-top: 1.5rem; min-height: 22rem; }
#checkout .note { margin-top: 0; }
.choices { display: flex; gap: .75rem; }
.choices label {
  flex: 1;
  display: flex; align-items: center; gap: .55rem;
  margin: 0;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 400;
  cursor: pointer;
}
.choices label:has(input:checked) { border-color: var(--teal); background: var(--teal-white); }
/* an organisation's details and address only for an organisation (shown anyway after an error on them) */
.org {
  margin-top: 1rem;
  padding: .25rem 1rem 1rem;
  border-radius: var(--radius);
  background: var(--teal-white);
}
form:has(input[name=kind][value=particulier]:checked) .org:not(:has(.err)) { display: none; }
.check { margin-top: 1.25rem; }
.check label { display: flex; gap: .55rem; align-items: flex-start; margin-top: .5rem; }
.check input { margin-top: .25rem; flex: none; }
.after { margin: 1.25rem 0 0; color: var(--muted); }
/* a field with an error */
label:has(.err) + input { border-color: var(--coral-dark); }
label:has(.err) + input:focus { box-shadow: 0 0 0 3px #fde3dc; }

@media (max-width: 480px) {
  .social { flex-direction: column; }
  form .btn[type=submit] { width: 100%; }
}

h2 { font-size: 1.2rem; font-weight: 500; margin: 0 0 .75rem; }
h3 { font-size: 1rem; font-weight: 500; margin: 0 0 .4rem; }
.note.warn { background: #fff1ec; border-left-color: var(--coral); }
/* an unpaid renewal (KAN-1337): the text, then the one button */
.note.pay { margin: 0 0 1.5rem; }
.note.pay p { margin: 0 0 .75rem; }
.note.pay .btn { margin-top: 0; }
/* a class's display would otherwise win over the attribute (copy buttons) */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* two columns of cards (the connect guide, Mijn abonnement with a plan):
   the main one, and beside it "Je koppelingen" (and help) */
.cols { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: flex-start; }
.cols > .main, .guide .steps { flex: 999 1 34rem; min-width: 0; }
.side { flex: 1 1 17rem; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.cols .card, .guide .card { padding: 1.75rem; }
.side .btn { margin-top: 1.1rem; }
.side .to-steps { display: inline-block; margin-top: 1rem; }

/* the connect guide, /connect and /welcome (KAN-1294) */
.guide .intro { margin-bottom: 1.75rem; }
.guide .lead { font-size: 1.1rem; color: var(--muted); max-width: 44rem; margin: 0; }
.guide .steps { display: flex; flex-direction: column; gap: 1.25rem; }
.guide .card > :last-child, .guide .card p:last-child { margin-bottom: 0; }
.guide ol { margin: 0; padding-left: 1.4rem; }
.guide ol li + li { margin-top: .5rem; }
/* a step: its number filled while it is the one to do, an outline after it, a tick once done */
.step-head { display: flex; align-items: center; gap: .9rem; }
.step-head h2 { flex: 1; margin: 0; font-size: 1.3rem; }
.guide .step-head ~ * { margin-top: 1rem; }
.badge {
  width: 2.25rem; height: 2.25rem; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  background: var(--teal); color: #fff;
}
.step.next .badge { background: #fff; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.step.done .badge { background: var(--mint); color: var(--teal); }
.step.done .step-head h2 { color: var(--muted); }
.ready { color: var(--teal-dark); font-weight: 500; font-size: .9rem; }
/* a connected app's card: step 3 is what is left */
.guide .connected .step.current { box-shadow: inset 0 0 0 2px var(--teal), 0 8px 24px rgba(40, 87, 82, .08); }
/* the app's card switches the steps (KAN-1375): each card has its own
   three, .with-claude is on both Claude cards; without :has() all show */
.apps { margin: 0; padding: 0; border: 0; }
.apps legend { padding: 0; margin-bottom: .6rem; font-weight: 500; }
.apps .choices { flex-wrap: wrap; }
.apps .choices label { flex: 1 1 9rem; align-items: flex-start; padding: .9rem 1rem; }
.apps .choices input { margin-top: .2rem; flex-shrink: 0; }
.apps .choices label > span { display: flex; flex-direction: column; gap: .15rem; }
.apps .choices small { color: var(--muted); }
.apps .hint { display: block; margin-top: .6rem; }
.guide .steps > [class^=for-] { display: flex; flex-direction: column; gap: 1.25rem; }
.guide:has(input[name=app][value=claude]:checked) :is(.for-claude-team, .for-chatgpt, .for-copilot) { display: none; }
.guide:has(input[name=app][value=claude-team]:checked) :is(.for-claude, .for-chatgpt, .for-copilot) { display: none; }
.guide:has(input[name=app][value=chatgpt]:checked) :is(.for-claude, .for-claude-team, .for-copilot, .with-claude) { display: none; }
.guide:has(input[name=app][value=copilot]:checked) :is(.for-claude, .for-claude-team, .for-chatgpt, .with-claude) { display: none; }
.btn.install { margin: 0 0 1.25rem; }
/* what Claude shows after the button: its dialog, sketched, the URL marked */
.sketch {
  display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem; align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--teal-white);
}
.sketch > div:last-child { flex: 1 1 15rem; min-width: 0; }
.sketch p { font-size: .95rem; }
.sketch code { word-break: normal; overflow-wrap: anywhere; }
.dialog {
  flex: 0 1 16rem; min-width: 0;
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
  font-size: .8rem; line-height: 1.4;
}
.dialog .flag { padding: .3rem .5rem; border-radius: 6px; background: #fdf0d5; color: #7a5200; }
.dialog .label { margin-top: .25rem; color: var(--muted); }
.dialog .field { padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.dialog .field.marked { border: 2px solid var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dialog .add { align-self: flex-end; margin-top: .4rem; padding: .3rem .8rem; border-radius: 6px; background: var(--ink); color: #fff; }
/* the way by hand, folded */
.manual { margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.manual summary { min-height: 2.75rem; display: flex; align-items: center; color: var(--teal); font-weight: 500; cursor: pointer; }
.manual summary:hover { color: var(--teal-dark); }
.manual ol { margin-top: .5rem; }
.copy-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.copy-row input { flex: 1 1 15rem; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.btn.copy { margin-top: 0; min-height: 3rem; padding: .6rem 1.1rem; font-size: 1rem; }
/* the message for the admin, to select or copy */
.message { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--teal-white); }
.message label { margin: 0; }
.message textarea {
  display: block; width: 100%; margin: .5rem 0 .75rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  font: inherit; font-size: .95rem; line-height: 1.5;
  resize: vertical;
}
/* the admin page for Microsoft 365 Copilot (KAN-1375): Microsoft's field,
   then the value to type or copy */
.values { width: 100%; margin-top: 1rem; border-collapse: collapse; }
.values th { width: 13rem; padding: .7rem 1rem .7rem 0; text-align: left; vertical-align: top; font-weight: 500; }
.values td { padding: .55rem 0; vertical-align: top; }
.values tr + tr { border-top: 1px solid var(--line); }
.values td > strong { display: block; padding-top: .15rem; font-weight: 500; }
.values td small { display: block; margin-top: .2rem; color: var(--muted); }
.values .copy-row { margin-top: 0; }
/* a longer value: looks like the read-only fields beside it */
.values .copy-row textarea {
  flex: 1 1 15rem; min-width: 0;
  padding: .65rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--teal-white); color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; line-height: 1.5;
  resize: vertical;
  field-sizing: content; /* as tall as its text where supported, else its rows */
}
.values .copy-row textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-pale); }
.copilot-admin .card ul { margin: 0; padding-left: 1.4rem; }
.copilot-admin .card ul li + li { margin-top: .5rem; }
@media (max-width: 640px) {
  .values th, .values td { display: block; width: auto; padding: .5rem 0 0; }
  .values td { padding-bottom: .7rem; }
}
/* "Je koppelingen" */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks li > span:last-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.tick {
  width: 1.5rem; height: 1.5rem; flex: none; margin-top: .05rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--teal); color: #fff;
}
.checks li.open .tick { background: none; border: 2px dashed var(--teal-lighter); }
.help .problem + .problem { margin-top: .9rem; }
.help .problem p { margin: .15rem 0 0; font-size: .95rem; color: var(--muted); }
/* on a phone, before the connection: the short page that sends to a computer
   (?full=1 drops phone-first) */
.phone { display: none; }
.phone .card { margin: 1.25rem 0 1.5rem; }
.phone .anyway { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .5rem; }
@media (max-width: 40rem) and (pointer: coarse) {
  .guide.phone-first .phone { display: block; }
  .guide.phone-first .desk { display: none; }
}

/* Mijn abonnement */
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.logout { font-size: .95rem; white-space: nowrap; }
.facts { margin: .5rem 0 0; }
.facts > div { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--teal-pale); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { width: 8rem; flex: none; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: .1rem .65rem; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.pill.ok { background: var(--mint); color: var(--teal-dark); }
.pill.warn { background: #fde3dc; color: #a2402f; }
.pill.off, .pill.neutral { background: #eef1f1; color: var(--muted); }
.cancel { display: block; margin-top: .3rem; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* Mijn abonnement: moving up, changing plans and cancelling (KAN-1349) */
/* the page in columns: a stack of cards, and "Je koppelingen" beside it */
.acct { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: flex-start; }
.acct > .stack { flex: 999 1 34rem; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.acct.solo > .stack { max-width: 46rem; margin: 0 auto; }
.acct .card { padding: 1.75rem; }
.stack > .after { margin-top: 0; }
.card-sub { color: var(--muted); margin: 0; }
.card > .note { margin: 1rem 0 0; }
/* a change planned for the period end: amber, next to "Actief" */
.pill.sched { background: #fdf0d5; color: #6b4800; }
.pill + .pill { margin-left: .4rem; }
/* the dearer plan on a card of its own, in words, never its limits */
.card.pitch { border-top: 4px solid var(--teal); }
.eyebrow { display: block; font-size: .8rem; color: var(--muted); }
.pitch h2 { font-size: 1.5rem; margin: .1rem 0 0; line-height: 1.25; }
.tagline { margin: .2rem 0 1rem; color: var(--teal-dark); font-weight: 500; }
.price-line { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.amount { font-size: 1.9rem; font-weight: 500; line-height: 1.1; color: var(--teal-dark); }
.per { font-size: .9rem; color: var(--muted); }
.feats { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.feats li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.feats .tick { width: 1.2rem; height: 1.2rem; margin-top: .1rem; }
:is(.pitch, .side) .foot { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; margin-top: 1.25rem; }
:is(.pitch, .side) .foot .btn { margin-top: 0; }
:is(.pitch, .side) .foot small { line-height: 1.45; }
/* line icons drawn in the text colour */
.ico { flex: none; }
.ico rect, .ico path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* a planned change, and the way back from it */
.sched-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
  margin-top: 1.25rem; padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fdf0d5; color: #6b4800;
}
.sched-box .msg { display: flex; gap: .7rem; align-items: flex-start; min-width: 0; flex: 1 1 18rem; }
.sched-box strong { display: block; }
.sched-box form { margin: 0; }
.sched-box .btn, .sched-box form .btn[type=submit] { margin: 0; min-height: 2.75rem; padding: .55rem 1.1rem; font-size: 1rem; }
/* a cancellation and the way back from it, under the status */
.resume { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .9rem; }
/* the forms' submit margin (form .btn[type=submit]) is no use in a row */
.resume .btn, form.resume .btn[type=submit] { margin: 0; }
.resume small { font-weight: 400; }
/* cancelling, quiet at the end of the page */
.end-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
.end-row > div { flex: 1 1 20rem; min-width: 0; }
.end-row strong { display: block; }
.end-row small { display: block; line-height: 1.45; margin-top: .15rem; }
.end-row .btn { margin: 0; }
/* a cheaper plan and cancelling, one row each */
.quiet .end-row + .end-row { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--teal-pale); }
/* the one button that ends something */
.btn.danger { background: #a2402f; border-color: #a2402f; color: #fff; }
.btn.danger:hover { background: #7f3124; border-color: #7f3124; color: #fff; }
.btn:disabled, .btn:disabled:hover { background: #eef1f1; border-color: #dfe5e4; color: #6f7d80; cursor: not-allowed; }
/* the pages that confirm a change */
.lead-s { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.actions .btn, .actions form { margin: 0; }
/* also a submit button in .actions inside a form (the cancel page) */
.actions form .btn, form .actions .btn[type=submit] { margin: 0; }
/* the current plan until the date, the new one from then */
.timeline { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timeline li { position: relative; padding: 1rem 1rem 0 0; border-top: 6px solid var(--teal); }
.timeline li.next { border-top-color: var(--teal-lighter); }
.timeline li::before {
  content: ""; position: absolute; top: -12px; left: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--teal);
}
.timeline li.next::before { border-color: var(--teal-lighter); }
.timeline .when { display: block; font-size: .85rem; color: var(--muted); }
.timeline strong { display: block; font-size: 1.1rem; }
.points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.points li { position: relative; padding-left: 1.4rem; }
.points li::before { content: ""; position: absolute; left: .2rem; top: .6rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--teal); }
/* the one alternative when cancelling a paid plan */
.alt-offer { margin-top: 1.5rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--teal-white); border: 1px solid var(--teal-pale); }
.alt-offer h2 { font-size: 1.05rem; margin: 0 0 .25rem; }
.alt-offer p { margin: 0; font-size: .95rem; color: var(--muted); }
.alt-offer .btn { margin-top: .85rem; min-height: 2.75rem; padding: .55rem 1.1rem; font-size: 1rem; }
/* why, never required */
.reasons { margin: 1.75rem 0 0; padding: 0; border: 0; min-width: 0; }
.reasons legend { padding: 0; margin-bottom: .6rem; font-weight: 500; }
.reasons .opt { font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: .35rem; }
.reasons .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.reasons .choices label { font-size: .95rem; padding: .6rem .75rem; }
.reasons textarea {
  display: block; width: 100%; min-height: 5rem;
  padding: .65rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: #fff; line-height: 1.5; resize: vertical;
}
.reasons textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-pale); }

@media (max-width: 640px) {
  .reasons .choices { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li.next { margin-top: 1.25rem; }
  .actions .btn, .actions form, .end-row .btn, :is(.pitch, .side) .foot .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .acct .card { padding: 1.25rem; }
  /* two pills wrap under each other, left aligned */
  .facts dd .pill + .pill { margin-left: 0; }
  .facts > div { flex-direction: column; gap: .1rem; }
  .facts dt { width: auto; font-size: .9rem; }
  .cols .card, .guide .card { padding: 1.25rem; }
  .side .btn { display: block; text-align: center; }
  .btn.install { display: block; text-align: center; }
  .step-head h2 { font-size: 1.15rem; }
}
