/* LoudPass landing - hand-crafted design (2026-09).
   Palette derives from the app icon: navy panel, wave blue, amber target
   dash, pass green. Light "engineering paper" page with one dark instrument. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-var-latin.woff2') format('woff2');
}

:root {
  --paper: #F2F4F6;
  --paper-2: #E9EDF1;
  --ink: #131C33;
  --muted: #4A5470;
  --faint: #7A83A0;
  --line: rgba(19, 28, 51, 0.14);
  --panel-hi: #1D2749;
  --panel-lo: #10172E;
  --panel-line: rgba(255, 255, 255, 0.09);
  --wave: #5CBEF0;
  --wave-deep: #2E9BD6;
  --target: #E8B44C;
  --pass: #3FCB7B;
  --pass-ink: #147241;
  --clip: #E5484D;
  --display: 'Archivo', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--target);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */

.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand span {
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.top nav a:hover { color: var(--ink); }
.top nav a.btn-sm {
  color: var(--paper); background: var(--ink);
  padding: 9px 16px; border-radius: 9px; letter-spacing: 0.04em;
}
.top nav a.btn-sm:hover { background: #232F52; color: #fff; }

/* ---------- hero ---------- */

.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px; align-items: center; padding: 64px 0 88px;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 14px 0 20px;
}
h1 .accent { color: var(--wave-deep); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.cta-row { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: -0.01em; text-decoration: none;
  padding: 15px 26px; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(19, 28, 51, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #232F52; transform: translateY(-1px); }
.cta-note { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ---------- the instrument (signature) ---------- */

.instrument {
  background: linear-gradient(165deg, var(--panel-hi) 0%, var(--panel-lo) 100%);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(16, 23, 46, 0.35);
  color: #E8ECF4;
  padding: 18px 20px 16px;
  font-family: var(--mono);
}
.inst-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(232, 236, 244, 0.65);
  padding-bottom: 14px; border-bottom: 1px solid var(--panel-line);
}
.inst-head .live { display: inline-flex; align-items: center; gap: 8px; }
.inst-head .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pass);
  box-shadow: 0 0 8px rgba(63, 203, 123, 0.8);
}
.inst-spec { color: var(--target); }

.inst-rows { padding: 20px 0 6px; position: relative; }
.inst-scale {
  position: relative; height: 14px; margin-bottom: 6px;
  font-size: 0.62rem; color: rgba(232, 236, 244, 0.45);
  letter-spacing: 0.08em;
}
.inst-scale .t-label {
  position: absolute; left: 70%; transform: translateX(-50%);
  color: var(--target); letter-spacing: 0.06em;
}
.inst-scale .lo { position: absolute; left: 0; }
.inst-scale .hi { position: absolute; right: 0; }

.file { margin: 0 0 13px; }
.file .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; font-size: 0.72rem; margin-bottom: 5px;
}
.file .name { color: rgba(232, 236, 244, 0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .vals { color: rgba(232, 236, 244, 0.55); white-space: nowrap; }
.file .vals b { color: #fff; font-weight: 600; }
.file .stamp {
  font-size: 0.62rem; letter-spacing: 0.1em; padding: 2px 8px;
  border-radius: 99px; border: 1px solid rgba(63, 203, 123, 0.55);
  color: var(--pass); background: rgba(63, 203, 123, 0.1);
  white-space: nowrap;
  opacity: 0; animation: stamp-in 0.35s ease both;
}
.track {
  position: relative; height: 9px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}
.track::after {
  /* the amber target dash, echoing the app icon */
  content: ''; position: absolute; left: 70%; top: -6px; bottom: -6px;
  border-left: 2px dashed var(--target); opacity: 0.85;
}
.fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px;
  background: linear-gradient(90deg, var(--wave-deep), var(--wave));
}

.f1 .fill { animation: conform1 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.35s both; }
.f2 .fill { animation: conform2 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.65s both; }
.f3 .fill { animation: conform3 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.95s both; }
.f4 .fill { animation: hold4 0.8s ease 1.25s both; }
.f5 .fill { animation: conform5 1s cubic-bezier(0.25, 0.8, 0.25, 1) 1.55s both; }
.f1 .stamp { animation-delay: 1.15s; }
.f2 .stamp { animation-delay: 1.45s; }
.f3 .stamp { animation-delay: 1.75s; }
.f4 .stamp { animation-delay: 1.95s; }
.f5 .stamp { animation-delay: 2.35s; }

@keyframes conform1 { from { width: 31%; } to { width: 70%; } }
@keyframes conform2 { from { width: 87%; } to { width: 70%; } }
@keyframes conform3 { from { width: 53%; } to { width: 70%; } }
@keyframes hold4    { from { width: 69%; } to { width: 69%; } }
@keyframes conform5 { from { width: 42%; } to { width: 70%; } }
@keyframes stamp-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

.inst-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 13px; border-top: 1px solid var(--panel-line);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(232, 236, 244, 0.65);
}
.inst-foot .chips { display: flex; gap: 8px; }
.inst-foot .chip {
  border: 1px solid var(--panel-line); border-radius: 6px; padding: 2px 8px;
  color: rgba(232, 236, 244, 0.8);
}
.inst-foot .ok { color: var(--pass); }

/* ---------- sections ---------- */

section { padding: 72px 0; border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 40px; max-width: 640px; }
h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em; line-height: 1.1;
  margin-top: 12px;
}
.sec-head p { color: var(--muted); margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step .num {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--faint);
}
.step .num b { color: var(--target); font-weight: 600; }
.step h3 {
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.02em; margin: 10px 0 10px;
}
.step p { color: var(--muted); font-size: 0.96rem; }

/* presets table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.spec-table th {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
}
.spec-table td { font-size: 0.95rem; }
.spec-table td.n { font-family: var(--mono); font-size: 0.88rem; white-space: nowrap; }
.spec-table td.p { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.spec-table td.u { color: var(--muted); }
.spec-table tr:last-child td { border-bottom: none; }
.table-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #FBFCFD; }

/* local-by-design dark band */
.band {
  background: linear-gradient(165deg, var(--panel-hi) 0%, var(--panel-lo) 100%);
  color: #E8ECF4; border-top: none;
}
.band h2 { color: #fff; }
.band .sec-head p { color: rgba(232, 236, 244, 0.7); }
.band .eyebrow { color: var(--target); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.fact {
  border-top: 2px solid rgba(92, 190, 240, 0.5); padding-top: 18px;
}
.fact h3 {
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.01em; margin-bottom: 8px; color: #fff;
}
.fact p { color: rgba(232, 236, 244, 0.7); font-size: 0.94rem; }

/* pricing */
.pricing { text-align: center; }
.price {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 5rem); letter-spacing: -0.04em; line-height: 1;
}
.price sup { font-size: 0.4em; vertical-align: 28%; letter-spacing: 0; }
.price-sub {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 10px;
}
.pricing .who { max-width: 36em; margin: 22px auto 0; color: var(--muted); }
.pricing .cta-row { justify-content: center; }
.fine {
  margin-top: 36px; font-family: var(--mono); font-size: 0.75rem;
  color: var(--faint); letter-spacing: 0.04em;
}

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 30px 0 46px; }
.foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.76rem; color: var(--faint);
}
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- document pages (privacy / terms / support / 404) ---------- */

