/* ════════════════════════════════════════════════════════════
   TradeLinkers — site stylesheet
   Single source of truth for landing + privacy + about + contact + faq
   ════════════════════════════════════════════════════════════ */

/* — Tokens ————————————————————————————————————————————————— */
:root {
  --trade-blue: #19467A;
  --blue-deep: #0E2A4D;
  --blue-mid:  #2A5E9E;
  --blue-lift: #4A8AD0;

  --amber:     #E8A13A;
  --amber-hot: #FFC768;

  --stone:     #F1ECE1;
  --ink:       #0B0F14;
  --canvas:    #F8FAFC;
  --muted:     #64748B;
  --border:    #E2E8F0;
  --surface:   #FFFFFF;
  --destructive: #EF4444;

  /* semantic */
  --bg:           var(--canvas);
  --bg-alt:       var(--surface);
  --bg-warm:      var(--stone);
  --bg-deep:      var(--blue-deep);
  --fg:           var(--ink);
  --fg-muted:     var(--muted);
  --line:         var(--border);
  --link:         var(--trade-blue);
  --focus:        var(--amber);

  --radius-sm:  8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11,15,20,.04), 0 1px 1px rgba(11,15,20,.03);
  --shadow:    0 4px 10px -2px rgba(11,15,20,.06), 0 2px 4px -2px rgba(11,15,20,.04);
  --shadow-lg: 0 30px 60px -20px rgba(14,42,77,.35), 0 18px 30px -18px rgba(14,42,77,.25);

  --container: 1200px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0A1422;
    --bg-alt:   #11203A;
    --bg-warm:  #14253F;
    --bg-deep:  #050C18;
    --fg:       #E9EEF6;
    --fg-muted: #95A5BE;
    --line:     #1E3252;
    --link:     #7DB1E8;
    --surface:  #11203A;
    --canvas:   #0A1422;
    --stone:    #14253F;
    --border:   #1E3252;
  }
}

/* — Reset ————————————————————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* — Typography ———————————————————————————————————————————— */
h1, h2, h3, h4 { color: var(--fg); letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.6vw + 1rem, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.2rem); }
h3 { font-size: clamp(1.25rem, .8vw + 1rem, 1.6rem); letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: 0; line-height: 1.3; }
p { text-wrap: pretty; }
.lede { font-size: clamp(1.1rem, .5vw + 1rem, 1.32rem); color: var(--fg-muted); line-height: 1.55; max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--trade-blue);
}
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.eyebrow-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(232,161,58,.55);
  animation: pulseDot 2.2s cubic-bezier(.4,0,.6,1) infinite;
}
.eyebrow-chip .label { color: var(--amber); font-weight: 700; }
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(232,161,58,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(232,161,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,161,58,0); }
}

