/* Marketing pages
   A restrained editorial system: large type, clear rules, product imagery and
   deliberate dark/light fields instead of stacked glass panels. */

.kicker,
.document-index,
.chapter-number,
.price-label,
.manifest-index {
    margin: 0;
    color: var(--accent-link);
    font-family: var(--font-mono);
    font-size: var(--fs-mono-eyebrow);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    line-height: 1.4;
    text-transform: uppercase;
}

/* Shared headings */
.section-intro,
.tour-heading,
.comparison-heading,
.process-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.65fr);
    align-items: end;
    gap: clamp(32px, 5vw, 80px);
    margin-bottom: clamp(30px, 4.2vw, 54px);
}

.section-intro h2,
.tour-heading h2,
.comparison-heading h2,
.process-heading h2,
.chapter-heading h2 {
    max-width: 800px;
    margin: 14px 0 0;
    color: var(--text-strong);
    font-size: var(--fs-h2);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
    line-height: 1.04;
}

.section-intro > p,
.tour-heading > p,
.comparison-heading > p,
.process-heading > p {
    max-width: 500px;
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-md);
    line-height: 1.65;
}

.section-intro--center {
    display: block;
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
}

.section-intro--center > p {
    max-width: 620px;
    margin: 20px auto 0;
}

/* Home hero */
.editorial-hero {
    position: relative;
    overflow: hidden;
}

.home-hero {
    padding: clamp(52px, 5.6vw, 90px) 0 clamp(50px, 5.6vw, 84px);
}

.home-hero-grid {
    /* position/z-index keep the hero content above the fracture behind it. */
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
}

.home-hero-copy {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: var(--fs-mono-eyebrow);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
}

.editorial-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--text-strong);
    font-size: var(--fs-display);
    font-weight: 560;
    letter-spacing: var(--tracking-display);
    line-height: 0.94;
}

.editorial-hero h1 span,
.page-intro h1 em {
    display: block;
    color: var(--accent);
    font-style: normal;
}

.editorial-hero-copy {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--text-soft);
    font-size: var(--fs-lead);
    line-height: 1.62;
}

.hero-actions,
.chapter-actions,
.finale-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* The closing CTA pair sits directly under its paragraph; .chapter-actions
   carries no top margin of its own, so without this the buttons collide with
   the copy above them. */
.home-finale-actions {
    margin-top: 24px;
}

.hero-actions {
    margin-top: 24px;
}

.hero-assurance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
    padding-top: 16px;
    border-top: 1px solid var(--line-strong);
}

.hero-assurance div {
    display: grid;
    gap: 3px;
}

.hero-assurance strong {
    color: var(--text-strong);
    font-size: var(--fs-sm);
    font-weight: 620;
}

.hero-assurance span {
    color: var(--text-faint);
    font-size: var(--fs-xs);
}

.hero-showcase {
    position: relative;
    min-width: 0;
}

.hero-aura {
    display: none;
}

.tv-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: #07080c;
    box-shadow: 24px 28px 0 color-mix(in srgb, var(--accent) 10%, transparent);
}

.tv-frame-top {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 16px;
    border-bottom: 1px solid rgb(255 255 255 / 9%);
    color: rgb(255 255 255 / 48%);
    font-family: var(--font-mono);
    font-size: var(--portal-micro);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tv-frame-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}

.tv-frame-brand img {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-xs);
}

.tv-frame-status {
    color: #ff6c7f;
}

.tv-frame > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-float {
    position: absolute;
    z-index: 2;
    display: flex;
    width: min(236px, 36%);
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

/* One label, not two. The screenshot is the evidence; a second caption pinned
   to the right edge sat 34px past the 24px page gutter and was sliced by
   `.editorial-hero { overflow: hidden }`, and below 768px the two labels were
   wider than the frame they shared and overlapped each other on both axes.
   The second label was removed from index.html rather than repositioned. */
.hero-float--guide {
    bottom: -22px;
    left: -20px;
}

.hero-float-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-link);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.hero-float div {
    display: grid;
    min-width: 0;
}

.hero-float strong {
    color: var(--text-strong);
    font-size: 0.72rem;
}

.hero-float div span {
    overflow: hidden;
    color: var(--text-soft);
    font-size: var(--portal-micro);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Compatibility ledger */
.trust-strip {
    border-block: 1px solid var(--line);
}

.trust-strip-inner {
    display: grid;
    min-height: 82px;
    grid-template-columns: minmax(220px, 0.8fr) 1.6fr;
    align-items: center;
    gap: 36px;
}

.trust-strip p {
    margin: 0;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: var(--fs-mono-eyebrow);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.trust-strip ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-strip li {
    padding: 4px 18px;
    border-left: 1px solid var(--line);
    color: var(--text-strong);
    font-size: var(--fs-sm);
    font-weight: 560;
    text-align: center;
}

/* Product experience */
.experience-section,
.setup-section,
.product-tour,
.chapter-section,
.comparison,
.document-body {
    padding-block: var(--section-y);
}

/* Two of these stacked pay the gutter TWICE — up to 2 x --section-y, i.e. ~224px
   of nothing between two blocks of content. That reads as an unfinished page,
   and /help had exactly that void between its guide list and the knowledge
   base. One section break should cost one gutter. */
:is(.chapter-section, .comparison, .document-body) + :is(.chapter-section, .comparison, .document-body) {
    padding-top: 0;
}

.experience-grid {
    border-top: 1px solid var(--line-strong);
}

.experience-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
    align-items: center;
    gap: clamp(38px, 7vw, 110px);
    padding-block: clamp(32px, 4.3vw, 58px);
    border-bottom: 1px solid var(--line-strong);
}

.experience-card:nth-child(even) {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
}

.experience-card:nth-child(even) .experience-copy {
    grid-column: 2;
}

.experience-card:nth-child(even) .experience-media {
    grid-row: 1;
    grid-column: 1;
}

.experience-copy {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 22px;
}

.feature-icon {
    padding-top: 5px;
    color: var(--accent-link);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.experience-copy h3 {
    margin: 0 0 12px;
    color: var(--text-strong);
    font-size: clamp(1.55rem, 1.25rem + 1vw, 2.25rem);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
    line-height: 1.08;
}

.experience-copy p {
    max-width: 520px;
    margin: 0;
    color: var(--text-soft);
}

.experience-media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--panel-dark);
}

