@import url('/brand.css');

/* ============================================================================
   TradeWorth — public marketing site.

   All colour, type, shape and spacing values live in brand.css. This file only
   holds marketing-site LAYOUT and the site-specific component skins, expressed
   through tokens. It deliberately declares no :root block: a second copy of the
   palette here is exactly the drift brand.css was created to end.

   Navy is the frame (nav, hero, closing CTA, footer), white/light alternate for
   the content bands, and Trade Orange is reserved for CTA fills, icons, rules
   and 24px+ display type. Orange TEXT at body size always uses --orange-ink.
   ==========================================================================*/

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Anchor targets must clear the sticky navy bar. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
p { margin: 0 0 1em; }

/* brand.css already sets the Oswald/uppercase/tight-tracking heading voice;
   the marketing site only needs its own scale. */
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
.narrow { max-width: 760px; }

/* ---------- buttons -------------------------------------------------------
   .btn / .btn-primary / .btn-secondary / .btn-ghost come from brand.css.
   The site adds two size modifiers and re-skins two legacy variants. */
.btn-lg { font-size: var(--fs-md); padding: 15px 28px; }
.btn-block { width: 100%; }

/* Legacy .btn-ghost is used across the site as the SECONDARY hero CTA, not as
   a chrome-less toolbar button. Give it the outlined .btn-secondary skin so it
   stays visible; brand.css's ghost styling would vanish on the navy hero. */
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--light); color: var(--navy); border-color: var(--steel); }

/* Legacy .btn-light — the outlined CTA on a dark band. */
.btn-light {
  background: rgba(255,255,255,.10);
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,.45);
}
.btn-light:hover { background: rgba(255,255,255,.20); color: var(--text-on-dark); }

/* Any secondary/ghost button sitting on navy flips to a white outline. */
.hero .btn-ghost,
.cta-band .btn-ghost,
.page-hero .btn-ghost,
.on-dark .btn-ghost {
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,.45);
  background: transparent;
}
.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.page-hero .btn-ghost:hover,
.on-dark .btn-ghost:hover {
  background: rgba(255,255,255,.12);
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,.7);
}

/* ---------- header --------------------------------------------------------
   Dark navy, sticky, brand lockup left, orange pill CTA right. */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-700);
}
.site-header .container {
  display: flex; align-items: center; height: 68px; gap: var(--sp-1);
}

/* .brand covers BOTH the new .brand-lockup markup and the legacy one-line
   text wordmark, so pages migrate independently without a broken bar. */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-right: var(--sp-5);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .rig, .brand .worth { color: var(--orange); }
.site-header .brand, .site-header .brand-word { color: var(--text-on-dark); }

.site-nav { display: flex; align-items: center; gap: var(--sp-1); }
.site-nav a {
  position: relative;
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px var(--sp-3);
}
/* Orange underline indicator — drawn on a pseudo-element so hover and the
   current page share one visual language and no layout shifts. */
.site-nav a::after {
  content: "";
  position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: 2px;
  height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .15s;
}
.site-nav a:hover { text-decoration: none; color: var(--text-on-dark); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--text-on-dark); background: transparent; }
.site-nav a:focus-visible { outline: none; border-radius: var(--radius-sm); box-shadow: var(--focus-ring); }

.header-spacer { flex: 1; }
.header-cta { display: flex; align-items: center; gap: var(--sp-3); }
.header-cta a.link {
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px var(--sp-2);
}
.header-cta a.link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* The header CTA reads as a pill to separate it from the flat nav row. */
.site-header .btn { border-radius: var(--radius-pill); padding: 11px 20px; }

.nav-toggle { display: none; }

/* Mobile: no JS is available to this page set, so the bar reflows into two
   rows and the link list becomes a horizontally scrollable strip rather than
   disappearing behind a toggle that nothing can open. */
@media (max-width: 900px) {
  .site-header .container { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; }
  .brand { margin-right: auto; }
  .header-spacer { display: none; }
  .site-nav {
    order: 3; width: 100%;
    margin-top: 10px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid var(--navy-700);
    padding-top: var(--sp-1);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 10px var(--sp-2); font-size: var(--fs-sm); }
  .site-nav a::after { left: var(--sp-2); right: var(--sp-2); }
}
@media (max-width: 480px) {
  .brand { font-size: 18px; }
  .header-cta .link { display: none; }
  .site-header .btn { padding: 10px 16px; font-size: var(--fs-sm); }
}

/* ---------- hero ----------------------------------------------------------
   Navy band. The headline's first sentence is white, the second is Trade
   Orange — legal here because it is 34px+ bold display type. */
