/* ==========================================================================
   smartproiptv.se — one stylesheet, no framework, no build step.
   Implements references/design.md. Read that file before editing this one.

   Tokens are the emyui / index-cloud reference's own values. Two things were
   changed and both are recorded in design.md: the accent (245° -> 280°, because
   two siblings sit within 5° of the reference indigo) and the type (Inter is
   held by a sibling).
   ========================================================================== */

/* --- Fonts. Self-hosted. No external request, ever. --------------------- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/grotesk-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/grotesk-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/jakarta-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/jakarta-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* grounds — the reference's own set */
  --bg: #fcfdfe;
  --bg-2: #f4f7fa;
  --bg-3: #f8f8f8;
  --bg-5: #ecf2f7;
  --white: #fff;

  /* ink */
  --ink: #161c2d;
  --ink-70: rgba(22, 28, 45, .7);
  --ink-40: rgba(22, 28, 45, .4);
  --line: #e7e9ed;
  --btn-border: rgba(3, 3, 3, .3);

  /* the one accent, split by job */
  --pulse: #9117cf;
  --pulse-ink: #7a12ae;
  --pulse-wash: #f6edfc;

  /* reserved: the .not-this rule and the refusal box. Nowhere else. */
  --flag: #b4232b;
  --flag-wash: #fdf1f1;

  /* the dark footer band */
  --deep: #13151c;
  --deep-2: #1c1f28;
  --deep-ink: rgba(255, 255, 255, .72);

  --radius: 15px;
  --radius-sm: 8px;
  --radius-xs: 5px;

  --container: 1170px;
  --gutter: 20px;
  --pad-y: clamp(56px, 8vw, 104px);

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .97rem + .14vw, 1.0625rem);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-radius: var(--radius); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 1.5rem + 2.3vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.05vw, 1.95rem); letter-spacing: -.015em; margin-top: 2.1em; }
h3 { font-size: clamp(1.12rem, 1.05rem + .3vw, 1.25rem); letter-spacing: -.01em; margin-top: 1.9em; }
h2:first-child, h3:first-child { margin-top: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--pulse-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

strong, b { font-weight: 700; }
small { font-size: .85rem; font-weight: 500; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Skip link ---------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--pulse);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 0; color: #fff; }

/* --- Container / sections ---------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 480px) { .container { padding-inline: 16px; } }

.sec { padding-block: var(--pad-y); }
.sec--tint { background: var(--bg-2); }
.sec--deep { background: var(--deep); color: var(--deep-ink); }
.sec--deep h2, .sec--deep h3 { color: #fff; }
.sec--flush { padding-top: 0; }

.sec-head { max-width: 40rem; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head--mid { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--ink-70); font-size: clamp(1.09rem, 1.02rem + .3vw, 1.2rem); margin-bottom: 0; }
.sec-head h2 { margin-top: 0; }

.kicker {
  display: block;
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pulse-ink);
  margin-bottom: .85em;
}

/* --- Topbar ------------------------------------------------------------- */

.topbar {
  background: var(--deep);
  color: var(--deep-ink);
  font-size: .82rem;
  font-weight: 500;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 42px;
  padding-block: 7px;
}
.topbar b { color: #fff; font-weight: 700; }
.topbar .hl { color: #fff; }
.topbar .sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  flex: none;
}
@media (max-width: 700px) { .topbar .sep:last-of-type, .topbar span:nth-child(3) { display: none; } }

/* --- Header ------------------------------------------------------------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  /* The wordmark is a link to the homepage, so it is a tap target and needs
     the full 44px even though the type is only 34px tall. */
  min-height: 44px;
  gap: 9px;
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand .mark { color: var(--pulse); flex: none; }
.brand b { color: var(--pulse-ink); font-weight: 700; }

.desktop-nav { margin-left: auto; display: none; }
.desktop-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.desktop-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
}
.desktop-nav a:hover { color: var(--pulse-ink); background: var(--bg-2); }
.desktop-nav a[aria-current='page'] { color: var(--pulse-ink); }

@media (min-width: 1000px) {
  .desktop-nav { display: block; }
  .mobile-nav { display: none; }
  .nav > .btn { margin-left: 14px; }
}
@media (max-width: 999px) { .nav > .btn-sm { margin-left: auto; } }
@media (max-width: 560px) { .nav > .btn-sm { display: none; } }

/* mobile menu — <details>, no script */
.mobile-nav { flex: none; margin-left: auto; }
@media (max-width: 999px) { .mobile-nav { margin-left: 10px; } }
.mobile-nav > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--white);
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.mobile-nav[open] > summary .bars { background: transparent; }
.mobile-nav[open] > summary .bars::before { top: 0; transform: rotate(45deg); }
.mobile-nav[open] > summary .bars::after { top: 0; transform: rotate(-45deg); }

