/* The redian.health website: the Instrument ledger system (Redian Keep DESIGN.md), full treatment.
   Square corners everywhere, no corner marks, Instrument Serif upright. Blueprint is the base;
   Viewport by toggle or system setting. Tokens are typed so the theme switch cross-fades. */

@property --bg { syntax: "<color>"; inherits: true; initial-value: #f2f1ee; }
@property --bg-raised { syntax: "<color>"; inherits: true; initial-value: #faf9f7; }
@property --bg-sunken { syntax: "<color>"; inherits: true; initial-value: #e9e8e4; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #101014; }
@property --ink-strong { syntax: "<color>"; inherits: true; initial-value: #000000; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #505055; }
@property --faint { syntax: "<color>"; inherits: true; initial-value: #6e6e72; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #d0cfcc; }
@property --line-strong { syntax: "<color>"; inherits: true; initial-value: #8a8986; }
@property --invert-bg { syntax: "<color>"; inherits: true; initial-value: #101014; }
@property --invert-fg { syntax: "<color>"; inherits: true; initial-value: #f2f1ee; }

:root {
  --bg: #f2f1ee; --bg-raised: #faf9f7; --bg-sunken: #e9e8e4;
  --ink: #101014; --ink-strong: #000000; --muted: #505055; --faint: #6e6e72;
  --line: #d0cfcc; --line-strong: #8a8986;
  --accent: #2e8b68; --accent-ink: #1f5c4a;
  --invert-bg: #101014; --invert-fg: #f2f1ee;
  --warning: #a15c07; --info: #24597e; --stamp-fg: #ffffff;

  --display: "Source Serif 4 Variable", "Source Serif 4", Georgia, serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316; --bg-raised: #101014; --bg-sunken: #060607;
    --ink: #f2f1ee; --ink-strong: #ffffff; --muted: #a19f9c; --faint: #8a8987;
    --line: #333438; --line-strong: #6f6f70;
    --accent: #3fa07e; --accent-ink: #8cd4b7;
    --invert-bg: #ffffff; --invert-fg: #0b0b0c;
    --warning: #f2b65a; --info: #8cc2e8; --stamp-fg: #0b0b0b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121316; --bg-raised: #101014; --bg-sunken: #060607;
  --ink: #f2f1ee; --ink-strong: #ffffff; --muted: #a19f9c; --faint: #8a8987;
  --line: #333438; --line-strong: #6f6f70;
  --accent: #3fa07e; --accent-ink: #8cd4b7;
  --invert-bg: #ffffff; --invert-fg: #0b0b0c;
  --warning: #f2b65a; --info: #8cc2e8; --stamp-fg: #0b0b0b;
  color-scheme: dark;
}
html.theme-anim {
  transition: --bg 0.4s ease, --bg-raised 0.4s ease, --bg-sunken 0.4s ease, --ink 0.4s ease, --ink-strong 0.4s ease,
    --muted 0.4s ease, --faint 0.4s ease, --line 0.4s ease, --line-strong 0.4s ease, --invert-bg 0.4s ease, --invert-fg 0.4s ease;
}
html.theme-anim body * { transition-duration: 0s !important; }

* { box-sizing: border-box; border-radius: 0; }
html { background: var(--bg); scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: clip; }
::selection { background: var(--accent); color: #ffffff; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
p { margin: 0; }
.lucide { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.2em; flex-shrink: 0; }
.i14 { width: 14px; height: 14px; } .i16 { width: 16px; height: 16px; } .i20 { width: 20px; height: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--invert-bg); color: var(--invert-fg); padding: 8px 12px; }
.skip:focus { top: 8px; }

.hud { font: 500 11px/1.2 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.mono { font-family: var(--mono); }
/* One contrast word per headline, Instrument Serif upright. */
.serif { font-family: var(--serif); font-style: normal; font-weight: 400; letter-spacing: -0.01em; font-stretch: 100%; }
.themed-logo { filter: brightness(0); height: 24px; width: auto; }
:root[data-theme="dark"] .themed-logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .themed-logo { filter: brightness(0) invert(1); } }
.wordmark { font: 600 16px/1 var(--display); letter-spacing: -0.02em; }
.lockup { height: 30px; width: auto; display: block; }
.mark { height: 28px; width: auto; display: block; }
.on-dark { display: none; }
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .on-light { display: none; } :root:not([data-theme="light"]) .on-dark { display: block; } }

/* Buttons: mono capitals, square. Primary is the ink block; secondary inverts on hover. */
.btn { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px;
  font: 700 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 150ms, color 150ms, opacity 150ms, border-color 150ms; }
.btn-lg { height: 48px; padding: 0 24px; }
.btn-sm { padding: 7px 12px; }
.btn-primary { background: var(--invert-bg); color: var(--invert-fg); }
.btn-primary:hover { opacity: 0.8; }
.btn-secondary { border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear; }
.btn-secondary:hover { background: var(--invert-bg); color: var(--invert-fg); border-color: transparent; }
.key { font: 500 10px/1 var(--mono); letter-spacing: 0.06em; border: 1px solid currentColor; padding: 3px 5px; opacity: 0.75; }

/* Navigation: a 48px bar of hairline-divided cells; only the label inverts on hover. */
.site-nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.nav-row { display: flex; height: 48px; align-items: stretch; justify-content: space-between; }
.nav-left, .nav-right, .cell-row { display: flex; align-items: stretch; min-width: 0; }
.logo-cell { display: flex; align-items: center; gap: 10px; padding: 0 20px; border-right: 1px solid var(--line); }
.logo-cell:hover { opacity: 0.7; }
.nav-list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.nav-list > li { display: flex; align-items: stretch; position: relative; }
.nav-list > li.div { margin-left: 6px; border-left: 1px solid var(--line); padding-left: 6px; }
.nav-link { display: flex; align-items: center; padding: 0 10px; color: var(--muted); white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-label { display: flex; align-items: center; gap: 6px; padding: 2px 6px; transition: background-color 120ms linear, color 120ms linear; }
.nav-link:hover .nav-label, .nav-link[aria-current="page"] .nav-label, .nav-link[aria-expanded="true"] .nav-label, .nav-label.is-current { background: var(--invert-bg); color: var(--invert-fg); }
.chev { width: 12px; height: 12px; transition: transform 140ms var(--ease-out); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; border: 1px solid var(--line); border-top: 0; background: var(--bg); min-width: 220px; display: flex; flex-direction: column; }
.dropdown[hidden] { display: none; }
.dropdown a { display: flex; padding: 10px 12px; color: var(--muted); }
.dropdown a:hover { color: var(--ink); }
.dropdown a:hover .nav-label { background: var(--invert-bg); color: var(--invert-fg); }
.icon-cell { display: flex; width: 48px; align-items: center; justify-content: center; border-left: 1px solid var(--line); color: var(--muted); transition: background-color 120ms linear, color 120ms linear; }
.icon-cell:hover { background: var(--invert-bg); color: var(--invert-fg); }
.icon-cell .lucide { width: 16px; height: 16px; }
.icon-cell .i20 { width: 20px; height: 20px; }
.nav-cta { height: 100%; border-left: 1px solid var(--line); padding: 0 20px; }
.only-lg, .only-md { display: none !important; }
@media (min-width: 768px) { .only-md { display: flex !important; } .below-md { display: none !important; } }
@media (min-width: 1024px) { .only-lg { display: flex !important; } .below-lg { display: none !important; } }
p.only-md { display: none !important; }
@media (min-width: 768px) { p.only-md { display: block !important; } }
.mobile-nav { border-top: 1px solid var(--line); flex-direction: column; }
.mobile-nav:not([hidden]) { display: flex; }
.m-item { display: flex; padding: 12px; color: var(--muted); }
.m-group { font: 600 10px/1.2 var(--mono); letter-spacing: 0.25em; text-transform: uppercase; color: var(--faint); padding: 12px 16px 4px; }
.m-child { padding-left: 32px; }
.m-divided { border-top: 1px solid var(--line); }
.m-cta { width: 100%; height: 44px; }
.m-split { display: flex; border-top: 1px solid var(--line); }
.m-split a { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.m-split a + a { border-left: 1px solid var(--line); }

/* Hero: centered masthead over a fading blueprint grid, floating instrument readouts. */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: 0.7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); }
.hero-pool { position: absolute; inset: 10% 15%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.04; z-index: 5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-inner { position: relative; z-index: 10; max-width: 1280px; margin: 0 auto; padding: 72px 24px 64px; min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.masthead { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.masthead .wm { font: 600 clamp(84px, 15vw, 196px)/0.86 var(--display); letter-spacing: -0.045em; color: var(--ink-strong); }
.hero h1 { margin-top: 28px; font: 600 clamp(30px, 3.4vw, 36px)/1.05 var(--display); color: var(--ink-strong); }
.hero h1 .serif { color: var(--muted); }
.lede { margin-top: 16px; max-width: 28rem; font-size: 18px; line-height: 1.625; color: var(--muted); }
.ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; color: var(--faint); }
.orbit { position: absolute; z-index: 1; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-raised) 88%, transparent); padding: 10px 12px; text-align: left; min-width: 150px; animation: drift 9s ease-in-out infinite alternate; backdrop-filter: blur(2px); }
.orbit .v { font: 700 18px/1.2 var(--sans); color: var(--ink-strong); margin-top: 4px; }
.orbit.far { filter: blur(1.2px); opacity: 0.55; }
@keyframes drift { to { transform: translate(6px, -10px); } }
@media (max-width: 900px) { .orbit { display: none; } }

.marquee { display: flex; overflow: hidden; border-top: 1px solid var(--line); }
.marquee-track { display: flex; flex-shrink: 0; min-width: 100%; align-items: center; list-style: none; margin: 0; padding: 0; animation: marquee 36s linear infinite; }
.marquee-track li { display: flex; align-items: center; white-space: nowrap; padding: 12px 24px; color: var(--muted); }
.marquee-track li::before { content: "\25AA"; margin-right: 24px; color: var(--accent-ink); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Sections: a full-bleed hairline that draws in, a 1280px rail, a sticky frosted eyebrow band. */
.section { position: relative; }
.section > .rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.js .section > .rule { transform: scaleX(0); transition: transform 0.9s var(--ease-out); }
.js .section.drawn > .rule { transform: none; }
.rail { position: relative; max-width: 1280px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.eyebrow { position: sticky; top: 48px; z-index: 30; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.eyebrow-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; }
.sl { margin: 0 8px; }
.intro { padding: 56px 24px; }
.intro h2 { max-width: 48rem; font: 600 clamp(36px, 5vw, 60px)/1.02 var(--display); letter-spacing: -0.035em; color: var(--ink-strong); }
.intro p { margin-top: 20px; max-width: 36rem; font-size: 18px; line-height: 1.625; color: var(--muted); }
@media (min-width: 768px) { .eyebrow-in { padding: 12px 40px; } .intro { padding: 80px 40px; } }

/* Hairline cell grids: the grid draws top and left, each cell right and bottom. */
.cells { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .cells.c2 { grid-template-columns: 1fr 1fr; } .cells.c3 { grid-template-columns: repeat(3, 1fr); } }
.cell, .pillar { background: var(--bg); border-bottom: 1px solid var(--line); min-width: 0; }
@media (min-width: 768px) {
  .cells.c2 > :nth-child(2n + 1), .cells.c3 > :not(:nth-child(3n)) { border-right: 1px solid var(--line); }
}
.cell { display: flex; flex-direction: column; }
.strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 24px; }
.well { position: relative; aspect-ratio: 16 / 9; background: var(--bg-sunken); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px; }
.well-door { flex-direction: column; gap: 16px; }
.cell-body { padding: 24px; }
@media (min-width: 768px) { .strip { padding: 10px 32px; } .cell-body { padding: 24px 32px; } }
.cell-body h3, .pillar h3 { font: 600 24px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink-strong); }
.cell-body p, .pillar p:not(.hud) { margin-top: 8px; color: var(--muted); max-width: 36rem; }
.door { width: 56px; height: 56px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--ink); transition: background-color 120ms linear, color 120ms linear; }
.door .lucide { width: 24px; height: 24px; }
a.cell:hover .door { background: var(--invert-bg); color: var(--invert-fg); }
.pillar { padding: 24px; }
@media (min-width: 768px) { .pillar { padding: 32px; } }
.pillar h3 { margin-top: 24px; }
.pillar-btn { margin-top: 24px; font-weight: 500; }
.contact-cells h3 { overflow-wrap: anywhere; }

/* Small instrument readouts inside the media wells. */
.mini { width: min(100%, 360px); background: var(--bg-raised); border: 1px solid var(--line); font-size: 13px; text-align: left; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.fefo { font: 400 11px/1.4 var(--mono); color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 6px; margin-top: 3px; }
.period { background: var(--invert-bg); color: var(--invert-fg); padding: 10px 12px; }
.period b { display: block; font: 600 15px/1.2 var(--display); }
.period .mono { font-size: 11px; opacity: 0.75; }
.stamp { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; font: 600 10px/1.6 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--stamp-fg); white-space: nowrap; }
.stamp .lucide { width: 11px; height: 11px; }
.s-ok { background: var(--accent-ink); color: var(--bg); } .s-warn { background: var(--warning); } .s-info { background: var(--info); }

.final { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 24px; }
@media (min-width: 768px) { .final { padding: 112px 24px; } }
.final h2 { margin-top: 24px; font: 600 clamp(48px, 7vw, 72px)/0.98 var(--display); letter-spacing: -0.04em; color: var(--ink-strong); }
.final .l { margin-top: 24px; max-width: 28rem; font-size: 18px; color: var(--muted); }
.final .ctas { margin-top: 40px; }

.footer { border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .foot-grid > div + div { border-left: 1px solid var(--line); } }
.foot-grid > div { padding: 28px 24px; }
.foot-grid ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.foot-grid ul a:hover { color: var(--ink); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-about { margin-top: 14px; font-size: 14px; max-width: 22rem; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px; color: var(--faint); }

/* Scroll ruler: wide screens with a fine pointer only; touch keeps the native scrollbar. */
.ruler { position: fixed; top: 48px; right: 0; bottom: 0; width: 30px; z-index: 39; display: none; border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ruler::before { content: ""; position: absolute; inset: 0; opacity: 0.7;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 8px) left top / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 40px) left top / 12px 100% no-repeat; }
.ruler-mark { position: absolute; left: -1px; right: 0; height: 1px; background: var(--accent); }
.ruler-read { position: absolute; right: 34px; transform: translateY(-50%); display: flex; gap: 1px; padding: 4px 6px; background: var(--invert-bg); color: var(--invert-fg); font: 600 10px/1 var(--mono); letter-spacing: 0.1em; }
.odo { display: inline-flex; height: 1em; overflow: hidden; line-height: 1; }
.odo-col { display: flex; flex-direction: column; transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1); }
.odo-col span { display: block; height: 1em; }
@media (min-width: 1100px) and (pointer: fine) {
  html.ruler-on .ruler { display: block; }
  html.ruler-on { scrollbar-width: none; }
  html.ruler-on::-webkit-scrollbar { display: none; }
}

/* Choreography: only when scripts run, so crawlers and no-JS readers get the complete page. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .section > .rule { transform: none; }
}

/* Long-form pages (About, Privacy, Terms): readable measure, quiet headings. */
.prose { padding: 0 24px 72px; max-width: 46rem; }
.prose h3 { margin: 36px 0 10px; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink-strong); }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.prose .muted { color: var(--muted); }
.foot-legal { margin: 0; padding: 20px 24px 0; font-size: 14px; }
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Pricing, Download, Questions and Support pages. */
.intro h1.page-h { max-width: 48rem; font: 600 clamp(40px, 6vw, 72px)/1 var(--display); letter-spacing: -0.04em; color: var(--ink-strong); }
.ctas.left { justify-content: flex-start; }
.intro .ctas { margin-top: 32px; }
.dl-meta { margin-top: 20px !important; font-size: 11px !important; }
.plan-card { display: flex; flex-direction: column; }
.price-big { margin-top: 28px !important; font: 700 clamp(48px, 7vw, 72px)/1 var(--sans) !important; letter-spacing: -0.03em; color: var(--ink-strong) !important; }
.plan-card .hud.muted { margin-top: 10px; }
.setup-line { margin-top: 14px !important; }
.plan-card .ctas { margin-top: 32px; }
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; line-height: 1.45; }
.checks li::before { content: ""; flex: none; width: 11px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translateY(-4px); }

.qa-h { padding: 40px 24px 12px; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink-strong); scroll-margin-top: 104px; }
.qa-list { border-top: 1px solid var(--line); }
details.qa { border-bottom: 1px solid var(--line); }
details.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 24px; font: 600 18px/1.35 var(--sans); color: var(--ink-strong); }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); font: 400 18px/1 var(--mono); color: var(--muted); transition: transform 160ms var(--ease-out); }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa summary:hover { background: var(--bg-raised); }
.qa-a { padding: 0 24px 22px; max-width: 46rem; }
.qa-a p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.qa-a a, .note-row a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.faq-index { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 24px; }
.faq-index a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); color: var(--muted); }
.faq-index a:hover { background: var(--invert-bg); color: var(--invert-fg); border-color: transparent; }
@media (min-width: 768px) { .qa-h { padding: 48px 40px 12px; } details.qa summary { padding: 16px 40px; } .qa-a { padding: 0 40px 24px; } .faq-index { padding: 0 40px 32px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li:not(:last-child) { border-right: 1px solid var(--line); } }
.steps li { padding: 28px 24px; border-bottom: 1px solid var(--line); }
.steps h3 { margin-top: 18px; font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink-strong); }
.steps p:not(.hud) { margin-top: 8px; color: var(--muted); }
.steps b { color: var(--ink); font-weight: 600; }
.note-row { display: grid; gap: 8px; padding: 24px; font-size: 15px; }
@media (min-width: 768px) { .note-row { padding: 28px 40px; } }
code.hash { font: 400 12px/1.5 var(--mono); overflow-wrap: anywhere; color: var(--ink); }
.prose-pad { padding-top: 16px; }
@media (min-width: 768px) { .prose-pad { padding-left: 40px; } }
a.cell .cell-body h3 { margin-top: 14px; }
a.cell:hover { background: var(--bg-raised); }
.nav-signin { border-left: 1px solid var(--line); }

