/* Inner-page kit, v5. Loaded after ui.css. Every inner page is built from these pieces; page-only styles go in
   that page's own <style> block. Tokens, type, buttons, forms, header, footer, .mock, .qa and .ink come from ui.css. */

/* ---- page top ---- */
.pg-hero { padding-top: calc(var(--hd) + clamp(24px, 4vw, 56px)); padding-bottom: clamp(48px, 7vw, 104px); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: clamp(20px, 3vw, 40px); }
.crumbs a { text-decoration: none; padding: 6px 0; display: inline-block; }
@media (hover: hover) { .crumbs a:hover { text-decoration: underline; } }
.h1 { font-stretch: 122%; font-weight: 800; letter-spacing: -.035em; line-height: .98; text-wrap: balance; font-size: clamp(2.4rem, 6vw, 5.5rem); max-width: 16ch; }
.pg-hero .lede { max-width: 56ch; margin-top: clamp(20px, 2.6vw, 32px); }
.pg-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.pg-top.solo { grid-template-columns: minmax(0, 1fr); }
.stamp { font-size: .9rem; color: var(--muted); margin-top: 18px; }

/* price box: a black field beside the headline */
.pricebox { background: var(--k-bg); color: #fff; border-radius: var(--r); padding: clamp(22px, 2.6vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: start; }
@media (prefers-color-scheme: dark) { .pricebox { box-shadow: inset 0 0 0 1px var(--k-line); } }
.pricebox .name { font-weight: 650; color: var(--y); }
.pricebox .big { font-stretch: 122%; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(2rem, 3.4vw, 3rem); }
.pricebox .small { font-size: .95rem; color: #d6d6d6; }
.pricebox .btn { width: 100%; margin-top: 4px; }
.pricebox .btn-o { color: #fff; }
.pricebox :focus-visible { outline-color: var(--y); }
@media (hover: hover) { .pricebox .btn-y:hover, .pricebox .btn-o:hover { background: #fff; color: #000; box-shadow: none; } }

/* ---- sections ---- */
.sec { padding-block: clamp(56px, 8vw, 120px); }
.sec + .sec { padding-top: 0; }
.sec > .wrap > .h2 { margin-bottom: clamp(28px, 4vw, 56px); }
.sec > .wrap > .h2 + .sub { margin-top: calc(-1 * clamp(12px, 2.4vw, 32px)); margin-bottom: clamp(28px, 4vw, 56px); }
.sec.ink, .sec.mist { padding-block: clamp(64px, 9vw, 136px); }
.sec.ink + .sec, .sec.mist + .sec, .sec + .sec.ink, .sec + .sec.mist { padding-top: clamp(64px, 9vw, 136px); }
.mist { background: var(--mist); }

/* two or three columns of plain panels */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { background: var(--mist); border-radius: var(--r); padding: clamp(22px, 2.8vw, 40px); }
.mist .panel { background: var(--paper); }
.ink .panel { background: #151515; }
.panel h3 { margin-bottom: 14px; }
.panel p + p { margin-top: 12px; }
.ticks li, .crosses li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); text-wrap: pretty; }
.ticks li:first-child, .crosses li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 2.5px; background: currentColor; transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }

/* picture beside text, used inside .ink and .mist sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.ink .mock { --card: #151515; --bg: #000; --mu: #a8a8a8; --ln: #2e2e2e; --fg: #fff; background: #151515; color: #fff; }
.mist .mock, .sec:not(.ink):not(.mist) .mock { --card: var(--paper); --bg: var(--mist); --mu: var(--muted); --ln: var(--line); --fg: var(--ink); }
.sec:not(.ink):not(.mist) .mock { background: var(--mist); --bg: var(--paper); }
.mock .bubble.a { background: var(--bg); }

/* a real sequence: numbered rows */
.seq { counter-reset: s; border-bottom: 1.5px solid var(--ink); }
.seq > li { counter-increment: s; display: grid; grid-template-columns: clamp(56px, 8vw, 120px) minmax(0, 4fr) minmax(0, 7fr); gap: clamp(12px, 3vw, 48px); align-items: baseline;
  padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1.5px solid var(--ink); }
.seq > li::before { content: counter(s); font-stretch: 122%; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(2rem, 4vw, 3.5rem); font-variant-numeric: tabular-nums; }
.seq b { font-stretch: 112%; font-weight: 750; letter-spacing: -.02em; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.1; }
.seq span { color: var(--muted); text-wrap: pretty; }

/* tables: prices and comparisons */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-top: 1px solid var(--line); }
.tbl thead th { border-top: 0; font-size: .9rem; font-weight: 600; color: var(--muted); padding-bottom: 10px; }
.tbl tbody tr:first-child > * { border-top: 1.5px solid var(--ink); }
.tbl tbody th { font-stretch: 112%; font-weight: 750; letter-spacing: -.01em; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 20px; font-weight: 650; }

/* reading pages: guides and legal text */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-stretch: 122%; font-weight: 800; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(1.7rem, 3.2vw, 2.75rem); margin-top: clamp(48px, 6vw, 88px); text-wrap: balance; }
.prose h3 { margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); }
.prose a { text-decoration-thickness: 1.5px; }
@media (hover: hover) { .prose a:hover, .sub a:hover, .fineprint a:hover { background: var(--y); color: #000; text-decoration-color: transparent; } }
.prose blockquote, .note { background: var(--mist); border-radius: var(--r-s); padding: 18px 22px; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--mist); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.toc { background: var(--mist); border-radius: var(--r); padding: clamp(20px, 2.4vw, 32px); }
.toc ol { columns: 2; column-gap: 40px; list-style: decimal; padding-left: 1.3em; }
.toc li { break-inside: avoid; padding: 5px 0; }
.source { font-size: .9rem; color: var(--muted); }

/* big figures on a dark band (the Index) */
.statrow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); align-items: center; padding: clamp(22px, 3vw, 44px) 0; border-top: 1px solid var(--line); }
.statrow .fig b { color: var(--y); }
:not(.ink) > .wrap > .statrow .fig b, .sec:not(.ink) .statrow .fig b { color: var(--ink); }

