/* Capturat — capturat.com
   One stylesheet, no frameworks, no external requests. The palette is the
   app's: deep slate, one blue accent, one teal support. Deliberately no
   violet — every AI product uses it, and this is a tool. */

:root {
  --bg: #0B0F14;
  --bg-raised: #121821;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #EDF1F6;
  --muted: #9AA7B6;
  --dim: #6B7885;
  --accent: #2F84F6;
  --accent-soft: rgba(47, 132, 246, 0.14);
  --teal: #2FB4B8;
  --green: #34C759;
  --amber: #FF9F0A;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter,
    system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The same slow wash the app's onboarding uses. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 8% -6%, rgba(47, 132, 246, 0.22), transparent 65%),
    radial-gradient(680px 520px at 96% 4%, rgba(47, 180, 184, 0.16), transparent 62%);
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  background: rgba(11, 15, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--accent), var(--teal));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(47, 132, 246, 0.35);
}
.brand-mark svg { width: 15px; height: 15px; }

.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(160deg, var(--accent), #1E6FDA);
  color: #fff;
  box-shadow: 0 10px 26px rgba(47, 132, 246, 0.34);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(47, 132, 246, 0.44); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- hero ---------- */

.hero { padding: 92px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 132, 246, 0.28);
  padding: 6px 12px;
  border-radius: 999px;
}

h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 20px 0 18px;
  font-weight: 700;
}

.lead { font-size: 18px; color: var(--muted); max-width: 46ch; }

.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-note { margin-top: 16px; font-size: 13px; color: var(--dim); }

/* ---------- sections ---------- */

