/* Intescope marketing theme — "Aperture" direction: cyan→blue on white, navy ink.
   Light-theme rebrand of the prior dark theme; class names are unchanged so
   the page markup didn't need to move, only these tokens did. */

:root {
  --cyan: #06B6D4;
  --blue: #2563EB;
  --ink: #0B1426;
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-alt: #EEF3F8;
  --line: #E5EAF0;
  --muted: #5A6B80;
  --muted-dim: #8A96A3;
  --pill-bg: #E6F7FA;
  --pill-ink: #0E7490;
  /* Vivid gradient — decorative surfaces only (icon chips, dots, bullets, large
     headline text). Buttons and small bold labels use --grad-text or a solid
     color instead: white text directly on the cyan stop of --grad falls below
     WCAG AA at UI-control sizes, so it's reserved for places that don't carry
     the page's only copy of a piece of information. */
  --grad: linear-gradient(135deg, #06B6D4 0%, #2563EB 100%);
  /* Deepened gradient for text/labels that must hit AA on white at large sizes. */
  --grad-text: linear-gradient(135deg, #0891B2 0%, #1D4ED8 100%);
  --hero: radial-gradient(ellipse at top, #EAF7FB 0%, #FFFFFF 55%, #FFFFFF 100%);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
::selection { background: rgba(6, 182, 212, 0.18); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--cyan) var(--surface-alt); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #06B6D4, #2563EB); border-radius: 4px; }

/* ----------------------------------------------------------- layout ------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.center { text-align: center; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pill-ink); margin-bottom: 16px;
}
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.dim { color: var(--muted-dim); }

/* glow line */
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(37,99,235,.35), transparent); border: 0; margin: 0; }

/* ------------------------------------------------------------ buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: all .25s ease;
  font-family: inherit; white-space: nowrap;
}
/* Solid blue, not the vivid gradient — this is the one control users must be
   able to read; see the --grad comment above. */
.btn-primary { color: #fff; background: var(--blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(6,182,212,.45), 0 6px 16px -8px rgba(37,99,235,.35); }
.btn-secondary { color: var(--ink); border-color: rgba(37,99,235,.35); background: transparent; }
.btn-secondary:hover { border-color: var(--blue); background: rgba(37,99,235,.06); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--ink); }
.btn.sm { padding: 9px 18px; font-size: 14px; }
.btn.lg { padding: 16px 34px; font-size: 16px; }
.btn.block { width: 100%; }

/* --------------------------------------------------------------- cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px; transition: all .35s ease;
}
.card:hover { border-color: rgba(37,99,235,.28); box-shadow: 0 14px 40px -18px rgba(37,99,235,.18); transform: translateY(-3px); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--pill-bg); border: 1px solid rgba(14,116,144,.2);
  color: var(--pill-ink); margin-bottom: 18px; font-size: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.glass { background: rgba(255,255,255,.65); backdrop-filter: blur(18px); border: 1px solid var(--line); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------------- nav ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,.86); backdrop-filter: blur(18px);
  border-bottom-color: var(--line); box-shadow: 0 8px 24px -12px rgba(11,20,38,.08);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; gap: 24px; }
.nav-logo img { height: 30px; width: auto; transition: transform .3s ease; }
.nav-logo:hover img { transform: scale(1.05); }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 14px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); font-size: 26px; cursor: pointer; }

/* mobile menu */
.nav-mobile { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile.open {
    display: block; position: fixed; top: 76px; left: 0; right: 0; z-index: 49;
    background: rgba(255,255,255,.98); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
  }
  .nav-mobile a { display: block; padding: 12px 0; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
  .nav-mobile a:hover { color: var(--ink); }
  .nav-mobile .btn { width: 100%; margin-top: 12px; }
}

/* ---------------------------------------------------------------- hero ---- */
.hero { position: relative; overflow: hidden; background: var(--hero); padding: 172px 0 110px; }
.hero .glow { position: absolute; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero .glow.a { top: 10%; left: 12%; background: rgba(6,182,212,.09); animation: pulse 5s ease-in-out infinite; }
.hero .glow.b { bottom: 6%; right: 12%; background: rgba(37,99,235,.08); animation: pulse 5s ease-in-out infinite 2s; }
.hero .container { position: relative; z-index: 1; }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, var(--bg), transparent); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: var(--pill-bg); border: 1px solid rgba(14,116,144,.22); color: var(--pill-ink);
  font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pill-ink); box-shadow: 0 0 8px rgba(14,116,144,.4); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero.center .cta-row { justify-content: center; }

/* checklist */
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: #fff; background: var(--grad); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: 0 0 22px; margin-top: 1px; }

/* --------------------------------------------------------------- steps ---- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n { counter-increment: step; flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--pill-ink); background: var(--pill-bg); border: 1px solid rgba(14,116,144,.2); }
.step .n::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 30px; display: flex; flex-direction: column;
}
.price.featured { border-color: rgba(37,99,235,.4); box-shadow: 0 20px 60px -30px rgba(37,99,235,.28); position: relative; }
.price.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-text); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  padding: 5px 14px; border-radius: 999px;
}
.price .plan { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pill-ink); }
.price .amount { margin: 14px 0 2px; font-size: 46px; font-weight: 800; letter-spacing: -.02em; }
.price .amount span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price .sub { color: var(--muted-dim); font-size: 14px; min-height: 20px; }
.price .desc { color: var(--muted); font-size: 15px; margin: 16px 0 20px; }
.price .ticks { margin: 0 0 26px; }
.price .btn { margin-top: auto; }

/* ------------------------------------------------------------- contact ---- */
.field { display: block; margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.input, .textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-family: inherit; font-size: 15px; padding: 12px 14px; transition: border-color .2s ease;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.textarea { resize: vertical; min-height: 130px; }

/* -------------------------------------------------------------- footer ---- */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 30px; margin-top: 40px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot-brand img { height: 28px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted-dim); font-size: 14px; max-width: 280px; margin: 0; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.foot-col h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dim); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .2s ease; }
.foot-col a:hover { color: var(--blue); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted-dim); font-size: 13px; }

