/* ─────────────────────────────────────────────────────────────
   All In One Capture — marketing site
   Brand palette mirrors the four corner tiles in the app logo:
     blue   = screenshot     red    = screen recording
     green  = video / chat   orange = picture-in-picture
   Typeface: Nunito — the rounded sans-serif used in the wordmark.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f6f7fb;
  --bg-card:      #ffffff;
  --bg-hover:     #eef0f7;
  --border:       #e5e7eb;
  --text:         #111827;
  --text-soft:    #4b5563;
  --text-mute:    #6b7280;

  /* Brand colours (one per feature, mirroring the logo tiles) */
  --brand-blue:   #2563eb;
  --brand-red:    #ef4444;
  --brand-green:  #10b981;
  --brand-orange: #f59e0b;

  /* Primary accent = blue (matches the bold "All" in the wordmark) */
  --accent:       var(--brand-blue);
  --accent-hover: #1d4ed8;
  --ok:           var(--brand-green);
  --danger:       var(--brand-red);
  --warn:         var(--brand-orange);
  --pink:         var(--brand-red); /* legacy alias */

  --shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.04);
  --shadow-md:    0 8px 24px rgba(15,23,42,.08), 0 16px 48px rgba(15,23,42,.06);
  --radius:       12px;

  /* Four-stop rainbow that traces the gradient ring around the logo. */
  --gradient: linear-gradient(135deg,
    var(--brand-blue) 0%,
    var(--brand-red) 35%,
    var(--brand-orange) 70%,
    var(--brand-green) 100%);

  --font-sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Inter, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b0d12;
    --bg-soft:   #11141b;
    --bg-card:   #161a24;
    --bg-hover:  #1c2030;
    --border:    #262b3a;
    --text:      #f3f4f6;
    --text-soft: #cbd5e1;
    --text-mute: #9ca3af;
    --accent:    #60a5fa;
    --accent-hover: #93c5fd;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
    --shadow-md: 0 12px 32px rgba(0,0,0,.5), 0 24px 64px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { color: var(--text-soft); }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section-tight { padding: 48px 0; }
h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 14px;
}
.lead { font-size: 18px; color: var(--text-soft); max-width: 640px; }
.muted { color: var(--text-mute); }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 18px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 14.5px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .06s ease, background .12s ease, border-color .12s ease, color .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37,99,235,.55), 0 4px 12px -6px rgba(239,68,68,.35);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: var(--bg-card); color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); text-decoration: none;
}
.brand .logo {
  width: 36px; height: 36px; border-radius: 8px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-text { line-height: 1; }
.brand-text .name { font-size: 15px; }
.brand-text .sub  { display: block; font-size: 11px; color: var(--text-mute); font-weight: 500; margin-top: 2px; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--text-soft); padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--bg-hover); }

/* Header "Install" call-to-action — its own self-contained style so it
   doesn't inherit from .btn or .nav-links a. */