.experience-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Control section */
.control-section {
    padding-block: var(--section-y);
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.control-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.68fr);
    align-items: center;
    gap: clamp(42px, 6.4vw, 100px);
}

.control-visual {
    position: relative;
    min-height: 400px;
}

.control-screen {
    position: absolute;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--panel-dark);
    box-shadow: var(--shadow-md);
}

.control-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.control-screen--back {
    top: 0;
    right: 0;
    width: 75%;
    aspect-ratio: 16 / 9;
}

.control-screen--front {
    bottom: 0;
    left: 0;
    width: 72%;
    aspect-ratio: 16 / 9;
}

.control-copy h2 {
    margin: 16px 0 24px;
    color: var(--text-strong);
    font-size: var(--fs-h2);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
    line-height: 1.04;
}

.control-copy > p:not(.kicker) {
    margin-bottom: 30px;
    color: var(--text-soft);
    font-size: var(--fs-md);
}

.check-list,
.price-features,
.premium-list {
    display: grid;
    gap: 0;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.check-list li,
.price-features li,
.premium-list li {
    position: relative;
    padding: 11px 0 11px 22px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: var(--fs-sm);
}

.check-list li:first-child,
.price-features li:first-child,
.premium-list li:first-child {
    border-top: 1px solid var(--line);
}

.check-list li::before,
.price-features li::before,
.premium-list li::before {
    position: absolute;
    top: 18px;
    left: 2px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    content: '';
}

/* Premium field */
.premium-field {
    padding-block: var(--section-y);
    background: var(--panel-dark);
    color: var(--text-on-dark);
}

.premium-shell,
.premium-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.62fr);
    gap: clamp(46px, 7vw, 106px);
}

.premium-field .kicker {
    color: var(--accent-bright);
}

.premium-copy-main h2,
.premium-grid h2 {
    max-width: 700px;
    margin: 18px 0 26px;
    color: var(--text-on-dark);
    font-size: clamp(2.5rem, 2rem + 2vw, 4.5rem);
    font-weight: 550;
    letter-spacing: var(--tracking-display);
    line-height: 0.98;
}

.premium-copy-main > p:not(.kicker),
.premium-grid > p:not(.kicker) {
    max-width: 620px;
    margin-bottom: 32px;
    color: var(--text-on-dark-soft);
    font-size: var(--fs-md);
}

.premium-price-card {
    padding-left: clamp(30px, 5vw, 70px);
    border-left: 1px solid var(--line-dark);
}

.premium-price-label {
    margin: 0;
    color: var(--text-on-dark-soft);
    font-family: var(--font-mono);
    font-size: var(--fs-mono-eyebrow);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

/* Same number, same size as .price-amount on the pricing page — this rendered
   the £35 at 112px on the home page and 80px on /pricing. */
.premium-price {
    margin: 12px 0 0;
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-size: clamp(3.15rem, 2.55rem + 2.2vw, 5rem);
    font-weight: 550;
    letter-spacing: -0.06em;
    line-height: 1;
}

.premium-price span {
    margin-right: 5px;
    color: var(--accent-bright);
    font-size: 0.38em;
    vertical-align: top;
}

.premium-price-note {
    margin: 13px 0 32px;
    color: var(--text-on-dark-soft);
    font-size: var(--fs-sm);
}

.premium-field .premium-list li {
    border-color: var(--line-dark);
    color: var(--text-on-dark-soft);
}

.text-link--light {
    color: var(--accent-bright);
}

/* Setup steps */
.setup-cards,
.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-block: 1px solid var(--line-strong);
    list-style: none;
}

.setup-cards li,
.process-step {
    display: grid;
    min-height: 180px;
    align-content: space-between;
    gap: 26px;
    padding: 22px 28px;
    border-right: 1px solid var(--line-strong);
}

.setup-cards li:last-child,
.process-step:last-child {
    border-right: 0;
}

.setup-cards li > span,
.process-step::before {
    color: var(--accent-link);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.process-step {
    counter-increment: process;
}

.process-step::before {
    content: counter(process, decimal-leading-zero);
}

.setup-cards h3,
.process-step h3 {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: var(--fs-h3);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
}

.setup-cards p,
.process-step p {
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

/* Final call to action */
.finale {
    padding-block: var(--section-y-compact);
    border-top: 1px solid var(--line-strong);
}

.finale > .wrap-wide,
.finale-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 38px;
}

.finale h2 {
    max-width: 820px;
    margin: 13px 0 17px;
    color: var(--text-strong);
    font-size: var(--fs-h2);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
    line-height: 1.02;
}

.finale p:not(.kicker):not(.legal-note) {
    max-width: 650px;
    margin: 0;
    color: var(--text-soft);
}

.finale-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.legal-note {
    margin: 42px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--text-faint);
    font-size: var(--fs-xs);
}

/* Standard editorial hero */
.editorial-hero:not(.home-hero) {
    padding-block: clamp(54px, 6.3vw, 102px);
    border-bottom: 1px solid var(--line);
}

.editorial-hero-inner {
    display: grid;
    grid-template-columns: 0.38fr minmax(0, 1.35fr) minmax(260px, 0.58fr);
    align-items: start;
    gap: clamp(32px, 5vw, 74px);
}

.editorial-hero-inner .editorial-hero-copy {
    margin: 6px 0 0;
}

.hero-footnote {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
}

/* Features intro and product reel */
.page-intro {
    padding-block: clamp(54px, 6.3vw, 104px);
}

.page-intro-grid {
    display: grid;
    grid-template-columns: minmax(270px, 0.56fr) minmax(0, 1.3fr);
    align-items: end;
    gap: clamp(56px, 10vw, 160px);
}

.page-intro h1 {
    max-width: 920px;
    margin: 0;
    color: var(--text-strong);
    font-size: var(--fs-display);
    font-weight: 560;
    letter-spacing: var(--tracking-display);
    line-height: 0.94;
}

.page-intro-aside > p:not(.kicker) {
    margin: 22px 0 28px;
    color: var(--text-soft);
}

.screen-reel {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    gap: 1px;
    padding: 1px;
    background: var(--line-strong);
}

.screen-reel figure {
    min-width: 0;
    margin: 0;
    background: var(--panel-dark);
}

