/* TherapyDesk website: one stylesheet for every page.
   One family (Atkinson Hyperlegible Next) for the site and the product; Literata only for the
   therapist's own writing inside the product. Colour: cool paper, blue-black ink, indigo (the app's own). */

:root {
  --paper: #F5F6F8;
  --surface: #FFFFFF;
  --sunk: #EEF0F4;
  --line: #E1E4EA;
  --line-2: #CDD2DB;
  --ink: #151B2B;
  --ink-2: #3B4356;
  --slate: #586176;
  --faint: #6B7489;
  --seal: #4148B5;
  --seal-solid: #4148B5;
  --seal-2: #343A98;
  --seal-soft: #EAEBFB;
  --seal-line: #CDD0F4;
  --on-seal: #FFFFFF;
  --amber: #8F6106;
  --amber-soft: #FBF1DA;
  --green: #1E6B4E;
  --green-soft: #E3F2EB;
  --risk: #B3261E;
  --risk-soft: #FBE7E5;
  --band: #121826;          /* the dark band, both themes */
  --band-2: #1B2234;
  --band-line: #2A3349;
  --band-ink: #E8EBF2;
  --band-slate: #9AA3B8;
  --band-accent: #A9B0F7;
  --cipher: #8F9AB3;
  --focus: #2F62D8;
  /* the app's own diary colours */
  --k-sup: #4E6A8C; --k-sup-bg: #E7EDF5;
  --k-per: #8A7148; --k-per-bg: #F4EEE3;
  --shadow-lg: 0 1px 0 rgba(21,27,43,.04), 0 2px 6px rgba(21,27,43,.05), 0 24px 60px -18px rgba(21,27,43,.28);
  --shadow-md: 0 1px 0 rgba(21,27,43,.04), 0 10px 30px -14px rgba(21,27,43,.25);
  --f: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-write: "Literata", Georgia, serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --g: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1118; --surface: #161A23; --sunk: #1C212C; --line: #262C38; --line-2: #343B4A;
    --ink: #E9ECF2; --ink-2: #C9CEDA; --slate: #A3AABB; --faint: #8F97AC;
    --seal: #A3AAF6; --seal-2: #BCC1F9; --seal-soft: #1D2040; --seal-line: #33386A; --on-seal: #12142B;
    --seal-solid: #2B3080;
    --amber: #E3B657; --amber-soft: #2B2414; --green: #7FCBA6; --green-soft: #15291F;
    --risk: #F2A49C; --risk-soft: #3A1D1B;
    --k-sup: #8FA9CB; --k-sup-bg: #1C2533; --k-per: #CDB389; --k-per-bg: #2A2419;
    --band: #171C29; --band-2: #1F2536; --band-line: #2D3549;
    --focus: #8DB0FF;
    --shadow-lg: 0 1px 0 rgba(0,0,0,.3), 0 24px 60px -18px rgba(0,0,0,.7);
    --shadow-md: 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1118; --surface: #161A23; --sunk: #1C212C; --line: #262C38; --line-2: #343B4A;
  --ink: #E9ECF2; --ink-2: #C9CEDA; --slate: #A3AABB; --faint: #8F97AC;
  --seal: #A3AAF6; --seal-2: #BCC1F9; --seal-soft: #1D2040; --seal-line: #33386A; --on-seal: #12142B;
  --seal-solid: #2B3080;
  --amber: #E3B657; --amber-soft: #2B2414; --green: #7FCBA6; --green-soft: #15291F;
  --risk: #F2A49C; --risk-soft: #3A1D1B;
  --k-sup: #8FA9CB; --k-sup-bg: #1C2533; --k-per: #CDB389; --k-per-bg: #2A2419;
  --band: #171C29; --band-2: #1F2536; --band-line: #2D3549;
  --focus: #8DB0FF;
  --shadow-lg: 0 1px 0 rgba(0,0,0,.3), 0 24px 60px -18px rgba(0,0,0,.7);
  --shadow-md: 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (min-width: 900px) { :root { --g: 40px; } body { font-size: 1.125rem; } }
img, svg { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--g); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo b { font-size: 1.22rem; font-weight: 700; letter-spacing: -.035em; }
.td-sq { fill: var(--seal); }
.td-fg { fill: #fff; }
:root[data-theme="dark"] .td-fg { fill: #12142B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .td-fg { fill: #12142B; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 700 1rem/1 var(--f); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-seal { background: var(--seal); color: var(--on-seal); }
.btn-seal:hover { background: var(--seal-2); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--surface); }
.btn-sm { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: .92rem; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--seal); text-decoration: none; }
.more svg { width: 18px; height: 18px; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.hdr.stuck { border-bottom-color: var(--line); }
.hdr-row { display: flex; align-items: center; gap: 10px; height: 60px; }
.hdr-row .logo { margin-right: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 9px; font-size: .95rem; font-weight: 600; color: var(--slate); text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.ibtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.ibtn svg { width: 19px; height: 19px; }
.ibtn .moon { display: none; }
:root[data-theme="dark"] .ibtn .sun { display: none; }
:root[data-theme="dark"] .ibtn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ibtn .sun { display: none; }
  :root:not([data-theme="light"]) .ibtn .moon { display: block; }
}
.hdr .btn-sm { display: none; }
.hdr .btn-login { min-height: 38px; padding: 0 12px; font-size: .95rem; font-weight: 700; }
[hidden] { display: none !important; }
.menu { display: none; border-top: 1px solid var(--line); padding: 6px 0 18px; }
.menu.open { display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn) { display: block; padding: 13px 0; font-size: 1.1rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu .btn { width: 100%; margin-top: 16px; }
@media (min-width: 980px) {
  .hdr-row { height: 68px; }
  .hdr-row .logo { margin-right: 22px; }
  .nav { display: block; margin-right: auto; }
  .hdr .btn-sm { display: inline-flex; }
  .menu-btn, .menu, .menu.open { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 36px 0 0; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 72px 0 0; } }
.hero h1 { font-size: clamp(2.7rem, 1.6rem + 5.2vw, 5.4rem); line-height: .98; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--seal); }
.hero-lede { margin-top: 18px; max-width: 36ch; font-size: 1.12rem; color: var(--ink-2); }
.hero-lede b { color: var(--ink); }
@media (min-width: 900px) { .hero-lede { font-size: 1.3rem; margin-top: 24px; } }
.covers { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; max-width: 34rem; }
.covers li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px 0 9px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.covers svg { width: 16px; height: 16px; color: var(--seal); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; }
.hero-cta small { font-size: .95rem; color: var(--slate); }
.hero-cta small b { color: var(--ink); }
@media (min-width: 1000px) {
  .hero-top { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 48px; }
  .hero h1 span { white-space: nowrap; }
  .hero-lede { margin-top: 0; }
  .hero-side { padding-bottom: 8px; }
}

/* the product scene: a browser window with the phone in front of it */
.scene { position: relative; height: 470px; margin-top: 36px; }
@media (min-width: 900px) { .scene { height: 620px; margin-top: 60px; } }
.scene .win { position: absolute; left: 0; top: 0; width: 760px; }
@media (min-width: 900px) { .scene .win { width: 1120px; } }
.scene .phone { position: absolute; right: 2px; top: 34px; }
@media (min-width: 560px) { .scene .phone { right: auto; left: 330px; } }
@media (min-width: 900px) { .scene .phone { left: auto; right: -10px; top: 110px; } }
@media (min-width: 1240px) { .scene .phone { right: 20px; } }
.scene::after { /* fade the window into the next section */
  content: ""; position: absolute; left: -40px; right: -40px; bottom: 0; height: 110px;
  background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none; z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .scene .phone { animation: rise .9s cubic-bezier(.2,.7,.2,1) .25s both; }
  .scene .win { animation: fadein .7s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Pictures of the app (shared). Drawn from the app as it is; every person is invented. ---------- */
.mock { font-family: var(--f); color: var(--ink); font-size: 13px; line-height: 1.35; letter-spacing: 0; text-align: left; }
.mock b { font-weight: 700; }
.mock svg { flex: none; }
.win { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.url { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 7px; background: var(--surface); color: var(--slate); font-size: 12px; border: 1px solid var(--line); }
.url svg { width: 12px; height: 12px; color: var(--green); }

/* The app itself has one (light) appearance, so its pictures stay light when this site is shown dark. */
.win, .phone .screen {
  --paper: #F5F6F8; --surface: #FFFFFF; --sunk: #EEF0F4; --line: #E1E4EA; --line-2: #CDD2DB;
  --ink: #151B2B; --ink-2: #3B4356; --slate: #586176; --faint: #6B7489;
  --seal: #4148B5; --seal-2: #343A98; --seal-soft: #EAEBFB; --seal-line: #CDD0F4; --on-seal: #FFFFFF;
  --amber: #8F6106; --amber-soft: #FBF1DA; --green: #1E6B4E; --green-soft: #E3F2EB; --risk: #B3261E; --risk-soft: #FBE7E5;
  --k-sup: #4E6A8C; --k-sup-bg: #E7EDF5; --k-per: #8A7148; --k-per-bg: #F4EEE3;
  color: var(--ink); color-scheme: light;
}
:root[data-theme="dark"] .win { border-color: #2D3549; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .win { border-color: #2D3549; } }

/* the app frame: rail + page */
.ta { display: grid; grid-template-columns: 76px 1fr; min-height: 560px; }
.ta.short { min-height: 0; }
.ta-rail { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 12px; }
.ta-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--seal); color: var(--on-seal); display: grid; place-items: center; margin-bottom: 10px; }
.ta-logo svg { width: 20px; height: 20px; }
.ta-i { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--ink-2); width: 64px; }
.ta-i span { width: 52px; height: 28px; border-radius: 14px; display: grid; place-items: center; }
.ta-i svg { width: 20px; height: 20px; }
.ta-i.on span { background: var(--seal-soft); }
.ta-i.on { color: var(--ink); font-weight: 700; }
.ta-lock { margin-top: auto; width: 20px; height: 20px; color: var(--ink-2); }
.ta-main { min-width: 0; position: relative; }
.ta-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 8px; }
.ta-head h4 { margin: 0 auto 0 0; font-size: 21px; letter-spacing: -.02em; }
.ta-head .ic { width: 18px; height: 18px; color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.seg i { font-style: normal; padding: 4px 11px; font-size: 12px; font-weight: 700; color: var(--ink); }
.seg i.on { background: var(--seal-soft); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); background: transparent; color: var(--ink); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.solid { background: var(--seal); border-color: var(--seal); color: var(--on-seal); }
.fab { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 14px; background: var(--seal); color: var(--on-seal); font-weight: 700; font-size: 13.5px; box-shadow: 0 6px 18px -6px rgba(65,72,181,.6); }
.fab svg { width: 15px; height: 15px; }

/* week grid, as the app draws it */
.week { --hh: 52px; display: grid; grid-template-columns: 44px repeat(7, 1fr); }
.week .dh { text-align: center; padding: 2px 0 8px; font-size: 11.5px; color: var(--slate); }
.week .dh b { display: block; margin: 3px auto 0; width: 26px; height: 24px; line-height: 24px; border-radius: 7px; font-size: 13px; color: var(--ink); }
.week .dh.today b { background: var(--seal); color: var(--on-seal); }
.week .dh small { display: block; font-size: 10px; color: var(--slate); margin-top: 2px; line-height: 1.2; }
.week .strip { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); min-height: 28px; padding-bottom: 4px; }
.week .strip i { font-style: normal; margin: 0 3px; border-radius: 6px; background: var(--k-per-bg); color: var(--ink); font-size: 11.5px; padding: 3px 6px; align-self: start; }
.hours { position: relative; }
.hours span { display: block; height: var(--hh); font-size: 10.5px; color: var(--faint); padding: 0 6px 0 0; text-align: right; transform: translateY(-6px); }
.col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--hh) - 1px), var(--line) calc(var(--hh) - 1px) var(--hh)); }
.ev { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 4px 6px; overflow: hidden; font-size: 11px; line-height: 1.3; border-left: 3px solid; background: var(--seal-soft); border-color: var(--seal); }
.ev b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { color: var(--ink-2); white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
.ev.sup { background: var(--k-sup-bg); border-color: var(--k-sup); }
.ev.per { background: var(--k-per-bg); border-color: var(--k-per); }
.ev.x { background: var(--sunk); border-color: var(--line-2); }
.ev.x b { text-decoration: line-through; color: var(--faint); }
.now { position: absolute; left: 0; right: 0; height: 2px; background: var(--seal); z-index: 1; }
.now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--seal); }