section { padding: 76px 0; }

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(27px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  margin: 12px 0 12px;
  font-weight: 700;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

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

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin: 14px 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 132, 246, 0.24);
  color: var(--accent);
}
.icon svg { width: 19px; height: 19px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split + .split { margin-top: 86px; }
.split.flip .split-visual { order: 2; }

.split h3 {
  font-size: clamp(23px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.split p { color: var(--muted); margin: 0 0 18px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.ticks li::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 132, 246, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232F84F6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* ---------- comparison ---------- */

.table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.trow {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.3fr;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  align-items: start;
}
.trow:last-child { border-bottom: none; }
.trow.head {
  background: rgba(255, 255, 255, 0.045);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.trow .pro { color: var(--text); }
.trow .free { color: var(--muted); }
.trow .no { color: var(--dim); }
.pro-tag { color: var(--accent); }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.plan {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.plan.featured {
  border-color: rgba(47, 132, 246, 0.6);
  background: linear-gradient(180deg, rgba(47, 132, 246, 0.16), rgba(47, 132, 246, 0.04));
  box-shadow: 0 20px 50px rgba(47, 132, 246, 0.18);
}
.plan .badge {
  position: absolute;
  top: -11px;
  left: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
}
.plan h3 { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: 650; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.trial {
  margin-top: 26px;
  border: 1px solid rgba(47, 132, 246, 0.3);
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.trial strong { font-size: 16px; }
.trial p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- faq ---------- */

details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
}
details + details { margin-top: 10px; }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 60px;
  margin-top: 40px;
}
.foot { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot small { color: var(--dim); font-size: 13px; }

/* ---------- animated app mock ---------- */

.mock {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, #1B3350, #17394A);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10.6;
  overflow: hidden;
}

.mock-menubar {
  height: 20px;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
}
.mock-menubar i { display: block; height: 4px; width: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.4); }
.mock-menubar i:first-child { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); }

.mock-window {
  position: absolute;
  left: 8%;
  top: 17%;
  width: 64%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.mock-titlebar { height: 20px; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; gap: 5px; padding: 0 9px; }
.mock-titlebar b { width: 7px; height: 7px; border-radius: 50%; display: block; }
.mock-titlebar b:nth-child(1) { background: #FF5F57; }
.mock-titlebar b:nth-child(2) { background: #FEBC2E; }
.mock-titlebar b:nth-child(3) { background: #28C840; }
.mock-body { padding: 13px; display: grid; gap: 8px; }
.mock-body i { display: block; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); }
.mock-body i:first-child { height: 7px; width: 42%; background: rgba(255, 255, 255, 0.55); }
.mock-body i:nth-child(2) { width: 88%; }
.mock-body i:nth-child(3) { width: 66%; }
.mock-body i:nth-child(4) { width: 79%; }

/* The selection draws itself, holds, then releases. */
.mock-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  animation: dim 7s infinite;
}
.mock-select {
  position: absolute;
  left: 14%;
  top: 33%;
  width: 0;
  height: 0;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  animation: drag 7s infinite;
}
.mock-pills {
  position: absolute;
  left: 14%;
  top: calc(33% + 34%);
  display: flex;
  gap: 5px;
  opacity: 0;
  animation: pills 7s infinite;
}
.mock-pills span {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}
.mock-pills span:first-child { background: var(--accent); }
.mock-pills span:last-child { background: rgba(255, 69, 58, 0.85); }
.mock-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 7s infinite; }

@keyframes dim {
  0%, 8% { opacity: 0; }
  14%, 62% { opacity: 1; }
  70%, 100% { opacity: 0; }
}
@keyframes drag {
  0%, 10% { width: 0; height: 0; }
  30%, 62% { width: 48%; height: 34%; }
  66%, 100% { width: 0; height: 0; opacity: 0; }
}
@keyframes pills {
  0%, 32% { opacity: 0; transform: translateY(6px); }
  38%, 60% { opacity: 1; transform: translateY(14px); }
  66%, 100% { opacity: 0; }
}
@keyframes flash {
  0%, 61% { opacity: 0; }
  62.5% { opacity: 0.75; }
  66%, 100% { opacity: 0; }
}

/* The preview panel that appears afterwards. */
.panel {
  position: absolute;
  right: 5%;
  bottom: 6%;
  width: 47%;
  border-radius: 14px;
  padding: 11px;
  background: rgba(18, 24, 33, 0.86);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(18px);
  animation: panel 7s infinite;
}
.panel-thumb { height: 42px; border-radius: 8px; background: linear-gradient(140deg, #1E3A5F, #2C6E8F); }
.panel-title { font-size: 10px; font-weight: 650; margin-top: 9px; }
.panel-tags { display: flex; gap: 5px; margin-top: 8px; }
.panel-tags span {
  font-size: 8.5px;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 132, 246, 0.2);
  color: #BBD6FF;
}
.panel-tags span:last-child { background: rgba(52, 199, 89, 0.18); color: #A9E9BB; }
.panel-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 9px; }
.panel-actions i {
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: block;
}

@keyframes panel {
  0%, 64% { opacity: 0; transform: translateY(18px) scale(0.97); }
  72%, 90% { opacity: 1; transform: translateY(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(-22px) scale(0.98); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- long-form pages ---------- */

.doc { padding: 64px 0 40px; }
.doc .wrap { width: min(760px, calc(100% - 48px)); }
.doc h1 { font-size: clamp(32px, 4vw, 42px); margin-bottom: 8px; }
.doc .updated { color: var(--dim); font-size: 14px; margin: 0 0 34px; }
.doc h2 { font-size: 21px; margin: 38px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 16.5px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc .callout {
  border: 1px solid rgba(47, 132, 246, 0.3);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 24px 0;
}
.doc .callout p { color: var(--text); margin: 0; font-size: 15px; }

@media (max-width: 900px) {
  .hero-grid, .split, .grid-3, .grid-2, .plans { grid-template-columns: 1fr; }
  .split.flip .split-visual { order: 0; }
  .nav-links { display: none; }
  .trow { grid-template-columns: 1fr; gap: 4px; }
  .trow.head { display: none; }
  .trow .free::before { content: "Free — "; color: var(--dim); }
  .trow .pro::before { content: "Pro — "; color: var(--accent); }
  section { padding: 56px 0; }
}
