/* Shared building blocks for every page beyond the homepage.
   They reuse the homepage tokens and card language from styles.css; pages should compose these
   classes rather than add their own. See pages/kit.html for live examples of each block. */

/* Header and footer additions */
.navigation-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.footer-main { flex-direction: column; align-items: stretch; gap: 44px; }
.footer-columns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 28px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-column > p { margin-bottom: 8px; color: var(--paper); font-size: 12px; font-weight: 500; }
.footer-column a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; color: #9aa6ba; font-size: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; color: var(--faint); }
@media (hover: hover) { .footer-legal a:hover { color: var(--paper); } }
@media (hover: hover) { .footer-column a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; } }

/* Homepage hero composition: the dashboard with two smaller product screens floating over its lower corners. */
.hero-composition { position: relative; }
.hero-float { position: absolute; z-index: 2; border: 1px solid #2a3a5c; border-radius: 12px; background: var(--charcoal); box-shadow: 0 30px 80px #000000b3, 0 0 0 1px #00000066, 0 0 60px #0066ff2e; }
.hero-float img { display: block; width: 100%; height: auto; border-radius: 11px; }
.hero-float-ai { left: -6%; bottom: 7%; width: 34%; }
.hero-float-backtest { right: -6%; bottom: 12%; width: 38%; }
.dashboard-image-wrap.is-16-10 { aspect-ratio: 16 / 10; }
.hero-float-label { position: absolute; top: -13px; left: 16px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: #0066ffe6; color: #fff; font-size: 11px; font-weight: 500; line-height: 1.4; box-shadow: 0 4px 14px #0066ff59; }
@media (max-width: 1240px) { .hero-float-ai { left: 2%; } .hero-float-backtest { right: 2%; } }
@media (max-width: 800px) { .hero-float { display: none; } }

/* Page hero: the homepage atmosphere with a shorter headline block and an optional framed screenshot */
.page-hero { padding-block: 64px 96px; }
.page-hero.has-shot { padding-bottom: 0; }
.page-hero-copy { max-width: 780px; }
.page-hero h1 { font-size: clamp(42px, 4.4vw, 62px); line-height: 1.03; letter-spacing: -2.8px; text-wrap: balance; }
.page-lead { max-width: 540px; margin-top: 22px; color: #dbe5f5; font-size: 16px; line-height: 1.6; }
.page-hero .hero-actions { margin-top: 28px; }
/* Mobile app store placeholders until the apps are published. */
.store-soon { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-soon p { display: flex; flex: 1 1 0; align-items: center; gap: 12px; max-width: 210px; min-width: 0; padding: 12px 18px; border: 1px solid #ffffff2e; border-radius: 12px; background: #05070c99; }
.store-logo { flex: none; width: 26px; height: 26px; }
.store-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.store-soon strong { color: var(--paper); font-size: 16px; font-weight: 500; white-space: nowrap; }
.store-text span { color: var(--sky); font-family: var(--utility); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.page-shot { position: relative; margin-top: 64px; border: 1px solid #1f2a40; border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--charcoal); box-shadow: 0 -10px 70px #0066ff38; }
.page-shot img { display: block; width: 100%; height: auto; }
/* App tool screenshot cropped to the UI: the 1400x900 capture has empty margins around a 1140x860 area. */
.tool-shot { display: block; aspect-ratio: 1140 / 860; overflow: hidden; border: 1px solid #1f2a40; border-radius: 16px; background: #000; box-shadow: 0 30px 80px -40px #0066ff99; }
.tool-shot img { display: block; width: 122.8%; max-width: none; margin: -0.9% 0 0 -11.4%; outline: 0; }

/* Sections */
.page-section { padding-top: 104px; }
.page-section:last-child { padding-bottom: 8px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading h2 span:not(.word) { color: #7d889e; }
.section-heading > p { max-width: 340px; padding-bottom: 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.section-heading.is-stacked { flex-direction: column; align-items: flex-start; gap: 18px; }

/* Section rhythm: a closing invitation straight after a section needs the same gap a FAQ would give;
   consecutive FAQ groups share one gap. */
.page-section + .journal-invitation { margin-top: 104px; }
.questions + .questions { padding-top: 0; }

/* Feature rows: copy beside a real screenshot that sits flush with the card's bottom-right edge */
.feature-row { display: grid; grid-template-columns: .9fr 1.6fr; overflow: hidden; border: 1px solid #1d2b47; border-radius: 18px; background: radial-gradient(80% 100% at 100% 100%, #0066ff29, transparent 65%), linear-gradient(135deg, #0c1730, #080e1c); }
.feature-row + .feature-row { margin-top: 24px; }
.feature-row.is-reversed { grid-template-columns: 1.6fr .9fr; }
.feature-row.is-reversed .feature-visual { order: -1; padding: 40px 40px 0 0; }
.feature-row.is-reversed .feature-visual img { border-radius: 0 10px 0 0; }
.feature-row.is-blue { border-color: transparent; background: var(--blue); color: #fff; }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 38px 32px 34px 40px; }
.feature-copy h3 { margin-top: 26px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -1.3px; }
.feature-copy > p { max-width: 300px; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-copy .story-link { margin-top: auto; padding-top: 28px; color: var(--paper); }
.feature-row.is-blue .product-label { color: #d4e4ff; }
.feature-row.is-blue .feature-copy > p { color: #dce8ff; }
.feature-row.is-blue .feature-copy .story-link { color: #fff; }
.feature-row.is-blue a:focus-visible { outline-color: #fff; }
.feature-visual { align-self: end; padding: 40px 0 0 40px; }
.feature-visual img { width: 100%; border-radius: 10px 0 0 0; box-shadow: 0 -12px 50px #0066ff33; }
.feature-row.is-blue .feature-visual img { box-shadow: 0 -12px 50px #001a4d66; }
.feature-points { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; color: #c9d3e6; }
.feature-points li { position: relative; padding-left: 26px; line-height: 1.5; }
.feature-points li::before, .check-list li::before { content: ""; position: absolute; top: 1px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #0066ff2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.6 9 1.2' fill='none' stroke='%236aa8ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat; }
.feature-row.is-blue .feature-points { color: #fff; }
.feature-row.is-blue .feature-points li::before { background-color: #ffffff2e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.6 9 1.2' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Screenshot stack: three related captures layered on a diagonal inside a feature row.
   Markup: <div class="feature-visual shot-stack"> with three <a class="image-link" data-preview> children, back to front. */
.feature-visual.shot-stack { position: relative; align-self: center; width: 100%; aspect-ratio: 16 / 11; margin: 40px 0; padding: 0; }
.feature-row:not(.is-reversed) .feature-visual.shot-stack { margin-right: 40px; width: calc(100% - 40px); }
.feature-row.is-reversed .feature-visual.shot-stack { margin-left: 40px; width: calc(100% - 40px); }
.shot-stack > .image-link { position: absolute; width: 76%; border-radius: 10px; transition: transform 300ms var(--ease-out); }
.shot-stack > .image-link:nth-child(1) { top: 0; left: 0; z-index: 1; }
.shot-stack > .image-link:nth-child(2) { top: 14.5%; left: 12%; z-index: 2; }
.shot-stack > .image-link:nth-child(3) { top: 29%; left: 24%; z-index: 3; }
.shot-stack img { width: 100%; height: auto; border: 1px solid #ffffff24; border-radius: 10px; box-shadow: 0 24px 60px #00000080; }
.feature-row.is-blue .shot-stack img { box-shadow: 0 24px 60px #001a4d8c; }
@media (hover: hover) { .shot-stack > .image-link:hover { z-index: 4; transform: translateY(-6px); } }

/* Info cards: short benefit cards, optionally topped with a real screenshot crop instead of an icon */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-grid.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 28px; border: 1px solid #1a2233; border-radius: 18px; background: linear-gradient(180deg, #0c111c, #080b13); }
.info-card h3 { font-size: 20px; letter-spacing: -.5px; line-height: 1.25; }
.info-card > p { margin-top: 10px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.info-shot { height: 180px; margin: -28px -28px 24px; overflow: hidden; border-bottom: 1px solid #1a2233; background: #05070c; }
.info-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.info-card .story-link { margin-top: auto; padding-top: 18px; }

/* Link cards: hub pages that point to other pages */
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 26px 26px 22px; border: 1px solid #1a2233; border-radius: 18px; background: linear-gradient(180deg, #0c111c, #080b13); transition: border-color 200ms ease; }
.link-card h3 { font-size: 19px; letter-spacing: -.4px; line-height: 1.3; }
.link-card > p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.link-card .info-shot { height: 150px; margin: -26px -26px 22px; }
.link-arrow { margin-top: auto; padding-top: 18px; color: var(--sky); font-size: 18px; line-height: 1; }
/* A card with several destinations: a row of story links in place of the arrow. */
.card-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: auto; padding-top: 10px; }
.link-card:focus-visible { outline-offset: 3px; }
@media (hover: hover) { .link-card:hover { border-color: #2f4166; } }

/* Visual link cards: a real screenshot rises into the top of the card, zoomed to the part that matters.
   Markup: <div class="card-shot" style="--zoom:150%; --tx:-20%"><div class="card-shot-frame"><img …></div></div> as the card's first child.
   --zoom sets the screenshot width relative to the card; --tx shifts it left to frame the relevant area. */
.link-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-grid + .link-grid { margin-top: 16px; }
.card-shot { position: relative; height: 190px; margin: -26px -26px 24px; padding: 26px 0 0 26px; overflow: hidden; border-bottom: 1px solid #1a2233; background: radial-gradient(90% 100% at 100% 100%, #0066ff38, transparent 70%), #070b14; }
.link-grid.is-two .card-shot { height: 260px; }
.card-shot-frame { height: 100%; overflow: hidden; border: 1px solid #ffffff1f; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; background: #05070c; box-shadow: 0 -10px 40px #0066ff2e; }
.card-shot img { display: block; width: var(--zoom, 150%); max-width: none; height: auto; transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform 600ms var(--ease-out); }
.info-card .card-shot { margin: -28px -28px 22px; padding: 28px 0 0 28px; }
.info-grid.is-two .card-shot { height: 240px; }
@media (hover: hover) { .link-card:hover .card-shot img { transform: translate(calc(var(--tx, 0) - 6px), calc(var(--ty, 0) - 4px)); } }

/* Spacing between blocks inside one section, instead of inline margins. */
.block-gap { margin-top: 40px; }
.block-gap-s { margin-top: 24px; }
/* Comparison tables with equal-width columns. */
.compare-table.is-even { table-layout: fixed; }

/* Non-image blocks that give pages rhythm between screenshots. */
/* Fact strip: 3-4 verified facts as large numbers with short labels, separated by rules. */
.fact-strip { display: grid; grid-template-columns: repeat(var(--facts, 4), minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fact { min-width: 0; padding: 30px 24px 28px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.fact-value { font-family: var(--display); font-size: 46px; line-height: 1; letter-spacing: -2px; color: var(--paper); font-variant-numeric: tabular-nums; }
.fact-value small { margin-left: 6px; color: var(--sky); font-family: var(--body); font-size: 15px; letter-spacing: 0; }
.fact-label { max-width: 230px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
/* Point list: short bold points in two columns, separated by rules, no boxes. */
.point-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; padding: 0; list-style: none; }
:is(.prose, p) + .point-list { margin-top: 28px; }
.point-list li { position: relative; padding: 22px 0 22px 34px; border-top: 1px solid var(--rule); }
.point-list li::before { content: ""; position: absolute; top: 25px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #0066ff2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.6 9 1.2' fill='none' stroke='%236aa8ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.point-list strong { display: block; color: var(--paper); font-size: 16px; font-weight: 500; line-height: 1.4; }
.point-list li > span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.6; }
/* Plain note: one key sentence set as body text, optionally followed by a link. Deliberately no box,
   background or accent border; boxed or side-bordered highlight panels are not part of this design. */
.plain-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.plain-note p { max-width: 720px; color: #c9d3e6; font-size: 16px; line-height: 1.7; }
.plain-note .story-link { min-height: 0; color: var(--sky); }

/* Text-only cards (no card-shot) drop the box: an open column under a rule, with the arrow beside the title.
   On hover the rule fills with brand blue and the arrow nudges forward. */
:is(.link-card, .info-card):not(:has(.card-shot, .info-shot)) { position: relative; padding: 26px 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; overflow: visible; }
:is(.link-card, .info-card):not(:has(.card-shot, .info-shot))::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 500ms var(--ease-out); }
.link-card:not(:has(.card-shot)) h3 { padding-right: 36px; }
.link-card:not(:has(.card-shot)) .link-arrow { position: absolute; top: 24px; right: 0; padding: 0; transition: transform 300ms var(--ease-out); }
.link-card:not(:has(.card-shot)) > p { max-width: 380px; }
@media (hover: hover) {
  .link-card:not(:has(.card-shot)):hover { border-color: var(--rule); }
  .link-card:not(:has(.card-shot)):hover::before { width: 100%; }
  .link-card:not(:has(.card-shot)):hover .link-arrow { transform: translate(3px, -3px); }
  .link-card:not(:has(.card-shot)):hover h3 { color: #fff; }
}
.link-grid:not(:has(.card-shot)) { column-gap: 40px; row-gap: 36px; }
.info-grid:not(:has(.card-shot, .info-shot)) { column-gap: 40px; row-gap: 36px; }
:is(.link-card, .info-card).spotlight:not(:has(.card-shot, .info-shot))::after { display: none; }
.link-grid + .link-grid:not(:has(.card-shot)) { margin-top: 44px; }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px; border: 1px solid #1a2233; border-radius: 18px; background: linear-gradient(180deg, #0c111c, #080b13); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 26px; color: var(--sky); font-family: var(--display); font-size: 36px; letter-spacing: -1.5px; line-height: 1; }
.steps h3 { font-size: 19px; letter-spacing: -.4px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* Comparison tables */
.compare-wrap { overflow-x: auto; border: 1px solid #1a2233; border-radius: 18px; background: linear-gradient(180deg, #0c111c, #080b13); }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td { padding: 16px 22px; border-bottom: 1px solid #1a2233; text-align: left; vertical-align: top; line-height: 1.5; }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-table thead th { color: var(--paper); font-size: 13px; font-weight: 500; }
.compare-table tbody th { width: 34%; color: var(--muted); font-weight: 400; }
.compare-table td { color: #c9d3e6; }
.compare-table .is-tfb { background: #0f1a3099; color: var(--paper); }
.compare-table thead .is-tfb { color: var(--sky); }
.compare-table .group-row th { padding-top: 22px; color: var(--paper); font-weight: 500; background: #ffffff04; }
.mark-yes, .mark-no { display: inline-flex; align-items: center; gap: 8px; }
.mark-yes::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; background: #0066ff2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.6 9 1.2' fill='none' stroke='%236aa8ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat; }
.mark-no { color: var(--faint); }
.mark-no::before { content: ""; width: 10px; height: 1px; margin-inline: 3px; background: currentColor; }
.source-note { margin-top: 14px; color: var(--faint); font-size: 11px; line-height: 1.7; }
.source-note a { color: #9aa6ba; text-decoration: underline; text-underline-offset: 3px; }

/* Plain check list for prose-heavy cards */
.check-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; color: #c9d3e6; font-size: 13.5px; }
.check-list li { position: relative; padding-left: 26px; line-height: 1.55; }

/* Calculators */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.calc-panel { min-width: 0; padding: 32px; border: 1px solid #1a2233; border-radius: 18px; background: linear-gradient(180deg, #0c111c, #080b13); }
.calc-panel.is-result { border-color: transparent; background: radial-gradient(120% 55% at 50% 0%, #0066ff3d, transparent 70%) padding-box, linear-gradient(180deg, #0d1528, #080b13) padding-box, linear-gradient(160deg, #3d8bff, #00d4ff59 40%, #1a2233 75%) border-box; box-shadow: 0 30px 80px -40px #0066ff99; }
.calc-panel h2, .calc-panel h3 { font-size: 20px; letter-spacing: -.5px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field > label, .field-label { color: var(--muted); font-size: 12px; }
.field-hint { color: var(--faint); font-size: 11px; }
.input, .select { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid #26304a; border-radius: 12px; background: #ffffff05; color: var(--paper); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; transition: border-color 150ms ease, box-shadow 150ms ease; }
.select { appearance: none; padding-right: 40px; background: #ffffff05 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%239aa4b6' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 10px no-repeat; }
.select option { background: var(--panel); color: var(--paper); }
.input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #0066ff33; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid #1b2436; border-radius: 999px; background: var(--panel); }
.segmented button { min-height: 36px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; transition: background-color 150ms ease, color 150ms ease; }
.segmented button.is-active, .segmented button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.result-label { color: var(--muted); font-size: 12px; }
.result-value { margin-top: 8px; font-family: var(--display); font-size: 52px; letter-spacing: -2.4px; line-height: 1; font-variant-numeric: tabular-nums; }
.result-value small { margin-left: 6px; color: var(--muted); font-family: var(--body); font-size: 13px; letter-spacing: 0; }
.result-list { display: grid; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #1d2c4a; }
.result-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 13px; }
.result-list dt { color: var(--muted); }
.result-list dd { margin: 0; color: var(--paper); font-variant-numeric: tabular-nums; text-align: right; }
.calc-note { margin-top: 18px; color: var(--faint); font-size: 11px; line-height: 1.6; }
.field-row > .field + .field { margin-top: 0; }
.field-hint { line-height: 1.6; }
.result-value { overflow-wrap: anywhere; }
.result-list div { flex-wrap: wrap; }
.result-list dd { margin-left: auto; max-width: 100%; overflow-wrap: anywhere; }
.result-list dd small { display: block; color: var(--muted); }
.result-label + .result-list { margin-top: 12px; }
.calc [data-status] { min-height: 1.6em; }
.calc .session-clock { font-size: 26px; letter-spacing: -.8px; line-height: 1.25; }
.calc .session-open { color: var(--sky); }
.calc .tool-actions { margin-top: 20px; }
.calc .tool-actions button { padding: 0; border: 0; background: transparent; color: var(--paper); font-family: inherit; cursor: pointer; }

/* Long-form text: legal, about, changelog */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 52px; font-size: 26px; letter-spacing: -.8px; line-height: 1.25; }
.prose h3 { margin-top: 34px; font-size: 18px; letter-spacing: -.3px; }
.prose p, .prose li { color: #c9d3e6; font-size: 15px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--paper); font-weight: 500; }
.prose-meta { color: var(--faint); font-size: 13px; }

/* Changelog */
.log { display: grid; gap: 16px; }
.log-entry { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 28px 32px; border: 1px solid #1a2233; border-radius: 18px; background: linear-gradient(180deg, #0c111c, #080b13); }
.log-date { color: var(--sky); font-size: 13px; }
.log-entry h3 { font-size: 20px; letter-spacing: -.5px; }
.log-entry ul { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 18px; color: #c9d3e6; font-size: 14px; line-height: 1.65; }

/* Contact and simple forms reuse .field/.input; .textarea adds height */
.textarea { min-height: 140px; padding-block: 12px; resize: vertical; line-height: 1.6; }

@media (max-width: 1040px) {
  .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .feature-copy { padding: 32px 26px 28px 30px; }
  .feature-visual { padding: 32px 0 0 28px; }
  .feature-row.is-reversed .feature-visual { padding: 32px 28px 0 0; }
  .info-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-panel { padding: 26px; }
}
@media (max-width: 800px) {
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .point-list { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .page-hero { padding-block: 44px 72px; }
  .page-shot { margin-top: 44px; }
  .page-section { padding-top: 72px; }
  .page-section + .journal-invitation { margin-top: 72px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .feature-row, .feature-row.is-reversed { grid-template-columns: 1fr; border-radius: 14px; }
  .feature-row.is-reversed .feature-visual { order: 0; padding: 4px 0 0 26px; }
  .feature-row.is-reversed .feature-visual img { border-radius: 10px 0 0 0; }
  .feature-copy { padding: 28px 26px 18px; }
  .feature-copy > p { max-width: 420px; }
  .feature-copy .story-link { padding-top: 14px; }
  .feature-visual { padding: 4px 0 0 26px; }
  .feature-visual.shot-stack, .feature-row:not(.is-reversed) .feature-visual.shot-stack, .feature-row.is-reversed .feature-visual.shot-stack { width: calc(100% - 52px); margin: 8px 26px 28px; }
  .info-grid, .info-grid.is-two, .steps { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .log-entry { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
}
@media (max-width: 560px) {
  .page-hero h1 { font-size: 40px; letter-spacing: -2px; }
  .page-lead { font-size: 15px; }
  .info-grid.is-four, .link-grid, .link-grid.is-two { grid-template-columns: 1fr; }
  .card-shot, .link-grid.is-two .card-shot { height: 180px; }
  .field-row { grid-template-columns: 1fr; }
  .calc-panel { padding: 22px; }
  .result-value { font-size: 44px; }
  .compare-table th, .compare-table td { padding: 14px 16px; }
}

/* Blog (pages generated by build.mjs from posts published in Admin → Landing page). */
.card-shot.blog-shot { padding: 0; }
.card-shot.blog-shot .card-shot-frame { border: 0; border-radius: 0; box-shadow: none; }
.card-shot.blog-shot img { width: 100%; height: 100%; object-fit: cover; transform: none; }
.blog-card-date { margin-bottom: 8px; color: var(--faint); font-family: var(--utility); font-size: 11px; }
.hero-eyebrow a { color: inherit; }
.blog-meta { margin-top: 18px; color: var(--muted); font-size: 13px; }
.blog-article { max-width: 780px; }
.blog-hero-cover { margin: 0 0 44px; overflow: hidden; border: 1px solid #1a2233; border-radius: 16px; }
.blog-hero-cover img { display: block; width: 100%; height: auto; }
.blog-body { max-width: none; }
.blog-body p, .blog-body li { font-size: 16px; }
.blog-body img { display: block; max-width: 100%; height: auto; margin: 28px 0; border: 1px solid #1a2233; border-radius: 12px; }
.blog-body blockquote { margin-inline: 0; padding-left: 18px; border-left: 2px solid var(--blue); }
.blog-body code { padding: 2px 6px; border-radius: 5px; background: #ffffff14; font-family: var(--utility); font-size: .9em; }
.blog-body pre { overflow-x: auto; padding: 16px 18px; border: 1px solid #1a2233; border-radius: 12px; background: #05070c; }
.blog-body pre code { padding: 0; background: none; }
.blog-body hr { margin: 40px 0; border: 0; border-top: 1px solid var(--rule); }
