/* Stoa marketing site
   Layout: a white ground with a centred hero, ringed by app screens floating on
   blurred colour. Below it, wide rounded cards, each tinted with its own hue. */

:root {
  --paper: #f7f7f4;
  --paper-2: #efefea;
  --card: #ffffff;
  --ink: #111317;
  --ink-2: #4d535d;
  --ink-3: #7b818b;
  --line: #e4e4de;

  /* The spectrum. No single brand colour, so any organization can see itself here. */
  --sky: #2f7bf6;   --sky-t: #e6f0ff;
  --coral: #ee5148; --coral-t: #ffe9e6;
  --sun: #f4a31c;   --sun-t: #fff1d6;
  --leaf: #2e9d68;  --leaf-t: #e1f5ea;
  --iris: #7557ee;  --iris-t: #ece8ff;
  --teal: #10a3a3;  --teal-t: #ddf5f4;
  --rose: #e5508f;  --rose-t: #ffe6f0;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-card: 28px;
  --shadow: 0 1px 2px rgb(17 19 23 / .04), 0 12px 32px -12px rgb(17 19 23 / .12);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 96px; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Buttons, chips ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 .95rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2e36; }
.btn-soft { background: #e9e9e4; color: var(--ink); }
.btn-soft:hover { background: #dedfd8; }
.btn-sm { padding: .7em 1.1em; font-size: .875rem; }

.chip { display: inline-flex; align-items: center; padding: .3em .7em; border-radius: 999px; font: 600 .72em/1.2 var(--body); white-space: nowrap; }
.chip-paid { background: #ffd84a; color: #2b2300; }
.chip-glass { background: rgb(255 255 255 / .28); color: #fff; }
.chip-ink { background: var(--ink); color: #fff; font-size: .72rem; }
.chip-accent { background: var(--accent); color: var(--accent-ink); font-size: .72rem; }

.eyebrow { display: block; margin-bottom: 14px; font: 600 .78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.note-sm { font-size: .85rem; color: var(--ink-3); }
.center { text-align: center; }

.ticks { display: grid; gap: .55em; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: .95em; height: .95em; border-radius: 50%;
  background: var(--hue, var(--ink)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 6.3l1.9 1.9 3.8-4.2' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ── Nav ── */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(12px, 3vw, 36px);
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgb(255 255 255 / .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 1px 2px rgb(17 19 23 / .06), 0 10px 30px -10px rgb(17 19 23 / .18);
  max-width: calc(100% - 24px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 1.3rem/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink-2); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }

/* ── Hero ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(960px, min(100svh, 1060px));
  display: grid; place-items: center;
  padding: 140px var(--gutter) 60px;
}
.hero-copy { position: relative; z-index: 2; width: min(600px, 100%); text-align: center; padding-top: 120px; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); font-weight: 700; }
.hero-copy p { margin: 20px auto 0; max-width: 31em; font-size: clamp(1rem, 1.25vw, 1.13rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }

.tiles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tile {
  --tw: clamp(200px, 19.5vw, 312px);
  position: absolute; width: var(--tw);
  font-size: clamp(10.5px, .93vw, 14.8px); line-height: 1.35; color: #fff;
  transform: translate3d(calc(var(--px, 0) * var(--depth, 0) * 1px), calc(var(--py, 0) * var(--depth, 0) * 1px), 0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.tile-in { position: relative; padding: 1.5em; animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards, drift 11s ease-in-out infinite alternate; }
/* The blurred colour behind each screen */
.tile-in::before {
  content: ""; position: absolute; inset: -8%; z-index: -1; border-radius: 34% 30% 32% 36% / 30% 34% 30% 34%;
  background:
    linear-gradient(104deg, transparent 0 18%, rgb(255 255 255 / .22) 26%, transparent 38% 58%, rgb(0 0 0 / .14) 70%, transparent 84%),
    radial-gradient(120% 90% at 18% 12%, var(--c2), transparent 60%),
    radial-gradient(110% 100% at 88% 92%, var(--c3), transparent 62%),
    var(--c1);
  filter: blur(18px) saturate(1.1);
}
.t1 { left: 1.5%; top: 15%; }
.t2 { left: 50%; top: 92px; margin-left: calc(var(--tw) / -2); }
.t3 { right: 2.5%; top: 12%; }
.t4 { left: -1%; top: 48%; --tw: clamp(180px, 17vw, 272px); }
.t5 { right: -1%; top: 46%; --tw: clamp(180px, 17.5vw, 278px); }
.t6 { left: 1.5%; bottom: 10%; --tw: 27em; }
.t7 { left: 27%; bottom: 2.5%; }
.t8 { right: 8%; bottom: 4%; }
.t1 .tile-in { animation-delay: .05s, -2s; } .t2 .tile-in { animation-delay: 0s, -5s; }
.t3 .tile-in { animation-delay: .12s, -8s; } .t4 .tile-in { animation-delay: .2s, -3s; }
.t5 .tile-in { animation-delay: .26s, -6s; } .t6 .tile-in { animation-delay: .32s, -9s; }
.t7 .tile-in { animation-delay: .38s, -1s; } .t8 .tile-in { animation-delay: .44s, -4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.94); } }
@keyframes drift { from { translate: 0 -7px; } to { translate: 0 7px; } }

.glass {
  padding: 1.15em; border-radius: 1.4em;
  background: rgb(255 255 255 / .17); border: 1px solid rgb(255 255 255 / .42);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -14px rgb(0 0 0 / .35);
  display: grid; gap: .8em;
}
.g-head { display: flex; justify-content: space-between; align-items: center; gap: .6em; font-weight: 600; }
.g-dim { font-weight: 500; opacity: .8; font-size: .9em; }
.g-foot { font-size: .9em; opacity: .92; }
.g-rows { display: grid; gap: .7em; }
.g-rows li { display: flex; align-items: center; gap: .7em; }
.g-rows span { display: grid; min-width: 0; }
.g-rows b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-rows small { font-size: .85em; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { flex: none; width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .9); color: #17433a; font: 700 .78em/1 var(--body); font-style: normal; }
.g-btn { padding: .8em; border-radius: .9em; background: #121a17; color: #fff; text-align: center; font-weight: 600; }
.g-btn.ghost { background: rgb(255 255 255 / .2); border: 1px solid rgb(255 255 255 / .3); font-weight: 500; text-align: left; padding: .7em .9em; }
.solid { background: rgb(255 255 255 / .94); color: var(--ink); border-radius: 1em; padding: .5em; display: grid; gap: .1em; }
.solid.note { padding: .9em; gap: .3em; }
.solid.note p { color: var(--ink-2); font-size: .9em; }
.opt { display: flex; align-items: center; gap: .65em; padding: .55em .6em; border-radius: .7em; font-weight: 500; }
.opt i { width: 1.15em; height: 1.15em; border-radius: 50%; border: 1.5px solid #c6c9cf; flex: none; }
.opt.on { background: #fdeceb; }
.opt.on i { border: .36em solid var(--coral); }
.big { font: 700 2.5em/1 var(--display); letter-spacing: -.03em; }
.code { font: 800 2.6em/1 var(--display); letter-spacing: .08em; text-align: center; padding: .15em 0; }
.bar { height: .5em; border-radius: 99px; background: rgb(255 255 255 / .3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: #fff; }
.g-list { display: grid; gap: .35em; font-size: .92em; }
.g-list li { display: flex; justify-content: space-between; }
.g-list span { opacity: .85; }
.push { display: flex; justify-content: space-between; align-items: center; font-size: .9em; }
.push-t { font-weight: 600; font-size: 1.05em; margin-top: -.3em; }
.push-b { font-size: .9em; opacity: .9; margin-top: -.5em; }
.push.rule { justify-content: flex-start; gap: .4em; flex-wrap: wrap; }
.push.rule span { padding: .3em .65em; border-radius: 99px; background: rgb(255 255 255 / .24); font-weight: 500; }
.rsvp { display: flex; gap: .4em; }
.rsvp span { flex: 1; text-align: center; padding: .6em 0; border-radius: 99px; background: rgb(255 255 255 / .22); border: 1px solid rgb(255 255 255 / .35); font-weight: 600; }
.rsvp .on { background: #fff; color: var(--on, #174a9c); border-color: #fff; }

.phone { background: #fff; color: var(--ink); border-radius: 2em 2em 1.4em 1.4em; padding: .9em 1em 1.1em; box-shadow: 0 0 0 .35em rgb(255 255 255 / .35), 0 18px 40px -16px rgb(0 0 0 / .4); display: grid; gap: .75em; }
.ph-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .85em; padding-inline: .3em; }
.ph-dots { display: flex; gap: .22em; align-items: flex-end; }
.ph-dots i { width: .28em; background: var(--ink); border-radius: 1px; }
.ph-dots i:nth-child(1) { height: .45em; } .ph-dots i:nth-child(2) { height: .65em; } .ph-dots i:nth-child(3) { height: .85em; }
.ph-title { font: 700 1.25em/1 var(--display); }
.dues-card { border-radius: 1.1em; padding: 1em; color: #fff; background: linear-gradient(135deg, #1657d6, #2f8bf6 60%, #35b6c9); display: grid; gap: .35em; justify-items: start; }
.dues-card small { opacity: .85; font-weight: 500; }
.dues-amt { font: 700 2.5em/1 var(--display); letter-spacing: -.03em; }
.dues-amt span { opacity: .6; }
.seg { display: flex; gap: .3em; }
.seg span { flex: 1; text-align: center; padding: .55em 0; border-radius: 99px; background: #f1f2f4; font-weight: 600; font-size: .85em; color: var(--ink-3); }
.seg .on { background: var(--ink); color: #fff; }
.ph-row { display: flex; justify-content: space-between; font-size: .9em; color: var(--ink-2); padding-inline: .2em; }
.ph-row b { color: var(--ink); }

/* ── Built for ── */
.built { padding-block: 34px 10px; text-align: center; }
.built p { color: var(--ink-3); font-size: .93rem; }
.built ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.built li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; font-size: .93rem; }
.built li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--d); }

/* ── Statement ── */
.replace { padding-block: clamp(70px, 10vw, 130px); }
.statement { max-width: 20em; margin-inline: auto; text-align: center; font-size: clamp(1.7rem, 3.6vw, 2.9rem); font-weight: 600; line-height: 1.16; }
.statement s { color: var(--ink-3); text-decoration-thickness: .07em; text-decoration-color: var(--coral); }

/* ── Section heads ── */
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head h2, .custom-copy h2, .case-head h2, .demo-copy h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
.sec-head p { margin-top: 14px; font-size: 1.08rem; color: var(--ink-2); max-width: 34em; }

/* ── Bento ── */
.product { padding-bottom: clamp(70px, 10vw, 130px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card { grid-column: span 12; min-width: 0; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-card); background: var(--tint); display: grid; gap: 24px; align-content: space-between; }
.card:not(:has(.mini)) { align-content: start; gap: 0; }
.card h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-2); max-width: 36em; }
.card .ticks { margin-top: 16px; font-size: .95rem; }
@media (min-width: 900px) {
  .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
}
.mini { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); font-size: .85rem; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.board .col { display: grid; gap: 7px; align-content: start; min-width: 0; }
.board small { font-weight: 600; color: var(--ink-3); font-size: .75rem; }
.board em { font-style: normal; font-weight: 600; padding-top: 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.p { padding: 7px 10px; border-radius: 10px; border: 1.5px solid; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p.ok { border-color: var(--leaf); background: var(--leaf-t); }
.p.part { border-color: var(--sun); background: var(--sun-t); }
.p.none { border-color: var(--coral); background: var(--coral-t); }
.tally { display: grid; gap: 10px; }
.tally-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.tally-head span { color: var(--ink-3); }
.tally-row { display: grid; grid-template-columns: 3.6em 1fr 2em; align-items: center; gap: 10px; }
.tally-row span { color: var(--ink-2); }
.tally-row i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--hue) var(--w), var(--paper-2) var(--w)); }
.tally-row b { text-align: right; font-variant-numeric: tabular-nums; }
.stages { display: flex; flex-wrap: wrap; gap: 8px; }
.stages li { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-3); font-weight: 500; }
.stages .done { color: var(--ink); background: var(--paper); }
.stages .done::before { content: "✓ "; color: var(--leaf); font-weight: 700; }
.stages .now { background: var(--hue); border-color: var(--hue); color: #fff; }
.rules { display: grid; gap: 12px; }
.rules div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.rules small { width: 8.2em; font-weight: 600; color: var(--ink-3); font-size: 1em; }
.rules span { padding: 6px 12px; border-radius: 99px; background: var(--iris-t); color: #3d2a9e; font-weight: 500; }

/* ── Customize ── */
.custom { background: var(--card); padding-block: clamp(70px, 9vw, 120px); border-block: 1px solid var(--line); }
.custom-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 940px) { .custom-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.custom-copy { min-width: 0; }
.custom-copy > p { margin-top: 14px; font-size: 1.08rem; color: var(--ink-2); max-width: 30em; }
.custom-copy > .switch-label { margin: 28px 0 10px; max-width: none; color: var(--ink-3); font: 600 .78rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.custom-copy .ticks { margin-top: 24px; }
.switch { display: flex; flex-wrap: wrap; gap: 6px; }
.switch button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 600 .9rem/1 var(--body); color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s; }
.switch button:hover { color: var(--ink); }
.switch button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.app {
  --brand: #0b4f86; --brand-soft: #e7f1fa; --accent: #ffd21a; --accent-ink: #2b2300;
  min-width: 0; border-radius: 26px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--brand) 55%, transparent), var(--shadow);
  overflow: hidden; transition: box-shadow .4s;
}
.app * { transition: background-color .4s, color .4s, border-color .4s; }
.app-nav { margin: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--brand); color: #fff; display: flex; align-items: center; gap: 6px; font-size: .82rem; }
.app-nav b { font: 700 1rem/1 var(--display); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-nav span { padding: 7px 12px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .3); font-weight: 600; white-space: nowrap; }
.app-nav .on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.app-body { padding: 10px 20px 22px; display: grid; gap: 14px; }
.app-body h4 { font-size: 1.6rem; font-weight: 700; }
.app-cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.app-card { background: var(--card); border-radius: 20px; padding: 18px; display: grid; gap: 6px; align-content: start; justify-items: start; box-shadow: 0 1px 2px rgb(17 19 23 / .05); min-width: 0; }
.app-card h5 { font: 700 1.05rem/1.2 var(--display); margin-bottom: 4px; }
.app-card small { color: var(--ink-2); }
.hero-card { background: var(--brand); color: #fff; }
.hero-card h5 { color: var(--accent); }
.app-amt { font: 800 2.8rem/1 var(--display); letter-spacing: -.03em; color: var(--accent); }
.rsvp.dark { margin-top: 8px; width: 100%; font-size: .85rem; }
.rsvp.dark span { background: var(--card); border-color: var(--line); color: var(--ink-2); }
.rsvp.dark .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.app-pos { display: flex; flex-wrap: wrap; gap: 7px; }
.app-pos span { padding: 6px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .82rem; }

/* ── Roles ── */
.roles { padding-block: clamp(70px, 10vw, 130px); }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.role { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.role h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.role h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--hue); }
.role ul { display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.role li { padding-top: 8px; border-top: 1px solid var(--line); }

/* ── Case study ── */
.case { background: #0f1722; color: #fff; padding-block: clamp(70px, 9vw, 120px); border-radius: clamp(24px, 4vw, 48px); margin-inline: clamp(0px, 1.5vw, 20px); }
.case .eyebrow { color: #ffd21a; }
.case-head { max-width: 780px; margin-inline: auto; text-align: center; }
.lede { margin: 18px auto 0; max-width: 36em; font-size: 1.1rem; color: #b9c3d1; }
.case .note-sm { color: #8d9bb0; }

/* Phones first: four screens in a row */
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 30px); max-width: 1080px; margin: clamp(40px, 6vw, 68px) auto 0; }
.phones figure { min-width: 0; }
.device { border-radius: clamp(18px, 2.6vw, 32px); padding: clamp(4px, .6vw, 7px); background: #0a0f17; box-shadow: 0 0 0 1px rgb(255 255 255 / .16), 0 30px 60px -30px rgb(0 0 0 / .8); }
.device img { border-radius: clamp(14px, 2.1vw, 25px); width: 100%; }
.phones figcaption { margin-top: 14px; text-align: center; color: #fff; font: 700 1.05rem/1.3 var(--display); }

/* The story, between the phone and web screens */
.case-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 52px); max-width: 1080px; margin: clamp(56px, 8vw, 100px) auto; }
.case-points h3 { font-size: 1.25rem; margin-bottom: 8px; }
.case-points p { color: #b9c3d1; font-size: .97rem; }

/* Web: pick a screen, see it at full size */
.shots { display: grid; gap: 20px; justify-items: center; }
.shot-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.shot-list button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16); background: transparent; color: #fff; cursor: pointer; font: 700 .95rem/1.2 var(--display); transition: background-color .15s, border-color .15s, color .15s; }
.shot-list button:hover { background: rgb(255 255 255 / .07); }
.shot-list button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--ink); }
/* Sized from the window height too, so the tabs and the whole frame fit on screen under the nav */
.browser { width: min(100%, 1040px, max(480px, calc((100svh - 230px) * 1.576))); min-width: 0; border-radius: 18px; overflow: hidden; background: #f4f6fa; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .75); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #e6e9ef; color: #5b6472; font-size: .8rem; font-weight: 500; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c5cad3; }
.browser-bar span { margin-left: 10px; padding: 3px 14px; background: #fff; border-radius: 99px; }
.browser-bar em { display: none; margin-left: auto; font-style: normal; font-size: .75rem; }
.browser-view { aspect-ratio: 1040 / 660; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.browser-view img { width: 100%; }
.shot-cap { max-width: 36em; text-align: center; color: #b9c3d1; font-size: .97rem; }
.case-note { margin-top: 28px; text-align: center; }

/* ── Steps ── */
.how { padding-block: clamp(70px, 10vw, 130px); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; padding: 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 18px; font: 700 1rem/1 var(--display); color: #fff; background: var(--sky); }
.steps li:nth-child(2)::before { background: var(--coral); }
.steps li:nth-child(3)::before { background: var(--sun); }
.steps li:nth-child(4)::before { background: var(--leaf); }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .97rem; }

/* ── Pricing ── */
.pricing { padding-bottom: clamp(70px, 10vw, 130px); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.plan h3 { font-size: 1.3rem; }
.plan .chip { position: absolute; top: 22px; right: 20px; }
.price { font: 700 3rem/1 var(--display); letter-spacing: -.03em; }
.price span { font: 500 .95rem/1 var(--body); letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.price-text { font-size: 2.1rem; padding-block: .21em; }
.plan-for { color: var(--ink-2); font-size: .95rem; min-height: 3.1em; }
.plan .btn { margin-top: auto; }
.plan-main { border: 2px solid var(--ink); box-shadow: var(--shadow); }
/* One shared list, because every plan has the same features */
.includes { padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--paper-2); }
.includes h3 { font-size: 1.3rem; margin-bottom: 18px; }
.includes .ticks { --hue: var(--sky); gap: 12px 24px; font-size: .97rem; }
/* Columns are as wide as their longest line, so nothing wraps */
@media (min-width: 640px) { .includes .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .includes li { white-space: nowrap; } }
@media (min-width: 1200px) { .includes .ticks { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

/* ── FAQ ── */
.faq { padding-bottom: clamp(70px, 10vw, 130px); }
.faq-list { max-width: 780px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; font: 600 1.15rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--body); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 22px; color: var(--ink-2); max-width: 40em; }

/* ── Demo ── */
.demo { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(70px, 9vw, 120px); }
.demo::before {
  content: ""; position: absolute; inset: 10% -10% -30%; z-index: -1; filter: blur(70px); opacity: .5;
  background:
    radial-gradient(30% 50% at 12% 60%, var(--sky), transparent 70%),
    radial-gradient(26% 46% at 38% 85%, var(--leaf), transparent 70%),
    radial-gradient(28% 50% at 64% 70%, var(--sun), transparent 70%),
    radial-gradient(28% 50% at 90% 55%, var(--coral), transparent 70%);
}
.demo-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.demo-copy p { margin-top: 14px; font-size: 1.1rem; color: var(--ink-2); max-width: 26em; }
.demo-form { background: var(--card); border-radius: 26px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { grid-column: span 2; display: grid; gap: 6px; min-width: 0; }
.field.half { grid-column: span 1; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font: 400 1rem/1.3 var(--body); color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--sky); outline-offset: 1px; background: #fff; }
.demo-form .btn { grid-column: span 2; padding-block: 1em; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }

/* ── Footer ── */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }

.thanks { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 18px; }
.thanks h1 { font-size: clamp(3rem, 8vw, 5rem); }
.thanks p { color: var(--ink-2); font-size: 1.1rem; }

/* ── Reveal on scroll (only once JS has confirmed it can show them again) ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Narrow screens: the tiles become a strip under the headline ── */
@media (max-width: 999px) {
  .hero { display: block; min-height: 0; padding: 120px 0 30px; }
  .hero-copy { padding: 0 var(--gutter); margin-inline: auto; }
  .tiles { position: static; width: 100%; max-width: 100%; display: flex; gap: 4px; margin-top: 4px; padding: 48px 8px 56px; align-items: center; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; pointer-events: auto; }
  .tile, .t4, .t5 { position: static; flex: none; width: 250px; margin: 0; font-size: 12.5px; transform: none; scroll-snap-align: start; }
  .tile-in { animation: none; }
}
@media (max-width: 520px) {
  .field.half { grid-column: span 2; }
  .board { font-size: .8rem; gap: 8px; }
  .p { padding: 6px 8px; }
  .rules small { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-in { animation: none; }
  .tile { transition: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .app * { transition: none; }
}

/* ══════════ Responsive pass ══════════
   Phone  < 600 · Tablet 600–999 · Desktop 1000+ · Wide 1600+ */

/* ── Nav: links collapse into a menu below 1000px ── */
.nav-toggle { display: none; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper-2); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, top .2s ease; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav.open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 999px) {
  .nav { width: calc(100% - 24px); gap: 8px; padding: 6px 6px 6px 16px; }
  .nav .brand { margin-right: auto; }
  .nav .btn-sm { min-height: 44px; padding-inline: 1.2em; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px; background: #fff;
    box-shadow: 0 1px 2px rgb(17 19 23 / .06), 0 20px 50px -12px rgb(17 19 23 / .28);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 16px; border-radius: 14px; font-size: 1.05rem; color: var(--ink); }
  .nav-links a:active { background: var(--paper-2); }

  /* The glass sits on an already blurred shape, so the extra blur is wasted work on phones */
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(255 255 255 / .2); }

  .role-grid, .steps, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-points { grid-template-columns: 1fr; gap: 24px; max-width: 34em; margin-inline: auto; }

  /* Case study, web screens: the frame can be panned so the screenshot stays readable */
  .browser-view { aspect-ratio: 5 / 4; overflow: auto; }
  .browser-view img { width: max(100%, 700px); max-width: none; }
  .browser-bar em { display: block; }
}

/* The hero strip drifts on its own; anyone who prefers no motion gets a swipeable row instead */
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  .tiles { overflow: hidden; }
  /* Short ramp at each end, steady in between. Top speed is the strip's length in about 26.6s;
     if you change the curve, change the duration with it or the top speed moves too. */
  .tile { animation: strip 29.6s cubic-bezier(.1, 0, .9, 1) infinite alternate; }
}
@keyframes strip { to { translate: calc(100vw - 2132px) 0; } }
.hero.offscreen .tile, .hero.offscreen .tile-in { animation-play-state: paused; }

@media (min-width: 600px) and (max-width: 999px) {
  .browser-view img { width: 100%; }
  .browser-bar em { display: none; }
}

@media (max-width: 599px) {
  [id] { scroll-margin-top: 84px; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 2.9rem); }
  .hero-cta .btn { flex: 1 1 0; min-height: 50px; }
  .built { padding-top: 14px; }
  .built ul { gap: 8px; }
  .built li { padding: 7px 13px; font-size: .88rem; }
  .replace, .roles, .how { padding-block: 64px; }
  .product, .pricing, .faq { padding-bottom: 64px; }
  .custom, .case, .demo { padding-block: 64px; }
  .statement { font-size: 1.55rem; }
  .sec-head { margin-bottom: 28px; }
  .card { border-radius: 22px; gap: 20px; }
  .switch button { min-height: 44px; padding-inline: 18px; }
  .app-nav { font-size: .76rem; gap: 4px; padding-left: 14px; }
  .app-nav span { padding: 6px 10px; }
  .app-body { padding-inline: 14px; }

  /* Side-by-side cards you swipe through, with the next one peeking in */
  .role-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .role-grid::-webkit-scrollbar, .phones::-webkit-scrollbar, .tiles::-webkit-scrollbar { display: none; }
  .role { flex: 0 0 80%; scroll-snap-align: start; padding: 20px; }
  .phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; gap: 14px; max-width: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .phones figure { scroll-snap-align: start; }
  .device { border-radius: 30px; padding: 6px; }
  .device img { border-radius: 24px; }
  .shot-list { gap: 6px; }
  .shot-list button { padding-inline: 15px; font-size: .9rem; }

  /* Steps: number beside the text instead of above it */
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps h3 { margin-bottom: 4px; font-size: 1.15rem; }

  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px 20px 20px; }
  .plan-for { min-height: 0; }
  .plan .btn { min-height: 50px; }
  .faq summary { font-size: 1.05rem; padding-block: 18px; }
  .demo-form .btn { min-height: 52px; }
  .field input, .field select { min-height: 50px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot nav { gap: 0 20px; }
  .foot nav a { padding-block: 10px; }
}

/* Touch screens: comfortable targets whatever the width */
@media (pointer: coarse) {
  .switch button { min-height: 44px; }
  .btn { min-height: 46px; }
  .foot nav a { padding-block: 10px; }
}

/* Wide monitors: let the page breathe instead of floating a narrow column */
@media (min-width: 1600px) {
  :root { --gutter: 48px; }
  html { font-size: 17px; }
  .wrap { width: min(1320px, 100%); }
  .hero-copy { width: min(680px, 100%); }
  .hero h1 { font-size: 4.9rem; }
  .hero { min-height: max(1000px, min(100svh, 1160px)); }
  .hero-copy { padding-top: 150px; }
}

/* ══════════ Added with the app update: budget, analytics, links, permissions ══════════ */
.g-links { display: grid; gap: .5em; }
.g-links li { display: flex; justify-content: space-between; gap: 1em; padding: .6em .8em; border-radius: .8em; background: rgb(255 255 255 / .2); border: 1px solid rgb(255 255 255 / .28); font-weight: 500; }
.g-links b { font-weight: 600; opacity: .85; }
.g-list b { white-space: nowrap; }

.chip-soon { background: var(--sun-t); color: #7a4b00; font-size: .72rem; margin-right: 4px; }
.chip-pin { background: var(--paper-2); color: var(--ink-2); font-size: .72rem; }
.card p.soon { margin-top: 14px; font-size: .95rem; color: var(--ink); }

.sheet-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sheet-tabs span { padding: 5px 11px; border-radius: 99px; background: var(--paper); color: var(--ink-3); font-weight: 600; font-size: .78rem; }
.sheet-tabs .on { background: var(--hue); color: #fff; }
.sheet { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th { padding: 0 0 6px; text-align: right; font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.sheet td { padding: 8px 0; border-top: 1px solid var(--line); text-align: right; }
.sheet th:first-child, .sheet td:first-child { text-align: left; }
.sheet td:last-child { font-weight: 600; }

.stats { display: grid; gap: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.stat-row div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--paper); min-width: 0; }
.stat-row b { font: 700 1.35rem/1.1 var(--display); letter-spacing: -.02em; }
.stat-row small { color: var(--ink-3); font-size: .75rem; }
.stats .tally-row { grid-template-columns: 6.4em 1fr 2.8em; }

.linkset { display: grid; gap: 12px; }
.linkset div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.linkset small { width: 5.6em; font-size: 1em; font-weight: 600; color: var(--ink-3); }
.linkset span { padding: 6px 12px; border-radius: 99px; background: var(--teal-t); color: #0a5c5c; font-weight: 500; }

.feed { display: grid; gap: 8px; }
.feed-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.feed p { font-size: 1em; color: var(--ink-2); }
.feed-next { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.feed-next small { color: var(--ink-3); font-size: 1em; }

/* Roles against permissions, as the app shows it */
.perm { padding: clamp(16px, 2.6vw, 28px); border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.perm-scroll { overflow-x: auto; scrollbar-width: thin; }
.perm table { width: 100%; min-width: 620px; border-collapse: collapse; }
.perm thead th { padding: 0 8px 14px; font: 700 .95rem/1.2 var(--display); text-align: center; white-space: nowrap; }
.perm tbody th { padding: 12px 16px 12px 0; text-align: left; font-weight: 500; white-space: nowrap; }
.perm tbody td { padding: 12px 8px; text-align: center; }
.perm tbody tr { border-top: 1px solid var(--line); }
.perm tbody td::before { content: ""; display: inline-block; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #cfd2d6; vertical-align: middle; }
.perm tbody td.y::before {
  border-color: var(--sky);
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.8 6.3l2.1 2.1 4.3-4.8' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.perm .note-sm { margin-top: 16px; max-width: 62em; }
.perm-foot { margin-top: 18px; color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.steps-note { margin-top: 20px; }

@media (max-width: 599px) {
  .perm { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-inline: 0; padding-inline: var(--gutter); }
  .perm table { min-width: 560px; }
  .perm tbody th { position: sticky; left: 0; background: var(--card); padding-right: 12px; white-space: normal; min-width: 9.5em; }
  .perm thead th { font-size: .85rem; }
  .linkset small { width: 100%; }
  .stat-row b { font-size: 1.15rem; }
}

/* ══════════ Per-member calculator ══════════ */
.per {
  display: grid; gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: 16px;
  padding: clamp(22px, 3.4vw, 40px); border-radius: 24px; background: var(--card); border: 1px solid var(--line);
}
@media (min-width: 800px) { .per { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.per-copy { min-width: 0; }
.per-copy h3 { font-size: 1.5rem; margin-bottom: 8px; }
.per-copy > p { color: var(--ink-2); max-width: 32em; }
.per-term { display: inline-flex; gap: 4px; margin: 22px 0 24px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.per-term button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .92rem/1 var(--body); cursor: pointer; }
.per-term button[aria-checked="true"] { background: var(--ink); color: #fff; }
.per-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 10px; }
.per-label output { font: 700 1.4rem/1 var(--display); font-variant-numeric: tabular-nums; }
.per-range { --fill: 26%; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.per-range:focus-visible { outline: none; }
.per-range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--sky) var(--fill), var(--paper-2) var(--fill)); }
.per-range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--paper-2); }
.per-range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--sky); }
.per-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--sky); box-shadow: 0 2px 8px rgb(17 19 23 / .18); }
.per-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--sky); box-shadow: 0 2px 8px rgb(17 19 23 / .18); }
.per-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--sky-t); }
.per-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--sky-t); }
.per-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: .8rem; color: var(--ink-3); }
.per-result { min-width: 0; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--sky-t); text-align: center; }
.per-big { display: flex; justify-content: center; align-items: baseline; gap: 8px; font: 700 clamp(3rem, 6vw, 4.2rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.per-big small { font: 600 1rem/1 var(--body); letter-spacing: 0; color: var(--ink-3); }
.per-unit { margin-top: 8px; font-weight: 600; }
.per-total { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgb(47 123 246 / .2); color: var(--ink-2); font-size: .95rem; }
.price-note { margin-top: 18px; }
@media (max-width: 599px) {
  .per-term { display: flex; }
  .per-term button { flex: 1; min-height: 44px; }
}

/* Keep the unit after a price on one line; it drops below the number if the card is narrow */
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 4px; }
.price span { margin-left: 0; white-space: nowrap; }

/* The hidden "Yes/No" labels must be positioned inside the scrolling table, or they widen the page */
.perm-scroll { position: relative; }

/* ══════════ Pricing colour: blue, orange, green and red beside the black ══════════
   Each plan takes one hue. Green marks money: the saving, the best-value plan and the
   per-member figure. Black stays for headings, prices and the one main button. */
.pricing { --money: #156b43; }
.plan { background: var(--tint, var(--card)); border-color: transparent; }
.plan h3 { display: flex; align-items: center; gap: 9px; }
.plan h3::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--hue, var(--ink)); }
.plan .btn-soft { background: #fff; }
.plan .btn-soft:hover { background: color-mix(in srgb, var(--hue) 14%, #fff); }
.plan-main { border: 2px solid var(--leaf); }
.chip-hue { background: var(--hue); color: #fff; font-size: .72rem; }
.save { color: var(--money); font-weight: 700; }

.per-result { background: var(--leaf-t); }
.per-big { color: var(--money); }
.per-big small { color: var(--money); opacity: .75; }
.per-total { border-top-color: rgb(46 157 104 / .25); }

.includes li:nth-child(4n + 1) { --hue: var(--sky); }
.includes li:nth-child(4n + 2) { --hue: var(--coral); }
.includes li:nth-child(4n + 3) { --hue: var(--sun); }
.includes li:nth-child(4n + 4) { --hue: var(--leaf); }

/* Four plan cards are cramped on small laptops, so they go two by two until there is room */
@media (min-width: 1000px) and (max-width: 1199px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Calculator colour: a lavender panel, with the figure in green on its complement (a soft red), not green on green */
.per { background: var(--iris-t); border-color: transparent; }
.per-term { background: #fff; }
.per-result { background: var(--coral-t); }
.per-total { border-top-color: rgb(238 81 72 / .25); }
.per-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--sky) var(--fill), #fff var(--fill)); }
.per-range::-moz-range-track { background: #fff; }

/* Calculator, both plans side by side: the same unit in each box so they compare directly */
.per-copy > p { margin-bottom: 26px; }
.per-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; background: none; text-align: center; }
.per-box { min-width: 0; padding: clamp(16px, 2.2vw, 26px) clamp(10px, 1.4vw, 18px); border-radius: 20px; background: var(--tint); }
.per-box h4 { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 14px; }
.per-box h4::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--hue); }
.per-box .per-big { display: block; font-size: clamp(2.1rem, 3.3vw, 3rem); }
.per-box .per-unit { margin-top: 8px; font-size: .88rem; font-weight: 500; color: var(--ink-2); text-wrap: balance; }
@media (min-width: 800px) { .per { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
@media (max-width: 380px) { .per-box .per-big { font-size: 1.75rem; } .per-box { padding-inline: 8px; } }

/* Calculator panel: white with a thin border, a black slider on a grey track */
.per { background: var(--card); border-color: var(--line); }
.per-range::-moz-range-track { background: var(--paper-2); }
.per-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--ink) var(--fill), var(--paper-2) var(--fill)); }
.per-range::-moz-range-progress { background: var(--ink); }
.per-range::-webkit-slider-thumb { border-color: var(--ink); }
.per-range::-moz-range-thumb { border-color: var(--ink); }
.per-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(17 19 23 / .18); }
.per-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgb(17 19 23 / .18); }

/* Hero budget tile: a small operating sheet, projected beside actual */
.g-sheet { padding: 0; overflow: hidden; }
.g-sheet table { width: 100%; border-collapse: collapse; font-size: .9em; font-variant-numeric: tabular-nums; }
.g-sheet th, .g-sheet td { padding: .52em .5em; text-align: right; white-space: nowrap; }
.g-sheet tr > :first-child { padding-left: .95em; text-align: left; }
.g-sheet tr > :last-child { padding-right: .95em; }
.g-sheet thead th { padding-block: .6em .35em; font-size: .82em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.g-sheet tbody th { font-weight: 500; color: var(--ink-2); }
.g-sheet tbody td { font-weight: 600; }
.g-sheet tbody tr { border-top: 1px solid var(--line); }
.g-sheet .net th { color: var(--ink); font-weight: 600; }
.g-sheet .net td { color: #156b43; }
.g-sheet .bal { background: var(--leaf-t); border-top-color: transparent; }
.g-sheet .bal th, .g-sheet .bal td { color: var(--ink); font-weight: 700; }
@media (max-width: 999px) { .tile.t6 { width: 27em; } }

/* ══════════ Per-member pricing: three plan cards and a cost-for-your-size panel ══════════ */
.plans.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 859px) { .plans.plans-3 { grid-template-columns: 1fr; } }
.plans-3 .plan { padding: clamp(24px, 2.6vw, 34px); gap: 16px; }
.plans-3 .plan-for { min-height: 3.2em; }
.per-sub { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgb(17 19 23 / .1); font-size: .85rem; font-weight: 600; color: var(--ink); }
.price-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 859px) { .plans-3 .plan-for { min-height: 0; } }
