/* Capture Pro - site styles
   The motif is the redaction bar: solid black, slightly rounded, sweeping over
   private details. Everything else stays in the brand's lavender and purple. */

:root {
  --brand: #667eea;
  --brand-2: #7f66ea;
  --brand-dark: #4c5bd4;
  --ink: #141829;
  --ink-soft: #4a516a;
  --ink-faint: #7a819a;
  --bg: #f7f8ff;
  --bg-2: #eceffd;
  --card: #ffffff;
  --line: #dde1f3;
  --redact: #0d0e12;
  --good: #12855a;
  --radius: 16px;
  --shadow: 0 30px 70px rgba(35, 40, 90, 0.18), 0 6px 18px rgba(35, 40, 90, 0.08);
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Stop mobile browsers enlarging some blocks of text and not others. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 18px/1.6 var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(127, 102, 234, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(102, 126, 234, 0.10), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height: auto matters: the width and height attributes reserve space while
   loading, but without it a narrowed image keeps its full attribute height. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

.accent { color: var(--brand); }

kbd {
  font: 600 0.78em var(--mono);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 2px 7px;
  white-space: nowrap;
}

.caption {
  font: 500 12px var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---- the redaction bar ---------------------------------------------------- */

.bar {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.92em;
  white-space: nowrap;
}
.bar::after {
  content: '';
  position: absolute;
  inset: -2px -4px;
  background: var(--redact);
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  animation: redact 0.7s cubic-bezier(0.7, 0, 0.2, 1) forwards;
  animation-delay: var(--delay, 1.1s);
}
@keyframes redact { to { transform: scaleX(1); } }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(247, 248, 255, 0.78);
  border-bottom: 1px solid rgba(221, 225, 243, 0.7);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font: 800 20px var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 16px; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 16px var(--body);
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.35);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(102, 126, 234, 0.45); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #c4cae6; }
.btn-dark { color: #fff; background: var(--redact); }
.btn-dark:hover { color: #fff; background: #000; }
.nav .btn { padding: 9px 16px; font-size: 15px; }

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

.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 21px; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { margin-top: 14px; font-size: 15px; color: var(--ink-faint); }

.stack { position: relative; height: 520px; }
.window {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(40, 50, 110, 0.10);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window .chrome {
  height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: #eef0f6; border-bottom: 1px solid #e0e3ee;
}
.window .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #cdd2e1; }
.window .chrome b {
  margin-left: 10px; font: 500 11px var(--mono); color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

/* The tall page, scrolling slowly behind: what "full page" means. */
.stack .strip {
  position: absolute; right: 0; top: 0; width: 62%; height: 100%;
  transform: rotate(2.5deg);
}
.strip .viewport { height: calc(100% - 30px); overflow: hidden; }
.strip img { width: 100%; animation: scrollpage 16s ease-in-out infinite alternate; }
@keyframes scrollpage { to { transform: translateY(calc(-100% + 460px)); } }

.stack .front {
  position: absolute; left: 0; bottom: 10px; width: 78%;
  transform: rotate(-1.5deg);
}
.stack .tag {
  position: absolute; right: 8px; bottom: -6px;
  font: 600 12px var(--mono); color: #fff; background: var(--redact);
  padding: 7px 11px; border-radius: 8px; transform: rotate(-1.5deg);
}

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

section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 20px; margin: 0; }
/* The small label above a heading, which the rule above would otherwise enlarge. */
.section-head .caption, .split .caption { font-size: 12px; margin: 0 0 12px; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card p { color: var(--ink-soft); margin: 0 0 14px; font-size: 17px; }
.card .glyph { font-size: 28px; margin-bottom: 12px; display: block; }

/* The dark redaction section. */
.dark {
  background: var(--redact);
  color: #e9eaf2;
  position: relative;
  overflow: hidden;
}
.dark::before {
  /* Faint stack of redaction bars, like a heavily redacted document. */
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    180deg, transparent 0 38px, rgba(255, 255, 255, 0.035) 38px 52px
  );
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p, .dark p { color: #b9bccb; }
.dark .split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; position: relative; }
.dark ul { list-style: none; padding: 0; margin: 0 0 24px; }
.dark li { padding: 12px 0 12px 36px; position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dark li::before {
  content: ''; position: absolute; left: 0; top: 19px; width: 22px; height: 10px;
  background: #fff; border-radius: 2px;
}
.dark .honest {
  font-size: 15px; color: #8d91a6; border-left: 3px solid var(--brand); padding-left: 14px; margin: 0;
}
.dark .window { border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.feature .glyph {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-2); font-size: 24px;
}
.feature h3 { margin-bottom: 6px; }

.share { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.pro-tag {
  display: inline-block; font: 700 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 6px 11px; border-radius: 999px; margin-bottom: 18px;
}

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

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.plan { border-radius: 20px; padding: 32px; background: #fff; border: 1px solid var(--line); }
.plan .price { font: 800 54px/1 var(--display); letter-spacing: -0.03em; margin: 10px 0 6px; }
.plan .price small { font: 500 16px var(--body); color: var(--ink-faint); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; }
.plan li { padding: 8px 0 8px 30px; position: relative; color: var(--ink-soft); }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 13px; width: 16px; height: 9px;
  border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg);
}
.plan.pro {
  color: #fff; border: none;
  background: linear-gradient(150deg, var(--brand), var(--brand-2) 70%);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.35);
}
.plan.pro li { color: rgba(255, 255, 255, 0.92); }
.plan.pro li::before { border-color: #fff; }
.plan.pro .price small { color: rgba(255, 255, 255, 0.8); }
.plan.pro .btn-ghost { border-color: transparent; }

/* ---- FAQ ------------------------------------------------------------------ */

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer; list-style: none; font: 700 19px var(--body); position: relative; padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: -4px; font: 400 28px var(--display); color: var(--brand); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

/* ---- guide pages ---------------------------------------------------------- */

.guide { padding: 64px 0 40px; }
.guide .wrap { max-width: 780px; }
.guide .crumbs { font: 500 13px var(--mono); color: var(--ink-faint); margin-bottom: 18px; }
.guide .crumbs a { color: var(--ink-faint); }
.guide h1 { font-size: clamp(36px, 5vw, 58px); }
.guide .lead { font-size: 21px; color: var(--ink-soft); margin: 0 0 32px; }
.guide h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 48px; }
.guide p, .guide li { color: #2b3150; }
.guide ol { padding-left: 0; list-style: none; counter-reset: step; }
.guide ol > li {
  counter-increment: step; position: relative; padding: 4px 0 18px 56px;
}
.guide ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font: 800 18px var(--display); color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.guide figure { margin: 32px 0; }
.guide figcaption { margin-top: 10px; }
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 18px 22px; margin: 28px 0;
}
.callout.warn { border-left-color: #e5322d; }
.callout p { margin: 0; }
.guide-cta {
  margin: 56px 0 0; padding: 32px; border-radius: 20px; color: #fff;
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
}
.guide-cta h2 { color: #fff; margin-top: 0; }
.guide-cta p { color: rgba(255, 255, 255, 0.9); }
.guide-cta .btn-ghost { border-color: transparent; }

/* Illustrations drawn in CSS, for the guides that describe other sites. Real
   screenshots of Gmail or ChatGPT would show someone's real account. */
.illus { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 32px 0; }
.app {
  width: 280px; height: 190px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: 70px 1fr; grid-template-rows: 26px 1fr; overflow: hidden;
  box-shadow: 0 16px 34px rgba(35, 40, 90, 0.12);
}
.app .top { grid-column: 1 / 3; background: #dfe3f6; }
.app .side { background: #eef0fb; }
.app .panel {
  margin: 8px; border-radius: 8px; outline: 3px dashed var(--brand); outline-offset: 2px;
  background: repeating-linear-gradient(180deg, #fff 0 14px, #e8ebf8 14px 18px);
}
.arrow { font: 800 34px var(--display); color: var(--brand); }
.tall {
  width: 140px; height: 300px; border-radius: 10px; border: 1px solid var(--line);
  background: repeating-linear-gradient(180deg, #fff 0 14px, #e8ebf8 14px 18px);
  box-shadow: 0 16px 34px rgba(35, 40, 90, 0.12);
}
.pages { display: flex; gap: 10px; }
.pages span {
  width: 92px; height: 130px; border-radius: 6px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(35, 40, 90, 0.12);
  background-image: repeating-linear-gradient(180deg, #fff 0 10px, #e8ebf8 10px 13px);
}
.pages span:last-child { height: 74px; align-self: flex-start; }

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

footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
footer a { color: var(--ink-soft); text-decoration: none; font-size: 16px; }
footer a:hover { color: var(--ink); }
footer .small { font-size: 13px; color: var(--ink-faint); margin-top: 28px; }

/* ---- entrance ------------------------------------------------------------- */

.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition: none !important; }
  .strip img { animation: none; }
}

/* ---- narrow screens ------------------------------------------------------- */

@media (max-width: 960px) {
  .hero .wrap, .dark .split, .share { grid-template-columns: 1fr; }
  .stack { height: 420px; max-width: 560px; }
  .modes { grid-template-columns: 1fr; }
  .grid-2, .plans { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .hero { padding-top: 40px; }
  .hero .lead { font-size: 19px; }
  .stack { height: 330px; }
  .stack .strip { width: 66%; }
  section { padding: 64px 0; }
  .plan { padding: 26px; }
  .plan .price { font-size: 46px; }
  footer .cols { grid-template-columns: 1fr; }
  .guide-cta { padding: 24px; }
}