.hero {
  background: var(--navy);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--navy-700);
  padding: var(--sp-8) 0 var(--sp-7);
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--orange);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: var(--sp-5);
}
.hero h1 {
  font-size: var(--fs-hero);
  color: var(--text-on-dark);
  max-width: 880px;
}
/* Second sentence / emphasised clause of the hero headline. */
.hero h1 span, .hero h1 em, .hero h1 strong, .hero h1 .accent {
  color: var(--orange);
  font-style: normal;
}
.hero .lede {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--steel-200);
  max-width: 660px;
  margin-bottom: var(--sp-6);
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.hero .cta-note { color: var(--text-muted-dark); font-size: var(--fs-sm); margin: var(--sp-4) 0 0; }
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-7); align-items: center; }
.hero .rule { background: var(--navy-600); }
.hero .rule.accent { background: var(--orange); }

@media (max-width: 900px) {
  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .hero .lede { font-size: var(--fs-md); }
  .hero-split { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ---------- mock UI card (hero art) ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  color: var(--text);
}
.mock .bar {
  display: flex; align-items: center; gap: 6px;
  padding: var(--sp-3) 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.mock .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock .bar .t {
  margin-left: 10px; font-family: var(--font-heading); font-weight: 500;
  font-size: var(--fs-xs); letter-spacing: var(--ls-wide); color: var(--text-muted);
}
.mock .body { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.mock .line {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px dashed var(--border); font-size: var(--fs-base);
}
.mock .line:last-child { border-bottom: none; }
.mock .line .lbl { color: var(--text-muted); }
.mock .line .val { font-weight: 600; }
.mock .total {
  display: flex; justify-content: space-between;
  margin-top: var(--sp-3); padding-top: 14px;
  border-top: 2px solid var(--border-strong);
  font-family: var(--font-heading); font-size: var(--fs-lg); font-weight: 700;
}
/* 20px bold sits under the 24px display threshold, so ink orange, not --orange. */
.mock .total .val { color: var(--orange-ink); }
.mock .stamp {
  display: inline-block; margin-top: 14px;
  background: var(--orange-soft); color: var(--orange-ink);
  font-weight: 600; font-size: var(--fs-xs);
  padding: 5px var(--sp-3); border-radius: var(--radius-pill);
}

/* ---------- sections ------------------------------------------------------
   Rhythm: white band, light band, white band … navy for the closing CTA.
   .grey and .alt are the two legacy names for the same light band. */
.section { padding: var(--sp-8) 0; background: var(--surface); }
.section.grey, .section.alt {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-7); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { font-size: var(--fs-md); color: var(--text-muted); margin: 0; }

/* ---------- the positioning band + can't/can split ------------------------ */
/* This is the argument, not a feature list, so it gets navy and the biggest type
   on the page after the hero. Centre-aligned and narrow: it reads as a statement,
   not as body copy to skim. */
.manifesto { background: var(--navy); text-align: center; }
.manifesto .container { max-width: 900px; }
.manifesto .kicker { color: var(--orange); }   /* on navy, full orange clears AA */
.manifesto-lead {
  font-size: var(--fs-3xl);
  color: var(--text-on-dark);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;                          /* no orphan word on the last line */
}
.manifesto-sub {
  font-size: var(--fs-lg);
  color: var(--steel-200);
  max-width: 720px;
  margin: 0 auto;
}
/* Keep the punchline on one line where there is room, so "Silicon Valley" never
   breaks across lines and lands the contrast. Released below 720px. */
@media (min-width: 721px) { .nowrap-md { white-space: nowrap; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); align-items: stretch; }
.split-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
/* Only the "what it does" column carries the accent. Marking both would flatten
   the contrast the section exists to draw. */
.split-col.accent { border-color: var(--orange-300); box-shadow: var(--shadow); }
.split-head {
  font-size: var(--fs-lg);
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.split-col.accent .split-head { border-bottom-color: var(--orange-300); }

.marklist { list-style: none; margin: 0; padding: 0; }
.marklist li {
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: var(--fs-md);
  color: var(--text);
}
.marklist li + li { border-top: 1px solid var(--border); }
.marklist li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.35;
}
/* The "never" column is stated plainly in steel, NOT in danger red. These are not
   failures or warnings — they are the craft, and colouring them red reads as
   scolding the reader about their own trade. */
.marklist.never li { color: var(--text-muted); }
.marklist.never li::before { content: '—'; color: var(--steel-400); }
.marklist.does li::before { content: '✓'; color: var(--orange); }

.manifesto-close {
  max-width: 780px;
  margin: var(--sp-6) auto 0;
  text-align: center;
  font-size: var(--fs-md);
  color: var(--text-muted);
}
.manifesto-close strong { color: var(--text); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .manifesto-lead { font-size: var(--fs-2xl); }
  .manifesto-sub { font-size: var(--fs-md); }
}

/* .kicker — the light-band twin of .eyebrow. Ink orange: small text. */
.kicker {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs);
  color: var(--orange-ink);
  margin-bottom: 10px;
}

/* ---------- results band ---------- */
/* auto-fit so the same class serves the 4-stat homepage band and the 3-stat
   band inside a case-study card. */
/* 240px is tuned so the band lands on 4 / 2 / 1 columns at 1440 / 768 / 375. */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-5); }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px var(--sp-5); box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);
}
.stat .big {
  font-family: var(--font-heading); font-size: 40px; font-weight: 700;
  color: var(--orange); letter-spacing: var(--ls-tight); line-height: 1;
}
.stat .cap { font-weight: 600; margin-top: var(--sp-2); }
.stat .cap span { display: block; color: var(--text-muted); font-weight: 400; font-size: var(--fs-sm); margin-top: var(--sp-1); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-6) 28px; box-shadow: var(--shadow);
}
.step .n {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--orange); color: var(--accent-contrast);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
}
.step h3 { font-size: var(--fs-lg); }
.step p { color: var(--text-muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.feature { padding: var(--sp-1); }
.feature .ico {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--orange-soft); color: var(--orange-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.feature h3 { font-size: var(--fs-lg); }
.feature p { color: var(--text-muted); margin: 0; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* ---------- trade callouts ---------- */
.trades { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.trade-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) 28px; box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s, border-color .12s; color: inherit;
}
.trade-card:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow-lg); border-color: var(--orange-300); border-top-color: var(--orange);
}
.trade-card .ico { font-size: 30px; margin-bottom: var(--sp-3); }
.trade-card h3 { font-size: var(--fs-lg); }
.trade-card p { color: var(--text-muted); margin: 0 0 var(--sp-3); }
.trade-card .go {
  font-family: var(--font-heading); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--orange-ink);
}
@media (max-width: 820px) { .trades { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow);
}
/* Star ratings are body-size glyph TEXT on white, not an icon fill, so they
   take ink orange — raw --orange is 2.8:1 here. */
