/* Freightools GPT — the public website and the sign-in screens, in the design system of the new freightools.com
   (the brand and design kit of 10 November 2026, applied 11 November 2026). A visitor who presses "Sign up free" on
   freightools.com lands here: the same logo in the same place, the same red button, the same type, dark by default
   with the same light switch.

   Loaded INSTEAD of app.css on these pages (src/ui/layout.ts head({ site: true })): the landing page and the pricing
   page (publicPageShell) and every sign-in screen (authPage). Markup: src/ui/site.ts, src/public/*.ts and the auth
   views. Behaviour: /static/site-theme.js (before first paint) and /static/site.js.

   TOKENS. The block between the two "kit tokens" marks is the kit's tokens/tokens.css, semantic and component layers
   and the light theme, UNCHANGED (tests/ui/site.test.ts checks the values). Dark is on :root and is the default for
   every visitor, whatever the operating system prefers; light is :root[data-theme="light"]. Never write a hex value
   in a rule below: use a token, and add a missing one to the kit first.

   COMPONENTS. The rules follow the kit's components.css; every class carries the prefix site- (kit .btn is
   .site-btn, .bar is .site-bar, .theme is .site-theme, .chatbar is .site-chatbar, .status is .site-status, .plan is
   .site-plan, .input is the input of .site-field), so nothing here meets the console's own class names. Shared with
   the server's views, unprefixed: .notice / .flash and their tones, .tbl, .muted, .icon, .sr-only, .skip-link,
   .brand-logo. No inline style anywhere (CSP style-src 'self').

   Rules of the system that the markup keeps: one red button per view; cyan means digital; amber and coral only mark
   Warning and Blocked (coral also marks form errors); JetBrains Mono only for codes, figures and labels; glass only on
   floating controls; only opacity, transform and a clip animate; every target is 44 px or more. */

/* ============================================================ fonts ============================================
   Inter (variable, with its optical-size axis) and JetBrains Mono: the website's own WOFF2 files, served from here,
   not from a third party. SIL Open Font License 1.1 (site/fonts/OFL.txt). */
