/* Turtlebox UI web layer, DARK mode (backer.live trial; tokens from turtlebox-ui css/tokens.css). GENERATED by scripts/build-web.py from css/fonts.css, css/tokens-light.css, css/web.css. Do not edit. */
/* Inter, self-hosted. Paths are relative to the stylesheet: keep the fonts/ folder next to it. */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Generated from tokens/tokens.json. Do not edit by hand. Light only: for websites, which always render light. */
:root {
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r-sm:6px;
  --r-md:10px;
  --r-lg:14px;
  --r-pill:999px;
  --paper:#1e1d1b;
  --sidebar:#171614;
  --surface:#262421;
  --hover:#2d2b27;
  --selected:#37342e;
  --line:#34312c;
  --ink:#f3eee4;
  --body:#c9c1b2;
  --muted:#968e80;
  --control:#8a8278;
  --accent:#d4a853;
  --accent-soft:#3d3320;
  --on-accent:#1c1c1c;
  --on-ink:#1c1c1c;
  --danger:#e58e80;
  --ok:#8fc29b;
  --scrim:rgba(0,0,0,.6);
  --shadow-pop:0 8px 28px rgba(0,0,0,.5),0 1px 3px rgba(0,0,0,.4);
  --s1:#338ced;
  --s2:#e76624;
  --s3:#00a888;
  --grid:#33302b;
  --axis:#4a463f;
  --space-xs:8px;
  --space-sm:16px;
  --space-md:24px;
  --space-lg:32px;
  --space-xl:48px;
  --space-2xl:64px;
  --space-3xl:96px;
  --button-h:40px;
  --button-h-lg:48px;
  --button-h-sm:34px;
  --input-h:44px;
  --nav-h:36px;
  --header-h:64px;
  --measure-page:1120px;
  --measure-prose:38rem;
  color-scheme: dark;
}

/* Turtlebox UI, web layer (v0.4 draft). The same tokens, corners and controls as the apps, set at website scale.
   Use it on every High Turtle and Turtlebox website. Websites render in light mode only: load css/tokens-light.css
   (or dist/web-light.css, which bundles fonts, tokens and this file). Role tokens only, no hex.
   Do not load this together with css/components.css: both define .btn and .bar. See docs/WEB.md. */

/* ---------- Ground and type ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 400 1rem/1.6 var(--sans); letter-spacing: -0.006em;
  font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.tb-surface { background: var(--paper); color: var(--body); font: 400 1rem/1.6 var(--sans); }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--sans); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--ink); }
a { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
code, kbd { font: 400 0.875em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sidebar); border-radius: 4px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 2 * var(--space-sm), var(--measure-page)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 2 * var(--space-lg), var(--measure-page)); } }

/* Labels are sentence case, 13px Medium, in body color (muted is below 4.5:1 on paper, so it is not used for text here) */
.eyebrow, .label { font: 500 0.8125rem/1.4 var(--sans); letter-spacing: 0; color: var(--body); }
.fine { font: 400 0.8125rem/1.55 var(--sans); color: var(--body); }
.lede { margin-top: var(--space-md); font-size: 1.1875rem; line-height: 1.55; max-width: 34em; }

.skip {
  position: absolute; left: var(--space-sm); top: -64px; z-index: 10;
  background: var(--ink); color: var(--on-ink); border-radius: var(--r-sm);
  font: 500 0.875rem/1 var(--sans); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: var(--space-sm); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: var(--header-h); padding-block: 12px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { height: 28px; width: auto; display: block; color: var(--ink); }
.brand-name { font: 600 1.25rem/1 var(--sans); letter-spacing: -0.025em; color: var(--ink); white-space: nowrap; }
.bar nav { display: flex; align-items: center; gap: 4px; }
/* Nav items work like the app sidebar: a soft fill on hover, the selected fill for the current page */
.bar nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: var(--nav-h); padding: 0 12px; border-radius: var(--r-sm);
  color: var(--body); text-decoration: none; font: 500 0.875rem/1 var(--sans); white-space: nowrap;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.bar nav a:not(.btn):hover { background: var(--hover); color: var(--ink); }
.bar nav a[aria-current="page"] { background: var(--selected); color: var(--ink); }
.bar nav .btn { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--button-h); padding: 0 18px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink);
  font: 500 0.875rem/1.2 var(--sans); letter-spacing: -0.005em; text-transform: none; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-lg, .btn-buy { min-height: var(--button-h-lg); padding: 0 24px; font-size: 0.9375rem; }
.btn-small, .btn-sm { min-height: var(--button-h-sm); padding: 0 14px; font-size: 0.8125rem; }
.btn-secondary, .btn-quiet { background: transparent; color: var(--ink); border-color: var(--control); }
.btn-secondary:hover, .btn-quiet:hover { background: var(--hover); border-color: var(--control); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--body); border-color: transparent; }
.btn-ghost:hover { background: var(--hover); color: var(--ink); border-color: transparent; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: default; pointer-events: none; }
/* A text action: underlined in gold, with a 44px hit area */
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 0.9375rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink);
  text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Hero, page heads, sections ---------- */