/* — Layout ————————————————————————————————————————————————— */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: clamp(64px, 9vw, 120px) 0; }
section + section { border-top: 1px solid transparent; }
.bg-warm { background: var(--bg-warm); }
.bg-deep { background: var(--blue-deep); color: #E9EEF6; }
.bg-deep h1, .bg-deep h2, .bg-deep h3 { color: #fff; }
.bg-deep .lede { color: rgba(255,255,255,.78); }
.bg-deep a { color: var(--amber-hot); }

/* — Header / nav ——————————————————————————————————————————— */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  transition: background 200ms ease, backdrop-filter 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(11,15,20,.02);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-mark { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-mark small { font-size: 10px; font-weight: 600; color: var(--fg-muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
  border-radius: 999px;
  transition: background 150ms ease, color 150ms ease;
}
.nav-links a:hover { background: color-mix(in oklab, var(--fg) 5%, transparent); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--trade-blue); font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .nav-links a[aria-current="page"] { color: var(--blue-lift); }
}
.nav-cta { display: inline-flex; gap: 10px; align-items: center; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.menu-toggle svg { width: 20px; height: 20px; stroke: var(--fg); }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* — Mobile drawer ————————————————————————————————————————— */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.drawer[aria-hidden="false"] { visibility: visible; pointer-events: auto; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(11,15,20,.55);
  opacity: 0;
  transition: opacity 220ms ease;
}
.drawer[aria-hidden="false"] .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  padding: 18px;
}
.drawer[aria-hidden="false"] .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.drawer-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a {
  display: block;
  padding: 14px 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  border-radius: 12px;
}
.drawer-nav a:hover { background: var(--bg-warm); text-decoration: none; }
.drawer-nav a[aria-current="page"] { color: var(--trade-blue); }
.drawer-cta { margin-top: auto; padding-top: 18px; }

/* — Buttons ————————————————————————————————————————————————— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--trade-blue);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -4px rgba(25,70,122,.4);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--fg-muted); transform: translateY(-1px); }
.btn-amber {
  background: var(--amber);
  color: var(--blue-deep);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 16px -4px rgba(232,161,58,.45);
}
.btn-amber:hover { background: var(--amber-hot); transform: translateY(-1px); }
.btn-ghost {
  color: var(--fg);
  padding-left: 6px; padding-right: 6px;
}
.btn-ghost:hover { color: var(--trade-blue); }

/* Google Play badge — uses our app icon to match brand */
.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px;
  padding: 0 20px 0 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
}
.play-badge:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 16px 30px -10px rgba(0,0,0,.55); }
.play-badge .play-tri {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
.play-badge-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.play-badge-text small { font-size: 10.5px; font-weight: 500; letter-spacing: .04em; opacity: .8; }
.play-badge-text strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }

/* — Hero ————————————————————————————————————————————————————— */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(80px, 11vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, color-mix(in oklab, var(--amber) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 60% at 0% 30%, color-mix(in oklab, var(--blue-lift) 14%, transparent), transparent 60%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  opacity: .35;
  mix-blend-mode: multiply;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero::after { mix-blend-mode: screen; opacity: .15; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 .accent { color: var(--trade-blue); }
.hero h1 .amber { color: var(--amber); display: inline-block; transform: translateY(0); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: var(--fg-muted); font-size: 14px; }
.hero-meta strong { color: var(--fg); font-weight: 600; }

/* Phone mockup container
   IMPORTANT: phone screens are LOCKED to the light "device" theme regardless
   of the page colour scheme. We re-declare design tokens locally on the shell
   so the inline app UI inside renders consistently in both light & dark mode. */
.phone-stage {
  position: relative;
  display: flex;
  align-items: center; justify-content: center;
  min-height: 600px;
}
.phone-stage::before {
  content: '';
  position: absolute;
  inset: 5% 8%;
  background: radial-gradient(ellipse, color-mix(in oklab, var(--blue-lift) 30%, transparent), transparent 65%);
  filter: blur(40px);
  z-index: 0;
}
.phone-shell, .gallery-item {
  /* device-theme tokens — fixed, never inherit dark-mode swap */
  --d-bg:        #F8FAFC;
  --d-surface:   #FFFFFF;
  --d-ink:       #0B0F14;
  --d-ink-soft:  #475569;
  --d-muted:     #64748B;
  --d-line:      #E2E8F0;
  --d-line-soft: #F1F5F9;
  --d-blue:      #19467A;
  --d-blue-deep: #0E2A4D;
  --d-amber:     #E8A13A;
  --d-amber-bg:  #FEF3C7;
  --d-amber-line:#FDE047;
  --d-amber-ink: #B45309;
  --d-good-bg:   #DCFCE7;
  --d-good-line: #86EFAC;
  --d-good-ink:  #15803D;
  --d-bad-bg:    #FEE2E2;
  --d-bad-line:  #FCA5A5;
  --d-bad-ink:   #B91C1C;
  --d-info-bg:   #EEF2FF;
  --d-info-ink:  #4338CA;
  color: var(--d-ink); /* default text colour inside the device */
}
.phone-shell {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 692px;
  background: var(--d-bg);
  border-radius: 38px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 11px #1a1d23,
    0 0 0 13px #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(-2.5deg);
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}
.phone-shell:hover { transform: rotate(0deg) translateY(-4px); }
.phone-shell .status-bar {
  height: 36px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  font-size: 12px; font-weight: 600; color: var(--d-ink);
  flex-shrink: 0;
}
.phone-shell .status-pip { width: 14px; height: 8px; background: var(--d-ink); border-radius: 2px; opacity: .8; }
.phone-shell .status-bar-icons { display: flex; gap: 4px; align-items: center; }
.phone-shell .status-batt { width: 22px; height: 10px; border: 1.5px solid var(--d-ink); border-radius: 3px; position: relative; }
.phone-shell .status-batt::before { content:''; position:absolute; inset:1.5px; background:var(--d-ink); border-radius:1px; width:65%; }
.phone-shell .status-batt::after { content:''; position:absolute; right:-3px; top:2.5px; width:2px; height:3px; background:var(--d-ink); border-radius:0 1px 1px 0;}

/* — Phone screen UI primitives (used by hero phone + gallery cards) ————— */
.ps-statusbar { height: 30px; display:flex; align-items:center; justify-content:space-between; padding: 0 16px; font-size:11px; font-weight:600; color: var(--d-ink); background: var(--d-bg); flex-shrink:0; }
.ps-statusbar .pips { opacity: .7; letter-spacing: 1px; }

.ps-appbar { background: var(--d-blue-deep); color: #fff; padding: 14px 14px 12px; display:flex; align-items:center; gap: 10px; flex-shrink: 0; }
.ps-appbar.ps-appbar-light { background: var(--d-surface); color: var(--d-ink); border-bottom: 1px solid var(--d-line); }
.ps-appbar img { width: 24px; height: 24px; }
.ps-appbar .title { font-weight: 600; font-size: 14px; }

.ps-body { padding: 14px; flex: 1; overflow: hidden; background: var(--d-bg); color: var(--d-ink); }
.ps-body.ps-body-surface { background: var(--d-surface); }

.ps-greeting { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; padding: 0 2px; }
.ps-greeting .hello { font-size: 15px; font-weight: 700; color: var(--d-ink); letter-spacing: -0.01em; }
.ps-greeting .date { font-size: 11px; color: var(--d-ink-muted); margin-top: 2px; }
.ps-greeting .weather { font-size: 11px; font-weight: 600; color: var(--d-ink-muted); background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 999px; padding: 4px 9px; }

.ps-kpis { display:grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ps-kpi { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 12px; padding: 12px; }
.ps-kpi.warn { background: var(--d-amber-bg); border-color: var(--d-amber-line); }
.ps-kpi.good { background: var(--d-good-bg); border-color: var(--d-good-line); }
.ps-kpi.bad  { background: var(--d-bad-bg);  border-color: var(--d-bad-line); }
.ps-kpi-v { font-size: 24px; font-weight: 700; color: var(--d-ink); line-height: 1; }
.ps-kpi-l { font-size: 9px; color: var(--d-muted); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; margin-top: 4px; }

.ps-section { font-size: 12px; font-weight: 700; margin-bottom: 8px; color: var(--d-ink); }

.ps-card { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; color: var(--d-ink); }
.ps-card.bordered-bad  { border-left: 3px solid var(--d-bad-ink); }
.ps-card.bordered-info { border-left: 3px solid var(--d-info-ink); }
.ps-card-head { display:flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; color: var(--d-ink-soft); }
.ps-card-title { font-size: 13px; font-weight: 600; margin-top: 4px; color: var(--d-ink); }
.ps-card-meta { font-size: 10px; color: var(--d-muted); margin-top: 2px; }

.ps-tag { padding: 2px 6px; border-radius: 4px; font-size: 9px; font-weight: 600; }
.ps-tag.tag-warn  { background: var(--d-amber-bg); color: var(--d-amber-ink); }
.ps-tag.tag-info  { background: var(--d-info-bg);  color: var(--d-info-ink); }
.ps-tag.tag-good  { background: var(--d-good-bg);  color: var(--d-good-ink); }
.ps-tag.tag-bad   { background: var(--d-bad-bg);   color: var(--d-bad-ink); }

.ps-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.ps-eyebrow.eb-bad  { color: var(--d-bad-ink); }
.ps-eyebrow.eb-info { color: var(--d-info-ink); }
.ps-eyebrow.eb-muted{ color: var(--d-muted); }

.ps-search { height: 36px; border: 1px solid var(--d-line); border-radius: 10px; padding: 0 12px; font-size: 12px; color: var(--d-muted); display: flex; align-items: center; background: var(--d-surface); }
.ps-chips { display: flex; gap: 6px; margin-top: 10px; overflow: hidden; }
.ps-chip { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 11px; font-weight: 500; border: 1px solid var(--d-line); background: var(--d-surface); color: var(--d-ink); display: flex; align-items: center; }
.ps-chip.active { background: color-mix(in oklab, var(--d-blue) 8%, transparent); color: var(--d-blue); font-weight: 600; border-color: var(--d-blue); }

.ps-row { padding: 12px 14px; background: var(--d-surface); border-bottom: 1px solid var(--d-line); flex-shrink: 0; }

.ps-btn { width: 28px; height: 28px; border: 1px solid var(--d-line); border-radius: 6px; background: var(--d-surface); color: var(--d-ink); }
.ps-btn-pill { flex: 1; height: 32px; border: 1px solid var(--d-line); background: var(--d-surface); color: var(--d-blue); border-radius: 8px; font-size: 11px; font-weight: 600; }

.ps-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 10px; color: var(--d-muted); padding: 6px 0; font-weight: 600; }
.ps-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 12px; color: var(--d-ink); }
.ps-cal-grid .d  { aspect-ratio: 1; display:flex; align-items:center; justify-content:center; border-radius: 6px; color: var(--d-ink); }
.ps-cal-grid .d.off { color: var(--d-muted); opacity: .55; }
.ps-cal-grid .d.today { background: var(--d-blue); color: #fff; font-weight: 700; }
.ps-cal-grid .d.job { background: color-mix(in oklab, var(--d-amber) 22%, transparent); font-weight: 600; }
.ps-cal-grid .d.job.today { background: var(--d-blue); color: #fff; }

.ps-pane { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 14px; padding: 14px; margin-bottom: 10px; color: var(--d-ink); }
.ps-pane:last-child { margin-bottom: 0; }
.ps-pane .label { color: var(--d-muted); font-size: 11px; }
.ps-pane .value { font-weight: 600; font-size: 11px; color: var(--d-ink); }
.ps-pane .strong { font-weight: 700; font-size: 14px; color: var(--d-ink); margin-top: 6px; }
.ps-pane hr { border: 0; border-top: 1px solid var(--d-line); margin: 10px 0; }
.ps-pane .row { display: flex; justify-content: space-between; align-items: center; }
.ps-pane .total { font-size: 15px; font-weight: 700; color: var(--d-ink); padding-top: 10px; }

.ps-history { display: flex; justify-content: space-between; font-size: 11px; padding: 4px 0; color: var(--d-ink); }
.ps-history .amt { color: var(--d-good-ink); font-weight: 600; }

/* — Trust strip ——————————————————————————————————————————— */
.trust {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 36px;
  align-items: center; justify-content: center;
  color: var(--fg-muted);
  font-size: 14px; font-weight: 500;
}
.trust-row span {
  display: inline-flex; align-items: center; gap: 8px;
}
.tick {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--amber) 18%, transparent);
  color: var(--amber);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* — Section heads ——————————————————————————————————————————— */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lede { margin-top: 18px; }

/* — Feature grid ——————————————————————————————————————————— */
/* Asymmetric: one tall hero card on the left, four stacked cards in a 2×2 on the right. */
.features {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 18px;
}
.feature {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--trade-blue) 30%, var(--line));
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--trade-blue) 10%, transparent);
  color: var(--trade-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  flex: none;
}
.feature h3 { margin-bottom: 10px; text-wrap: balance; }
.feature p { color: var(--fg-muted); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }

/* The hero card: tall, span 2 rows, stronger treatment. */
.feature.feature-hero {
  grid-row: span 2;
  background: linear-gradient(180deg, var(--bg-alt) 0%, color-mix(in oklab, var(--trade-blue) 5%, var(--bg-alt)) 100%);
  padding: 36px 32px;
  overflow: hidden;
}
.feature.feature-hero .feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--trade-blue);
  color: #fff;
  margin-bottom: 28px;
}
.feature.feature-hero h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.feature.feature-hero p {
  font-size: 16.5px;
  line-height: 1.6;
}
.feature-hero-meta {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-hero-meta span {
  font-size: 12px;
  font-weight: 600;
  color: var(--trade-blue);
  background: color-mix(in oklab, var(--trade-blue) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--trade-blue) 18%, transparent);
  border-radius: 999px;
  padding: 5px 11px;
  letter-spacing: 0.01em;
}

