/* TrigSig website. Same materials as the app: pallet ink, kraft, white.
   One loud element: the gain line under the hero. */
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url(fonts/archivo-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url(fonts/archivo-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url(fonts/archivo-latin-700-normal.woff2) format("woff2"); }

:root {
  --ink: #1e2b2f; --text: #26302f; --muted: #5f6a68; --line: #dde2df;
  --bg: #f7f8f6; --paper: #fff; --kraft: #a8722f; --kraft-dark: #8a5c22; --kraft-soft: #f4ebdf;
  --rust: #b4532a; --teal: #2f7a78; --tan: #8b6a2b; --slate: #4a6491;
  --ok: #2e7148; --bad: #a3302a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 "Archivo", system-ui, sans-serif; }
a { color: var(--kraft-dark); }
:focus-visible { outline: 2px solid var(--kraft); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 14px; max-width: 24ch; }
h3 { font-size: 19px; margin-bottom: 6px; }
p { margin: 0 0 12px; }
section { padding: 88px max(24px, calc((100vw - 1120px) / 2)); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(24px, calc((100vw - 1120px) / 2)); background: var(--ink); }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 21px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 24px; align-items: center; }
.top nav a { color: #cbd6d2; text-decoration: none; font-size: 15px; font-weight: 600; }
.top nav a:hover { color: #fff; }
.top nav .nav-cta { color: #fff; border: 1.5px solid var(--kraft); padding: 7px 14px; border-radius: 6px; }

/* hero */
.hero { position: relative; background: var(--ink); color: #dfe6e3; padding-top: 72px; padding-bottom: 150px; overflow: hidden; }
.hero h1 { color: #fff; font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -0.025em; max-width: 13ch; font-weight: 700; }
.hero .lede { font-size: 20px; max-width: 58ch; margin: 22px 0 36px; color: #c9d4d0; }
.demo-form { position: relative; z-index: 2; max-width: 660px; }
.demo-form > label { display: block; font-weight: 600; color: #fff; margin-bottom: 8px; }
.demo-row { display: flex; gap: 0; background: #fff; border-radius: 8px; padding: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.demo-row input { flex: 1; min-width: 0; border: none; font: inherit; font-size: 19px; padding: 10px 12px; color: var(--ink); background: transparent; }
.demo-row input:focus { outline: none; }
.demo-row:focus-within { box-shadow: 0 0 0 3px var(--kraft); }
.demo-row button { font: inherit; font-weight: 700; font-size: 17px; background: var(--kraft); color: #fff; border: none; border-radius: 6px; padding: 10px 22px; cursor: pointer; white-space: nowrap; }
.demo-row button:hover { background: var(--kraft-dark); }
.demo-row button:disabled { opacity: .7; cursor: default; }
.hint { font-size: 14.5px; color: #a9b8b3; margin-top: 12px; max-width: 60ch; }
.hint b { color: #fff; }
.more { margin-top: 6px; font-size: 14.5px; color: #a9b8b3; }
.more summary { cursor: pointer; }
.more label { display: block; margin: 10px 0 4px; }
.more input { font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 6px; border: 1px solid #44575c; background: #263539; color: #fff; width: 100%; max-width: 360px; }
.trigger-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-copy, .demo-form, .progress, .result { position: relative; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .trigger-line .rise { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s .3s cubic-bezier(.4,0,.2,1) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

.progress, .result { position: relative; z-index: 2; max-width: 660px; margin-top: 22px; }
.progress ol { list-style: none; padding: 0; margin: 0; }
.progress li { padding: 6px 0 6px 30px; position: relative; color: #8c9c97; }
.progress li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #56696e; }
.progress li.now { color: #fff; }
.progress li.now::before { border-color: var(--kraft); border-right-color: transparent; animation: spin .8s linear infinite; }
.progress li.done { color: #c9d4d0; }
.progress li.done::before { background: var(--kraft); border-color: var(--kraft); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress li.now::before { animation: none; } }
.result { background: #fff; color: var(--text); border-radius: 10px; padding: 22px 24px; }
.result h2 { font-size: 24px; max-width: none; }
.result.error { background: #fbe9e6; color: var(--bad); }
.result .found { display: flex; gap: 32px; flex-wrap: wrap; margin: 6px 0 16px; }
.result h3 { font-size: 14px; color: var(--muted); }
.result ul { margin: 0; padding-left: 18px; }
.result .note { font-size: 14.5px; color: #6d4a1d; background: var(--kraft-soft); padding: 8px 10px; border-radius: 6px; }

.button { display: inline-block; font-weight: 700; text-decoration: none; padding: 11px 20px; border-radius: 6px; border: 1.5px solid #c3cbc7; color: var(--ink); background: #fff; }
.button.primary { background: var(--kraft); border-color: var(--kraft); color: #fff; }
.button.primary:hover { background: var(--kraft-dark); }
.button.big { font-size: 18px; padding: 13px 24px; }
.fineprint { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* leaks */
.section-lede { font-size: 19px; max-width: 62ch; color: var(--muted); }
.leak-list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.leak-list li { display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, .9fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.leak-list .tag { font-weight: 700; font-size: 16px; }
.leak-list q { font-size: 21px; line-height: 1.35; color: var(--ink); quotes: none; font-weight: 600; }
.leak-list p { margin: 0; color: var(--muted); font-size: 16px; }
.t-slipping .tag { color: var(--rust); } .t-cross .tag { color: var(--tan); }
.t-pull .tag { color: var(--teal); } .t-reorder .tag { color: var(--slate); }

/* how */
.how { background: var(--paper); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; font-weight: 700; font-size: 30px; color: var(--kraft); }
.steps p { color: var(--muted); font-size: 16px; }
.stamp { display: inline-block; transform: rotate(-4deg); border: 3px solid var(--ok); color: var(--ok); border-radius: 6px; padding: 6px 14px 8px; font-weight: 700; font-size: 20px; text-align: center; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--ok); margin-top: 8px; }
.stamp small { display: block; font-size: 10px; letter-spacing: .08em; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(30,43,47,.12); }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* proof */
.proof { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.proof p { max-width: 52ch; }

/* data */
.data { background: var(--ink); color: #c9d4d0; }
.data h2 { color: #fff; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; }
.facts li { border-top: 1px solid #3a4b50; padding-top: 14px; }
.facts b { color: #fff; display: block; margin-bottom: 2px; }

/* cta */
.cta { text-align: left; }
.cta p { font-size: 19px; max-width: 60ch; color: var(--muted); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.foot { display: flex; gap: 24px; flex-wrap: wrap; padding: 28px max(24px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot span:first-child { font-weight: 700; color: var(--ink); }
.foot a { margin-left: auto; }

@media (max-width: 900px) {
  section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-bottom: 120px; }
  .trigger-line .rise, .trigger-line circle { display: none; }
  .top nav a:not(.nav-cta) { display: none; }
  .leak-list li { grid-template-columns: 1fr; gap: 8px; }
  .steps, .proof, .facts { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  h2 { font-size: 28px; }
}
@media (max-width: 520px) {
  .demo-row { flex-direction: column; gap: 6px; }
  .demo-row button { width: 100%; }
  .hero .lede { font-size: 18px; }
  .foot a { margin-left: 0; }
}

/* coming next: prospecting */
.next { background: var(--kraft-soft); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.next p { max-width: 52ch; }
.soon { display: inline-block; font-size: 14px; font-weight: 700; color: var(--kraft-dark); border: 1.5px solid var(--kraft); border-radius: 99px; padding: 2px 12px; margin-bottom: 14px; }
.steps.compact { grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 0; }
.steps.compact li { padding-top: 40px; }
.steps.compact li::before { font-size: 24px; }
@media (max-width: 900px) { .next, .steps.compact { grid-template-columns: 1fr; } }

/* who it's for */
.who { background: var(--paper); }
.who-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.who-list li { border-top: 3px solid var(--kraft); padding-top: 16px; }
.who-list p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .who-list { grid-template-columns: 1fr; } }