/* A closed <details> hides its content with `content-visibility: hidden` on
   ::details-content. That does NOT hide an absolutely positioned descendant
   whose containing block sits outside the subtree — and .site-header is
   `position: relative`, so this panel's containing block is exactly that.
   Without the rule below the closed menu is still laid out, 46px wide and
   full height, on top of the page. Invisible on a desktop browser; obvious on
   a phone. Caught by `npm run audit-nav`, which is why that audit exists. */
.mobile-nav:not([open]) .mobile-panel { display: none; }

.mobile-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(22, 28, 45, .08);
  padding: 14px var(--gutter) 24px;
  max-height: calc(100vh - 118px);
  overflow-y: auto;
}
.mobile-panel ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-panel a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.mobile-panel a:hover { color: var(--pulse-ink); }
.mobile-panel .btn { width: 100%; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 175px;
  min-height: 52px;
  padding: 13px 26px;
  border: 1px solid var(--pulse);
  border-radius: var(--radius-sm);
  background: var(--pulse);
  color: #fff;
  font-family: var(--sans);
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--pulse-ink); border-color: var(--pulse-ink); color: #fff; }

.btn-sm { min-width: 0; min-height: 44px; padding: 10px 18px; font-size: .9rem; }

.btn-ghost {
  background: transparent;
  border-color: var(--btn-border);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.sec--deep .btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.sec--deep .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sec-head--mid .actions { justify-content: center; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 460px at 50% -12%, var(--pulse-wash) 0%, rgba(246, 237, 252, 0) 62%),
    var(--bg-5);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 92px);
  text-align: center;
}
.hero .container { max-width: 900px; }
.hero h1 { margin-bottom: .5em; }
.hero .lede {
  font-size: clamp(1.09rem, 1rem + .42vw, 1.28rem);
  color: var(--ink-70);
  max-width: 42rem;
  margin-inline: auto;
}
.hero .actions { justify-content: center; }
.hero .hero-note {
  margin-top: 22px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-40);
}
.hero figure { margin: clamp(36px, 5vw, 60px) auto 0; max-width: 960px; }

/* --- Crumbs ------------------------------------------------------------- */

.crumbs {
  padding-block: 20px 0;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-40);
}
.crumbs a { color: var(--ink-70); text-decoration: none; }
.crumbs a:hover { color: var(--pulse-ink); text-decoration: underline; }
.crumbs span[aria-hidden] { margin-inline: 7px; }

/* --- Article layout ----------------------------------------------------- */

.article { padding-block: 34px var(--pad-y); }
.wrap { display: block; }
.col-main { min-width: 0; max-width: 68ch; }
.col-main > figure:first-of-type { margin-top: 0; }

.meta {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-40);
  margin: -.35em 0 1.9em;
}

@media (min-width: 992px) {
  .wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
  .rail { position: sticky; top: 28px; }
  .col-main { max-width: 68ch; }
}

/* table of contents */
.rail h2 {
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 0 0 14px;
}
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.rail li { margin-bottom: 0; counter-increment: toc; }
.rail a {
  display: block;
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-70);
  text-decoration: none;
  border-left: 2px solid var(--line);
  padding-left: 14px;
}
.rail a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: -30px;
  font-family: var(--display);
  font-size: .72rem;
  color: var(--ink-40);
}
.rail a:hover { color: var(--pulse-ink); border-left-color: var(--pulse); }

/* mobile TOC */
.rail-m { margin-bottom: 2.2em; }
.rail-m > summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: .9rem;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rail-m > summary::-webkit-details-marker { display: none; }
.rail-m > summary::after { content: '+'; font-size: 1.2rem; color: var(--pulse-ink); }
.rail-m[open] > summary::after { content: '–'; }
.rail-m ol { margin: 14px 0 0; padding-left: 1.3em; }
.rail-m a { color: var(--ink-70); }
@media (min-width: 992px) { .rail-m { display: none; } }

/* --- Answer / not-this / notes ------------------------------------------ */