@font-face { font-family: "Inter"; src: url("/static/site/fonts/inter-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/site/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* ============================================================ kit tokens: start ================================ */
/* === SEMANTIC (dark, the default) === */
:root {
  color-scheme: dark;
  --color-bg: #030a16;
  --color-bg-raise: #0a1424;
  --color-bg-sunk: #02070f;
  --color-panel: rgba(12, 24, 42, 0.62);
  --color-panel-solid: #0b1728;
  --color-glass: rgba(8, 17, 32, 0.78);
  --color-line: rgba(148, 163, 184, 0.18);
  --color-line-strong: rgba(226, 236, 248, 0.42);
  --color-text: #f3f6fb;
  --color-text-2: #cfd9e6;
  --color-mute: #93a4ba;
  --color-text-idle: #8fa1b8;
  --color-digital: #63e9f4;
  --color-digital-soft: rgba(99, 233, 244, 0.26);
  --color-digital-glow: rgba(99, 233, 244, 0.55);
  --color-measure: #58f0bb;
  --color-measure-glow: rgba(88, 240, 187, 0.5);
  --color-brand: #ea2a49;
  --color-logo: #ffffff;
  --color-logo-tag: #a2a9ad;
  --color-action: #e12242;
  --color-action-deep: #cc1a39;
  --color-action-glow: rgba(234, 42, 73, 0.6);
  --color-action-ring: rgba(255, 107, 53, 0.3);
  --color-on-action: #ffffff;
  --color-focus: #ff6b35;
  --color-warn: #f5a524;
  --color-blocked: #f0655a;
  --color-ghost: rgba(12, 24, 42, 0.5);
  --color-scrim: rgba(2, 6, 14, 0.8);
  --color-screen-edge: rgba(99, 233, 244, 0.28);
  --color-veil-rgb: 3, 10, 22;
  --color-on-film: #ffffff;
  --color-film-bg: #000000;
  --color-scroll-thumb: #1a2c44;
  --color-select-bg: rgba(99, 233, 244, 0.3);
  --color-cargo-1: #38bdf8;
  --color-cargo-2: #34d399;
  --color-cargo-3: #f5a524;
  --color-cargo-4: #f0655a;
  --color-cargo-5: #5b7fb9;
  --shadow-raise: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-action: 0 10px 28px -10px rgba(234, 42, 73, 0.65);
  --shadow-action-hover: 0 14px 34px -10px rgba(234, 42, 73, 0.8);
  --shadow-screen: 0 0 0 1px rgba(99, 233, 244, 0.22), 0 0 60px -8px rgba(99, 233, 244, 0.28), 0 40px 90px -40px rgba(0, 0, 0, 0.8);
  --shadow-film: 0 0 0 1px rgba(234, 42, 73, 0.5), 0 0 90px 0 rgba(234, 42, 73, 0.32), 0 40px 120px rgba(0, 0, 0, 0.6);
  --font-sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-display: clamp(2.6rem, min(5vw, 8.4vh), 4.75rem);
  --fs-h1: clamp(2.3rem, min(4.4vw, 7.4vh), 4.1rem);
  --fs-h2: clamp(1.9rem, min(3.2vw, 5.6vh), 2.9rem);
  --fs-h3: 1.375rem;
  --fs-beat: clamp(2.25rem, min(6.4vw, 11vh), 6rem);
  --fs-lede: clamp(1.05rem, 1.26vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms;
  --t-hover: 160ms;
  --t-ui: 220ms;
  --t-ui-out: 160ms;
  --t-bar: 320ms;
  --t-theme: 420ms;
  --t-enter: 640ms;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 56px;
  --s-9: 80px;
  --s-10: 120px;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --layout-gutter: clamp(20px, 4.6vw, 72px);
  --layout-content: 1240px;
  --layout-measure: 62ch;
  --layout-section: clamp(72px, 12vh, 136px);
}

/* === COMPONENTS === */
:root {
  --bar-h: 72px;
  --bar-island-h: 60px;
  --bar-island-w: 1180px;
  --bar-island-top: 16px;
  --bar-blur: 18px;
  --btn-h: 52px;
  --btn-h-sm: 44px;
  --btn-px: 28px;
  --btn-px-sm: 20px;
  --btn-radius: 999px;
  --btn-face-a: #e12242;
  --btn-face-b: #cc1a39;
  --btn-fg: #ffffff;
  --type-display-weight: 720;
  --type-display-tracking: -0.038em;
  --type-h2-tracking: -0.034em;
  --type-label-tracking: 0.16em;
  --scan-handle: 44px;
  --scan-line-w: 2px;
  --frame-radius: 14px;
  --frame-bar-h: 28px;
  --frame-filter: brightness(0.94) saturate(0.96);
  --focus-w: 2px;
  --focus-offset: 3px;
}

/* === LIGHT THEME (the generator's alternate-theme slot, selector renamed by tools/build-tokens.sh) === */
:root[data-theme="light"] {
  color-scheme: light;
  --color-bg: #eef1fa;
  --color-bg-raise: #ffffff;
  --color-bg-sunk: #e3e8f4;
  --color-panel: rgba(255, 255, 255, 0.78);
  --color-panel-solid: #ffffff;
  --color-glass: rgba(255, 255, 255, 0.9);
  --color-line: rgba(10, 31, 58, 0.14);
  --color-line-strong: rgba(10, 31, 58, 0.5);
  --color-text: #0a1f3a;
  --color-text-2: #223b59;
  --color-mute: #45596f;
  --color-text-idle: #4a5e75;
  --color-digital: #086b78;
  --color-digital-soft: rgba(8, 107, 120, 0.16);
  --color-digital-glow: rgba(8, 107, 120, 0);
  --color-measure: #0a7458;
  --color-measure-glow: rgba(10, 116, 88, 0);
  --color-focus: #0a1f3a;
  --color-logo: #092f42;
  --color-logo-tag: #5b6670;
  --color-warn: #8a5300;
  --color-blocked: #b3261e;
  --color-ghost: rgba(255, 255, 255, 0.6);
  --color-scrim: rgba(10, 31, 58, 0.55);
  --color-screen-edge: rgba(10, 31, 58, 0.16);
  --color-veil-rgb: 238, 241, 250;
  --color-scroll-thumb: #b9c4d6;
  --color-select-bg: rgba(8, 107, 120, 0.22);
  --color-cargo-1: #0e8fc9;
  --color-cargo-2: #12a474;
  --color-cargo-3: #d98a06;
  --color-cargo-4: #d9463a;
  --color-cargo-5: #3f629c;
  --shadow-raise: 0 24px 60px -30px rgba(10, 31, 58, 0.35);
  --shadow-action: 0 10px 26px -12px rgba(204, 26, 57, 0.6);
  --shadow-action-hover: 0 14px 30px -12px rgba(204, 26, 57, 0.75);
  --shadow-screen: 0 0 0 1px rgba(10, 31, 58, 0.12), 0 30px 70px -34px rgba(10, 31, 58, 0.45);
}
/* ============================================================ kit tokens: end ================================== */

/* ============================================================ pictures =========================================
   The Freightools GPT page's container, photograph and wireframe twin, in both themes (src/ui/static/site/plates/gpt,
   the website's own files). Set as backgrounds so only the files of the theme in use are fetched. */
:root {
  --site-photo: url('/static/site/plates/gpt/photo-dark-1440.webp');
  --site-wire: url('/static/site/plates/gpt/wire-dark-1440.webp');
}
:root[data-theme="light"] {
  --site-photo: url('/static/site/plates/gpt/photo-light-1440.webp');
  --site-wire: url('/static/site/plates/gpt/wire-light-1440.webp');
}
@media (min-width: 1500px), (min-width: 900px) and (min-resolution: 1.5dppx) {
  :root {
    --site-photo: url('/static/site/plates/gpt/photo-dark-2688.webp');
    --site-wire: url('/static/site/plates/gpt/wire-dark-2688.webp');
  }
  :root[data-theme="light"] {
    --site-photo: url('/static/site/plates/gpt/photo-light-2688.webp');
    --site-wire: url('/static/site/plates/gpt/wire-light-2688.webp');
  }
}

/* ============================================================ base =============================================
   The kit's base (components.css "base"), for pages that load this stylesheet alone. */
:root { --gutter: var(--layout-gutter); --veil: var(--color-veil-rgb); scrollbar-color: var(--color-scroll-thumb) var(--color-bg); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; scroll-padding-top: 96px; }
body.site {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.55; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
table { border-collapse: collapse; width: 100%; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
strong, b { font-weight: 620; }
code { font-family: var(--font-mono); font-size: 0.9em; }
a, button, input { touch-action: manipulation; }
::selection { background: var(--color-select-bg); color: var(--color-text); }
::placeholder { color: var(--color-mute); opacity: 1; }
:focus { outline: none; }
:focus-visible { outline: var(--focus-w) solid var(--color-focus); outline-offset: var(--focus-offset); border-radius: var(--r-sm); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: var(--s-4); top: var(--s-3); z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--color-text); color: var(--color-bg); font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site .muted { color: var(--color-mute); }
.site .icon { display: inline-block; flex: none; vertical-align: middle; }
/* the theme flips on one clock (site-theme.js): for that moment nothing transitions, so there is no muddy mid-grey */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ============================================================ type =============================================
   components.css "type". One color per headline; a second beat (a <span>) is set in muted text, never an accent. */
.site-h1, .site-h2 { font-weight: var(--type-display-weight); letter-spacing: var(--type-display-tracking); line-height: 1; text-wrap: balance; color: var(--color-text); }
.site-h1 { font-size: var(--fs-h1); }
.site-h2 { font-size: var(--fs-h2); letter-spacing: var(--type-h2-tracking); line-height: 1.04; }
.site-h1 span, .site-h2 span { color: var(--color-mute); }
.site-h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.018em; line-height: 1.2; text-wrap: balance; }
.site-lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--color-text-2); max-width: 54ch; text-wrap: pretty; }
.site-body { color: var(--color-text-2); max-width: var(--layout-measure); text-wrap: pretty; }
.site-small { font-size: var(--fs-small); color: var(--color-mute); }
.site-num { font-family: var(--font-mono); font-feature-settings: "zero" 1; letter-spacing: 0.02em; }
.site-label { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--type-label-tracking); text-transform: uppercase; color: var(--color-text-2); }
/* a list of words above a heading: spaced capitals with red dots between them */
.site-kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5em 1em; font-family: var(--font-mono); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-text); }
.site-kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--color-brand); flex: none; margin-left: -0.3em; }

/* line icons (src/ui/site.ts siteIcon): no fill, the current color */
.site-icon { width: 22px; height: 22px; display: inline-block; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================ buttons and links ================================
   components.css "buttons, links". The red button is the one action on a screen. */
.site-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 var(--btn-px); border-radius: var(--btn-radius);
  font-size: 1rem; font-weight: 620; letter-spacing: -0.005em; line-height: 1; white-space: nowrap; text-align: center;
  transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.site-btn:active { transform: scale(0.97); }
.site-btn--sm { min-height: var(--btn-h-sm); padding: 0 var(--btn-px-sm); font-size: 0.94rem; }
.site-btn--block { display: flex; width: 100%; }
.site-btn--brand { color: var(--btn-fg); background: linear-gradient(180deg, var(--btn-face-a), var(--btn-face-b)); box-shadow: var(--shadow-action), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px var(--color-action-ring); }
.site-btn--ghost { color: var(--color-text); background: var(--color-ghost); box-shadow: inset 0 0 0 1.5px var(--color-line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-btn--plain { color: var(--color-text); box-shadow: inset 0 0 0 1.5px var(--color-line-strong); }
.site-arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--color-text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: var(--color-line-strong); transition: text-decoration-color var(--t-hover) var(--ease-out); }
.site-arrow-link .site-icon { width: 18px; height: 18px; transition: transform var(--t-ui) var(--ease-out); }
.site-link, .site-linkbtn, .site-footer__credit a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--color-line-strong); transition: text-decoration-color var(--t-hover) var(--ease-out); }
.site-linkbtn { display: inline; line-height: inherit; }
.site-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
@media (hover: hover) and (pointer: fine) {
  .site-btn--brand:hover { box-shadow: var(--shadow-action-hover), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px var(--color-action-ring); }
  .site-btn--ghost:hover, .site-btn--plain:hover { box-shadow: inset 0 0 0 1.5px var(--color-text); }
  .site-arrow-link:hover, .site-link:hover, .site-linkbtn:hover, .site-footer__credit a:hover { text-decoration-color: currentColor; }
  .site-arrow-link:hover .site-icon { transform: translateX(4px); }
}