.screen-reel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.screen-reel figcaption {
    padding: 12px 14px;
    border-top: 1px solid rgb(255 255 255 / 9%);
    color: rgb(255 255 255 / 54%);
    font-family: var(--font-mono);
    font-size: var(--portal-micro);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Semi-transparent, not solid — see the note on .comparison. A full-bleed
   opaque band covers the whole viewport and blanks the backdrop behind it. */
.product-tour {
    margin-top: var(--section-y-compact);
    background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
}

.product-switcher {
    display: grid;
    grid-template-columns: minmax(245px, 0.42fr) minmax(0, 1.58fr);
    border-block: 1px solid var(--line-strong);
}

.product-tabs {
    display: grid;
    align-content: start;
    border-right: 1px solid var(--line-strong);
}

.product-tab {
    position: relative;
    display: grid;
    gap: 5px;
    min-height: 92px;
    padding: 19px 34px 19px 52px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text-soft);
    text-align: left;
}

.product-tab::before {
    position: absolute;
    top: 21px;
    left: 16px;
    color: var(--text-faint);
    content: attr(data-index);
    font-family: var(--font-mono);
    font-size: var(--portal-micro);
}

.product-tab strong {
    color: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.product-tab span {
    color: var(--text-faint);
    font-size: var(--fs-xs);
}

.product-tab:hover {
    background: color-mix(in srgb, var(--surface) 46%, transparent);
    color: var(--text);
}

.product-tab.is-active {
    background: var(--surface);
    color: var(--text-strong);
}

.product-tab.is-active::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 3px;
    background: var(--accent);
    content: '';
}

.product-stage {
    min-width: 0;
    background: var(--surface);
}

.product-panel {
    display: grid;
    min-height: 460px;
    grid-template-rows: auto 1fr;
}

.product-panel[hidden] {
    display: none;
}

.product-panel-copy {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(250px, 0.55fr);
    align-items: end;
    gap: 34px;
    padding: 38px 42px;
    border-bottom: 1px solid var(--line);
}

.product-panel-copy h3 {
    max-width: 650px;
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(1.65rem, 1.3rem + 1.2vw, 2.65rem);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
    line-height: 1.05;
}

.product-panel-copy p {
    margin: 0;
    color: var(--text-soft);
}

.product-panel-screen {
    min-height: 0;
    padding: 24px;
    background: var(--panel-dark);
}

.product-panel-screen img {
    width: 100%;
    height: 100%;
    max-height: 470px;
    object-fit: cover;
}

/* Statement field */
.statement {
    padding-block: var(--section-y);
    border-block: 1px solid var(--line-dark);
    background: var(--panel-dark);
}

.statement blockquote {
    max-width: 1120px;
    margin: 28px 0 0;
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 1.7rem + 3vw, 5.3rem);
    font-weight: 520;
    letter-spacing: var(--tracking-display);
    line-height: 0.98;
}

.statement blockquote span {
    color: var(--accent-bright);
}

/* Feature manifest */
.chapter-heading {
    display: grid;
    grid-template-columns: 0.38fr minmax(0, 0.9fr) minmax(280px, 0.5fr);
    align-items: end;
    gap: clamp(30px, 5vw, 72px);
    margin-bottom: 40px;
}

.chapter-heading > p:last-child {
    margin: 0;
    color: var(--text-soft);
}

.chapter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.45fr);
    gap: clamp(42px, 7vw, 100px);
}

.chapter-layout--reverse {
    grid-template-columns: minmax(290px, 0.45fr) minmax(0, 1fr);
}

.chapter-media {
    overflow: hidden;
    border: 1px solid var(--line-strong);
}

.chapter-media img {
    width: 100%;
}

.chapter-note {
    padding-top: 18px;
    border-top: 2px solid var(--accent);
}

.chapter-note h3 {
    margin: 0 0 14px;
    color: var(--text-strong);
    font-size: var(--fs-h3);
}

.chapter-note > p {
    color: var(--text-soft);
}

.chapter-note dl {
    margin: 28px 0 0;
}

.chapter-note dl div {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.chapter-note dt {
    color: var(--text-faint);
}

.chapter-note dd {
    margin: 0;
    color: var(--text-strong);
}

.manifest {
    border-top: 1px solid var(--line-strong);
}

.manifest-row {
    display: grid;
    grid-template-columns: 54px minmax(170px, 0.5fr) minmax(270px, 1fr) 100px;
    align-items: center;
    gap: 26px;
    min-height: 94px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line-strong);
}

.manifest-row h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: var(--fs-base);
    font-weight: 620;
}

.manifest-row p {
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.manifest-tier {
    justify-self: end;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--portal-micro);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Three tiers, three states. Without this the Essentials rows rendered
   identically to the Free ones, which is the exact confusion the pricing
   rewrite set out to remove. */
.manifest-tier--essentials {
    color: var(--accent);
}

.manifest-tier--pro {
    color: var(--pro-to);
}

.protocol-band {
    display: grid;
    grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1fr);
    gap: clamp(50px, 8vw, 120px);
    margin-bottom: var(--section-y);
    padding-block: var(--section-y-compact);
    border-block: 1px solid var(--line-strong);
}

.protocol-band h2 {
    margin: 13px 0 0;
    color: var(--text-strong);
    font-size: var(--fs-h2);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
    line-height: 1.02;
}

.protocol-list {
    border-top: 1px solid var(--line);
}

.protocol-list > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 58px;
    border-bottom: 1px solid var(--line);
}

.protocol-list strong {
    color: var(--text-strong);
    font-size: var(--fs-sm);
}

.protocol-list span {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--portal-micro);
    text-transform: uppercase;
}

/* Pricing */
.pricing-offers {
    padding: var(--section-y-compact) 0 var(--section-y);
}

.premium-offer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: clamp(22px, 2.5vw, 34px);
    background: var(--panel-dark);
    box-shadow: 0 32px 80px rgb(5 6 9 / 18%);
    color: var(--text-on-dark);
}

.premium-offer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 3px;
    background: var(--brand-gradient);
    content: '';
}

.premium-offer-copy,
.premium-term-picker {
    min-width: 0;
    padding: clamp(30px, 4vw, 58px);
}

.premium-offer-copy {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 42%),
        var(--panel-dark-soft);
}

.premium-offer .price-label {
    color: var(--accent-bright);
}