.answer {
  background: var(--pulse-wash);
  border-left: 3px solid var(--pulse);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  margin: 0 0 1.6em;
}
.answer .kicker { margin-bottom: .5em; }
.answer p:last-child { margin-bottom: 0; }

.not-this {
  border-left: 3px solid var(--flag);
  background: var(--flag-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 24px;
  margin: 0 0 1.9em;
  font-size: .97rem;
}
.not-this .kicker { color: var(--flag); margin-bottom: .4em; }
.not-this p:last-child { margin-bottom: 0; }

.note {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 1.9em 0;
  font-size: .97rem;
}
.note--warn { background: var(--flag-wash); border-color: rgba(180, 35, 43, .22); }
.note p:last-child { margin-bottom: 0; }

/* the standing "we are not the app" line */
.third-party {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  margin: 2em 0;
  font-size: .93rem;
  color: var(--ink-70);
}
.third-party p:last-child { margin-bottom: 0; }

/* --- The three-field motif. Decorative markup — never a real form. ------- */

.fields {
  display: grid;
  gap: 10px;
  margin: 1.9em 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fields .row { display: grid; gap: 4px; }
.fields .lab {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.fields .box {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  padding: 11px 14px;
  font-family: var(--display);
  font-size: .92rem;
  color: var(--ink-70);
  word-break: break-all;
}
.fields .hint { font-size: .86rem; color: var(--ink-40); }
.fields > figcaption { font-size: .86rem; color: var(--ink-40); margin-top: 4px; }

/* --- Tiles (the reference's box-features-one) --------------------------- */

.tiles { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles--4 { grid-template-columns: repeat(4, 1fr); } .tiles--3 { grid-template-columns: repeat(3, 1fr); } }

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .15s ease;
}
.tile:hover { border-color: var(--pulse); }
.tile .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--pulse);
  border-radius: 10px;
  color: var(--pulse);
  margin-bottom: 18px;
}
.tile h3 { font-size: 1.06rem; margin: 0 0 .5em; }
.tile p { font-size: .95rem; color: var(--ink-70); margin: 0; }
.tile a { font-weight: 600; }

/* link cards */
.tile--link { display: flex; flex-direction: column; }
.tile--link .more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .92rem; }

/* --- Figures / stat rows ------------------------------------------------ */

.figures {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.figures li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin: 0;
}
.figures .n {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--pulse-ink);
  line-height: 1.1;
}
.figures .l { display: block; font-size: .9rem; color: var(--ink-70); margin-top: 6px; }

/* --- Steps -------------------------------------------------------------- */

.steps { list-style: none; margin: 1.9em 0; padding: 0; counter-reset: step; }
.steps > li {
  position: relative;
  counter-increment: step;
  padding: 0 0 24px 58px;
  margin: 0;
  border-left: 1px solid var(--line);
  margin-left: 18px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -18px; top: -2px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pulse);
  color: #fff;
  border-radius: 10px;
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 700;
}
.steps h3 { margin: 0 0 .4em; font-size: 1.04rem; }
.steps p:last-child { margin-bottom: 0; }

/* --- Checks ------------------------------------------------------------- */

.checks { list-style: none; margin: 1.6em 0; padding: 0; }
.checks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: .7em;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0; top: .52em;
  width: 13px; height: 8px;
  border-left: 2px solid var(--pulse);
  border-bottom: 2px solid var(--pulse);
  transform: rotate(-45deg);
}
.checks--flag li::before { border-color: var(--flag); }

/* --- Tables ------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.9em 0;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
caption {
  text-align: left;
  font-size: .86rem;
  color: var(--ink-40);
  padding: 14px 18px 0;
}
th, td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--pulse-wash);
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pulse-ink);
  white-space: nowrap;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Pricing ------------------------------------------------------------ */

.plans { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plan--flag { border: 2px solid var(--pulse); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { margin: 0; font-size: 1.12rem; }
.badge {
  flex: none;
  background: var(--pulse);
  color: #fff;
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plan .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 26px 0 22px;
}
.plan .amount {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.plan .per { font-size: .9rem; color: var(--ink-40); }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; font-size: .94rem; }
.plan li { position: relative; padding-left: 28px; margin-bottom: .6em; color: var(--ink-70); }
.plan li::before {
  content: '';
  position: absolute;
  left: 0; top: .5em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--pulse);
  border-bottom: 2px solid var(--pulse);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; margin-top: auto; }

/* --- Promo band --------------------------------------------------------- */

.promo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 860px) { .promo { grid-template-columns: minmax(0, 1fr) auto; } }
.promo h3 { margin: 0 0 .5em; font-size: clamp(1.24rem, 1.1rem + .6vw, 1.5rem); }
.promo p { margin: 0; color: var(--ink-70); }
.promo .btn { flex: none; }