@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .feature.feature-hero { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .feature.feature-hero { grid-column: span 1; padding: 28px; }
}

/* — Gallery ———————————————————————————————————————————————— */
.gallery {
  position: relative;
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 28px 0 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 280px;
  height: 580px;
  background: var(--d-bg);
  border-radius: 32px;
  box-shadow:
    var(--shadow-lg),
    0 0 0 9px #1a1d23,
    0 0 0 11px #000;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  color: var(--d-ink);
}
.gallery-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
}
.gallery-controls {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-bottom: 8px;
}
.gallery-controls button {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.gallery-controls button:hover { border-color: var(--fg-muted); }
.gallery-controls button:disabled { opacity: .4; cursor: not-allowed; }

/* placeholder for gallery slots without a real screenshot */
.screen-placeholder {
  flex: 1;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklab, var(--trade-blue) 6%, transparent) 0,
      color-mix(in oklab, var(--trade-blue) 6%, transparent) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--canvas);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 24px;
}

/* — How it works ——————————————————————————————————————————— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step-number {
  font-family: var(--font-sans);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  display: block;
  font-feature-settings: 'tnum';
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--fg-muted); }

/* — Pull quote ———————————————————————————————————————————— */
.pullquote {
  position: relative;
  text-align: center;
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--bg-warm);
  overflow: hidden;
}
.pullquote::before {
  content: '“';
  position: absolute;
  top: 10%; left: 50%; transform: translateX(-50%);
  font-family: 'Georgia', serif;
  font-size: 280px;
  color: var(--amber);
  opacity: .18;
  line-height: 1;
}
.pullquote blockquote {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.18;
  text-wrap: balance;
}
.pullquote .stat {
  display: inline-block;
  color: var(--amber);
  font-weight: 800;
}
.pullquote cite {
  display: block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-style: normal;
}