.premium-offer-copy h2 {
    margin: 24px 0 0;
    color: var(--text-on-dark);
    font-size: clamp(2.4rem, 1.75rem + 2vw, 4.4rem);
    font-weight: 540;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.premium-offer-copy h2 span {
    display: block;
    color: var(--text-on-dark-soft);
}

.premium-offer-intro {
    max-width: 520px;
    margin: 26px 0 30px;
    color: var(--text-on-dark-soft);
}

.premium-feature-summary {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.premium-feature-summary li {
    position: relative;
    padding: 12px 0 12px 25px;
    border-top: 1px solid var(--line-dark);
    color: var(--text-on-dark);
    font-size: var(--fs-sm);
}

.premium-feature-summary li:last-child {
    border-bottom: 1px solid var(--line-dark);
}

.premium-feature-summary li::before {
    position: absolute;
    top: 18px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-bright);
    content: '';
}

.premium-offer-footnote {
    margin: auto 0 0;
    padding-top: 28px;
    color: var(--text-on-dark-soft);
    font-size: var(--fs-sm);
}

.premium-term-picker {
    display: flex;
    flex-direction: column;
}

.premium-term-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.6fr);
    align-items: end;
    gap: 30px;
    margin-bottom: 28px;
}

.premium-term-heading h3 {
    margin: 10px 0 0;
    color: var(--text-on-dark);
    font-size: clamp(1.45rem, 1.25rem + 0.65vw, 2rem);
    font-weight: 550;
}

.premium-term-heading > p {
    margin: 0;
    color: var(--text-on-dark-soft);
    font-size: var(--fs-sm);
}

.premium-terms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.premium-term {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(20px, 2.2vw, 28px);
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    background: rgb(255 255 255 / 3.5%);
}

.premium-term--featured {
    border-color: color-mix(in srgb, var(--accent-bright) 76%, transparent);
    background: color-mix(in srgb, var(--accent) 13%, var(--panel-dark));
    box-shadow: inset 0 3px 0 var(--accent);
}

.premium-term-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.premium-term-topline h4 {
    margin: 0;
    color: var(--text-on-dark);
    font-size: 1rem;
    font-weight: 650;
}

.premium-term-topline span {
    color: var(--accent-bright);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.premium-term-price {
    margin: 23px 0 0;
}

.premium-term-price > span {
    display: block;
    color: var(--text-on-dark);
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 1.9rem + 1.25vw, 3.4rem);
    font-weight: 560;
    letter-spacing: -0.055em;
    line-height: 1;
}

.premium-term-price small {
    display: block;
    margin-top: 7px;
    color: var(--text-on-dark-soft);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.premium-term-equivalent {
    min-height: 40px;
    margin: 15px 0 20px;
    color: var(--text-on-dark-soft);
    font-size: var(--fs-sm);
}

.premium-term .btn {
    width: 100%;
    margin-top: auto;
}

.premium-term .btn-secondary {
    border-color: rgb(255 255 255 / 25%);
    color: var(--text-on-dark);
}

.premium-term .btn-secondary:hover {
    border-color: rgb(255 255 255 / 48%);
    background: rgb(255 255 255 / 8%);
}

.premium-term--featured .btn {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

.premium-renewal-note {
    margin: 22px 0 0;
    color: var(--text-on-dark-soft);
    font-size: 0.76rem;
    line-height: 1.6;
}

.pricing-alternatives {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) repeat(2, minmax(0, 1fr));
    margin-top: clamp(30px, 4vw, 52px);
    border-block: 1px solid var(--line-strong);
}

.pricing-alternatives > * {
    min-width: 0;
    padding: clamp(26px, 3.2vw, 44px);
    border-right: 1px solid var(--line-strong);
}

.pricing-alternatives > :last-child {
    border-right: 0;
}

.pricing-alternatives-heading h2 {
    margin: 18px 0 0;
    color: var(--text-strong);
    font-size: clamp(1.7rem, 1.35rem + 1vw, 2.65rem);
    font-weight: 540;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.pricing-alternative {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
}

.pricing-alternative h3 {
    margin: 14px 0 12px;
    color: var(--text-strong);
    font-size: 1.6rem;
    font-weight: 580;
}

.pricing-alternative p {
    color: var(--text-soft);
}

.pricing-alternative-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.pricing-alternative-price {
    margin: 0;
    color: var(--text-strong) !important;
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.65rem + 1vw, 3rem);
    font-weight: 560;
    letter-spacing: -0.05em;
    line-height: 1;
}

.pricing-alternative-price small {
    display: block;
    margin-top: 7px;
    color: var(--text-faint);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Semi-transparent, not solid: a full-bleed opaque band covers the whole
   viewport and blanks the animated backdrop behind it. The tint still reads as
   a distinct field against var(--bg). */
.comparison {
    background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
}

.compare-disclosure {
    border-block: 1px solid var(--line-strong);
}

.compare-disclosure summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    padding: 18px 54px 18px 0;
    color: var(--text-strong);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 650;
    list-style: none;
}

.compare-disclosure summary::-webkit-details-marker {
    display: none;
}

.compare-disclosure summary::after {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 28px;
    height: 28px;
    color: var(--accent-link);
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 26px;
    text-align: center;
    transform: translateY(-50%);
}

.compare-disclosure[open] summary::after {
    content: '−';
}

.compare-disclosure summary small {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--fs-mono-eyebrow);
    font-weight: 600;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.compare-disclosure[open] .table-scroll {
    padding: 8px 0 18px;
    border-top: 1px solid var(--line);
}

.table-scroll {
    overflow-x: auto;
}

.compare-table {
    min-width: 720px;
}

.compare-table td {
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.compare-table th:first-child {
    width: 46%;
}

.compare-yes,
.compare-premium {
    color: var(--text-strong) !important;
}

.compare-premium {
    font-weight: 650;
}

.compare-no {
    color: var(--text-faint) !important;
}

/* Pricing — calm, product-led and additive. The three purchase levels share
   one visual system; Premium terms are a control, not separate products. */
body[data-page='pricing'] .tg-assistant {
    display: none;
}

.pricing-page {
    overflow: clip;
}

.pricing-hero {
    position: relative;
    padding-block: clamp(58px, 7vw, 104px);
    border-bottom: 1px solid var(--line-strong);
}

.pricing-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
}

.pricing-hero-copy h1 {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 2.2rem + 2.6vw, 4.8rem);
    font-weight: 560;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.pricing-hero-copy h1 span {
    display: block;
    color: var(--accent);
}

.pricing-hero-lead {
    max-width: 650px;
    margin: 26px 0 0;
    color: var(--text-soft);
    font-size: var(--fs-lead);
    line-height: 1.65;
}

.pricing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.pricing-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 24px 0 0;
    padding: 0;
    color: var(--text-faint);
    font-size: var(--fs-xs);
    list-style: none;
}