/* phone */
.phone { width: 256px; height: 520px; border-radius: 42px; padding: 9px; background: #10141E; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2C3446; }
@media (min-width: 900px) { .phone { width: 286px; height: 580px; } }
:root[data-theme="dark"] .phone { background: #05070B; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3A4357; }
.screen { position: relative; height: 100%; border-radius: 34px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.sbar { display: flex; justify-content: space-between; align-items: center; height: 38px; font-size: 12px; font-weight: 700; padding: 4px 24px 0; flex: none; }
.sbar svg { height: 11px; width: auto; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 78px; height: 22px; border-radius: 12px; background: #10141E; }
.pbar { display: flex; align-items: center; gap: 12px; padding: 6px 14px 4px; }
.pbar svg { width: 19px; height: 19px; }
.pbar b { font-size: 17px; letter-spacing: -.02em; margin-right: auto; margin-left: 6px; }
.ptabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ptabs i { font-style: normal; padding: 10px 9px 9px; }
.ptabs i.on { color: var(--seal); box-shadow: inset 0 -3px 0 var(--seal); }
.ptools { display: flex; justify-content: flex-end; gap: 14px; padding: 10px 14px 2px; color: var(--ink-2); }
.ptools svg { width: 17px; height: 17px; }
.entries { padding: 0 16px; }
.entry { padding: 10px 0 12px; }
.entry .d { font-size: 11.5px; font-weight: 700; color: var(--faint); margin-bottom: 4px; display: flex; justify-content: space-between; gap: 8px; }
.entry .d small { font-weight: 400; color: var(--slate); }
.entry.today .d { color: var(--seal); }
.entry p { font-family: var(--f-write); font-size: 13px; line-height: 1.55; color: var(--ink); }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--seal); vertical-align: -2px; margin-left: 1px; }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.pnav { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: 7px 4px 16px; font-size: 9.5px; text-align: center; color: var(--ink-2); }
.pnav span { display: grid; justify-items: center; gap: 2px; }
.pnav svg { width: 17px; height: 17px; }
.pnav .on svg { background: var(--seal-soft); border-radius: 10px; width: 40px; height: 22px; padding: 2px 11px; box-sizing: border-box; }
.pnav .on { font-weight: 700; color: var(--ink); }

/* cards and rows inside the pictures */
.view { padding: 16px; display: grid; gap: 14px; }
@container (min-width: 700px) { .view { grid-template-columns: 1.15fr 1fr; padding: 24px; gap: 20px; min-height: 340px; align-items: start; } .frame .mock { font-size: 14px; } }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.card-h b { font-size: 14px; }
.card-h small { color: var(--slate); font-size: 12px; display: block; font-weight: 400; }
.card-b { padding: 12px 14px; }
.rowx { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.rowx:last-child { border-bottom: 0; }
.rowx .grow { flex: 1; min-width: 0; }
.rowx small { display: block; color: var(--slate); font-size: 12px; }
.rowx > svg { width: 20px; height: 20px; color: var(--seal); }
.rowx .chev { width: 16px; height: 16px; color: var(--faint); }
.rowx.alarm { background: var(--risk-soft); border: 1px solid var(--risk); border-radius: 12px; margin-bottom: 8px; }
.rowx.alarm > svg { color: var(--risk); }
.stack .rowx { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.stack .rowx.alarm { background: var(--risk-soft); border-color: var(--risk); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--seal-soft); color: var(--seal); font-weight: 700; font-size: 11.5px; flex: none; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.due { background: var(--amber-soft); color: var(--amber); }
.pill.seal { background: var(--seal-soft); color: var(--seal); }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btnrow .chip { flex: 1; justify-content: center; height: 34px; }
.mail { padding: 14px; font-size: 12.5px; }
.mail .mh { color: var(--slate); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; display: grid; gap: 2px; }
.mail p { font-size: 13.5px; }
.mail p + p { margin-top: 8px; }
.figs { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px; }
.figs small { display: block; font-size: 11.5px; color: var(--slate); }
.figs b { font-size: 18px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.figs .warn { color: var(--amber); }
.tick { width: 16px; height: 16px; border: 2px solid var(--line-2); border-radius: 4px; flex: none; }
.ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.done { width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.done svg { width: 12px; height: 12px; }
.amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 4px 2px 8px; }
.fine { font-size: 11.5px; color: var(--slate); padding: 8px 2px 0; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); font-size: 12.5px; background: var(--surface); }
.search svg { width: 14px; height: 14px; color: var(--slate); }
mark { background: #FBE9B8; color: #151B2B; border-radius: 3px; padding: 0 1px; }
.banner { padding: 8px 14px; font-size: 12.5px; background: var(--amber-soft); color: var(--ink); border-radius: 10px; }
.sw { width: 34px; height: 20px; border-radius: 10px; background: var(--seal); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.sw.off { background: var(--line-2); }
.sw.off::after { right: auto; left: 3px; }

/* ---------- Section heads ---------- */
.sec { padding: 64px 0; }
@media (min-width: 900px) { .sec { padding: 104px 0; } }
.sec-h { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.04; max-width: 18ch; }
.sec-p { margin-top: 14px; max-width: 50ch; color: var(--slate); font-size: 1.08rem; }
@media (min-width: 900px) { .sec-p { font-size: 1.2rem; } }
.kicker { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--seal); margin-bottom: 10px; }

/* ---------- The four reasons ---------- */
.points { display: grid; gap: 14px; margin-top: 30px; }
@media (min-width: 700px) { .points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .points { grid-template-columns: repeat(4, 1fr); margin-top: 44px; } }
.point { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; display: flex; flex-direction: column; }
.point .pi { width: 42px; height: 42px; border-radius: 12px; background: var(--seal-soft); color: var(--seal); display: grid; place-items: center; }
.point .pi svg { width: 22px; height: 22px; }
.point h3 { margin-top: 16px; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }
.point p { margin-top: 8px; color: var(--slate); font-size: 1rem; }
.point .more { margin-top: auto; padding-top: 14px; font-size: .95rem; }

/* ---------- Sealed band (compact) ---------- */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
:root[data-theme="dark"] .band { border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.band .sec-p { color: var(--band-slate); }
.band .more { color: var(--band-accent); }
.band.sec { padding: 56px 0; }
@media (min-width: 900px) { .band.sec { padding: 72px 0; } }
.seal-wrap { display: grid; gap: 26px; align-items: center; }
@media (min-width: 960px) { .seal-wrap { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.seal-wrap .sec-h { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.seal-wrap .sec-p { font-size: 1.05rem; }
.seal-wrap .more { margin-top: 16px; }
.seal-grid { display: grid; gap: 0; }
.pane { background: var(--band-2); border: 1px solid var(--band-line); border-radius: 14px; padding: 12px 16px 14px; min-width: 0; }
.pane-l { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--band-slate); margin-bottom: 6px; }
.pane-l svg { width: 15px; height: 15px; }
.pane.us .pane-l { color: var(--band-accent); }
.pane textarea {
  width: 100%; height: 74px; resize: none; border: 0; background: transparent; padding: 0;
  font: .98rem/1.55 var(--f-write); color: var(--band-ink);
}
.pane textarea:focus-visible { outline-offset: 6px; }
.cipher { margin: 0; height: 74px; overflow: hidden; font: .8rem/1.6 var(--f-mono); color: var(--cipher); word-break: break-all; white-space: pre-wrap; transition: opacity .35s; }
.cipher.plain { font: .98rem/1.55 var(--f-write); color: var(--band-ink); word-break: normal; }
.cipher.fade { opacity: 0; }
.seal-mid { display: flex; align-items: center; gap: 10px; height: 40px; padding-left: 16px; font-size: .8rem; color: var(--band-slate); }
.seal-mid::before { content: ""; width: 1px; height: 100%; background: var(--band-line); margin-right: 4px; }
.wax { width: 26px; height: 26px; }
.wax svg { width: 100%; height: 100%; }
.seal-note { margin-top: 10px; font-size: .85rem; color: var(--band-slate); }

/* ---------- The work, in tabs ---------- */
.tabs { display: flex; gap: 6px; margin: 30px calc(var(--g) * -1) 0; padding: 0 var(--g) 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tabs { margin: 40px 0 0; padding: 0; } }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font: 700 .95rem/1 var(--f); cursor: pointer;
}
.tab svg { width: 17px; height: 17px; color: var(--faint); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tab[aria-selected="true"] svg { color: var(--paper); }
.tabpanel { margin-top: 18px; }
.tabpanel[hidden] { display: none; }
.tp-copy { font-size: 1.05rem; color: var(--ink-2); max-width: 62ch; min-height: 3.2em; }
@media (min-width: 900px) { .tp-copy { font-size: 1.15rem; min-height: 0; } }
.frame { margin-top: 18px; container-type: inline-size; }
.frame .win { box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: no-preference) { .tabpanel:not([hidden]) .frame { animation: lift .45s cubic-bezier(.2,.7,.2,1) both; } }
@keyframes lift { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dim { position: relative; }
.sheet { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px 18px 14px; border: 1px solid var(--line); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; }
.sheet-h b { font-size: 17px; letter-spacing: -.01em; }
.sheet-h svg { width: 18px; height: 18px; color: var(--ink-2); }
.sheet p { font-size: 13.5px; }
.sheet .sub { font-size: 12px; color: var(--slate); margin-top: 2px; }
.sheet .full { display: flex; width: 100%; justify-content: center; height: 36px; margin-top: 10px; }
.sheet .swrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.sheet .swrow div { flex: 1; }
.sheet .swrow small { display: block; color: var(--slate); font-size: 12px; }
.see-all { margin-top: 22px; }

/* ---------- Price ---------- */
.price { background: var(--seal-solid); color: #fff; border-radius: 26px; padding: 30px 22px 26px; display: grid; gap: 26px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .price { grid-template-columns: 1fr 1.1fr; padding: 56px; gap: 56px; border-radius: 32px; } }
.amount { font-size: clamp(4.2rem, 3rem + 6vw, 7.4rem); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
.amount sup { font-size: .42em; vertical-align: .9em; letter-spacing: -.02em; margin-right: 2px; }
.per { margin-top: 10px; font-size: 1.12rem; color: rgba(255,255,255,.86); }
.per b { color: #fff; }
.free { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 11px; background: rgba(255,255,255,.12); font-weight: 700; font-size: .98rem; }
.free svg { width: 17px; height: 17px; }
.price-terms { margin-top: 18px; display: grid; gap: 6px; font-size: .95rem; color: rgba(255,255,255,.82); }
.inc h3 { font-size: 1.05rem; letter-spacing: -.01em; color: rgba(255,255,255,.86); margin-bottom: 12px; }
.inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px 22px; }
@media (min-width: 520px) { .inc ul { grid-template-columns: 1fr 1fr; } }
.inc li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.35; }
.inc li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; opacity: .85; }
.price .btn { background: #fff; color: #4148B5; margin-top: 24px; }
.price .btn:hover { background: #ECEDFB; }
.price-fine { margin-top: 12px; font-size: .9rem; color: rgba(255,255,255,.78); }
.price-fine a { color: #fff; }

/* ---------- Inner pages ---------- */
.phead { padding: 40px 0 8px; }
@media (min-width: 900px) { .phead { padding: 80px 0 16px; } }
.phead h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; max-width: 16ch; }
.phead p { margin-top: 16px; max-width: 46ch; font-size: 1.12rem; color: var(--ink-2); }
@media (min-width: 900px) { .phead p { font-size: 1.28rem; } }
.jump { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.jump a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.jump a:hover { border-color: var(--seal-line); color: var(--ink); }
.jump svg { width: 16px; height: 16px; color: var(--seal); }

/* a group of features: words on one side, a picture on the other */
.grp { padding: 48px 0; border-top: 1px solid var(--line); display: grid; gap: 26px; }
.grp:first-of-type { border-top: 0; }
@media (min-width: 960px) { .grp { grid-template-columns: 1fr 1.05fr; gap: 56px; padding: 72px 0; align-items: start; } .grp.flip > .grp-pic { order: -1; } }
.grp-h { display: flex; align-items: center; gap: 12px; }
.grp-h .pi { width: 40px; height: 40px; border-radius: 11px; background: var(--seal-soft); color: var(--seal); display: grid; place-items: center; flex: none; }
.grp-h .pi svg { width: 21px; height: 21px; }
.grp h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.1; }
.grp-lede { margin-top: 12px; color: var(--ink-2); font-size: 1.08rem; max-width: 48ch; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.ticks li svg { width: 18px; height: 18px; color: var(--seal); margin-top: 3px; }
.ticks li b { color: var(--ink); }
.grp-pic { container-type: inline-size; min-width: 0; }
.grp-pic .win { box-shadow: var(--shadow-md); }
.pad { padding: 16px; display: grid; gap: 12px; }
@container (min-width: 520px) { .pad { padding: 22px; } }

/* how it works */
.steps { display: grid; gap: 12px; margin-top: 30px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 22px; }
.step .pi { width: 40px; height: 40px; border-radius: 11px; background: var(--seal-soft); color: var(--seal); display: grid; place-items: center; }
.step .pi svg { width: 21px; height: 21px; }
.step h3 { margin-top: 14px; font-size: 1.15rem; letter-spacing: -.015em; }
.step p { margin-top: 6px; color: var(--slate); font-size: 1rem; }
.step code { display: block; margin-top: 12px; font: .78rem/1.55 var(--f-mono); color: var(--faint); word-break: break-all; }
.two { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; gap: 18px; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.box h3 { font-size: 1.1rem; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.box h3 svg { width: 20px; height: 20px; color: var(--seal); }
.box ul { margin: 12px 0 0; padding: 0 0 0 1.1em; color: var(--ink-2); display: grid; gap: 7px; }
.box p { margin-top: 10px; color: var(--ink-2); }
.facts { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.fact { display: grid; gap: 4px 40px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .fact { grid-template-columns: 18rem 1fr; } }
.fact h3 { font-size: 1.12rem; letter-spacing: -.015em; }
.fact p { color: var(--ink-2); max-width: 62ch; }
.ethos { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .ethos { grid-template-columns: 1fr 1fr; gap: 18px 40px; } }
.ethos li { border-left: 3px solid var(--seal); padding: 2px 0 2px 16px; }
.ethos b { display: block; font-size: 1.08rem; letter-spacing: -.01em; }
.ethos span { display: block; margin-top: 4px; color: var(--slate); }

/* comparison */
.cmp-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 0; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: .85rem; color: var(--slate); font-weight: 700; background: var(--sunk); }
.cmp tbody th { font-weight: 700; width: 30%; }
.cmp td.us { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--seal-soft) 55%, transparent); }
.cmp td.them { color: var(--slate); }
@media (max-width: 640px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp th, .cmp td { padding: 0; border: 0; }
  .cmp tbody th { width: auto; margin-bottom: 8px; }
  .cmp td { padding: 8px 10px; border-radius: 8px; margin-top: 4px; }
  .cmp td::before { content: attr(data-l); display: block; font-size: .78rem; font-weight: 700; color: var(--slate); margin-bottom: 2px; }
}
.src-note { margin-top: 12px; font-size: .88rem; color: var(--slate); max-width: 70ch; }
.src-note a { color: var(--slate); }

/* video guides */
.guides { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 680px) { .guides { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .guides { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.slot { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--seal-soft), var(--sunk)); display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--line); }
.slot .pi { width: 54px; height: 54px; border-radius: 15px; background: var(--surface); color: var(--seal); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.slot .pi svg { width: 26px; height: 26px; }
.slot .n { position: absolute; left: 14px; top: 12px; font-size: .8rem; font-weight: 700; color: var(--seal); }
.slot video, .slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.guide-b { padding: 16px 18px 18px; }
.guide h2 { font-size: 1.12rem; letter-spacing: -.015em; }
.guide p { margin-top: 6px; color: var(--slate); font-size: .98rem; }
.guide .where { margin-top: 10px; font-size: .88rem; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.guide .where svg { width: 15px; height: 15px; }

/* closing call to action on inner pages */
.close { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; display: grid; gap: 16px; align-items: center; }
@media (min-width: 860px) { .close { grid-template-columns: 1fr auto; padding: 40px 44px; } }
.close h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.close p { margin-top: 6px; color: var(--slate); }
.close .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.ftr { background: var(--band); color: var(--band-slate); padding: 48px 0 28px; font-size: .95rem; }
.ftr .logo { color: var(--band-ink); }
.ftr .td-sq { fill: #4148B5; }
.ftr .td-fg { fill: #fff; }
.ftr-top { display: grid; gap: 30px; }
@media (min-width: 900px) { .ftr-top { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; } }
.ftr .tag { margin-top: 12px; color: var(--band-ink); font-weight: 700; }
.ftr .strap { margin-top: 4px; }
.ftr h2 { font-size: .85rem; color: var(--band-ink); letter-spacing: 0; margin-bottom: 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: var(--band-slate); text-decoration: none; }
.ftr a:hover { color: var(--band-ink); }
.ftr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (min-width: 900px) { .ftr-cols { display: contents; } }
.ftr-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