/* — FAQ ————————————————————————————————————————————————————— */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
  transition: border-color 200ms ease;
}
.faq-item[open] { border-color: color-mix(in oklab, var(--trade-blue) 30%, var(--line)); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-warm);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2319467A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 220ms ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 65ch;
}

/* — Final CTA ————————————————————————————————————————————— */
.final-cta {
  background: var(--blue-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 100%, color-mix(in oklab, var(--amber) 22%, transparent), transparent 60%),
    radial-gradient(ellipse at 0% 0%, color-mix(in oklab, var(--blue-mid) 30%, transparent), transparent 60%);
}
.final-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) { .final-cta-inner { grid-template-columns: 1fr; gap: 36px; } }
.final-cta h2 { color: #fff; font-size: clamp(2.2rem, 3.2vw + 1rem, 3.6rem); }
.final-cta p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 50ch; margin-top: 18px; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }

/* — Footer ————————————————————————————————————————————————— */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
.footer-brand p { color: var(--fg-muted); font-size: 14.5px; margin-top: 14px; max-width: 32ch; }
.footer-col h4 {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg); }
.footer-col a:hover { color: var(--trade-blue); }
.footer-base {
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  color: var(--fg-muted);
  font-size: 13.5px;
}

/* — Long-form (privacy, etc) ——————————————————————————————— */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
}
.prose h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: 8px; }
.prose .meta {
  color: var(--fg-muted);
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.prose h2 {
  font-size: 1.5rem;
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
}
.prose p, .prose li { color: var(--fg); }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--trade-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklab, var(--trade-blue) 50%, transparent); }
@media (prefers-color-scheme: dark) { .prose a { color: var(--blue-lift); } }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--fg); font-weight: 700; }
.prose code {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: .9em;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

.page-hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 5vw, 60px);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { max-width: 18ch; }

/* — Reveal animation ———————————————————————————————————————— */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* — Contact form ————————————————————————————————————————— */
.form {
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--fg); }
.field input, .field textarea, .field select {
  height: 50px;
  padding: 0 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
  font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { height: auto; padding: 14px; min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--trade-blue);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--trade-blue) 18%, transparent);
}
.field-help { color: var(--fg-muted); font-size: 13px; }

/* — Misc ——————————————————————————————————————————————————— */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* About — values list */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }
.value h3 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.value h3::before {
  content: counter(values, decimal-leading-zero);
  counter-increment: values;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
  font-weight: 700;
}
.values { counter-reset: values; }
.value p { color: var(--fg-muted); }

/* About — split panel */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, var(--blue-deep) 0%, var(--trade-blue) 50%, var(--blue-mid) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(232,161,58,.05) 0, rgba(232,161,58,.05) 1px, transparent 1px, transparent 28px);
}
.split-visual .corner-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 13px; font-weight: 600;
}
.split-visual .corner-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