.pricing-assurances li {
    position: relative;
    padding-left: 16px;
}

.pricing-assurances li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    content: '';
}

.pricing-product {
    min-width: 0;
    margin: 0;
}

.pricing-product-screen {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--panel-dark);
    box-shadow: var(--shadow-lg);
}

.pricing-product-screen::after {
    position: absolute;
    inset: 0;
    border: 1px solid color-mix(in srgb, var(--accent-bright) 24%, transparent);
    border-radius: inherit;
    content: '';
    pointer-events: none;
}

.pricing-product-screen img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.pricing-product figcaption {
    margin-top: 14px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--fs-mono-eyebrow);
    letter-spacing: var(--tracking-label);
    text-align: right;
    text-transform: uppercase;
}

.pricing-plans,
.pricing-inclusions {
    padding-block: var(--section-y);
}

.pricing-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
    align-items: end;
    gap: 48px;
    margin-bottom: clamp(34px, 4vw, 54px);
}

.pricing-section-heading h2 {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 560;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.pricing-section-heading > p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.pricing-tier-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.82fr) minmax(380px, 1.3fr);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.pricing-plan {
    display: flex;
    min-width: 0;
    min-height: 610px;
    flex-direction: column;
    padding: clamp(28px, 3.1vw, 42px);
    border-right: 1px solid var(--line-strong);
}

.pricing-plan:last-child {
    border-right: 0;
}

.pricing-plan--premium {
    position: relative;
    background: var(--panel-dark-soft);
    color: var(--text-on-dark);
    box-shadow: inset 0 3px 0 var(--accent);
}

.pricing-plan-label {
    margin: 0;
    color: var(--accent-link);
    font-family: var(--font-mono);
    font-size: var(--fs-mono-eyebrow);
    font-weight: 650;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.pricing-plan--premium .pricing-plan-label {
    color: var(--accent-bright);
}

.pricing-plan-heading h3 {
    margin: 16px 0 0;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.4rem + 0.6vw, 2rem);
    font-weight: 560;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.pricing-plan--premium .pricing-plan-heading h3 {
    color: var(--text-on-dark);
}

.pricing-plan-heading > p:last-child {
    min-height: 74px;
    margin: 14px 0 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.pricing-plan--premium .pricing-plan-heading > p:last-child {
    color: var(--text-on-dark-soft);
}

.pricing-plan-price {
    margin: 30px 0 0;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: clamp(2.65rem, 2.2rem + 1vw, 3.5rem);
    font-weight: 580;
    letter-spacing: -0.055em;
    line-height: 1;
}

.pricing-plan-price small {
    display: block;
    margin-top: 8px;
    color: var(--text-faint);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-plan-features {
    display: grid;
    gap: 0;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.pricing-plan-features li {
    position: relative;
    padding: 12px 0 12px 22px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.pricing-plan-features li:last-child {
    border-bottom: 1px solid var(--line);
}

.pricing-plan-features li::before {
    position: absolute;
    top: 11px;
    left: 0;
    color: var(--accent-link);
    content: '✓';
    font-weight: 750;
}

.pricing-plan--premium .pricing-plan-features li {
    border-color: var(--line-dark);
    color: var(--text-on-dark);
}

.pricing-plan--premium .pricing-plan-features li::before {
    color: var(--accent-bright);
}

.pricing-plan > .btn {
    width: 100%;
    margin-top: auto;
}

.pricing-plan--premium > .btn-primary {
    border-color: var(--accent-bright);
    background: var(--accent-bright);
    color: var(--accent-ink);
}

.pricing-plan-note {
    min-height: 38px;
    margin: 14px 0 0;
    color: var(--text-faint);
    font-size: 0.76rem;
    line-height: 1.5;
}

.pricing-plan--premium .pricing-plan-note {
    color: var(--text-on-dark-soft);
}

.pricing-term-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 24px;
    padding: 4px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-sm);
    background: var(--panel-dark);
}

.pricing-term-option {
    min-width: 0;
    min-height: 38px;
    padding: 7px 6px;
    border: 0;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-on-dark-soft);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.15;
    transition:
        background var(--dur-fast),
        color var(--dur-fast);
}

.pricing-term-option:hover {
    color: var(--text-on-dark);
}

.pricing-term-option.is-selected {
    background: var(--accent);
    color: var(--accent-ink);
}

.pricing-term-option:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}

.pricing-premium-selection {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-top: 24px;
}

.pricing-plan-price--premium {
    margin: 0;
    color: var(--text-on-dark);
}

.pricing-premium-equivalent {
    margin: 0 0 3px;
    color: var(--text-on-dark-soft);
    font-size: var(--fs-sm);
    text-align: right;
}

.pricing-inclusions {
    border-block: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface-soft) 66%, transparent);
}

.pricing-feature-layers {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 0.78fr) minmax(400px, 1.34fr);
    border-block: 1px solid var(--line-strong);
}

.pricing-feature-layer {
    min-width: 0;
    padding: clamp(28px, 3.4vw, 46px);
    border-right: 1px solid var(--line-strong);
}

.pricing-feature-layer:last-child {
    border-right: 0;
}

.pricing-feature-number {
    margin: 0;
    color: var(--accent-link);
    font-family: var(--font-mono);
    font-size: var(--fs-mono-eyebrow);
    font-weight: 650;
    letter-spacing: var(--tracking-wide);
}

.pricing-feature-layer h3 {
    margin: 15px 0 24px;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 580;
    letter-spacing: -0.025em;
}

.pricing-feature-layer ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-feature-layer--premium ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.pricing-feature-layer li {
    position: relative;
    padding-left: 18px;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.pricing-feature-layer li::before {
    position: absolute;
    left: 0;
    color: var(--accent-link);
    content: '+';
    font-weight: 750;
}

.pricing-trial {
    padding-block: var(--section-y-compact);
}

.pricing-trial-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
    padding-block: clamp(30px, 4vw, 48px);
    border-block: 1px solid var(--line-strong);
}

