/* ============================================================================
   Capsule — landing page.

   Everything on the phone is a real screenshot or screen recording from
   Capsule 0.8.1 on a Galaxy S26 Ultra. The captures start below the status
   bar (112 px of 2340 on that phone), so the frame draws a plain one above
   each, on the capture's own top colour (--sb) and in its tone (data-tone).
============================================================================ */

/* Indigo: the page's brand pair and accent follow the app's palette (seed
   #6366F1, Content variant; brand/palette.json). The pair is the light
   scheme's primary into a deep blue, so white text on a button keeps 4.5:1
   across the whole gradient. */
.capsule {
  --brand-a: #4648d4;
  --brand-b: #1f62c9;
  --brand-glow: #7dd3fc;
  --brand-gradient: linear-gradient(135deg, #4648d4, #1f62c9);
  --accent: light-dark(#4648d4, #c0c1ff);
  --capsule-wash: light-dark(#c7d2fe, #2a2c78);
}

.logo-mark.capsule-mark { border-radius: 8px; }
.site-head .logo-mark.capsule-mark,
.app-title img.capsule-mark { view-transition-name: capsule-mark; }

/* ----------------------------------------------------------------------------
   Hero
---------------------------------------------------------------------------- */
.c-hero {
  position: relative;
  overflow-x: clip;
  padding-block: var(--space-6) var(--space-16);
}
.c-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}
.c-intro h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.c-intro h1 .hl {
  background: linear-gradient(100deg, light-dark(#4648d4, #c0c1ff), light-dark(#3b5bdb, #a5b4fc) 55%, light-dark(#1f62c9, #7dd3fc));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.c-intro .lede { margin: var(--space-5) 0 0; line-height: 1.55; }
.c-intro .btn-row { margin-top: var(--space-7); }
.c-hero .split-visual { padding-block: 0; }

@media (max-width: 420px) {
  .c-intro .lede-more,
  .c-intro .btn-ghost { display: none; }
}
@media (min-width: 960px) {
  .c-hero { padding-top: var(--space-10); }
  .c-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-16); }
  .c-intro h1 { font-size: clamp(2.6rem, 4.4vw, 4rem); }
}

/* ----------------------------------------------------------------------------
   Screenshots and recordings in a phone frame, with a drawn status bar
---------------------------------------------------------------------------- */
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  padding: 7px;
  /* The S26 Ultra's screen corner is about 8% of its width; the frame adds
     the 7px bezel, worked back into percentages of the frame's own box */
  border-radius: calc(8.5% + 5.8px) / calc(3.9% + 6.4px);
  background: #1a1b1f;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 60px -30px rgb(0 0 0 / 0.6);
}
.screen {
  container-type: inline-size;
  overflow: hidden;
  border-radius: 8.5% / 3.9%;
  background: var(--sb, #fff);
}
.screen img,
.screen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1457;
  object-fit: cover;
}
.sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 1080 / 112;
  padding: 0 7cqw;
  background: var(--sb, #fff);
  color: #1b1b1f;
  font: 500 3.6cqw/1 Roboto, system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.sb[data-tone="dark"] { color: #f2f2f7; }
/* A shot with a light and a dark capture (the hero) follows the page's theme */
.sb[data-tone="auto"] { color: light-dark(#1b1b1f, #f2f2f7); }
.sb-icons { display: flex; align-items: center; gap: 1.4cqw; }
.sb-icons svg { height: 3.2cqw; width: auto; fill: currentColor; }
/* The camera, in the middle of the status bar */
.shot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(7px + 2.6%);
  width: 3.4%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: #000;
}

.shot-lg { flex: none; width: min(72vw, 300px); }
.shot-sm { flex: none; width: min(200px, 38%); margin-top: var(--space-24); }
.split-visual:has(.shot-sm) .shot-lg { width: min(300px, 56%); }
@media (max-width: 520px) {
  .shot-sm { display: none; }
  .split-visual:has(.shot-sm) .shot-lg { width: min(72vw, 300px); }
}

/* A label under a shot: "Another browser" / "Capsule" */
.shot-label {
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
}
.shot-label strong { display: block; color: var(--text); font-weight: 600; }

/* ----------------------------------------------------------------------------
   Copy beside a picture, and the points under it
---------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
.split-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-5);
  padding-block: var(--space-4);
}
.split-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(130%, 620px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--capsule-wash) 70%, transparent), transparent 70%);
  z-index: -1;
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-16); }
  .split-rev .split-visual { order: -1; }
}

/* Before and after, side by side at the same size */
.compare { align-items: flex-start; }
.compare figure { margin: 0; width: min(46%, 250px); }
.compare .shot { width: 100%; }

.points {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}
.points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.points strong { display: block; margin-bottom: 2px; color: var(--text); font-size: var(--text-base); font-weight: 600; }
.p-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-a) 16%, transparent);
  color: var(--accent);
}
.p-icon svg { width: 22px; height: 22px; fill: currentColor; }

/* ----------------------------------------------------------------------------
   Three clips, each in a card
---------------------------------------------------------------------------- */
.clips {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
@media (min-width: 860px) {
  .clips { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-14); }
}
.clip {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.clip-visual {
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--capsule-wash) 70%, transparent), transparent) center 40% / 110% 110% no-repeat,
    var(--bg-raised);
  border-bottom: 1px solid var(--border);
}
.clip-visual .shot { width: min(230px, 70%); }
.clip-copy { padding: var(--card-pad); }

