/* Fourfoot Rail public website (ui-public, Razor Pages): every page's styles in one small stylesheet (design_handoff_full
   Site / About / Terms, high fidelity). Themes are token sets on <html data-theme>; the inline head script sets the attribute
   before first paint from localStorage['ballast.theme']. No inline styles anywhere (the CSP has no 'unsafe-inline'). */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin.e2291e84.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400-latin.08949f72.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500-latin.01d28544.woff2) format('woff2'); }
/* Material Symbols Outlined, subset to the icons the pages use (site.css lists them in README) */
@font-face { font-family: 'Material Symbols Outlined'; font-style: normal; font-weight: 400; font-display: block; src: url(fonts/material-symbols-outlined-subset.471aa2c0.woff2) format('woff2'); }

:root, :root[data-theme='dark'] {
  --bg: #131518; --panel: #1d2024; --panel2: #2a2e33; --line: rgba(255,255,255,.08); --ink: #e7e9ec; --ink2: #9aa1aa;
  --accent: #5aa2ff; --accentSoft: rgba(90,162,255,.16); --accentInk: #0b1a2e; --line2: rgba(255,255,255,.14); --chipLine: rgba(255,255,255,.1);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f4f5f7; --panel: #ffffff; --panel2: #eef0f3; --line: rgba(0,0,0,.1); --ink: #1b1f24; --ink2: #5d6570;
  --accent: #2f6fe0; --accentSoft: rgba(47,111,224,.12); --accentInk: #ffffff; --line2: rgba(0,0,0,.14); --chipLine: rgba(0,0,0,.1);
  color-scheme: light;
}
:root[data-theme='blueprint'] {
  --bg: #0e2f54; --panel: #0b2747; --panel2: #143a66; --line: rgba(255,255,255,.13); --ink: #eaf2ff; --ink2: #9db6d3;
  --accent: #ffd24a; --accentSoft: rgba(255,210,74,.16); --accentInk: #0b2747; --line2: rgba(255,255,255,.14); --chipLine: rgba(255,255,255,.1);
  color-scheme: dark;
}

html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.page-site { line-height: 1.55; }
a { color: #5aa2ff; }
a:hover { color: #8cc0ff; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; } /* the news section and links carry display:flex classes */
.ms { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal;
  text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--accentInk); font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 20; height: 60px; padding: 0 24px; box-sizing: border-box; display: flex; align-items: center; gap: 12px;
  background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.3; }
.logo { flex-shrink: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.logo:hover { color: inherit; }
.logo-tile { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accentInk); }
.logo-tile .ms { font-size: 18px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-weight: 600; font-size: 14px; }
.logo-sub { font-size: 11px; color: var(--ink2); }
.mainnav { flex: 1; min-width: 0; display: flex; justify-content: safe center; gap: 2px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { flex-shrink: 0; height: 36px; padding: 0 10px; display: flex; align-items: center; border-radius: 8px; white-space: nowrap; text-decoration: none;
  font: 500 13px 'IBM Plex Sans', system-ui, sans-serif; color: var(--ink2); }
.mainnav a:hover { background: var(--panel2); color: var(--ink); }
.themes { display: flex; gap: 2px; padding: 2px; background: var(--panel2); border-radius: 8px; flex-shrink: 0; }
.themes button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--ink2); padding: 0; }
.themes button .ms { font-size: 18px; }
.themes button[aria-pressed='true'] { background: var(--panel); color: var(--ink); }
.btn-ghost-sm { flex-shrink: 0; height: 36px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; text-decoration: none;
  font: 500 13px 'IBM Plex Sans', system-ui, sans-serif; color: var(--ink); }
.btn-ghost-sm:hover { background: var(--panel2); color: var(--ink); }
.btn-accent-sm { flex-shrink: 0; height: 36px; padding: 0 14px; display: flex; align-items: center; border-radius: 8px; text-decoration: none;
  background: var(--accent); color: var(--accentInk); font: 600 13px 'IBM Plex Sans', system-ui, sans-serif; }
.btn-accent-sm:hover { color: var(--accentInk); }

/* ---------- shared blocks ---------- */
.sec { max-width: 1180px; margin: 0 auto; padding: 56px 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 72px; }
.sec-band { padding: 40px 40px; display: block; }
.sec-block { display: block; }
.h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.sec-intro { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.sec-sub { margin: 0; font-size: 17px; color: var(--ink2); text-wrap: pretty; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.card p { margin: 0; font-size: 14px; color: var(--ink2); text-wrap: pretty; }
.card:has(.card-link) { padding: 0; }
.card-link { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; color: inherit; text-decoration: none; border-radius: 14px; }
.card-link:hover { color: inherit; }
.card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card-more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--accent); }
.sec-more { margin: 20px 0 0; }
.step-h h3 a { color: inherit; text-decoration: none; }
.step-h h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-tile { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accentSoft); color: var(--accent); }
.icon-tile .ms { font-size: 22px; }
.arrow { font-size: 20px; }
.arrow-sm { font-size: 18px; }
.btn-lg { height: 46px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; text-decoration: none;
  font: 600 15px 'IBM Plex Sans', system-ui, sans-serif; box-sizing: border-box; }