.hero { padding-block: var(--space-3xl) var(--space-2xl); }
.hero h1, .display { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 14em; }
.cta-row { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--space-md); }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: end; }
.feature-plate { margin: 0; }
.page-head { padding-block: var(--space-3xl) 0; }
.page-head h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); }
.page-head p { margin-top: var(--space-sm); max-width: 34em; font-size: 1.1875rem; line-height: 1.55; }
.page-head + .section { padding-top: var(--space-xl); border-top: 0; }
.page-head + .section .apps { margin-top: 0; }
.section { padding-block: var(--space-3xl); border-top: 1px solid var(--line); }
.section .intro { margin-top: var(--space-sm); max-width: 36em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.points { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg) var(--space-xl); }
.points h3 { font-size: 1.25rem; }
.points p { margin-top: var(--space-xs); }
.simple { padding-block: var(--space-3xl); }
.simple h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); }
.simple p { margin-top: var(--space-sm); max-width: 32em; font-size: 1.1875rem; line-height: 1.55; }
.simple .btn { margin-top: var(--space-lg); }
.prose { max-width: var(--measure-prose); }
.prose h2 { font-size: 1.5rem; margin-top: var(--space-xl); }
.prose h3 { margin-top: var(--space-lg); }
.prose p, .prose ul, .prose ol { margin-top: var(--space-sm); }
.prose li + li { margin-top: 6px; }

/* ---------- Cards and plates ---------- */
/* A card is a surface plate with a 1px rule and the large radius. No shadow. */
.card, .app-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--space-lg); display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.card h3, .app-card h3 { font-size: 1.375rem; }
.card p, .app-card p { line-height: 1.6; }
.app-card .action, .card .action { margin-top: auto; padding-top: var(--space-xs); }
.apps, .cards { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); gap: var(--space-md); }
a.card { text-decoration: none; color: var(--body); transition: border-color .15s ease-out, background-color .15s ease-out; }
a.card:hover { border-color: var(--control); }

/* ---------- Status, chips, notices ---------- */
.status { font: 500 0.8125rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--body); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--control); flex: none; }
.status-live::before, .status-testing::before, .status-on::before { background: var(--accent); border-color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--body); font: 500 0.8125rem/1 var(--sans); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.notice { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 12px 16px; color: var(--ink); font-size: 0.9375rem; }
.notice.warn { border-color: var(--accent); background: var(--accent-soft); }
.notice.error { border-color: var(--danger); color: var(--danger); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .form label, .dl-form label, .notify-form label { font: 500 0.875rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.input, input[type="email"], input[type="text"], input[type="search"], input[type="url"], input[type="tel"], select, textarea {
  font: 400 1rem/1.4 var(--sans); min-height: var(--input-h); padding: 10px 14px; border: 1px solid var(--control); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); min-width: 0; width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
.input:focus, input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field-row input { flex: 1 1 14rem; width: auto; }
.form-status { margin-top: 8px; font: 500 0.875rem/1.5 var(--sans); min-height: 1.5em; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--ink); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-xl); border-top: 1px solid var(--line); font: 400 0.8125rem/1.6 var(--sans); color: var(--body); }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); }

/* ---------- Small screens and motion ---------- */
@media (max-width: 860px) {
  .points, .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero, .section, .simple { padding-block: var(--space-2xl); }
  .page-head { padding-block: var(--space-2xl) 0; }
}
@media (max-width: 560px) {
  .bar nav { gap: 0; }
  .bar nav a:not(.btn) { padding: 0 8px; }
  .brand-name { font-size: 1.125rem; }
  .brand-mark { height: 24px; }
}
@media (max-width: 360px) {
  .bar nav a:not(.btn) { padding: 0 6px; font-size: 0.8125rem; }
  .brand { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Site glue (turtlebox/design-system/compat.css) ----------
   The page styles (store.css, backer.css, sites/highturtle.css, inline page styles) were written against the
   earlier marketing tokens. These names now point at the Turtlebox UI roles, so those sheets keep working. */
:root {
  --font-sans: var(--sans);
  --border-control: var(--control);
  --frame: var(--line);
  --focus-ring: var(--ink);
  --radius-none: 0;
  --radius-round: 50%;
  --radius-app-icon: 22%;
  --duration-base: 150ms;
  --duration-slow: 250ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Download form on the app pages */
.dl-form { margin-top: var(--space-xs); display: flex; flex-direction: column; gap: 10px; }
.dl-form .btn { align-self: flex-start; }
.dl-form .fine { color: var(--body); }
.empty { margin-top: var(--space-lg); }
.feature-plate .eyebrow { color: var(--body); }
