/* ============================================================================================
   Shorthop marketing site — no framework, no external assets.

   Built on navdeck-site's stylesheet (frontend/navdeck-site/public/styles.css): same
   dark-first palette, same class names and the same rules, so the two sites read as one
   family. The ONE deliberate difference is the accent: navdeck is teal, Shorthop is amber
   (an alert colour). It lives in the --accent* tokens below — change those, nothing else.

   Carried over from navdeck, each one a bug waiting to happen:
   * `--navy` is heading TEXT and is LIGHT here. `--brand-surface` is a dark SURFACE.
   * `--on-accent` is text ON the accent. The amber is light, so that text is DARK ink —
     white on it measures well under 3:1.
   * `a:where(:visited)` must stay `:where()`: a plain `a:visited` outranks `.btn-primary`
     and repaints a visited button's label blue on amber (navdeck measured 1.09:1).
   ============================================================================================ */
:root {
  color-scheme: dark;

  --navy: #dbe7f4;
  --brand-surface: #0b2545;
  --accent: #f0b44c;
  --accent-hover: #f6c46a;
  --accent-ink: #f5c873;     /* the accent as INK on a dark surface (eyebrows, captions) */
  --accent-soft: rgba(240, 180, 76, 0.16);
  --on-accent: #241703;      /* text on --accent */
  --blue: #7fb2e5;
  --teal-ink: #6fd3c2;       /* "works today" — the platform's ok colour */

  --ink: #e6edf5;
  --muted: #93a4b8;
  --bg: #0a1420;
  --card: #101f31;
  --bg-soft: #16273a;
  --border: #22364c;
  --border-2: #2b415a;
  --danger: #ff8a7d;

  --radius: 14px;
  --elev-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 12px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:where(:visited) { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5rem; color: var(--navy); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
p { margin: 0.4rem 0 0.9rem; }
::selection { background: rgba(240, 180, 76, 0.3); color: #fff; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--card); padding: 0.5rem 0.8rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 16, 27, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--accent); }
.logo { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 1.1rem; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 0.7rem 1.3rem; border-radius: 10px;
  font-weight: 700; font-size: 0.98rem; border: 2px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 18px rgba(240, 180, 76, 0.22); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.22); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* --- Hero --- */
.hero {
  display: flex; align-items: center; min-height: min(62vh, 560px);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(240, 180, 76, 0.13), transparent 62%),
    radial-gradient(900px 500px at -10% 110%, rgba(29, 111, 184, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1a2b 0%, #0a1420 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero { min-height: 0; } .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -0.02em; color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700;
  color: var(--accent-ink); margin: 0 0 0.6rem;
}
.lede { font-size: 1.13rem; color: var(--muted); max-width: 34rem; }
.lede strong { color: #fff; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.4rem 0 1.2rem; }
.hero-badges { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.86rem; color: var(--muted); }

/* --- Mock window (navdeck's frame), holding an example alert --- */
.mock-window {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-2); background: var(--card);
  box-shadow: var(--elev-2);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar i:nth-child(1) { background: #e06c60; }
.mock-bar i:nth-child(2) { background: #d9a441; }
.mock-bar i:nth-child(3) { background: #5aab6a; }
.mock-bar span { margin-left: 8px; font-size: 0.75rem; color: var(--muted); }
.alert-mock { padding: 1.2rem 1.3rem 1.3rem; }
.alert-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.sev {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: rgba(255, 138, 125, 0.16); color: var(--danger);
}
.alert-name { font-weight: 800; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; overflow-wrap: anywhere; }
.alert-meta { color: var(--muted); font-size: 0.86rem; margin: 0.4rem 0 1rem; }
.alert-history {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 10px; background: var(--bg-soft); padding: 0.85rem 1rem;
}
.alert-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 0.35rem; }
.alert-history p { margin: 0.2rem 0; font-size: 0.92rem; }
.alert-history strong { color: #fff; }
.alert-history blockquote { margin: 0.5rem 0 0; color: var(--ink); font-size: 0.92rem; font-style: italic; }
.alert-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }
.mock-btn {
  font-size: 0.82rem; font-weight: 700; padding: 0.4rem 0.85rem; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
}
.mock-btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--border-2); }

/* --- Strip --- */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 4rem);
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.strip-item h3 { font-size: 1.05rem; }
.strip-item p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

/* --- Sections --- */
.product { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem); }
.product.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.inner { max-width: 1200px; margin: 0 auto; }
.section-lede { max-width: 44rem; margin: 0 auto clamp(1.6rem, 4vw, 2.2rem); text-align: center; }
.section-lede p { color: var(--muted); }
.pill {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem;
  background: var(--accent-soft); color: var(--accent-ink);
}

/* --- Before / after flow --- */
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 60rem; margin: 0 auto 2.2rem; }
@media (max-width: 760px) { .flows { grid-template-columns: 1fr; } }
.flow { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.flow.after { border-color: rgba(240, 180, 76, 0.55); box-shadow: 0 0 0 1px rgba(240, 180, 76, 0.2); }
.flow figcaption { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.flow.after figcaption { color: var(--accent-ink); }
.flow ol { list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; padding: 0.45rem 0 0.45rem 1.4rem; color: #fff; font-weight: 700; }
.flow li::before { content: ""; position: absolute; left: 0.25rem; top: 0.85rem; width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.flow.after li::before { background: var(--accent); }
.flow li + li::after { content: ""; position: absolute; left: calc(0.25rem + 3px); top: -0.2rem; height: 0.95rem; border-left: 2px solid var(--border); }
.flow li span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }

/* --- Feature grid --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; transition: transform 0.12s ease, border-color 0.15s ease;
}
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature h4 { font-size: 1rem; }
.feature p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* --- Split --- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
/* A grid item's minimum width is its min-content; the `white-space: pre` code block would
   otherwise push the column (and the page) wider than a phone. */
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0.42rem 0 0.42rem 1.9rem; color: var(--muted); font-size: 0.97rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--accent); font-weight: 800; }
.checklist li strong { color: var(--ink); }
.code {
  background: #06101b; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.9rem 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem;
  color: var(--ink); overflow-x: auto; white-space: pre;
}
.code .c { color: var(--muted); }

/* --- Pricing cards (navdeck's .price-card) --- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: stretch; max-width: 1020px; margin: 0 auto; }
@media (max-width: 960px) { .price-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-cards { grid-template-columns: 1fr; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 18px; background: var(--card);
  padding: 1.6rem 1.5rem;
}
.price-card.popular {
  border-color: rgba(240, 180, 76, 0.55);
  background: linear-gradient(180deg, #1d2a3a 0%, #121f30 100%);
  box-shadow: 0 0 0 1px rgba(240, 180, 76, 0.25), 0 18px 44px rgba(0, 0, 0, 0.5);
}
.price-name { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin: 0 0 0.3rem; }
.price-card.popular .price-name { color: #fff; }
.price-desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; min-height: 3.2em; }
.price-card.popular .price-desc { color: #c3d5e8; }
.price-amount { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.price-amount small { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-left: 0.25rem; }
.price-sub { font-size: 0.83rem; color: var(--muted); margin: 0.35rem 0 0; }
.price-divider { border: 0; border-top: 1px solid var(--border); margin: 1.1rem 0; }
.price-card.popular .price-divider { border-color: rgba(255, 255, 255, 0.14); }
.price-plus { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 0.6rem; }
.price-card.popular .price-plus { color: var(--accent-ink); }
.price-feats { list-style: none; padding: 0; margin: 0 0 1.3rem; flex: 1; display: flex; flex-direction: column; gap: 0.55rem; }
.price-feats li { position: relative; padding-left: 1.7rem; font-size: 0.92rem; color: var(--ink); }
.price-card.popular .price-feats li { color: #dbe7f2; }
.price-feats li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.price-cta { text-align: center; margin-top: auto; }
.price-pill {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent); font-size: 0.7rem; font-weight: 800;
  padding: 0.24rem 0.85rem; border-radius: 999px; letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap;
}
.price-trust {
  display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center;
  margin-top: 1.8rem; color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.pricing-promise {
  margin: 2.2rem auto 0; padding: 1.3rem 1.5rem; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); max-width: 1020px;
}
.pricing-promise p { color: var(--muted); margin: 0.3rem 0; }
.pricing-promise strong { color: var(--ink); }
.fine { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 1.2rem; }

/* --- Status --- */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 60rem; margin: 0 auto; }
@media (max-width: 760px) { .status-grid { grid-template-columns: 1fr; } }
.status-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.status-card h3 { font-size: 1.05rem; }
.status-card.ok { border-top: 4px solid var(--teal-ink); }
.status-card.soon { border-top: 4px solid var(--accent); }
.status-card .checklist li::before { color: var(--teal-ink); }
.status-card.soon .checklist li::before { content: "○"; color: var(--accent); }

/* --- Footer --- */
.footer {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 2rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--border);
  font-size: 0.92rem; color: var(--muted); background: #06101b;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.env-badge {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
}