/* ============================================================ the logo =========================================
   The cropped wordmark, inlined so it follows the theme: letters in --color-logo, the bar in the logo red. 227 x 22 px
   at the left gutter; an uploaded logo (Platform settings, Branding) takes its place. */
.site-brand { display: block; flex: none; color: var(--color-logo); border-radius: var(--r-xs); padding: 11px 0; }
.site-wordmark { width: 227px; height: 22px; }
.site-wordmark .logo-bar { fill: var(--color-brand); }
.site-wordmark .logo-tm { fill: var(--color-logo-tag); }
.site-brand .brand-logo { display: block; height: 34px; width: auto; max-width: 227px; object-fit: contain; }

/* ============================================================ theme switch =====================================
   One round 44 px button: a moon in dark, a sun in light (aria-pressed="true" in light, stamped by site.js). */
.site-theme { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none; color: var(--color-text); box-shadow: inset 0 0 0 1.5px var(--color-line); background: var(--color-ghost); transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-hover) var(--ease-out); }
.site-theme:active { transform: scale(0.94); }
.site-theme svg { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
.site-theme__sun { opacity: 0; transform: rotate(-60deg) scale(0.6); }
:root[data-theme="light"] .site-theme__sun { opacity: 1; transform: none; }
:root[data-theme="light"] .site-theme__moon { opacity: 0; transform: rotate(60deg) scale(0.6); }
:root:not(.js) .site-theme { display: none; }   /* a switch that could do nothing is not offered */
@media (hover: hover) and (pointer: fine) { .site-theme:hover { box-shadow: inset 0 0 0 1.5px var(--color-line-strong); } }

/* ============================================================ header bar =======================================
   components.css "header bar and its floating island". Transparent at the top of the page; after 8 px of scroll
   site.js adds .is-island. While a red button of the page is on screen, .is-quiet turns the bar's own into an outline. */
.site-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.site-bar { position: fixed; inset: 0 0 auto 0; z-index: 50; pointer-events: none; }
.site-bar__in { position: relative; pointer-events: auto; display: flex; align-items: center; gap: var(--s-5); height: var(--bar-h); padding: 0 var(--gutter); margin: 0 auto; }
.site-bar__in::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-pill);
  background: var(--color-glass); -webkit-backdrop-filter: blur(var(--bar-blur)) saturate(1.4); backdrop-filter: blur(var(--bar-blur)) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--color-line), var(--shadow-raise);
  opacity: 0; transform: scale(0.985); transition: opacity var(--t-bar) var(--ease-out), transform var(--t-bar) var(--ease-out);
}
.site-bar.is-island .site-bar__in { height: var(--bar-island-h); max-width: min(var(--bar-island-w), calc(100% - 2 * var(--s-4))); margin-top: var(--bar-island-top); padding: 0 8px 0 var(--s-5); gap: var(--s-4); }
.site-bar.is-island .site-bar__in::before { opacity: 1; transform: none; }
.site-bar.is-island .site-wordmark { width: 186px; height: 18px; }
.site-nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.site-nav a, .site-signin { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: 0.95rem; font-weight: 540; color: var(--color-text); white-space: nowrap; transition: background-color var(--t-hover) var(--ease-out); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-digital); border-radius: 0; }
.site-actions { display: flex; align-items: center; gap: var(--s-2); }
.site-bar__cta { margin-left: var(--s-2); }
.site-bar.is-quiet .site-bar__cta, :root:not(.js) .site-bar .site-bar__cta { color: var(--color-text); background: var(--color-ghost); box-shadow: inset 0 0 0 1.5px var(--color-line-strong); }
.site-burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--color-line-strong); background: var(--color-ghost); flex: none; }
.site-burger i { position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--color-text); }
.site-burger i:first-child { transform: translateY(-4px); }
.site-burger i:last-child { transform: translateY(4px); }
:root:not(.js) .site-burger { display: none; }   /* the menu needs scripting; without it Sign in stays in the bar */
@media (hover: hover) and (pointer: fine) { .site-nav a:hover, .site-signin:hover { background: var(--color-digital-soft); } }

/* the phone menu: a modal sheet (a real <dialog>), so Tab never walks into the page behind it */
.site-sheet { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-bg-raise); color: var(--color-text); overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow-raise); }
.site-sheet::backdrop { background: var(--color-scrim); }
.site-sheet[open] { animation: site-sheet-in 260ms var(--ease-out); }
.site-sheet[open]::backdrop { animation: site-fade-in var(--t-ui) var(--ease-out); }
@keyframes site-sheet-in { from { transform: translateX(100%); } }
@keyframes site-fade-in { from { opacity: 0; } }
.site-sheet__top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-5); background: var(--color-bg-raise); box-shadow: 0 1px 0 var(--color-line); }
.site-sheet__body { padding: var(--s-4) var(--s-5) var(--s-7); display: grid; gap: var(--s-5); }
.site-sheet__list { display: grid; }
.site-sheet__list a { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 1.06rem; font-weight: 600; border-bottom: 1px solid var(--color-line); }
.site-sheet__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.site-sheet__actions { display: grid; gap: var(--s-3); }
.site-iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--color-line-strong); transition: transform var(--t-press) var(--ease-out); }
.site-iconbtn:active { transform: scale(0.94); }
.site-iconbtn svg { width: 16px; height: 16px; }

/* ============================================================ footer ===========================================
   The short footer: "Powered by Freightools" with a real link to freightools.com, and the theme switch. */
.site-footer { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: auto; padding: var(--s-5) var(--gutter); border-top: 1px solid var(--color-line); background: var(--color-bg-sunk); font-size: var(--fs-small); color: var(--color-mute); }
.site-footer__credit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-3); }
.site-footer__credit a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text-2); }
.site-footer--auth { margin-top: 0; padding: 0; border-top: 0; background: none; }

/* ============================================================ the scan stage ===================================
   One freight object, part photograph and part wireframe twin, with one line between them. The picture covers its
   box as object-fit: cover would (--site-fx / --site-fy are the focus), but as a box of its own (.site-plate__space),
   so the route, the line and the handle stay glued to the picture at every size. The line's place is the number
   --site-rest: 0 is the picture's left edge, 1 its right. Here the drawing is on the LEFT of the line and the steel
   on the right: a typed sentence becomes a shipment. No WebGL: two layered pictures and a clip. */