.pricing-trial h2 {
    margin: 14px 0 0;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 560;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.pricing-trial-inner p:not(.kicker) {
    max-width: 700px;
    margin: 15px 0 0;
    color: var(--text-soft);
}

.pricing-trial-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.pricing-legal-note {
    max-width: 980px;
    margin: 24px 0 0;
}

@media (max-width: 1024px) {
    .pricing-hero-layout {
        grid-template-columns: 1fr;
    }

    .pricing-product {
        max-width: 860px;
    }

    .pricing-tier-grid,
    .pricing-feature-layers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-plan--premium,
    .pricing-feature-layer--premium {
        grid-column: 1 / -1;
    }

    .pricing-plan:nth-child(2),
    .pricing-feature-layer:nth-child(2) {
        border-right: 0;
    }

    .pricing-plan--premium,
    .pricing-feature-layer--premium {
        border-top: 1px solid var(--line-strong);
    }

    .pricing-plan--premium {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .pricing-section-heading,
    .pricing-trial-inner {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 22px;
    }

    .pricing-tier-grid,
    .pricing-feature-layers {
        grid-template-columns: 1fr;
    }

    .pricing-plan,
    .pricing-feature-layer,
    .pricing-plan:nth-child(2),
    .pricing-feature-layer:nth-child(2) {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line-strong);
    }

    .pricing-plan--premium,
    .pricing-feature-layer--premium {
        grid-column: auto;
        border-top: 0;
        border-bottom: 0;
    }

    .pricing-plan-heading > p:last-child {
        min-height: 0;
    }

    .pricing-feature-layer--premium ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-trial-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .pricing-hero {
        padding-block: 48px 56px;
    }

    .pricing-hero-layout {
        gap: 38px;
    }

    .pricing-hero-copy h1 {
        font-size: clamp(2.45rem, 12vw, 3.35rem);
    }

    .pricing-hero-actions,
    .pricing-trial-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pricing-hero-actions .btn,
    .pricing-trial-actions .btn {
        width: 100%;
    }

    .pricing-assurances {
        display: grid;
        gap: 8px;
    }

    .pricing-product figcaption {
        text-align: left;
    }

    .pricing-plan {
        padding: 28px 22px;
    }

    .pricing-term-control {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-premium-selection {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .pricing-premium-equivalent {
        text-align: left;
    }

    .pricing-feature-layer--premium ul {
        grid-template-columns: 1fr;
    }
}

/* Document pages */
.document-hero {
    padding-block: clamp(53px, 6.3vw, 100px);
    border-bottom: 1px solid var(--line-strong);
}

.document-hero-grid {
    display: grid;
    grid-template-columns: 0.34fr minmax(0, 1.5fr) minmax(230px, 0.45fr);
    align-items: start;
    gap: clamp(34px, 6vw, 88px);
}

.document-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--text-strong);
    font-size: var(--fs-h1);
    font-weight: 560;
    letter-spacing: var(--tracking-display);
    line-height: 0.98;
}

.document-hero-copy {
    max-width: 780px;
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-lead);
}

.document-hero-copy > p {
    margin: 22px 0 0;
}

.document-hero-copy .chapter-actions {
    margin-top: 30px;
}

.document-layout {
    display: grid;
    grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1.3fr);
    align-items: start;
    gap: clamp(50px, 9vw, 145px);
}

.document-aside {
    position: sticky;
    top: 104px;
    padding-top: 17px;
    border-top: 2px solid var(--accent);
}

.document-aside > p:not(.kicker) {
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.faq-group-title {
    margin: 15px 0 32px;
    color: var(--text-strong);
    font-size: var(--fs-h2);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
}

.setup-list,
.changelog-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-strong);
    list-style: none;
}

.setup-row,
.changelog-entry {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
    gap: 0 28px;
    padding-block: 28px;
    border-bottom: 1px solid var(--line-strong);
}

/* Same flat-markup hazard as .ruled-item: changelog.js and download.js emit
   meta + title + body as three siblings, so the release notes themselves were
   auto-placed back into the 70px gutter and wrapped one word per line. Pin the
   gutter cell; everything else belongs in the content column — including the
   single-child loading/error rows, which otherwise render inside the gutter. */
.setup-row > .row-number,
.changelog-entry > .changelog-meta {
    grid-column: 1;
    grid-row: 1;
}

.setup-row > :not(.row-number),
.changelog-entry > :not(.changelog-meta) {
    grid-column: 2;
}

.setup-row h3,
.changelog-entry h3 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: var(--fs-h3);
    font-weight: 560;
}

.setup-row p,
.changelog-entry p {
    margin: 0;
    color: var(--text-soft);
}

.row-number,
.setup-num {
    color: var(--accent-link);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.faq-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
}

.faq-index a {
    min-height: 40px;
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-weight: 560;
    line-height: 40px;
}

.faq-index a:hover {
    color: var(--accent-link);
}

.section-head {
    margin-bottom: 28px;
}

.document-body .section-head h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: var(--fs-h2);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
}

.faq {
    border-top: 1px solid var(--line-strong);
}

.faq-item {
    border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
    position: relative;
    padding: 24px 44px 24px 0;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 560;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 2px;
    color: var(--text-faint);
    content: '+';
    font-family: var(--font-mono);
    font-size: 1rem;
    transform: translateY(-50%);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    max-width: 780px;
    padding: 0 44px 28px 0;
    color: var(--text-soft);
}

.faq-answer > :last-child {
    margin-bottom: 0;
}

.download-command {
    border-bottom: 1px solid var(--line-strong);
}

.download-command-inner {
    display: grid;
    min-height: 110px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
}

.download-command-inner div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 22px;
}

.download-command-inner span {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
}

.download-command-inner strong {
    color: var(--text-strong);
    font-size: var(--fs-lg);
}

.signal-ledger {
    border-bottom: 1px solid var(--line-strong);
}

.signal-ledger-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-cell {
    display: grid;
    min-height: 112px;
    align-content: center;
    gap: 4px;
    padding: 20px 26px;
    border-right: 1px solid var(--line);
}

.signal-cell:last-child {
    border-right: 0;
}

.signal-cell strong {
    color: var(--text-strong);
    font-size: var(--fs-sm);
}

.signal-cell span {
    color: var(--text-faint);
    font-size: var(--fs-xs);
}

.ruled-list {
    border-top: 1px solid var(--line-strong);
}

.ruled-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;
    gap: 0 28px;
    padding-block: 30px;
    border-bottom: 1px solid var(--line-strong);
}

/* The markup is flat — index span, heading, then one or more paragraphs — so
   auto-placement would drop everything after the heading back into the 62px
   index column, wrapping the body copy one word per line (it did, on /download,
   /setup and /support). Pin the index to the first cell and force every sibling
   into the content column, whatever number of them an item has. */
