/* AscendEye: one stylesheet, system fonts, light and dark. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;
  --border: #e3e7ee;
  --accent: #0e7490;
  --accent-2: #047857;
  --accent-ink: #ffffff;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2c;
    --text: #e7ecf3;
    --muted: #9aa6b8;
    --border: #22304a;
    --accent: #7dd3fc;
    --accent-2: #34d399;
    --accent-ink: #0b1220;
    --danger: #f97066;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* Fluid scale: the browser's default size (16px unless the user changed it) up to about laptop width, growing to
   1.25x on large monitors; the layout is in rem, so type, spacing and the content width scale together. In rem, not
   px, so a user's larger default text size still applies. */
html { -webkit-text-size-adjust: 100%; font-size: clamp(1rem, 0.85rem + 0.3vw, 1.25rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.wrap { max-width: min(100%, 72rem); margin: 0 auto; padding: 0 1rem; }

/* Header */
.top { border-bottom: 1px solid var(--border); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 1.875rem; height: 1.875rem; }
.brand span { font-size: 1.125rem; }
.nav { display: flex; gap: 1.125rem; font-size: 0.9375rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.nav-cta { white-space: nowrap; color: var(--accent); border: 1px solid var(--accent); border-radius: 0.5rem; padding: 0.25rem 0.75rem; font-weight: 600; }
.nav a.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; }
.eyebrow { display: inline-block; font-size: 0.8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.75rem; }
h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 1rem; max-width: 18ch; }
.lede { font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem); color: var(--muted); max-width: 60ch; margin: 0 0 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.125rem;
  border-radius: 0.625rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-size: 0.9375rem;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Sections */
section { padding: 3rem 0; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -.01em; margin: 0 0 0.5rem; }
.section-lede { color: var(--muted); margin: 0 0 1.75rem; max-width: 62ch; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.875rem; padding: 1.375rem; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 0.375rem; font-size: 1.125rem; }
.card p { margin: 0; color: var(--muted); }

/* Product feature */
.product { display: grid; gap: 1.5rem; grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.1875rem 0.625rem; border-radius: 999px; border: 1px solid var(--accent-2); color: var(--accent-2); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.625rem; }
.ticks li { padding-left: 1.625rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.25rem; top: .55em; width: 0.625rem; height: 0.625rem; border-radius: 0.1875rem; background: var(--accent-2); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.875rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5625rem;
  background: var(--surface); border: 1px solid var(--border); font-weight: 700; color: var(--accent);
}
.steps b { display: block; }
.steps span { color: var(--muted); }

/* Form */
form { display: grid; gap: 0.875rem; }
label { display: grid; gap: 0.375rem; font-weight: 600; font-size: 0.875rem; }
label .hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 0.625rem;
  padding: 0.625rem 0.75rem; min-height: 2.75rem; width: 100%;
}
textarea { min-height: 6rem; resize: vertical; }
.trap { position: absolute; left: -625rem; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.status { margin: 0; font-weight: 600; min-height: 1.6em; }
.status.ok { color: var(--accent-2); }
.status.err { color: var(--danger); }

/* Prose pages */
.prose { max-width: 70ch; padding-top: 3rem; padding-bottom: 3rem; }  /* keeps .wrap's side padding */
.prose h1 { max-width: none; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
.prose h2 { font-size: 1.375rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--text); }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: 0.875rem; }
.foot .wrap { display: grid; gap: 0.625rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot a { color: var(--muted); }
.disclaimer { max-width: 80ch; }

.product-title { font-size: 1.5rem; margin: 0.75rem 0 0.375rem; }
.actions.spaced { margin-top: 1.25rem; }
.card.flat { box-shadow: none; }

/* Phones: the nav moves under the brand instead of widening the page; grid items may shrink. */
.grid > *, .product > *, .steps li > * { min-width: 0; }
@media (max-width: 560px) {
  .top .wrap { flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .nav { width: 100%; gap: 1rem; }
  .hero { padding: 3rem 0 2rem; }
  section { padding: 2.25rem 0; }
}