@property --site-rest { syntax: '<number>'; inherits: true; initial-value: 0.635; }
.site-plate {
  position: absolute; inset: 0; overflow: hidden; background: var(--color-bg); container-type: size;
  --site-ar: 1.769;                                                    /* 1440 / 814 */
  --site-w: max(100cqw, calc(100cqh * var(--site-ar)));
  --site-x: calc((100cqw - var(--site-w)) * var(--site-fx, 0.62));
  --site-line-x: calc(var(--site-x) + var(--site-w) * var(--site-rest));
}
.site-plate__space { position: absolute; left: var(--site-x); top: calc((100cqh - var(--site-w) / var(--site-ar)) * var(--site-fy, 0.4)); width: var(--site-w); height: calc(var(--site-w) / var(--site-ar)); }
.site-plate__img { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 100%; }
.site-plate__photo { background-image: var(--site-photo); }
.site-plate__wire { background-image: var(--site-wire); clip-path: inset(0 calc(100% - var(--site-rest) * 100%) 0 0); }
.site-plate__line { position: absolute; left: 0; top: 0; bottom: var(--site-line-bottom, 0px); width: var(--scan-line-w); margin-left: -1px; transform: translate3d(var(--site-line-x), 0, 0); background: linear-gradient(180deg, transparent, var(--color-digital) 14%, var(--color-on-film) 50%, var(--color-digital) 86%, transparent); box-shadow: 0 0 28px 5px var(--color-digital-glow); pointer-events: none; }
:root[data-theme="light"] .site-plate__line { width: 1.5px; background: var(--color-digital); box-shadow: none; }
/* the handle: a 44 px round control on the line; a slider for the keyboard and for a screen reader */
.site-scan-handle { position: absolute; left: 0; top: var(--site-handle-y, 58%); z-index: 2; width: var(--scan-handle); height: var(--scan-handle); margin: -22px 0 0 -22px; border-radius: 50%; transform: translate3d(var(--site-line-x), 0, 0); background: var(--color-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1.5px var(--color-digital), 0 0 22px -2px var(--color-digital-glow); cursor: ew-resize; touch-action: pan-y; transition: box-shadow var(--t-hover) var(--ease-out); }
.site-scan-handle::before, .site-scan-handle::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border: solid var(--color-text); border-width: 0 0 1.5px 1.5px; }
.site-scan-handle::before { left: 11px; transform: rotate(45deg); }
.site-scan-handle::after { right: 11px; transform: rotate(-135deg); }
.site-scan-handle.is-drag { box-shadow: inset 0 0 0 2px var(--color-digital), 0 0 28px 0 var(--color-digital-glow); }
.site-scan-handle:focus-visible { border-radius: 50%; }
:root:not(.js) .site-scan-handle { display: none; }
/* the words over the picture: port codes and coordinates are real text, never baked into it */
.site-hud { position: absolute; inset: 0; pointer-events: none; }
.site-hud__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.site-hud__svg path { fill: none; stroke: var(--color-digital); stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 5 7; opacity: 0.8; vector-effect: non-scaling-stroke; }
.site-hud__item { position: absolute; top: 23.5%; }
.site-hud__item--pod { left: 50%; }
.site-hud__item--pol { left: 84%; }
.site-hud__dot { display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--color-bg); box-shadow: 0 0 0 1.5px var(--color-digital), 0 0 14px 1px var(--color-digital-glow); }
.site-hud__dot::after { content: ""; display: block; position: relative; top: 3px; left: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--color-digital); }
.site-hud__text { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: var(--fs-label); line-height: 1.5; letter-spacing: 0.08em; color: var(--color-text); white-space: nowrap; font-feature-settings: "zero" 1; }
.site-hud__text small { display: block; font-size: inherit; letter-spacing: 0.22em; color: var(--color-digital); }
.site-hud__text b { font-weight: 600; letter-spacing: 0.14em; margin-right: 0.8em; }
.site-hud__item--pol .site-hud__text { position: absolute; right: -5px; top: 0; }   /* the origin's words end at its dot, inside the picture */

/* a browser without container units (before 2023): the photograph alone covers the box, with no line to misplace */
@supports not (width: 1cqw) {
  .site-plate__space { inset: 0; width: auto; height: auto; }
  .site-plate__img { background-size: cover; background-position: 62% 40%; }
  .site-plate__wire, .site-plate__line, .site-scan-handle, .site-hud { display: none; }
}

.site-scene { position: relative; background: var(--color-bg); }
.site-scene__pin { position: relative; height: var(--site-scene-h, min(92svh, 900px)); min-height: var(--site-scene-min, 600px); overflow: hidden; overflow: clip; isolation: isolate; }
.site-scene__veil { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.site-scene__copy { position: absolute; z-index: 4; }
.site-scene .site-scan-handle { z-index: 3; }

/* ============================================================ landing: the first screen ========================
   The container opens as a drawing and the line turns it into steel; it rests with the left third still drawn. */
.site-scene--hero { --site-scene-h: min(100svh, 1100px); --site-rest: 0.635; animation: site-sweep 1500ms var(--ease-in-out) 120ms backwards; }
.site-scene--hero.is-held, .site-scene--hero.is-scrolled { animation: none; }
@keyframes site-sweep { from { --site-rest: 1.06; } }
.site-scene--hero .site-scene__veil {
  background:
    linear-gradient(180deg, rgba(var(--veil), 0.66) 0, rgba(var(--veil), 0) 18%, rgba(var(--veil), 0) 72%, rgba(var(--veil), 0.72) 91%, rgba(var(--veil), 1) 100%),
    linear-gradient(90deg, rgba(var(--veil), 0.74) 0, rgba(var(--veil), 0.56) 24%, rgba(var(--veil), 0) 46%);
}
:root[data-theme="light"] .site-scene--hero .site-scene__veil {
  background:
    linear-gradient(180deg, rgba(var(--veil), 0.78) 0, rgba(var(--veil), 0) 18%, rgba(var(--veil), 0) 72%, rgba(var(--veil), 0.78) 91%, rgba(var(--veil), 1) 100%),
    linear-gradient(90deg, rgba(var(--veil), 0.84) 0, rgba(var(--veil), 0.66) 24%, rgba(var(--veil), 0) 46%);
}
.site-hero__copy { left: var(--gutter); top: clamp(112px, 20vh, 184px); width: min(540px, 38vw); }
.site-hero__copy .site-lede { margin-top: var(--s-5); max-width: 40ch; }
.site-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); }
.site-hero__note { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--color-text-2); }
.site-hero__chat { position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(28px, 6.4vh, 64px); width: min(470px, 33vw); }
/* the words arrive once, 640 ms, a little apart; the buttons never wait */
@keyframes site-rise { from { opacity: 0; transform: translate3d(0, var(--site-y, 14px), 0); } }
.site-hero__copy .site-h1 { --site-y: 16px; animation: site-rise var(--t-enter) var(--ease-out) backwards; }
.site-hero__copy .site-lede { --site-y: 10px; animation: site-rise var(--t-enter) var(--ease-out) 50ms backwards; }
.site-hero__note, .site-hero__chat { --site-y: 8px; animation: site-rise var(--t-enter) var(--ease-out) 100ms backwards; }

