/* Smogline marketing site.
 *
 * Hand-written CSS, no framework and no build step: the whole point of this folder is
 * that a copy change does not need a JavaScript toolchain. Tokens mirror
 * ../src/theme.css so the marketing page and the app are visibly the same product.
 */

:root {
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-text: #1d4ed8;
  --brand-soft: rgba(37, 99, 235, 0.1);
  --accent: #f97316;

  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --sunken: #f8f9fb;
  --border: #e3e6ec;
  --border-strong: #ccd2dc;

  --text-1: #14161c;
  --text-2: #5b6472;
  --text-3: #8a92a1;

  --success: #16a34a;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px rgba(20, 22, 28, 0.09), 0 2px 6px rgba(20, 22, 28, 0.05);
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand-text, var(--brand));
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 780px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-1);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-hover);
}

.btn-quiet {
  color: var(--text-2);
}

.btn-quiet:hover {
  color: var(--text-1);
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 0.95rem;
}

.brand-name {
  font-size: 1.12rem;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: 8px;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text-1);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 380px at 88% -60px, var(--brand-soft), transparent 70%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-text, var(--brand));
}

.lede {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.micro {
  font-size: 0.86rem;
  color: var(--text-3);
  max-width: 36em;
}

.micro.center {
  text-align: center;
}

/* --- Illustrated product frame -------------------------------------------- */

.frame-wrap {
  position: relative;
  padding-bottom: 26px;
}

.frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--sunken);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.frame-url {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--text-3);
}

.screen {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 244px;
}

.screen-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.rail-item {
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 0.72rem;
  color: var(--text-2);
}

.rail-active {
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 600;
}

.screen-body {
  padding: 16px 18px;
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.screen-title {
  font-size: 0.86rem;
  font-weight: 650;
}

.pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.pill-ok {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.field-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
}

.field-row span {
  color: var(--text-3);
}

.field-row b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-foot {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.frame-btn {
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
}

.frame-btn.ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-1);
}

.cert-card {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 190px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cert-brand {
  font-size: 0.72rem;
  font-weight: 700;
}

.cert-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.cert-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.cert-lines span {
  height: 6px;
  border-radius: 3px;
  background: var(--sunken);
  border: 1px solid var(--border);
}

.cert-lines span.short {
  width: 62%;
}

.cert-foot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-qr {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background:
    conic-gradient(from 0deg, var(--text-1) 0 25%, transparent 0 50%, var(--text-1) 0 75%, transparent 0);
  background-size: 10px 10px;
  opacity: 0.8;
}

.cert-note {
  font-size: 0.62rem;
  color: var(--text-3);
}

.frame-caption {
  margin: 12px 0 0;
  font-size: 0.74rem;
  color: var(--text-3);
  text-align: right;
}

/* --- Sections ------------------------------------------------------------- */

.section {
  padding: 76px 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 34px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* --- Pricing -------------------------------------------------------------- */

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 34px;
  align-items: start;
}

.price-card {
  padding: 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.price-plan {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.price-amount {
  margin: 6px 0 4px;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 2px;
}

.price-per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
}

.price-sub {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.price-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.price-list li {
  position: relative;
  padding: 7px 0 7px 28px;
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--text-2);
}

.price-list li::before {
  content: "\2713";
  position: absolute;
  left: 4px;
  color: var(--success);
  font-weight: 700;
}

.trial-card {
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.trial-card > p {
  color: var(--text-2);
  font-size: 0.95rem;
}

.trial-list {
  margin: 20px 0 0;
}

.trial-list > div {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.trial-list dt {
  font-weight: 650;
  font-size: 0.95rem;
}

.trial-list dd {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  padding: 18px 30px 18px 0;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 15px;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-3);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 62em;
}

/* --- Closing band --------------------------------------------------------- */

.cta-band {
  padding: 64px 0;
  background: linear-gradient(120deg, #1e3a8a, var(--brand));
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin-bottom: 8px;
}

.cta-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 44em;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-hover);
}

.cta-band .btn-primary:hover {
  background: #eef2ff;
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-band .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding: 52px 0 28px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
}

.footer-note {
  margin: 12px 0 0;
  color: var(--text-3);
  font-size: 0.88rem;
  max-width: 30em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h3 {
  margin: 0 0 4px;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--text-1);
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-legal p {
  margin: 0;
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 76em;
}

/* --- Legal pages (terms.html, privacy.html) ------------------------------- */

.doc {
  padding: 56px 0 72px;
}

.doc h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.doc .updated {
  color: var(--text-3);
  font-size: 0.86rem;
}

.doc h2 {
  margin-top: 34px;
  font-size: 1.2rem;
}

.doc h3 {
  margin-top: 22px;
  font-size: 1rem;
}

.doc p,
.doc li {
  color: var(--text-2);
  font-size: 0.96rem;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc a {
  color: var(--brand-text);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-2);
  text-decoration: none;
}

.back-link:hover {
  color: var(--text-1);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 980px) {
  .hero {
    padding: 44px 0 56px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .steps,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    gap: 12px;
    height: 60px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .header-actions .btn-quiet {
    display: none;
  }

  .steps,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .screen {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 0;
  }

  .cert-card {
    display: none;
  }

  .frame-wrap {
    padding-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .price-card {
    padding: 24px;
  }

  .price-amount {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