.btn-accent { background: var(--accent); color: var(--accentInk); }
.btn-accent:hover { color: var(--accentInk); }
.btn-ghost { height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--line2); color: var(--ink); font: 500 14px 'IBM Plex Sans', system-ui, sans-serif; box-sizing: border-box; }
.btn-ghost:hover { background: var(--panel2); color: var(--ink); }
/* image placeholders: real screenshots/photos still to be supplied by the owner */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px;
  box-sizing: border-box; text-align: center; color: var(--ink2); font-size: 13px; line-height: 1.4; }
.ph .ms { font-size: 28px; opacity: .7; }
.ph-circle { font-size: 11px; padding: 10px; }
.ph-circle .ms { font-size: 22px; }

/* ---------- landing: hero ---------- */
.hero-bg { position: fixed; left: 0; right: 0; top: 60px; height: calc(100vh - 60px); z-index: 0; overflow: hidden; background: #1d2024; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,12,14,.82) 0%, rgba(10,12,14,.55) 45%, rgba(10,12,14,.05) 80%), linear-gradient(0deg, rgba(10,12,14,.6) 0%, rgba(10,12,14,0) 45%); }
.hero { position: relative; z-index: 1; min-height: min(78vh, 640px); display: flex; align-items: flex-end; }
.hero-in { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 96px 40px 64px; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; color: #fff; }
.hero-eyebrow { margin: 0; font: 500 13px 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .04em; color: #9cc8ff; }
.hero h1 { margin: 0; max-width: 640px; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-lead { margin: 0; max-width: 540px; font-size: 18px; color: rgba(255,255,255,.9); text-wrap: pretty; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* 46 px plus its 1 px borders, as the design (content-box there): CSS-614 */
.btn-hero2 { height: 48px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: #fff; font-weight: 500; }
.btn-hero2:hover { background: rgba(0,0,0,.45); color: #fff; }
.hero-note { margin: 0; font-size: 13px; color: rgba(255,255,255,.85); }
.over-hero { position: relative; z-index: 2; background: var(--bg); box-shadow: 0 -24px 48px rgba(0,0,0,.35); }

/* ---------- landing: how it works ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step-h { display: flex; align-items: baseline; gap: 10px; }
.step-n { font: 500 13px 'IBM Plex Mono', ui-monospace, monospace; color: var(--accent); }
.step-h h3 { margin: 0; font-size: 18px; font-weight: 600; }
.steps p { margin: 0; font-size: 14px; color: var(--ink2); text-wrap: pretty; }

/* ---------- landing: track systems ---------- */
.scales { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; padding: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.scales-l { display: flex; flex-direction: column; gap: 14px; }
.scales-l p { margin: 0; font-size: 16px; color: var(--ink2); text-wrap: pretty; }
.scales-r { display: flex; flex-direction: column; gap: 18px; }
.chips-grp { display: flex; flex-direction: column; gap: 8px; }
.chips-grp h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { height: 30px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; box-sizing: border-box; }
.chips-scale li { background: var(--panel2); font: 500 13px 'IBM Plex Mono', ui-monospace, monospace; }
.chips-maker li { border: 1px solid var(--chipLine); font-size: 13px; }
.chips li.chip-more { border: 0; padding: 0 4px; color: var(--ink2); }

/* ---------- landing: pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.price { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; }
.price-hi { border-color: var(--accent); }
.price-head { display: flex; align-items: center; gap: 8px; }
.price-head h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 600; }
.tag { padding: 3px 9px; border-radius: 9px; font-size: 11px; font-weight: 600; background: var(--accentSoft); color: var(--accent); }
.price-amt { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.price-amt span:first-child { font: 500 38px 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: -.02em; }
.price-amt span:last-child { font-size: 14px; color: var(--ink2); }
.price p.price-txt { margin: 0; font-size: 14px; color: var(--ink2); text-wrap: pretty; }
.price-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.price-list li { display: flex; gap: 8px; align-items: flex-start; }
.price-list li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.price-btn { margin-top: auto; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 9px; text-decoration: none;
  font: 600 14px 'IBM Plex Sans', system-ui, sans-serif; background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.price-btn:hover { color: var(--ink); background: var(--panel2); }
.price-hi .price-btn { background: var(--accent); color: var(--accentInk); border-color: transparent; }
.price-hi .price-btn:hover { color: var(--accentInk); background: var(--accent); }

/* ---------- news: the home page's cards, the list page and the article ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news article { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.news-card { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; border-radius: 12px; }
.news-card:hover { color: inherit; }
.news-card:hover h3, .news-card:hover .news-h { text-decoration: underline; text-underline-offset: 3px; }
.news-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background-color: var(--panel2); }
.news-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-meta { margin: 0; display: flex; gap: 8px; font-size: 12px; color: var(--ink2); }
.news-meta span { font-weight: 600; color: var(--accent); }
.news h3, .news .news-h { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.news .news-sum { display: block; margin: 0; font-size: 14px; color: var(--ink2); text-wrap: pretty; }

/* news list and article pages */
.page { max-width: 1180px; margin: 0 auto; padding: 48px 40px 80px; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; }
.crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink2); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--ink2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.page-lead { margin: 0; font-size: 17px; color: var(--ink2); max-width: 720px; text-wrap: pretty; }
/* the CMS's optional "Latest news" picture (files site-page, 16:10): whole on phones, a 2:1 middle strip from 640px */
.news-banner { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); }
.news-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .news-banner { aspect-ratio: 2 / 1; } }
.news-empty { margin: 0; font-size: 16px; color: var(--ink2); }
.art { max-width: 760px; margin: 0 auto; padding: 48px 40px 80px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; }
.art-head { display: flex; flex-direction: column; gap: 14px; }
.art-head h1 { margin: 0; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.art-sum { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; }
.art-cover { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--panel2); }
.art-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-body { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.7; }
.art-body p, .art-body ul, .art-body ol, .art-body blockquote { margin: 0; text-wrap: pretty; }
.art-body h2 { margin: 12px 0 0; font-size: 22px; line-height: 1.3; font-weight: 600; }
.art-fig { margin: 8px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel2); }
.art-fig img { display: block; width: 100%; height: auto; }
.art-body ul, .art-body ol { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.art-body blockquote { padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink2); }
.art-body a { color: var(--accent); }
.art-foot { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* ---------- landing: maker, faq, cta ---------- */
.maker { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.maker-photo { position: relative; width: 120px; height: 120px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--panel2); }
.maker-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.maker-txt { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.maker-txt h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 600; }
.maker-txt p { margin: 0; font-size: 16px; color: var(--ink2); text-wrap: pretty; }
.faq-sec { max-width: 860px; gap: 20px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; padding: 18px 0; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.faq summary h3 { flex: 1; margin: 0; font-size: 16px; font-weight: 600; }
.faq summary .ms { font-size: 20px; color: var(--ink2); }
.faq details p { margin: 0 0 18px; max-width: 680px; font-size: 15px; color: var(--ink2); text-wrap: pretty; }
.faq details p + p { margin-top: -8px; }
.cta-sec { padding: 40px 40px 80px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 40px; border-radius: 18px; background: var(--accent); color: var(--accentInk); }
.cta-txt { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.cta-txt h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 600; }
.cta-txt p { margin: 0; font-size: 16px; }
.btn-inv { height: 46px; padding: 0 22px; background: var(--accentInk); color: var(--accent); }
.btn-inv:hover { color: var(--accent); }

/* ---------- about ---------- */
.about-intro { max-width: 1080px; margin: 0 auto; padding: 64px 40px 40px; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }
.about-intro-txt { display: flex; flex-direction: column; gap: 18px; }
.eyebrow { margin: 0; font: 500 13px 'IBM Plex Mono', ui-monospace, monospace; color: var(--accent); }
.about-intro h1 { margin: 0; font-size: clamp(34px, 4.6vw, 50px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.about-lead { margin: 0; font-size: 19px; line-height: 1.65; text-wrap: pretty; color: var(--ink2); }
.about-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.about-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-fig figcaption { font-size: 13px; color: var(--ink2); }
.about-sec { max-width: 760px; margin: 0 auto; padding: 40px 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.about-h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.about-p { margin: 0; font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.about-p.muted { color: var(--ink2); }
.about-wide { max-width: 1080px; margin: 0 auto; padding: 40px 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; }
.about-wide-intro { max-width: 760px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.grid-care { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.grid-care .card p { line-height: 1.55; }
.contact-sec { max-width: 1080px; margin: 0 auto; padding: 40px 40px 80px; box-sizing: border-box; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 36px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.contact-txt { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.contact-txt h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 600; }
.contact-txt p { margin: 0; font-size: 16px; color: var(--ink2); text-wrap: pretty; }
.contact-txt a { color: var(--accent); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-btns .btn-lg { height: 44px; padding: 0 18px; font-size: 14px; }
.contact-btns .btn-ghost { height: 44px; }
.contact-btns .arrow-sm { font-size: 18px; }

/* ---------- terms ---------- */
.terms { max-width: 1080px; margin: 0 auto; padding: 56px 40px 80px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.toc { flex: 1 1 220px; max-width: 280px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; }
.toc-label { padding: 0 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.toc a { padding: 6px 10px; border-radius: 7px; text-decoration: none; color: var(--ink2); }
.toc a:hover { background: var(--panel2); color: var(--ink); }
.terms-art { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.legal-note { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--panel2); color: var(--ink2); font-size: 14px; text-wrap: pretty; }
.terms-head { display: flex; flex-direction: column; gap: 12px; }
.terms-head h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.terms-date { margin: 0; font-size: 14px; color: var(--ink2); }
.terms-intro { margin: 0; font-size: 17px; color: var(--ink2); text-wrap: pretty; }
.terms-art section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 84px; }
.terms-art h2 { margin: 0; display: flex; align-items: baseline; gap: 12px; font-size: 22px; line-height: 1.25; font-weight: 600; }
.terms-art h2 span { font: 500 14px 'IBM Plex Mono', ui-monospace, monospace; color: var(--ink2); }
.terms-art section p { margin: 0; font-size: 16px; color: var(--ink); opacity: .92; text-wrap: pretty; }
.terms-art section ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; opacity: .92; }
.terms-art section li { text-wrap: pretty; }
.terms-art section ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; opacity: .92; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.legal-links a { padding: 4px 10px; border-radius: 999px; background: var(--panel2); color: var(--ink2); text-decoration: none; }
.legal-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal-table { overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); text-wrap: pretty; }
.legal-table thead th { font-size: 13px; color: var(--ink2); font-weight: 600; }
.legal-table tbody th { font-weight: 500; }

/* ---------- not found ---------- */
.nf { max-width: 760px; margin: 0 auto; padding: 96px 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; min-height: calc(100vh - 360px); }
.nf h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.nf p { margin: 0; font-size: 17px; color: var(--ink2); }

/* ---------- get.fourfootrail.com ---------- */
.get-gap { flex: 1; }
.get { max-width: 760px; margin: 0 auto; padding: 72px 40px 88px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; min-height: calc(100vh - 160px); }
.get h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.get-lead { margin: 0; font-size: 17px; color: var(--ink2); text-wrap: pretty; }
.get-lead strong { color: var(--ink); font-weight: 600; }
.get-steps { margin: 8px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.get-steps li { display: flex; gap: 14px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.get-steps .step-n { padding-top: 3px; }
.get-steps div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.get-steps h2 { margin: 0; font-size: 17px; font-weight: 600; }
.get-steps p { margin: 0; font-size: 14px; color: var(--ink2); text-wrap: pretty; }
.get-steps strong { color: var(--ink); font-weight: 600; }
.get-cmd { display: inline-block; max-width: 100%; box-sizing: border-box; padding: 6px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line);
  font: 400 13px 'IBM Plex Mono', ui-monospace, monospace; color: var(--ink); overflow-wrap: anywhere; }
.get-note { margin: 0; font-size: 14px; color: var(--ink2); text-wrap: pretty; }
.get-note strong { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.ftr { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.ftr-in { max-width: 1180px; margin: 0 auto; padding: 36px 40px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 32px 48px; }
.ftr-co { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.ftr-co span:first-child { font-weight: 600; font-size: 14px; }
.ftr-co span:last-child { color: var(--ink2); max-width: 320px; }
.ftr nav { display: flex; flex-direction: column; gap: 8px; }
.ftr nav > span { font-weight: 600; }
.ftr nav a { color: var(--ink2); text-decoration: none; }
.ftr nav a:hover { color: var(--ink); }
.ftr-bottom { flex-basis: 100%; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--ink2); }
.ftr-bottom > span:first-child { flex: 1; min-width: 200px; }
.ftr-bottom a { color: var(--ink2); text-decoration: none; }
.ftr-bottom a:hover, .ftr-bottom a[aria-current='page'] { color: var(--ink); }
.ftr-legal { flex-basis: 100%; font-size: 12px; line-height: 1.5; }

/* ---------- phone menu (CSS-612): under 880px the links move into a menu next to the theme switch ---------- */
.mmenu { display: none; position: relative; flex-shrink: 0; }
.mmenu > summary { list-style: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px;
  cursor: pointer; color: var(--ink); user-select: none; }
.mmenu > summary::-webkit-details-marker { display: none; }
.mmenu > summary:hover, .mmenu[open] > summary { background: var(--panel2); }
.mmenu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mmenu svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mmenu .mm-close, .mmenu[open] .mm-open { display: none; }
.mmenu[open] .mm-close { display: block; }
.mmenu-list { position: fixed; top: 66px; left: 8px; right: 8px; z-index: 30; padding: 6px; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.mmenu-list a { height: 44px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 15px; }
.mmenu-list a:hover, .mmenu-list a[aria-current='page'] { background: var(--panel2); color: var(--ink); }
@media (max-width: 880px) {
  .mainnav { display: none; }
  .mmenu { display: block; }
  .logo { margin-right: auto; }
  .logo-sub { display: none; }
}

/* phones: the design's 40px side padding leaves too little room under 480px */
@media (max-width: 480px) {
  .hdr { padding: 0 12px; gap: 8px; }
  /* logo, themes, Sign in and Start free need ~450px side by side: keep the tile (still the home link), drop its text */
  .logo-text { display: none; }
  .mainnav { padding: 0; }
  .sec, .hero-in, .about-intro, .about-sec, .about-wide, .contact-sec, .terms, .ftr-in, .nf, .get, .page, .art { padding-left: 16px; padding-right: 16px; }
  .sec-band, .cta-sec { padding-left: 16px; padding-right: 16px; }
  .scales, .cta, .contact, .maker { padding: 24px; }
}
@media (max-width: 360px) {
  .btn-ghost-sm { padding: 0 8px; }
  .btn-accent-sm { padding: 0 10px; }
}

/* ---------- analytics consent (analytics.js): the dialog tokens, bottom left ---------- */
.cb { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45); font-size: 13px; line-height: 1.5; }
.cb p { margin: 0; }
.cb-t { font-size: 14px; font-weight: 600; }
.cb-x { color: var(--ink2); font-size: 12px; }
.cb-x a { color: var(--accent); }
.cb-b { display: flex; justify-content: flex-end; gap: 8px; }
.cb-b button { height: 32px; padding: 0 12px; border-radius: 7px; font: 600 13px 'IBM Plex Sans', system-ui, sans-serif; cursor: pointer; }
.cb-no { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.cb-no:hover { background: var(--panel2); }
.cb-yes { border: 0; background: var(--accent); color: var(--accentInk); }
.ftr-bottom button.ftr-link { border: 0; padding: 0; background: none; color: var(--ink2); font: inherit; cursor: pointer; }
.ftr-bottom button.ftr-link:hover { color: var(--ink); }

/* Links into the app while it isn't public yet (SITE_APP_OPEN=false): shown, not clickable. */
.is-soon, .is-soon:hover { cursor: default; pointer-events: none; opacity: .6; user-select: none; }

/* ---------- touch support (CONTRACTS "Touch: rules for every builder"): 44 px to tap on a touch screen ---------- */
@media (any-pointer: coarse) {
  .mainnav a, .btn-ghost-sm, .btn-accent-sm, .mmenu > summary { position: relative; }
  .btn-ghost-sm::after, .btn-accent-sm::after, .mmenu > summary::after { content: ''; position: absolute; inset: -4px; }
  .mainnav a { height: 44px; }
  .themes button { width: 36px; height: 36px; }
}
/* languages (CMS multi-language content): the footer picker, the "in your language" hint, an untranslated article's note */
.ftr-langs { flex-basis: 100%; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 6px 16px !important; }
.ftr-langs .ms { font-size: 18px; color: var(--ink2); }
.ftr-langs a[aria-current='true'] { color: var(--ink); font-weight: 600; }
.lang-hint { position: fixed; z-index: 30; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 8px 24px rgba(0,0,0,.3); font-size: 14px; }
.lang-hint a { color: var(--accent); font-weight: 600; }
.lang-hint-x { width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--ink2); font-size: 18px; cursor: pointer; }
.lang-hint-x:hover { background: var(--panel2); color: var(--ink); }
.art-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: var(--panel2); color: var(--ink2); font-size: 14px; }
:lang(ja), :lang(zh), :lang(ko) { font-family: 'IBM Plex Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans CJK JP', 'Noto Sans JP', 'Source Han Sans JP', system-ui, sans-serif; line-break: strict; word-break: normal; overflow-wrap: anywhere; font-synthesis: none; }
:lang(ja) em, :lang(ja) i, :lang(zh) em, :lang(zh) i, :lang(ko) em, :lang(ko) i { font-style: normal; font-weight: 600; }