/* the message bar of the product's chat: an illustration here, never a control */
.site-chatbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; color: var(--color-text); border-radius: var(--r-lg); }
.site-chatbar__label { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--type-label-tracking); text-transform: uppercase; color: var(--color-text-2); }
.site-chatbar__field {
  display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 8px 8px 8px 20px; border-radius: var(--r-lg);
  background: var(--color-glass); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--color-screen-edge), 0 0 36px -12px var(--color-digital-glow), var(--shadow-raise);
}
.site-chatbar__text { flex: 1; min-width: 0; font-size: 1rem; font-weight: 520; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-chatbar__text--idle { font-weight: 400; color: var(--color-mute); }
.site-chatbar__send { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--color-text); color: var(--color-bg); }
.site-chatbar__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-chatbar--flat .site-chatbar__field { background: var(--color-bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--color-screen-edge); }

/* ============================================================ landing: sections ================================ */
.site-section { position: relative; z-index: 3; background: var(--color-bg); padding: var(--layout-section) var(--gutter); }
.site-section--raise { background: var(--color-bg-raise); }
.site-section--tight { padding-top: var(--s-9); padding-bottom: var(--s-9); }
.site-wrap { max-width: var(--layout-content); margin: 0 auto; }
.site-section__head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); max-width: 780px; }
.site-product__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-5) var(--s-8); align-items: end; margin-bottom: var(--s-7); }
.site-product__head .site-h2 { margin-top: var(--s-4); }
.site-product__head .site-body { padding-bottom: 6px; }

/* the product drawn in this system: the chat at the left, the shipment file at the right. An illustration. */
.site-console { border-radius: var(--r-lg); background: var(--color-panel-solid); box-shadow: var(--shadow-screen); overflow: hidden; }
.site-console__body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.site-console__label { margin-bottom: var(--s-4); font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--type-label-tracking); text-transform: uppercase; color: var(--color-mute); }
.site-chat { display: flex; flex-direction: column; padding: var(--s-5); border-right: 1px solid var(--color-line); }
.site-chat__log { display: grid; align-content: start; gap: var(--s-4); flex: 1; }
.site-chat .site-chatbar { margin-top: var(--s-6); }
.site-msg { display: grid; justify-items: start; gap: 6px; }
.site-msg--me { justify-items: end; }
.site-msg__who { font-size: var(--fs-label); font-weight: 560; color: var(--color-mute); }
.site-bubble { max-width: 94%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-line); color: var(--color-text-2); font-size: 0.95rem; line-height: 1.45; }
.site-bubble--me { border-radius: 14px 14px 4px 14px; background: var(--color-digital-soft); box-shadow: none; color: var(--color-text); }
.site-file { display: flex; flex-direction: column; padding: var(--s-5); min-width: 0; }
.site-file__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px var(--s-4); margin-bottom: var(--s-4); }
.site-file__head .site-console__label { grid-column: 1 / -1; margin-bottom: 4px; }
.site-file__ref { font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--color-text); }
.site-facts-table th, .site-facts-table td { padding: 9px 0; border-top: 1px solid var(--color-line); text-align: left; vertical-align: baseline; font-size: 0.95rem; line-height: 1.4; }
.site-facts-table th { width: 34%; padding-right: var(--s-3); font-weight: 500; color: var(--color-mute); }
.site-facts-table td { color: var(--color-text); font-variant-numeric: tabular-nums; }
.site-file__note { margin-top: var(--s-4); padding: 10px 14px; border-radius: var(--r-sm); background: var(--color-bg); box-shadow: inset 2px 0 0 var(--color-digital); font-size: 0.92rem; line-height: 1.45; color: var(--color-text-2); }
.site-console__tag { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--color-line); font-size: var(--fs-small); color: var(--color-mute); }

/* status marks: the word is always there; color is never the only signal */
.site-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--color-text); }
.site-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-digital); }

/* three things the product does, side by side: a hairline above, the digital square, the title, one sentence */
.site-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-9); border-top: 1px solid var(--color-line-strong); }
.site-steps > li { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6) var(--s-6) var(--s-2) 0; }
.site-steps > li + li { padding-left: var(--s-6); border-left: 1px solid var(--color-line); }
.site-steps > li::after { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 2px; background: var(--color-digital); }
.site-steps > li + li::after { left: -4px; }
.site-steps .site-icon { width: 40px; height: 40px; margin-bottom: var(--s-2); color: var(--color-digital); }
.site-steps p { max-width: 38ch; color: var(--color-text-2); }

/* figures in mono with a short caption */
.site-cost { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--s-8); align-items: end; }
.site-cost__lead { display: grid; justify-items: start; gap: var(--s-4); }
.site-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-line-strong); }
.site-figure { padding: var(--s-5) var(--s-5) var(--s-2) 0; }
.site-figure + .site-figure { padding-left: var(--s-5); border-left: 1px solid var(--color-line); }
.site-figure__value { font-family: var(--font-mono); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--color-text); font-feature-settings: "zero" 1; }
.site-figure__caption { margin-top: 8px; font-size: var(--fs-small); color: var(--color-text-2); }

/* the closing: the container at the end of its story, with the page's red action once more */
.site-scene--close { --site-scene-h: min(76svh, 740px); --site-scene-min: 520px; --site-rest: 0.47; }
.site-scene--close .site-plate { --site-fy: 0.46; }
.site-scene--close .site-scene__veil {
  background:
    linear-gradient(180deg, rgba(var(--veil), 1) 0, rgba(var(--veil), 0) 20%, rgba(var(--veil), 0) 76%, rgba(var(--veil), 1) 100%),
    linear-gradient(90deg, rgba(var(--veil), 0.8) 0, rgba(var(--veil), 0.62) 26%, rgba(var(--veil), 0) 48%);
}
:root[data-theme="light"] .site-scene--close .site-scene__veil {
  background:
    linear-gradient(180deg, rgba(var(--veil), 1) 0, rgba(var(--veil), 0) 20%, rgba(var(--veil), 0) 76%, rgba(var(--veil), 1) 100%),
    linear-gradient(90deg, rgba(var(--veil), 0.88) 0, rgba(var(--veil), 0.72) 26%, rgba(var(--veil), 0) 48%);
}
.site-close__copy { left: var(--gutter); top: 50%; width: min(520px, 36vw); transform: translateY(-50%); display: grid; justify-items: start; gap: var(--s-5); }
.site-close__copy .site-lede { max-width: 36ch; }