.ruled-item > .document-index {
    grid-column: 1;
    grid-row: 1;
}

.ruled-item > :not(.document-index) {
    grid-column: 2;
}

.ruled-item h2,
.ruled-item h3 {
    margin: 0 0 9px;
    color: var(--text-strong);
    font-size: var(--fs-h3);
    font-weight: 560;
}

.ruled-item p {
    margin: 0;
    color: var(--text-soft);
}

/* Help centre */
.help-workspace {
    min-width: 0;
}

.help-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 54px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line-strong);
}

.help-search .field {
    margin: 0;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 42px;
    border-top: 1px solid var(--line-strong);
}

.help-card {
    border-bottom: 1px solid var(--line-strong);
}

.help-card-link {
    display: block;
    min-height: 190px;
    padding: 26px 0;
}

.help-card-link:hover .help-card-title {
    color: var(--accent-link);
}

.help-card-cat {
    margin: 0 0 17px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--fs-mono-eyebrow);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.help-card-title {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 560;
    letter-spacing: var(--tracking-tight);
}

.help-card-excerpt,
.help-empty {
    margin: 0;
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.help-empty {
    padding-block: 46px;
}

.help-article {
    max-width: 840px;
}

.help-article h1 {
    margin: 18px 0 34px;
    color: var(--text-strong);
    font-size: var(--fs-h1);
    font-weight: 560;
    letter-spacing: var(--tracking-display);
    line-height: 1;
}

.help-article-body {
    color: var(--text-soft);
    font-size: var(--fs-md);
}

.help-article-body h2,
.help-article-body h3 {
    margin-top: 38px;
    color: var(--text-strong);
}

.changelog-body {
    color: var(--text-soft);
}

.changelog-body h3 {
    color: var(--text-strong);
}

@media (max-width: 1024px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        max-width: 780px;
    }

    .hero-showcase {
        width: min(100%, 860px);
        margin: 22px auto 0;
    }

    .editorial-hero-inner,
    .document-hero-grid {
        grid-template-columns: 0.34fr minmax(0, 1fr);
    }

    .editorial-hero-inner .editorial-hero-copy,
    .document-hero-copy {
        grid-column: 2;
    }

}

