/* GoToFast — shared stylesheet
   Layout concept: full-width bands with a centered 1080px container;
   forward-leaning display type + mono slugs = speed with control. */

:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --ink: #15181e;
  --muted: #5b6270;
  --line: #d9dde5;
  --accent: #2b48e0;
  --accent-hover: #1f38c2;
  --accent-ink: #ffffff;
  --accent-soft: #e8ecfc;
  --flash: #ffb52e;
  --ok: #1d9a5c;
  --danger: #cf3b2f;
  --foot-bg: #15181e;
  --foot-ink: #eceef4;
  --foot-muted: #9aa2b1;
  --shadow: 0 1px 2px rgba(21, 24, 30, 0.05), 0 10px 28px rgba(21, 24, 30, 0.07);
  --display: 'Archivo', 'Arial Black', 'Trebuchet MS', sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1116;
    --surface: #171a21;
    --ink: #edeff4;
    --muted: #9aa2b2;
    --line: #2a2f3a;
    --accent: #5d75ff;
    --accent-hover: #7689ff;
    --accent-ink: #0d1020;
    --accent-soft: #1d2440;
    --flash: #ffb52e;
    --ok: #37b374;
    --danger: #e45c50;
    --foot-bg: #0a0c10;
    --foot-ink: #eceef4;
    --foot-muted: #9aa2b1;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1116;
  --surface: #171a21;
  --ink: #edeff4;
  --muted: #9aa2b2;
  --line: #2a2f3a;
  --accent: #5d75ff;
  --accent-hover: #7689ff;
  --accent-ink: #0d1020;
  --accent-soft: #1d2440;
  --flash: #ffb52e;
  --ok: #37b374;
  --danger: #e45c50;
  --foot-bg: #0a0c10;
  --foot-ink: #eceef4;
  --foot-muted: #9aa2b1;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--surface);
}
img { max-width: 100%; }

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
.fast-word { font-style: italic; color: var(--accent); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9em;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 42em; }
.mono { font-family: var(--mono); }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-block: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo em { font-style: italic; color: var(--accent); }
.logo svg { flex: none; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-right: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 7px;
}
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-big { padding: 13px 24px; font-size: 1.05rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--line); }
.btn-danger:hover { border-color: var(--danger); }
.btn-small { padding: 6px 12px; font-size: 0.85rem; border-radius: 7px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Sections / bands ---------- */
.band { padding-block: 72px; }
.band-tight { padding-block: 48px; }
.band-alt { background: var(--surface); border-block: 1px solid var(--line); }
.hero {
  padding-block: 80px 72px;
  background:
    repeating-linear-gradient(115deg, transparent 0 48px, var(--accent-soft) 48px 50px),
    var(--bg);
}
.hero h1 { max-width: 14em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.section-head { max-width: 46em; margin-bottom: 36px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card h3 { margin-top: 2px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .mono-example {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 2px 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.chip-flash { background: var(--flash); color: #3a2800; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-width: 0; }
.step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- Hero demo widget ---------- */
.demo-box {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 640px;
}
.demo-row { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-row input { flex: 1 1 260px; min-width: 0; }
.demo-result {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.demo-result .short { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
.demo-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 16px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; margin-top: 5px; }
.auth-wrap { display: grid; place-items: center; padding-block: 64px; }
.auth-card { width: min(420px, 100%); }
.auth-card .btn { width: 100%; }
.auth-foot { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 16px; }
.notice {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
}

/* ---------- Pricing ---------- */
.price-card { position: relative; }
.price-card .price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; margin: 8px 0 2px; }
.price-card .per { color: var(--muted); font-size: 0.9rem; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); }
.price-card li::before { content: "»"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.price-card.is-soon { opacity: 0.88; }
.price-card.is-soon li::before { color: var(--muted); }
.price-featured { border: 2px solid var(--accent); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 700; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq-item .faq-body p { margin-bottom: 0.6em; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 18px; }
.dash-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.dash-toolbar input { flex: 1 1 220px; min-width: 0; }
.dash-toolbar select { flex: 0 1 190px; }
.link-list { display: grid; gap: 12px; }
.link-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  gap: 8px 18px;
  align-items: center;
}
@media (max-width: 860px) { .link-row { grid-template-columns: 1fr; } }
.link-main { min-width: 0; }
.link-short { font-family: var(--mono); font-weight: 500; overflow-wrap: anywhere; }
.link-dest { color: var(--muted); font-size: 0.9rem; min-width: 0; overflow-wrap: anywhere; }
.link-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.link-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-self: end; }
@media (max-width: 860px) { .link-actions { justify-self: start; } }
.badge { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; border-radius: 6px; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); }
.badge-short { color: var(--accent); border-color: var(--accent); }
.badge-redirect { color: var(--ok); border-color: var(--ok); }
.badge-bookmark { color: var(--flash); border-color: var(--flash); }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; grid-column: 1 / -1; }
@media (max-width: 700px) { .edit-grid { grid-template-columns: 1fr; } }
.empty-state { text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed var(--line); border-radius: 12px; }
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--bg);
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 0.9rem;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.toast.show { opacity: 1; }

/* ---------- Prose / legal ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink); }
.prose .muted { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band h2, .cta-band p { color: var(--accent-ink); }
.cta-band .btn-primary { background: var(--surface); color: var(--accent); }
.cta-band .btn-primary:hover { background: var(--bg); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 52px; }
.cta-inner p { margin: 0; opacity: 0.9; }

/* ---------- Footer ---------- */
.site-foot { background: var(--foot-bg); color: var(--foot-ink); margin-top: 72px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding-block: 52px 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot .logo { color: var(--foot-ink); }
.site-foot h4 { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--foot-muted); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 9px; }
.site-foot a { color: var(--foot-ink); text-decoration: none; font-size: 0.93rem; }
.site-foot a:hover { color: var(--flash); }
.foot-brand p { color: var(--foot-muted); font-size: 0.93rem; max-width: 30em; }
.foot-base { border-top: 1px solid rgba(154, 162, 177, 0.25); padding-block: 18px calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--foot-muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 10px 24px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