/* ============================================================ pricing ==========================================
   The headline, the two plans (Free and Pro) side by side and one small note: the pricing pages people know. */
.site-pricing { flex: 1; padding: calc(var(--bar-h) + var(--s-8)) var(--gutter) var(--s-9); }
.site-pricing__intro { display: grid; justify-items: center; gap: var(--s-5); max-width: 860px; margin: 0 auto var(--s-8); text-align: center; }
.site-pricing__intro .site-lede { max-width: 58ch; }
.site-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); align-items: stretch; max-width: 920px; margin: 0 auto; }
.site-plan { display: flex; flex-direction: column; padding: var(--s-5); border-radius: var(--r-lg); background: var(--color-panel-solid); box-shadow: inset 0 0 0 1px var(--color-line); }
/* the two cards share their rows, so the prices and the buttons stand on one line across them */
@supports (grid-template-rows: subgrid) { .site-plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; align-content: start; } }
.site-plan--featured { box-shadow: var(--shadow-screen); }
.site-plan__head > .site-icon { width: 40px; height: 40px; margin-bottom: var(--s-4); color: var(--color-digital); }
.site-plan__name { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -0.018em; line-height: 1.2; }
.site-plan__desc { margin-top: 6px; font-size: 0.95rem; line-height: 1.5; color: var(--color-text-2); }
.site-plan__price, .site-plan__price > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.site-plan__price { margin-top: var(--s-4); }
.site-plan__price strong { font-size: var(--fs-h2); font-weight: var(--type-display-weight); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.site-plan__price span > span { font-size: 1rem; font-weight: 500; color: var(--color-text-2); }
.site-plan__fine { margin-top: 8px; font-size: var(--fs-small); line-height: 1.45; color: var(--color-text-2); }
/* ten small squares: the ten free shipments */
.site-ten { display: flex; gap: 5px; margin-top: var(--s-3); }
.site-ten i { width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--color-digital); background: var(--color-digital-soft); }
.site-plan > .site-btn { align-self: end; margin-top: var(--s-5); }
.site-plan__rest { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--color-line); }
.site-plan__extra { font-size: 0.95rem; line-height: 1.45; color: var(--color-text-2); }
.site-plan__extra + ul { margin-top: var(--s-4); }
.site-plan ul { display: grid; align-content: start; gap: 10px; font-size: 0.95rem; line-height: 1.4; color: var(--color-text-2); }
.site-plan li { display: flex; align-items: flex-start; gap: 10px; }
.site-plan li .site-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--color-digital); stroke-width: 1.75; }
.site-plan li.site-plan__plus { font-weight: 620; color: var(--color-text); }
.site-plan li.site-plan__plus:not(:first-child) { margin-top: var(--s-3); }
/* what needs scripting is offered only with it; without it the card says the same in words */
:root:not(.js) .site-js-only, .js .site-nojs-only { display: none; }
/* the estimator of the Pro card (components.css "forms": the range and the checkbox) */
.site-estimate { display: grid; gap: 2px; color: var(--color-text-2); }
.site-estimate__rate { font-size: 0.95rem; font-weight: 620; color: var(--color-text); }
.site-estimate__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-3); font-size: 0.92rem; font-weight: 600; color: var(--color-text); }
.site-estimate__top .site-num { font-weight: 600; }
.site-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; --site-fill: 18%; }
.site-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--color-digital) var(--site-fill), var(--color-line-strong) var(--site-fill)); }
.site-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--color-line-strong); }
.site-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--color-digital); }
.site-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--color-text); box-shadow: 0 0 0 4px var(--color-digital-soft); }
.site-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--color-text); box-shadow: 0 0 0 4px var(--color-digital-soft); }
.site-range:focus-visible { outline: var(--focus-w) solid var(--color-focus); outline-offset: 2px; border-radius: var(--r-pill); }
.site-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0 0; font-size: 0.95rem; line-height: 1.4; color: var(--color-text-2); cursor: pointer; }
.site-check input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--color-line-strong); background: var(--color-bg); display: grid; place-items: center; cursor: pointer; transition: background-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out); }
.site-check input::after { content: ""; width: 11px; height: 6px; margin-top: -2px; border: solid var(--color-bg); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0.6); opacity: 0; transition: opacity var(--t-press) var(--ease-out), transform var(--t-press) var(--ease-out); }
.site-check input:checked { background: var(--color-digital); box-shadow: none; }
.site-check input:checked::after { opacity: 1; transform: rotate(-45deg); }
.site-check input:focus-visible { border-radius: 6px; }
.site-pricing__note { max-width: 78ch; margin: var(--s-6) auto 0; font-size: var(--fs-small); line-height: 1.6; color: var(--color-mute); text-align: center; text-wrap: pretty; }

/* ============================================================ sign-in screens ==================================
   The website's form page: the logo and the theme switch alone in the header, the form on the page ground at the
   left, the Freightools GPT page's container at the right (from 1024 px; a band above the form below that). */
.site-auth { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); flex: 1; min-height: 100vh; min-height: 100svh; }
.site-auth__side { display: flex; flex-direction: column; min-width: 0; padding: 0 var(--gutter) var(--s-5); }
.site-auth__header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--bar-h); flex: none; }
.site-auth__content { flex: 1; display: grid; align-content: center; gap: var(--s-5); width: 100%; max-width: 470px; padding: var(--s-7) 0; }
.site-auth__intro { display: grid; gap: var(--s-4); }
.site-auth__intro .site-lede { max-width: 36ch; }
.site-auth__body { min-width: 0; }
.site--signup .site-auth__content { padding: var(--s-5) 0 var(--s-6); gap: var(--s-4); }
.site--signup .site-h1 { font-size: clamp(2.1rem, min(3.5vw, 6vh), 3.25rem); }

.site-pic { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; overflow: hidden; background: var(--color-bg-sunk); --site-rest: 0.52; --site-line-bottom: calc(clamp(56px, 9vh, 88px) + 116px); }
.site-pic .site-plate { --site-fx: 0.66; --site-fy: 0.52; background: var(--color-bg-sunk); }
/* the line moves one step with each step of the registration: the container ends real when the registration is in */
.site-pic--step2 { --site-rest: 0.46; }
.site-pic--step3 { --site-rest: 0.4; }
.site-pic__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--veil), 1) 0, rgba(var(--veil), 0) 18%), linear-gradient(180deg, rgba(var(--veil), 0.55) 0, rgba(var(--veil), 0) 22%, rgba(var(--veil), 0) 62%, rgba(var(--veil), 0.92) 100%); }
.site-panel-glass { padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--color-panel); box-shadow: inset 0 0 0 1px var(--color-line); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.site-pic__card { position: absolute; top: clamp(72px, 13vh, 132px); right: var(--gutter); width: min(380px, calc(100% - 2 * var(--gutter))); display: grid; gap: 8px; }
.site-pic__card-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.site-pic__chat { position: absolute; left: var(--s-7); right: var(--gutter); bottom: clamp(56px, 9vh, 88px); max-width: 500px; }
.site-pic__tag { position: absolute; right: var(--gutter); bottom: var(--s-4); font-size: var(--fs-small); color: var(--color-text-2); }