/* full-bleed accent bar above the footer */
.fullbar {
  background: var(--pulse);
  color: #fff;
  padding-block: 30px;
}
.fullbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.fullbar p { margin: 0; font-family: var(--display); font-size: 1.06rem; font-weight: 700; }
.fullbar .btn {
  background: #fff;
  border-color: #fff;
  color: var(--pulse-ink);
}
.fullbar .btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }

/* --- CTA band ----------------------------------------------------------- */

.cta-band { text-align: center; }
.cta-band .container { max-width: 680px; }
.cta-band p { color: var(--deep-ink); }

/* --- FAQ ---------------------------------------------------------------- */

.faq { margin-top: 2.4em; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--pulse-ink);
}
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { padding-bottom: 6px; }
.faq .a { padding: 0 22px 20px; color: var(--ink-70); font-size: .97rem; }
.faq .a p:last-child { margin-bottom: 0; }

.faq-wrap { max-width: 46rem; margin-inline: auto; text-align: left; }

/* A plain bordered panel — the promo band's box without its two-column split.
   Used where a section needs one contained block of prose. */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 40px);
  max-width: 46rem;
  margin-inline: auto;
  text-align: left;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
code {
  font-family: var(--display);
  font-size: .92em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  word-break: break-word;
}

/* A quotation from a third party's own words. Used where the publisher of the
   app says something about their own product more usefully than we could. */
blockquote.quote {
  margin: 1.9em 0;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pulse);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote.quote p {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: .8em;
}
blockquote.quote footer {
  font-size: .87rem;
  color: var(--ink-40);
  line-height: 1.6;
}

/* --- Related ------------------------------------------------------------ */

.related { margin-top: 3em; padding-top: 2.2em; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 1.15rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .related ul { grid-template-columns: repeat(2, 1fr); } }
.related li { margin: 0; }
.related a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-decoration: none;
  transition: border-color .15s ease;
}
.related a:hover { border-color: var(--pulse); }
.related .t { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: .98rem; }
.related .d { display: block; font-size: .88rem; color: var(--ink-70); margin-top: 3px; }

/* --- Tag links ---------------------------------------------------------- */

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6em 0; padding: 0; list-style: none; }
.tags li { margin: 0; }
.tags a {
  display: block;
  padding: 8px 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--white);
  font-size: .89rem;
  font-weight: 600;
  color: var(--ink-70);
  text-decoration: none;
}
.tags a:hover { border-color: var(--pulse); color: var(--pulse-ink); }

/* --- Figures ------------------------------------------------------------ */

figure { margin: 1.9em 0; }
figcaption { font-size: .86rem; color: var(--ink-40); margin-top: 10px; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--deep);
  color: var(--deep-ink);
  padding-block: clamp(44px, 6vw, 72px) 0;
  font-size: .93rem;
}
.foot-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; } }

.site-footer h2 {
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 2px; }
.site-footer a { color: var(--deep-ink); text-decoration: none; display: block; padding: 7px 0; min-height: 40px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-about .brand { color: #fff; margin-bottom: 14px; }
.foot-about .brand b { color: #fff; }
.foot-about p { color: rgba(255, 255, 255, .58); font-size: .9rem; max-width: 34ch; }

.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 24px 34px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .5);
}
.foot-legal p { margin: 0 0 .7em; max-width: 92ch; }
.foot-legal p:last-child { margin-bottom: 0; }
.foot-legal a { display: inline; padding: 0; min-height: 0; color: rgba(255, 255, 255, .7); text-decoration: underline; }

/* --- 404 ---------------------------------------------------------------- */

.err { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.err .code {
  font-family: var(--display);
  font-size: clamp(3.4rem, 2rem + 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--pulse);
  line-height: 1;
  margin-bottom: .2em;
}
.err .container { max-width: 620px; }

/* --- Print -------------------------------------------------------------- */

@media print {
  .topbar, .site-header, .fullbar, .cta-band, .related, .site-footer, .skip { display: none; }
  body { font-size: 11pt; }
  .wrap { display: block; }
  .rail, .rail-m { display: none; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}