/* Touch screens: every link and button at least 44px tall, so thumbs never miss. */
@media (max-width: 767px), (pointer: coarse) {
  .foot-grid ul { gap: 0; }
  .foot-grid ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .m-item, .m-split a { min-height: 48px; align-items: center; }
  .btn { min-height: 44px; }
  .prose a, .qa-a a, .note-row a, .foot-legal a, .contact-cells h3 a, .pillar p a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .skip { padding: 14px 16px; }
  .faq-index a { min-height: 44px; }
  .foot-brand { min-height: 44px; }
}
/* The scroll ruler takes 30px on the right: keep page content clear of it. */
@media (min-width: 1100px) and (pointer: fine) { html.ruler-on main, html.ruler-on .footer { padding-right: 30px; } }
@media (max-width: 767px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-grid > div + div { border-top: 1px solid var(--line); }
  .foot-grid > div:nth-child(3) { border-left: 1px solid var(--line); }
}

/* Redian Labs: the name beside the mark, the plan comparison and the fee worked example. */
.brand-name { font: 600 17px/1 var(--display); letter-spacing: -0.02em; color: var(--ink-strong); white-space: nowrap; }
.brand-name .serif { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.compare-wrap { overflow-x: auto; border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
table.compare th, table.compare td { padding: 14px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare thead th { font: 500 11px/1.2 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); background: var(--bg-raised); }
table.compare tbody th { font-weight: 500; color: var(--ink); width: 34%; }
table.compare td { color: var(--muted); font-variant-numeric: tabular-nums; }
table.compare td + td, table.compare th + td, table.compare thead th + th { border-left: 1px solid var(--line); }
@media (min-width: 768px) { table.compare th, table.compare td { padding: 16px 40px; } }
.worked { display: grid; gap: 0; border-top: 1px solid var(--line); }
.worked .mrow { padding: 14px 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .worked .mrow { padding: 14px 40px; } }
.worked .mrow span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.worked .total { background: var(--bg-raised); color: var(--ink-strong); font-weight: 600; }
.plan-card .plan-from { margin-top: 24px !important; font: 600 clamp(36px, 5vw, 52px)/1 var(--display) !important; letter-spacing: -0.03em; color: var(--ink-strong) !important; }
.plan-card .plan-unit { margin-top: 8px !important; }