/* The phone sideways: a card across the row, the shot beside its copy from 860px */
.clip-wide { margin-top: var(--space-4); }
.clip-wide .clip-visual { padding: var(--space-8) var(--space-5); }
.clip-wide .shot { width: min(100%, 640px); }
@media (min-width: 860px) {
  .clip-wide { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; }
  .clip-wide .clip-visual { border-bottom: 0; border-right: 1px solid var(--border); }
}
.shot-land {
  /* The same corners as the upright frame, turned: 8.5% of the short side */
  border-radius: calc(3.5% + 5.8px) / calc(8.5% + 6.4px);
}
.shot-land .screen { border-radius: 3.5% / 8.5%; }
.shot-land .screen img { aspect-ratio: auto; }
.shot-land::after { left: calc(7px + 1.6%); top: 50%; width: 1.4%; }
.clip h3 { font-size: var(--text-lg); letter-spacing: -0.015em; }
.clip-copy p { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }

/* ----------------------------------------------------------------------------
   Reader's three looks, a row of small shots
---------------------------------------------------------------------------- */
.trio { gap: var(--space-3); align-items: center; }
.trio .shot { flex: 1 1 0; max-width: 200px; }
.trio .shot:nth-child(2) { max-width: 230px; }

/* ----------------------------------------------------------------------------
   Privacy
---------------------------------------------------------------------------- */
.priv {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-8) var(--card-pad);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 140% at 0% 0%, color-mix(in srgb, var(--brand-a) 24%, transparent), transparent 60%),
    var(--surface);
}
.priv h2 { font-size: var(--text-3xl); letter-spacing: -0.03em; }
.priv-copy > p:not(.eyebrow) { margin: var(--space-4) 0 0; color: var(--muted); max-width: 30em; }
.priv .more a { font-weight: 600; text-decoration: none; }
.priv .more a:hover { text-decoration: underline; }
@media (min-width: 860px) {
  .priv { grid-template-columns: 0.9fr 1.3fr; align-items: center; gap: var(--space-12); padding: var(--space-12); }
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.facts li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--muted);
}
.facts li strong { display: block; color: var(--text); font-weight: 600; }
.facts svg { width: 20px; height: 20px; margin-top: 1px; fill: var(--accent); }

/* ----------------------------------------------------------------------------
   FAQ and the closing call to action, as on Seaglass's page
---------------------------------------------------------------------------- */
.faq { margin-top: var(--space-8); border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 2px;
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate var(--dur-base) var(--ease), translate var(--dur-base) var(--ease);
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.faq details p { margin: 0; padding-bottom: var(--space-5); color: var(--muted); max-width: 42em; }
.faq details::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size var(--dur-base) var(--ease), content-visibility var(--dur-base) allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: no-preference) {
  .faq details p {
    opacity: 0;
    translate: 0 -6px;
    transition: opacity var(--dur-base) var(--ease), translate var(--dur-slow) var(--ease);
  }
  .faq details[open] p { opacity: 1; translate: 0; transition-delay: 0.08s; }
}
@media (min-width: 960px) {
  .faq-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-18); }
  .faq { margin-top: 0; }
}

.cta { text-align: center; overflow: clip; }
.cta .wrap { position: relative; }
.cta .wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(120vw, 700px);
  aspect-ratio: 2;
  translate: -50% -50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-a) 30%, transparent), transparent);
  z-index: -1;
}
.cta img {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-6);
  border-radius: 20px;
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--brand-a) 70%, transparent);
}
.cta h2 { font-size: var(--text-4xl); letter-spacing: -0.035em; }
.cta p { margin: var(--space-4) auto 0; color: var(--muted); max-width: 30em; }
.cta .btn-row { justify-content: center; margin-top: var(--space-7); }