/* forms: labels above fields, help under them, 48 px inputs with 8 px corners and the page ground inside */
.site-form { width: 100%; }
.site-fields { display: grid; gap: var(--s-4); }
.site-field { display: grid; gap: 6px; min-width: 0; }
.site-field > label { font-size: 0.92rem; font-weight: 600; }
.site-field input:not([type='checkbox']):not([type='radio']) { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 0; border-radius: var(--r-sm); font: inherit; color: var(--color-text); background: var(--color-bg); box-shadow: inset 0 0 0 1.5px var(--color-line-strong); transition: box-shadow var(--t-hover) var(--ease-out); }
.site-field input:not([type='checkbox']):not([type='radio']):focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--color-focus); }
.site-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--color-blocked); }
.site-field__hint { font-size: var(--fs-small); line-height: 1.45; color: var(--color-mute); }
.site-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.site-password { position: relative; }
.site-password input:not([type='checkbox']) { padding-right: 52px; }
.site-eye { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--color-mute); transition: color var(--t-hover) var(--ease-out); }
.site-eye .site-icon { width: 20px; height: 20px; }
.site-eye .site-eye__off { display: none; }
.site-eye[aria-pressed='true'] .site-eye__on { display: none; }
.site-eye[aria-pressed='true'] .site-eye__off { display: inline-block; }
/* the six-digit code: mono, large and letter-spaced, in the same input frame */
.site .site-field input.site-code-input:not([type='checkbox']):not([type='radio']) { min-height: 56px; font-family: var(--font-mono); font-feature-settings: "zero" 1; font-size: 1.5rem; font-weight: 500; letter-spacing: 0.34em; text-align: center; }
.site-form__options { display: flex; align-items: center; justify-content: flex-end; margin-top: var(--s-3); font-size: 0.95rem; color: var(--color-text-2); }
.site-form__options .site-link { display: inline-flex; align-items: center; min-height: 44px; }
/* the form's one action: the red button, full width, saying what happens */
.site-form__action {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: var(--btn-h); margin-top: var(--s-5); padding: 0 var(--btn-px); border-radius: var(--btn-radius);
  color: var(--btn-fg); background: linear-gradient(180deg, var(--btn-face-a), var(--btn-face-b));
  box-shadow: var(--shadow-action), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px var(--color-action-ring);
  font-size: 1rem; font-weight: 620; letter-spacing: -0.005em; line-height: 1; white-space: nowrap; text-align: center;
  transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.site-form__action:active { transform: scale(0.97); }
.site-form__action:focus-visible { border-radius: var(--btn-radius); }
.site-form__options + .site-form__action { margin-top: var(--s-2); }
.site-form__action .site-icon { width: 18px; height: 18px; }
.site-form__reassure { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--color-mute); }
.site-form__switch { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--color-line); font-size: 0.95rem; color: var(--color-text-2); }
.site-form__aside { margin-top: var(--s-4); font-size: var(--fs-small); line-height: 1.55; color: var(--color-mute); }
.site-form__aside form { display: inline; }
.site-form__lead { margin-bottom: var(--s-4); color: var(--color-text-2); }
.site-form__lead strong { color: var(--color-text); overflow-wrap: anywhere; }
.site-choices { display: grid; gap: var(--s-2); }
.site-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--color-bg); box-shadow: inset 0 0 0 1.5px var(--color-line-strong); cursor: pointer; }
.site-choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--color-digital); }
.site-choice input { -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--color-line-strong); background: var(--color-bg); display: grid; place-items: center; cursor: pointer; }
.site-choice input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-bg); opacity: 0; }
.site-choice input:checked { background: var(--color-digital); box-shadow: none; }
.site-choice input:checked::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .site-form__action:hover { box-shadow: var(--shadow-action-hover), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px var(--color-action-ring); }
  .site-eye:hover { color: var(--color-text); }
}

/* messages the server renders (src/ui/layout.ts flashBlock, the views' notices). A notice sits on the raised ground
   with a 2 px line at its left: cyan for what is known or done, coral for an error or a block. Amber is kept for the
   Warning status mark alone, so a notice is never an amber box. */
.site .flash, .site .notice { margin: 0 0 var(--s-4); padding: 12px 16px; border-radius: var(--r-sm); background: var(--color-bg-raise); box-shadow: inset 2px 0 0 var(--color-digital), inset 0 0 0 1px var(--color-line); color: var(--color-text-2); font-size: 0.95rem; line-height: 1.5; overflow-wrap: anywhere; }
.site .flash-err, .site .notice.tone-err, .site .notice.tone-blocked { box-shadow: inset 0 0 0 1.5px var(--color-blocked); color: var(--color-text); }
.site .flash-ok, .site .notice.tone-ok, .site .flash-warn, .site .notice.tone-wait { color: var(--color-text-2); }
.site .notice.tone-muted { box-shadow: inset 0 0 0 1px var(--color-line); color: var(--color-mute); }
.site .flash strong, .site .notice strong { color: var(--color-text); }
.site .flash a, .site .notice a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.site .notice ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.site .notice li + li { margin-top: 3px; }
.site .tbl { display: block; max-width: 100%; overflow-x: auto; margin: 0 0 var(--s-4); font-size: var(--fs-small); }
.site .tbl th, .site .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.site-auth__body > .muted { font-size: var(--fs-small); }

/* ============================================================ responsive =======================================  */
/* the full bar gives way to the menu button */
@media (max-width: 899px) {
  .site-nav, .js .site-signin { display: none; }
  .site-burger { display: block; }
  .site-actions { margin-left: auto; }
}
@media (max-width: 1023px) {
  .site-product__head, .site-cost { grid-template-columns: 1fr; gap: var(--s-5); }
  .site-console__body { grid-template-columns: 1fr; }
  .site-chat { border-right: 0; border-bottom: 1px solid var(--color-line); }
}
/* a landscape screen that is narrow for the picture: the words take less width */
@media (min-width: 1000px) and (max-width: 1199px) and (orientation: landscape) {
  .site-hero__copy { width: min(540px, 34vw); }
  .site-hero__copy .site-h1 { font-size: min(var(--fs-h1), 3.5vw); }   /* "One conversation." stays on one line */
  .site-close__copy { width: min(520px, 34vw); }
}
/* short landscape: a compact desktop */
@media (max-height: 640px) and (min-width: 1000px) and (orientation: landscape) {
  .site-hero__copy { top: 88px; }
  .site-hero__copy .site-lede { margin-top: var(--s-3); }
  .site-hero__actions { margin-top: var(--s-4); }
  .site-hero__note, .site-chatbar__label { display: none; }
  .site-hero__chat { bottom: 20px; }
}
/* portrait under 1200 px (phones, and tablets held upright), and any screen under 1000 px wide (a phone on its side, a
   narrow window): the stacked first screen. The picture is a band; the words and the message sit on the page ground.
   The closing takes the same shape. */