.nav-links a.nav-cta {
  margin-left: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 12px;
  background: var(--gradient);
  color: #fff;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 700;
  box-shadow:
    0 6px 18px -8px rgba(37,99,235,.7),
    0 3px 8px  -4px rgba(239,68,68,.45),
    inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .12s ease, box-shadow .18s ease, filter .12s ease;
}
.nav-links a.nav-cta:hover {
  color: #fff; background: var(--gradient);
  transform: translateY(-1px);
  filter: brightness(1.07) saturate(1.05);
  box-shadow:
    0 10px 24px -8px rgba(37,99,235,.8),
    0 5px 12px  -4px rgba(239,68,68,.55),
    inset 0 1px 0 rgba(255,255,255,.28);
  text-decoration: none;
}
.nav-links a.nav-cta:active { transform: translateY(0); }
.nav-links a.nav-cta svg {
  width: 14px; height: 14px;
  flex: 0 0 auto;
  /* A subtle drop animation to hint "download". */
  transition: transform .25s cubic-bezier(.4, 1.6, .5, 1);
}
.nav-links a.nav-cta:hover svg { transform: translateY(1px); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: 8px; border-radius: 8px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px; transform-origin: top;
    transform: scaleY(0); opacity: 0; pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav-links.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px; border-radius: 6px; }
  .nav-links a.nav-cta {
    margin: 6px 0 4px;
    padding: 11px 14px;
    justify-content: center;
    font-size: 14px;
  }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 96px 0 64px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -50% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(closest-side, color-mix(in oklab, #2563eb 30%, transparent), transparent 70%) 25% 25%/600px 600px no-repeat,
    radial-gradient(closest-side, color-mix(in oklab, #ef4444 24%, transparent), transparent 70%) 75% 30%/520px 520px no-repeat,
    radial-gradient(closest-side, color-mix(in oklab, #f59e0b 22%, transparent), transparent 70%) 70% 75%/520px 520px no-repeat,
    radial-gradient(closest-side, color-mix(in oklab, #10b981 22%, transparent), transparent 70%) 25% 75%/520px 520px no-repeat;
  filter: blur(40px); opacity: .55; z-index: -1;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-inner { grid-template-columns: 1fr; }
}
.hero p.lead { font-size: 19px; margin: 16px 0 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-mock {
  position: relative; aspect-ratio: 5 / 4;
  background: var(--bg-card); border-radius: 18px;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-mock::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 36px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.hero-mock::after {
  content: ""; position: absolute; left: 14px; top: 12px;
  width: 12px; height: 12px; border-radius: 50%; background: #ff5f57;
  box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
}
.hero-mock .stage {
  position: absolute; left: 16px; right: 16px; top: 52px; bottom: 16px;
  border-radius: 12px; background: #000;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px;
}
.hero-mock .tile {
  border-radius: 8px;
  /* One tile per feature, in the same order as the wordmark caption:
     Screenshot · Screen Recording · Video Calling with Chat · Picture-in-Picture */
  background: linear-gradient(135deg, #3b82f6, var(--brand-blue));
  position: relative;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 32px;
  letter-spacing: .02em;
}
.hero-mock .tile.t2 { background: linear-gradient(135deg, #f87171, var(--brand-red)); }
.hero-mock .tile.t3 { background: linear-gradient(135deg, #34d399, var(--brand-green)); }
.hero-mock .tile.t4 { background: linear-gradient(135deg, #fbbf24, var(--brand-orange)); }
.hero-mock .pill {
  position: absolute; left: 10px; bottom: 8px;
  font-size: 11px; padding: 2px 8px; border-radius: 5px;
  background: rgba(0,0,0,.55); color: #fff; font-weight: 500;
}

/* ── Feature grid ───────────────────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.feature:hover {
  transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow-md);
}
.feature .icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent); margin-bottom: 14px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p  { margin: 0; font-size: 14.5px; }

/* ── Section helpers ────────────────────────────────────── */
.section-head {
  text-align: center; margin: 0 auto 40px; max-width: 720px;
}
.section-head .lead { margin: 0 auto; }

/* ── Steps (How it works) ───────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-soft); border-radius: var(--radius); padding: 22px;
  border: 1px solid var(--border); position: relative;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 16px; right: 16px;
  font-size: 22px; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .9;
}
.step h3 { margin: 4px 0 6px; }
.step p  { margin: 0; font-size: 14px; }

/* ── CTA panel ──────────────────────────────────────────── */
.cta-panel {
  background: var(--gradient); color: #fff; border-radius: 18px;
  padding: 48px; text-align: center;
  box-shadow: 0 20px 60px -20px rgba(99,102,241,.55);
}
.cta-panel h2 { color: #fff; }
.cta-panel p  { color: rgba(255,255,255,.92); }
.cta-panel .btn-primary {
  background: #fff; color: var(--accent); box-shadow: none;
}
.cta-panel .btn-primary:hover { filter: none; background: #f3f4f6; }
.cta-panel .btn-secondary {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.cta-panel .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── Store-badge style install buttons ─────────────────────────────── */
.install-row {
  display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px; min-width: 220px;
  background: #111418; color: #fff;
  border: 1px solid #111418; border-radius: 14px;
  text-decoration: none; font: inherit;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
}
.btn-store:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: #1c2030;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,.45);
}
.btn-store:active { transform: translateY(0); }
.btn-store .browser-icon {
  width: 34px; height: 34px; flex: 0 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
.btn-store-text {
  display: flex; flex-direction: column;
  text-align: left; line-height: 1.15; min-width: 0;
}
.btn-store-sub {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.65); font-weight: 600;
}
.btn-store-main { font-size: 15px; font-weight: 700; }

/* Variant tints — subtle browser-color accent on the left border. */
.btn-store--chrome   { border-left: 4px solid #4285f4; }
.btn-store--firefox  { border-left: 4px solid #ff7139; }
.btn-store--edge     { border-left: 4px solid #0078d4; }

/* When sitting on the gradient CTA panel, use a glassy translucent look
   instead of solid dark — keeps contrast with the gradient. */
.cta-panel .btn-store {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.cta-panel .btn-store:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.4);
}
.cta-panel .btn-store-sub { color: rgba(255,255,255,.85); }

@media (max-width: 480px) {
  .btn-store { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .btn-store-text { text-align: center; }
}

/* ── Footer ─────────────────────────────────────────────── */
.ftr {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 28px;
  margin-top: 80px;
}
.ftr-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px;
}
@media (max-width: 800px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ftr-grid { grid-template-columns: 1fr; } }
.ftr h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--text); }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin: 6px 0; }
.ftr a  { color: var(--text-soft); font-size: 14px; }
.ftr a:hover { color: var(--text); text-decoration: none; }
.ftr .blurb { color: var(--text-mute); font-size: 14px; max-width: 320px; margin-top: 8px; }
.ftr-bottom {
  margin-top: 32px; padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-mute);
}

/* ── Contact form ───────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.contact-form label {
  display: block; font-size: 13px; font-weight: 600;
  margin: 14px 0 6px;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px; font: inherit;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { margin-top: 18px; }

.contact-aside {
  display: flex; flex-direction: column; gap: 16px;
}
.contact-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.contact-card h3 { margin-top: 0; }
.contact-card p, .contact-card a { font-size: 14px; }

/* ── Article (privacy / terms) ──────────────────────────── */
.article {
  max-width: 800px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; box-shadow: var(--shadow-sm);
}
.article h2 { margin-top: 32px; font-size: 22px; }
.article h2:first-of-type { margin-top: 0; }
.article h3 { margin-top: 22px; font-size: 16px; }
.article ul { padding-left: 22px; color: var(--text-soft); }
.article li { margin: 6px 0; }
.article .updated {
  display: inline-block; padding: 4px 10px;
  border-radius: 999px; font-size: 12px;
  background: var(--bg-soft); color: var(--text-mute);
  border: 1px solid var(--border); margin-bottom: 16px;
}
.article a { color: var(--accent); }
.article code {
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-soft); padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── 404 ────────────────────────────────────────────────── */
.error-page {
  min-height: 60vh; display: grid; place-items: center; text-align: center;
}
.error-page .code {
  font-size: clamp(96px, 18vw, 200px);
  font-weight: 900; letter-spacing: -.04em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 12px;
}

/* ── Misc ──────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