@media (max-width: 920px) {
    .section-intro,
    .tour-heading,
    .comparison-heading,
    .process-heading,
    .page-intro-grid,
    .chapter-heading,
    .document-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .document-aside {
        position: static;
    }

    .experience-card,
    .experience-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .experience-card:nth-child(even) .experience-copy,
    .experience-card:nth-child(even) .experience-media {
        grid-row: auto;
        grid-column: auto;
    }

    .control-grid {
        grid-template-columns: 1fr;
    }

    .control-copy {
        max-width: 660px;
    }

    .premium-shell,
    .premium-grid {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .premium-price-card {
        padding: 36px 0 0;
        border-top: 1px solid var(--line-dark);
        border-left: 0;
    }

    .product-switcher {
        grid-template-columns: 1fr;
    }

    .product-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid var(--line-strong);
    }

    .product-tab {
        min-height: 88px;
        padding: 16px 12px 16px 34px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .product-tab::before {
        top: 18px;
        left: 10px;
    }

    .product-tab span {
        display: none;
    }

    .product-tab.is-active::after {
        top: auto;
        right: 0;
        bottom: -1px;
        left: 0;
        width: auto;
        height: 3px;
    }

    .product-panel {
        min-height: auto;
    }

    .product-panel-copy {
        grid-template-columns: 1fr;
    }

    .manifest-row {
        grid-template-columns: 40px minmax(150px, 0.5fr) minmax(220px, 1fr) 88px;
        gap: 16px;
    }

    .protocol-band {
        grid-template-columns: 1fr;
    }

    .premium-offer {
        grid-template-columns: 1fr;
    }

    .premium-offer-copy {
        border-bottom: 1px solid var(--line-dark);
    }

    .premium-offer-footnote {
        margin-top: 0;
    }

    .pricing-alternatives {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-alternatives-heading {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 1px solid var(--line-strong);
    }

    .pricing-alternatives > :last-child {
        border-right: 0;
    }

    .signal-ledger-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .signal-cell:nth-child(2) {
        border-right: 0;
    }

    .signal-cell:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 768px) {
    .hero-assurance {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* The label stops floating and becomes a caption under the screenshot: at
       this width an absolutely-positioned label is always wider than the space
       beside the frame, which is what made the pair collide. */
    .hero-showcase {
        display: grid;
        width: 100%;
        gap: 18px;
        margin-top: 18px;
        padding-bottom: 0;
    }

    .tv-frame {
        box-shadow: 12px 14px 0 color-mix(in srgb, var(--accent) 10%, transparent);
    }

    .tv-frame-top > span:nth-child(2) {
        display: none;
    }

    .hero-float {
        position: static;
        width: 100%;
        max-width: none;
    }

    .hero-float--guide {
        inset: auto;
    }

    .trust-strip-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-block: 23px;
    }

    .trust-strip ul {
        grid-template-columns: repeat(2, 1fr);
        border-top: 1px solid var(--line);
    }

    .trust-strip li {
        padding: 11px 8px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .experience-card {
        padding-block: 42px;
    }

    .experience-copy {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 12px;
    }

    .control-visual {
        min-height: 380px;
    }

    .control-screen--back {
        width: 84%;
    }

    .control-screen--front {
        width: 80%;
    }

    .setup-cards,
    .process-list {
        grid-template-columns: 1fr;
    }

    .setup-cards li,
    .process-step {
        min-height: 0;
        grid-template-columns: 32px minmax(0, 1fr);
        align-content: start;
        gap: 18px;
        padding: 24px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .setup-cards li:last-child,
    .process-step:last-child {
        border-bottom: 0;
    }

    .finale > .wrap-wide,
    .finale-shell {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 28px;
    }

    .finale-actions {
        justify-content: flex-start;
    }

    .editorial-hero-inner,
    .document-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .editorial-hero-inner .editorial-hero-copy,
    .document-hero-copy {
        grid-column: auto;
    }

    .screen-reel {
        grid-template-columns: 1fr;
    }

    .screen-reel figure:nth-child(n + 3) {
        display: none;
    }

    .product-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-tab {
        border-bottom: 1px solid var(--line);
    }

    .product-panel-copy {
        padding: 28px 22px;
    }

    .product-panel-screen {
        padding: 12px;
    }

    .chapter-heading {
        margin-bottom: 28px;
    }

    .manifest-row {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 11px;
        padding-block: 20px;
    }

    .manifest-row p {
        grid-column: 2 / -1;
    }

    .manifest-tier {
        grid-column: 3;
        grid-row: 1;
    }

    .premium-term-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 12px;
    }

    .setup-row,
    .changelog-entry,
    .ruled-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0 14px;
    }

    .help-search {
        grid-template-columns: 1fr;
    }

    .help-search .btn {
        width: 100%;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .help-card-link {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .hero-actions .btn,
    .chapter-actions .btn,
    .finale-actions .btn {
        width: 100%;
    }

    .hero-float {
        padding: 10px 12px;
    }

    .signal-ledger-row {
        grid-template-columns: 1fr;
    }

    .signal-cell {
        min-height: 86px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .download-command-inner {
        grid-template-columns: 1fr;
        padding-block: 22px;
    }

    .download-command-inner .btn {
        width: 100%;
    }

    .premium-offer-copy,
    .premium-term-picker {
        padding: 28px 20px;
    }

    .premium-terms,
    .pricing-alternatives {
        grid-template-columns: 1fr;
    }

    .pricing-alternatives-heading {
        grid-column: auto;
    }

    .pricing-alternatives > * {
        border-right: 0;
        border-bottom: 1px solid var(--line-strong);
    }

    .pricing-alternatives > :last-child {
        border-bottom: 0;
    }

    .pricing-alternative-action {
        align-items: stretch;
        flex-direction: column;
    }

    .pricing-alternative-action .btn {
        width: 100%;
    }

    .compare-disclosure summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* ===== BEGIN restored-from-HEAD (redesign drop recovery) ===== */
/* Rules that existed before the redesign and that the app still depends on:
   every class targeted here had NO styling at all afterwards, so the markup
   was rendering unstyled. Appended so they win on equal specificity.
   Delete everything between the BEGIN/END markers to undo the restoration. */
/* Marketing layout (home + features / pricing / faq / setup / download).
   Pairs with tokens.css + base.css + components.css + motion.css. Holds the
   marketing nav + footer, hero, sections, showcase, and the marketing-only
   components (device mockup, feature grid, pricing, compare matrix). Nothing
   here defines colours from raw values — everything pulls from custom
   properties so the same rules work in light + dark.
   Note: nav + footer live here while only marketing pages use them; they move
   to components.css when legal/portal pages adopt the injected footer. */

/* Active nav link from <body data-page> (set by components.js). */
.nav-links a.active {
color: var(--text);
}
.site-nav.is-scrolled {
padding: 0;
background: color-mix(in srgb, var(--bg) 90%, transparent);
backdrop-filter: blur(var(--blur-strong)) saturate(140%);
-webkit-backdrop-filter: blur(var(--blur-strong)) saturate(140%);
border-bottom-color: var(--line);
}
.site-nav.is-scrolled .nav-links {
background: var(--surface-soft);
border-color: var(--line);
backdrop-filter: blur(var(--blur-soft));
-webkit-backdrop-filter: blur(var(--blur-soft));
}
.setup-copy h3 {
margin: 0 0 6px;
font-size: 1.24rem;
font-weight: 700;
color: var(--text);
}
.setup-copy p {
margin: 0;
color: var(--text-soft);
line-height: 1.62;
}
.setup-actions {
display: flex;
gap: 14px;
flex-wrap: wrap;
}
.setup-note {
margin: var(--sp-4) 0 0;
color: var(--text-faint);
font-size: var(--fs-sm);
}
/* The site footer lives in components.css (universal, injected by components.js). */

/* ============================ RESPONSIVE ============================ */

@media (max-width: 920px) {
.nav-row {
position: relative;
padding-right: 52px;
}

.nav-links {
position: fixed;
inset: 72px 24px auto 24px;
flex-direction: column;
align-items: stretch;
gap: 14px;
padding: 18px;
border-radius: var(--radius-md);
background: var(--surface);
backdrop-filter: blur(var(--blur-strong));
-webkit-backdrop-filter: blur(var(--blur-strong));
border: 1px solid var(--line);
transform: translateY(-12px);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
transform var(--dur-med) var(--ease-out-soft),
opacity var(--dur-med) var(--ease-out-soft);
}

.nav-links.is-open {
transform: translateY(0);
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.nav-links a {
min-height: 48px;
border-bottom: 1px solid var(--line);
}

.nav-links a::after {
display: none;
}

.nav-links a:last-child {
border-bottom: 0;
}

.nav-cta-secondary {
display: none;
}

.nav-toggle {
position: fixed;
top: 14px;
right: 24px;
left: auto;
z-index: 2;
display: inline-flex !important;
transform: none;
}

.hero-stats {
grid-template-columns: 1fr;
gap: 14px;
}

.feature-row {
grid-template-columns: 56px 1fr;
gap: 18px;
}

.principle-list,
.stages,
.compliance-grid {
grid-template-columns: 1fr;
}

.stages::before {
display: none;
}
}

@media (max-width: 600px) {
.nav-links {
inset: 64px 16px auto 16px;
}

.nav-toggle {
top: 10px;
right: 16px;
}
}
.downloader-code-hero.no-code .code-mono {
font-size: 1.02rem;
letter-spacing: 0.04em;
}
/* Space the rendered "Download APK" button below the release line — scoped to
   the download list so other pages' .setup-actions are unaffected. */
#downloadLatest .setup-actions {
margin-top: var(--sp-5);
}
.poster .badge {
align-self: flex-start;
margin-bottom: 10px;
position: relative;
}
.changelog-meta {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 6px;
}
.changelog-version {
display: inline-flex;
align-items: center;
font-family: 'IBM Plex Mono', ui-monospace, monospace;
font-weight: 600;
font-size: 0.86rem;
color: var(--accent);
border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
border-radius: var(--radius-pill);
padding: 2px 12px;
}
.changelog-date {
color: var(--text-soft);
font-size: 0.92rem;
}
.changelog-title {
margin: 0 0 10px;
font-size: clamp(1.2rem, 2.4vw, 1.5rem);
font-weight: 700;
line-height: 1.25;
}
.changelog-bullets {
margin: 0 0 10px;
padding-left: 20px;
display: flex;
flex-direction: column;
gap: 6px;
}
.changelog-bullets:last-child {
margin-bottom: 0;
}
.changelog-bullets li {
list-style: disc;
}
/* ===== END restored-from-HEAD ===== */