/* --------------------------------------------------------------- modal ---- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(11,20,38,.45); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-scrim.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 34px; box-shadow: 0 30px 80px -20px rgba(11,20,38,.22); position: relative;
  animation: rise .25s cubic-bezier(.2,.8,.2,1);
  /* Scroll tall content (e.g. the Stripe Payment Element) instead of overflowing
     the viewport, so the pay button stays reachable. */
  max-height: calc(100vh - 40px); overflow-y: auto;
}
/* The register/payment modal is wider — the Stripe Payment Element + plan cards
   need more room than the simple sign-in modal. */
#register-scrim .modal { max-width: 520px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal .x { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.modal .x:hover { color: var(--ink); }
.modal .logo { height: 26px; margin-bottom: 18px; }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.modal .field label { color: var(--ink); }
.modal .divider { display: flex; align-items: center; gap: 12px; color: var(--muted-dim); font-size: 13px; margin: 20px 0; }
.modal .divider::before, .modal .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.modal .err { color: #DC2626; font-size: 14px; min-height: 18px; margin: 8px 0 0; }
.modal .fineprint { color: var(--muted-dim); font-size: 13px; text-align: center; margin: 18px 0 0; }
.modal .link { color: var(--blue); cursor: pointer; }
.modal .link:hover { text-decoration: underline; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.oauth-btn img, .oauth-btn svg { width: 18px; height: 18px; }
.notice {
  background: var(--pill-bg); border: 1px solid rgba(14,116,144,.22); border-radius: 12px;
  padding: 16px; color: #0B4A57; font-size: 14px; margin-bottom: 20px;
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 140px 0 80px; }
  .split { grid-template-columns: 1fr !important; }
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