@media (max-width: 999px), (max-width: 1199px) and (orientation: portrait) {
  :root { --site-band: clamp(250px, 40svh, 380px); --fs-h1: clamp(2.05rem, 9.2vw, 3.2rem); --fs-h2: clamp(1.85rem, 8vw, 2.7rem); }
  .site-scene--hero, .site-scene--close { --site-scene-h: auto; --site-scene-min: 0px; }
  .site-scene--hero .site-scene__pin { padding-bottom: var(--s-7); }
  .site-scene--close .site-scene__pin { padding-bottom: var(--s-9); }
  .site-scene .site-plate { position: relative; inset: auto; height: var(--site-band); --site-fx: 1; --site-fy: 0.5; --site-handle-y: 50%; }
  .site-scene--hero .site-scene__veil, :root[data-theme="light"] .site-scene--hero .site-scene__veil { inset: 0 0 auto 0; height: var(--site-band); background: linear-gradient(180deg, rgba(var(--veil), 0.66) 0, rgba(var(--veil), 0) 26%, rgba(var(--veil), 0) 78%, rgba(var(--veil), 1) 100%); }
  .site-scene--close .site-scene__veil, :root[data-theme="light"] .site-scene--close .site-scene__veil { inset: 0 0 auto 0; height: var(--site-band); background: linear-gradient(180deg, rgba(var(--veil), 1) 0, rgba(var(--veil), 0) 24%, rgba(var(--veil), 0) 78%, rgba(var(--veil), 1) 100%); }
  .site-hero__copy, .site-close__copy { position: relative; left: auto; top: auto; width: auto; transform: none; padding: var(--s-3) var(--gutter) 0; }
  .site-hero__copy .site-lede { margin-top: var(--s-3); font-size: 1rem; max-width: none; }
  .site-hero__actions { margin-top: var(--s-5); gap: var(--s-2) var(--s-3); }
  .site-hero__actions .site-btn { padding: 0 20px; }
  .site-hero__note { margin-top: var(--s-3); }
  .site-hero__chat { position: relative; left: auto; bottom: auto; width: auto; margin: var(--s-5) var(--gutter) 0; }
  .site-chatbar__text { white-space: normal; }
  .site-hud { display: none; }
  .site-close__copy .site-lede { max-width: none; }
}
@media (min-width: 600px) and (max-width: 1199px) and (orientation: portrait) {
  :root { --site-band: clamp(320px, 46svh, 520px); }
  .site-hero__copy .site-h1, .site-close__copy .site-h2 { max-width: 15ch; }
  .site-hero__copy .site-lede, .site-close__copy .site-lede { max-width: 46ch; }
  .site-hero__chat { max-width: 560px; }
}
/* the sign-in screens: one column, the picture a band above the form, the header over it */
@media (max-width: 1023px), (orientation: portrait) and (max-width: 1199px) {
  .site-auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .site-auth__side { position: static; padding-bottom: var(--s-6); }
  .site-auth { position: relative; }
  .site-auth__header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 0 var(--gutter); }
  .site-auth__content, .site--signup .site-auth__content { max-width: 520px; padding: var(--s-6) 0 var(--s-7); align-content: start; }
  .site-auth__content .site-h1, .site--signup .site-h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .site-pic { position: relative; order: -1; height: clamp(220px, 34svh, 360px); --site-line-bottom: 0px; }
  .site-pic__veil { background: linear-gradient(180deg, rgba(var(--veil), 0.6) 0, rgba(var(--veil), 0) 34%, rgba(var(--veil), 0) 70%, rgba(var(--veil), 1) 100%); }
  .site-pic__card, .site-pic__chat, .site-pic__tag { display: none; }
}
@media (max-width: 759px) {
  :root { --bar-h: 64px; }
  html { scroll-padding-top: 80px; }
  .site-bar__in { gap: var(--s-2); }
  .site-bar .site-theme { display: none; }
  .site-wordmark { width: 150px; height: 14.5px; }
  .site-bar.is-island .site-wordmark { width: 138px; height: 13.4px; }
  .site-bar.is-island .site-bar__in { padding: 0 8px 0 var(--s-4); height: 56px; margin-top: var(--s-2); }
  .site-bar__cta.site-btn { min-height: 40px; padding: 0 14px; font-size: 0.88rem; margin-left: 0; }
  .site-bar__cta.site-btn::after { content: ""; position: absolute; inset: -2px 0; }
  .site-btn, .site-form__action { min-height: 50px; }
  .site-btn { padding: 0 22px; }
  .site-section--tight { padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .site-chat, .site-file { padding: var(--s-4); }
  .site-console__tag { padding: var(--s-3) var(--s-4); }
  .site-steps { grid-template-columns: 1fr; margin-top: var(--s-8); }
  .site-steps > li { padding: var(--s-5) 0; }
  .site-steps > li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .site-steps > li + li::after { display: none; }
  .site-figures { grid-template-columns: 1fr; }
  .site-figure, .site-figure + .site-figure { padding: var(--s-4) 0; border-left: 0; }
  .site-figure + .site-figure { border-top: 1px solid var(--color-line); }
  .site-pricing { padding-top: calc(var(--bar-h) + var(--s-6)); padding-bottom: var(--s-8); }
  .site-plans { grid-template-columns: 1fr; max-width: 560px; }
  .site-plan + .site-plan { margin-top: var(--s-4); }
  .site-pricing__intro { justify-items: start; text-align: left; margin-bottom: var(--s-6); }
  .site-pricing__note { text-align: left; }
  .site-footer { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .site-field-pair { grid-template-columns: minmax(0, 1fr); }
}
/* the narrowest phones (320 to 374 px): the logo 118 px and a tighter red action, so all three fit */
@media (max-width: 374px) {
  .site-wordmark, .site-bar.is-island .site-wordmark { width: 118px; height: 11.4px; }
  .site-bar__cta.site-btn { padding: 0 10px; font-size: 0.82rem; }
  .site-bar.is-island .site-bar__in { max-width: calc(100% - 2 * var(--s-2)); gap: var(--s-2); }
}

/* ============================================================ reduced motion ===================================
   Collapse the choreography, do not just shorten it: nothing travels, presses do not scale, the first screen rests on
   its still. Fades and color changes stay. The page is complete and equal. */
@media (prefers-reduced-motion: reduce) {
  .site-btn:active, .site-form__action:active, .site-theme:active, .site-iconbtn:active { transform: none; }
  .site-scene--hero { animation: none; }
  .site-hero__copy .site-h1, .site-hero__copy .site-lede, .site-hero__note, .site-hero__chat { animation-name: site-fade-in; animation-duration: 200ms; animation-delay: 0ms; }
  .site-sheet[open] { animation-name: site-fade-in; }
  .site-arrow-link .site-icon, .site-theme svg { transition-duration: 1ms; }
  .site-bar__in::before { transform: none; }
}