.quote .stars { color: var(--orange-ink); letter-spacing: 2px; margin-bottom: 10px; }
.quote blockquote { margin: 0 0 var(--sp-4); font-size: var(--fs-md); color: var(--text); }
.quote .who { display: flex; align-items: center; gap: var(--sp-3); }
.quote .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-ink);
  font-family: var(--font-heading); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.quote .who .nm { font-weight: 600; }
.quote .who .rl { color: var(--text-muted); font-size: var(--fs-sm); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- case studies ---------- */
.case {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: var(--sp-6); margin-bottom: var(--sp-6);
}
.case:last-child { margin-bottom: 0; }
.case h3 { font-size: var(--fs-xl); margin-top: var(--sp-3); }
.case .tag {
  display: inline-block;
  background: var(--orange-soft); color: var(--orange-ink);
  font-family: var(--font-heading); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs); padding: 5px var(--sp-3);
  border-radius: var(--radius-pill);
}
.case .where {
  color: var(--text-muted); font-size: var(--fs-sm);
  padding-bottom: var(--sp-4); margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.case .pq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-5); }
.case .pq h4 { color: var(--text); margin-bottom: var(--sp-2); }
.case .pq p { color: var(--text-muted); margin: 0; }
.case .stat { background: var(--surface-alt); }
@media (max-width: 820px) {
  .case { padding: var(--sp-5); }
  .case .pq { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: start; }
.tier {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.tier.pop {
  border-color: var(--orange);
  border-top: 4px solid var(--orange);
  box-shadow: var(--shadow-lg); position: relative;
}
.tier .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: var(--accent-contrast);
  font-family: var(--font-heading); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--ls-wide);
  font-size: var(--fs-xs); padding: 5px 14px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tier h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.tier .desc { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.tier .price {
  font-family: var(--font-heading); font-size: var(--fs-3xl); font-weight: 700;
  letter-spacing: var(--ls-tight); color: var(--text); line-height: 1;
}
.tier .price span {
  font-family: var(--font-body); font-size: var(--fs-md); font-weight: 500;
  color: var(--text-muted); letter-spacing: 0;
}
.tier ul { list-style: none; padding: 0; margin: var(--sp-5) 0; flex: 1; }
.tier li {
  padding: var(--sp-2) 0 var(--sp-2) 28px; position: relative;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.tier li:before {
  content: "✓"; position: absolute; left: 0; top: var(--sp-2);
  color: var(--orange-ink); font-weight: 700;
}
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--text-on-dark);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 56px; text-align: center;
}
.cta-band h2 { color: var(--text-on-dark); }
.cta-band h2 span, .cta-band h2 em { color: var(--orange); font-style: normal; }
.cta-band p { color: var(--steel-200); font-size: var(--fs-md); max-width: 560px; margin: 0 auto var(--sp-5); }
.cta-band .eyebrow { color: var(--orange); }
.cta-band .rule { background: var(--navy-600); }
.cta-band .cta-row { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }
@media (max-width: 700px) { .cta-band { padding: var(--sp-6) var(--sp-5); } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-muted-dark);
  padding: 56px 0 var(--sp-6);
}
.site-footer a { color: var(--text-muted-dark); }
.site-footer a:hover { color: var(--text-on-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-7); }
.site-footer .brand, .site-footer .brand-word { color: var(--text-on-dark); margin-right: 0; }
.footer-grid .brand + p { color: var(--text-muted-dark); max-width: 280px; font-size: var(--fs-sm); }
.site-footer .brand-tagline { color: var(--text-muted-dark); margin-top: var(--sp-4); max-width: 280px; }
.site-footer .rule { background: var(--navy-600); }
.site-footer .rule.accent { background: var(--orange); }
.footer-col h4 {
  color: var(--text-on-dark); font-size: var(--fs-sm);
  letter-spacing: var(--ls-wide); margin: 0 0 14px;
}
.footer-col a { display: block; padding: 5px 0; font-size: var(--fs-base); }
.footer-bottom {
  border-top: 1px solid var(--border-dark); padding-top: var(--sp-5);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted-dark);
}
.footer-bottom .legal { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- forms (demo / signup) ---------- */
.form-page { padding: 56px 0; background: var(--bg); min-height: calc(100vh - 68px); }
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--sp-6);
}
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card h1 { font-size: var(--fs-xl); }
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block; font-weight: 600; font-size: var(--fs-sm);
  margin-bottom: 6px; color: var(--text);
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-base);
  padding: 11px 13px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: var(--focus-ring);
}
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-2 { grid-template-columns: 1fr; } }
.form-note { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-3); text-align: center; }
.msg { padding: var(--sp-3) 15px; border-radius: var(--radius); font-weight: 600; margin-bottom: var(--sp-4); }
.msg.err { background: var(--danger-bg); color: var(--danger-ink); border: 1px solid var(--danger-border); }
.msg.ok { background: var(--success-bg); color: var(--success-ink); }
.hidden { display: none !important; }
.sell-list { list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.sell-list li { padding: 10px 0 10px 30px; position: relative; color: var(--text-muted); }
.sell-list li:before { content: "✓"; position: absolute; left: 0; color: var(--orange-ink); font-weight: 700; }

/* ---------- legal / help / support content pages ---------- */
.doc { padding: 56px 0 var(--sp-8); background: var(--surface); }
.doc h1 { font-size: var(--fs-2xl); }
.doc .updated { color: var(--text-muted); margin-bottom: var(--sp-6); }
.doc h2 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.doc h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.doc p, .doc li { color: var(--steel-600); }
.doc ul { padding-left: var(--sp-5); }
.doc li { margin-bottom: var(--sp-2); }
.doc a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--navy-700);
  padding: var(--sp-8) 0 56px; text-align: center;
}
.page-hero .eyebrow { color: var(--orange); }
.page-hero h1 { font-size: var(--fs-3xl); color: var(--text-on-dark); }
.page-hero h1 span, .page-hero h1 em { color: var(--orange); font-style: normal; }
.page-hero p { font-size: var(--fs-md); color: var(--steel-200); max-width: 640px; margin: 0 auto; }
.page-hero .rule { background: var(--navy-600); }
.page-hero .rule.accent { background: var(--orange); }
.page-hero .cta-row { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-5); }
@media (max-width: 820px) { .page-hero { padding: var(--sp-7) 0 var(--sp-6); } }

/* trade page benefit grid */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.benefit {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow);
}
.benefit .ico { font-size: 26px; margin-bottom: 10px; }
.benefit h3 { font-size: var(--fs-lg); }
.benefit p { color: var(--text-muted); margin: 0; }
@media (max-width: 700px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- narrow-viewport polish (375px) ---------- */
@media (max-width: 420px) {
  .container { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-7) 0; }
  .form-card, .tier { padding: var(--sp-5); }
  .btn-lg { font-size: var(--fs-base); padding: 13px 20px; }
  .cta-row .btn { flex: 1 1 100%; }
}