.doc { max-width: 720px; margin: 0 auto; padding: 30px 28px 80px; }
.doc h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 40px 0 6px;
}
.doc .updated {
  font-family: var(--mono); font-size: 0.75rem; color: var(--faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.doc h2 {
  font-size: 1.3rem; margin: 40px 0 12px; letter-spacing: -0.02em;
}
.doc p, .doc li { color: var(--muted); margin: 10px 0; }
.doc ul { margin: 10px 0 10px 22px; }
.doc a { color: var(--wave-deep); }
.doc .callout {
  border: 1px solid var(--line); border-left: 3px solid var(--target);
  border-radius: 10px; background: #FBFCFD;
  padding: 16px 20px; margin: 24px 0;
}
.doc .callout p { margin: 0; }
.doc dt {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.01em;
  margin-top: 26px; font-size: 1.05rem;
}
.doc dd { color: var(--muted); margin: 6px 0 0; }

/* 404 */
.err {
  min-height: 82vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.err .code {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
}
.err .code b { color: var(--clip); font-weight: 600; }
.err h1 { margin: 14px 0 10px; }
.err p { color: var(--muted); }
.err .dash {
  width: 180px; margin: 26px auto 0;
  border-top: 2px dashed var(--target);
}
.err .btn { margin-top: 30px; }

/* ---------- responsive & motion ---------- */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 40px 0 64px; }
  .steps, .facts { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 56px 0; }
  .top nav a.plain { display: none; }
}
@media (max-width: 560px) {
  .file .vals { display: none; }
  .inst-head .inst-spec { display: none; }
  .wrap, .doc { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .fill, .stamp, .f1 .fill, .f2 .fill, .f3 .fill, .f4 .fill, .f5 .fill {
    animation: none;
  }
  .f1 .fill, .f3 .fill, .f5 .fill { width: 70%; }
  .f2 .fill { width: 70%; }
  .f4 .fill { width: 69%; }
  .stamp { opacity: 1; animation: none; }
}