/* links to the other services */
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.others a { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r); background: var(--mist); text-decoration: none; transition: background-color .3s, color .3s, transform .6s var(--ease); }
.others b { font-stretch: 112%; font-weight: 750; letter-spacing: -.02em; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.1; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.others b::after { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; transition: transform .6s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.others span { color: var(--muted); transition: color .3s; }
@media (hover: hover) { .others a:hover { background: var(--y); color: #000; } .others a:hover span { color: #3d3400; } .others a:hover b::after { transform: translateX(6px); } }

/* closing: the same yellow field on every inner page */
.closing { color: #000; isolation: isolate; --muted: #3d3400; padding-block: clamp(72px, 10vw, 152px); }
.closing .display { font-size: clamp(2.5rem, 6.6vw, 6.5rem); max-width: 14ch; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.closing p { font-size: 1.1rem; max-width: 46ch; text-wrap: pretty; }
.closing .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.closing .btn-k { background: #000; color: #fff; }
.closing .btn-o { color: #000; }
.closing :focus-visible { outline-color: #000; }
@media (hover: hover) { .closing .btn-k:hover { background: #fff; color: #000; } .closing .btn-o:hover { background: #000; color: #fff; box-shadow: inset 0 0 0 1.5px #000; } }
.closing-note { font-size: .95rem !important; margin-top: 20px; color: #3d3400; }
.closing + .ft { border-top: 0; }

@media (max-width: 1080px) {
  .pg-top, .closing-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .pg-top { align-items: start; }
  .cols.three, .others { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .cols, .statrow { grid-template-columns: minmax(0, 1fr); }
  .seq > li { grid-template-columns: 48px minmax(0, 1fr); }
  .seq > li { row-gap: 6px; }
  .seq > li::before { grid-row: 1 / span 2; }
  .seq > li > * { grid-column: 2; }
  .toc ol { columns: 1; }
  .tbl th, .tbl td { padding: 12px 14px 12px 0; }
}
