/* TradeDocs marketing site — palette borrowed from the app so the two feel like
   one product when someone crosses from the landing page into the tool. */

:root {
  --ink: #1a2332;
  --muted: #5a6a80;
  --line: #dbe1ea;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --card: #ffffff;
  --accent: #1d4ed8;
  --accent-dark: #1743ad;
  --accent-soft: #e8efff;
  --navy: #0b1630;
  --ok: #15803d;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 27, 51, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-onnavy { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-onnavy:hover { background: rgba(255, 255, 255, 0.18); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 66px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #93c5fd;
  border-radius: 8px;
  font-size: 16px;
}
.head-nav { display: flex; align-items: center; gap: 4px; }
.head-nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 7px;
}
.head-nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.head-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  padding: 9px 13px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, #0b1630, #12275c 45%, #0e3a8a 80%, #1d4ed8);
  background-size: 220% 220%;
  animation: heroGradient 18s ease-in-out infinite alternate;
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  /* Keep .wrap's horizontal padding — a shorthand here would zero it out and
     let the headline run into the screen edge on narrow viewports. */
  padding: 74px 24px 78px;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: #93c5fd; }
.hero-sub {
  font-size: 17.5px;
  line-height: 1.65;
  color: #c3d2ee;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-note { font-size: 13.5px; color: #93a8ce; margin: 0; }
.hero-art { position: relative; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-size: 12px;
  font-weight: 600;
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 20px;
}

/* ---------- Animated harbour scene ---------- */

/* The scene's waves paint to the bottom edge of the viewBox, so without a
   frame it reads as a stray blue rectangle sitting on the navy. Contain it. */
.scene {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sun { animation: sunPulse 5s ease-in-out infinite; transform-origin: 440px 60px; }
.cloud-1 { animation: cloudDrift 26s linear infinite; }
.cloud-2 { animation: cloudDrift 38s linear infinite reverse; }
.route { animation: dashMove 1.2s linear infinite; }
.plane { animation: planeFly 14s linear infinite; }
.ship { animation: shipRock 6s ease-in-out infinite; transform-origin: 265px 195px; }
.doc-1 { animation: docFloat 5s ease-in-out infinite; }
.doc-2 { animation: docFloat 6.5s ease-in-out 1s infinite; }
.wave-back { animation: waveShift 13s linear infinite; }
.wave-mid { animation: waveShift 9s linear infinite; }
.wave-front { animation: waveShift 6s linear infinite; }

@keyframes heroGradient { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes sunPulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes cloudDrift { from { transform: translateX(-30px); } 50% { transform: translateX(40px); } to { transform: translateX(-30px); } }
@keyframes dashMove { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }
@keyframes planeFly {
  0% { transform: translate(-40px, 118px) rotate(-14deg); }
  50% { transform: translate(250px, 52px) rotate(0deg); }
  100% { transform: translate(540px, 108px) rotate(12deg); }
}
@keyframes shipRock { 0%, 100% { transform: rotate(-1.3deg) translateY(0); } 50% { transform: rotate(1.3deg) translateY(4px); } }
@keyframes docFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes waveShift { from { transform: translateX(0); } to { transform: translateX(-520px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .sun, .cloud-1, .cloud-2, .route, .plane, .ship, .doc-1, .doc-2,
  .wave-back, .wave-mid, .wave-front { animation: none; }
}

/* ---------- Sections ---------- */

section { padding: 78px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Pain points ---------- */

.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: 10px;
  padding: 24px 24px 20px;
}
.pain h3 { font-size: 16.5px; margin-bottom: 8px; }
.pain p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { text-align: center; }
.step-num {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Feature cards ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 20px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Document checklist ---------- */

.doc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.doc-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
}
.doc-col h3 { font-size: 15px; margin-bottom: 4px; }
.doc-col .doc-col-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  font-size: 14.5px;
  border-top: 1px solid var(--line);
}
.doc-list li:first-child { border-top: none; }
.tick { color: var(--ok); font-weight: 700; flex: none; line-height: 1.5; }

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
  max-width: 940px;
  margin: 0 auto;
}
.price-card {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
}
.price-tag {
  position: absolute;
  top: -13px; left: 34px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}
.price-name { font-size: 19px; margin-bottom: 6px; }
.price-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.price-amount { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.price-amount strong { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-amount span { color: var(--muted); font-size: 15px; }
.price-tax { color: var(--muted); font-size: 13.5px; margin: 8px 0 24px; }
.price-card .btn { width: 100%; }
.price-foot { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0 0; }
.incl { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 20px; }
.incl li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  padding: 6px 0;
}
.price-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.price-aside h3 { font-size: 16px; margin-bottom: 12px; }
.price-aside p { color: var(--muted); font-size: 14.5px; }
.price-aside p:last-child { margin-bottom: 0; }

.notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--warn);
  margin: 0 auto 32px;
  max-width: 940px;
}
.notice strong { color: #92400e; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 21px; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 16px 22px 4px; color: var(--muted); font-size: 15px; }

/* ---------- Closing CTA ---------- */

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta-band h2 { font-size: clamp(25px, 3.2vw, 34px); margin-bottom: 14px; }
.cta-band p { color: #b9c8e8; font-size: 17px; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-foot {
  background: #071022;
  color: #93a8ce;
  font-size: 14px;
  padding: 56px 0 34px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 36px; }
.site-foot h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}
.site-foot a { color: #93a8ce; display: block; padding: 4px 0; }
.site-foot a:hover { color: #fff; text-decoration: none; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 12px; }
.foot-brand .logo-mark { background: rgba(255, 255, 255, 0.1); }
.foot-about { max-width: 320px; line-height: 1.65; }
.foot-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- Legal pages ---------- */

.legal { padding: 56px 0 84px; }
.legal h1 { font-size: 34px; margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; margin: 36px 0 12px; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; }
.legal p, .legal li { color: #35435a; }
.legal li { margin-bottom: 6px; }
.legal table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 26px 0;
}
.contact-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 0; }
.contact-card dt { font-weight: 600; font-size: 14px; color: var(--muted); }
.contact-card dd { margin: 0; }

/* A config value that has not been filled in yet. Deliberately conspicuous —
   these are notes to you, not copy for your customers. */
.td-unset {
  color: #92400e !important;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 5px;
  padding: 1px 7px;
  font-style: italic;
  font-size: 0.92em;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 52px 24px 58px; }
  .hero-sub { max-width: none; }
  .pains, .steps, .features, .doc-cols { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  section { padding: 56px 0; }

  .nav-toggle { display: block; }
  .head-inner { flex-wrap: wrap; height: auto; padding: 12px 24px; }
  .head-nav,
  .head-cta {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-bottom: 10px;
  }
  .head-nav.open, .head-cta.open { display: flex; }
  .head-nav a { padding: 11px 12px; font-size: 15.5px; }
  .head-cta { gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
  .head-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .contact-card dl { grid-template-columns: 1fr; gap: 2px 0; }
  .contact-card dd { margin-bottom: 12px; }
  .price-card, .price-aside { padding: 24px; }
  .hero-cta .btn { width: 100%; }
}
