/* =========================================================================
   SocialEdit — website design system
   Carries the app's committed identity to the web: a warm near-black stage so
   footage is the only bright thing, with the coral→crimson gradient reserved
   for the record button and primary moments. Palette mirrors
   ios/SocialEdit/App/Design/Brand.swift. No gradient text, no side-stripe
   borders, no glass-by-default (project bans).
   ========================================================================= */

/* Display face: Quicksand, matching the App Store marketing captions.
   Body: SF Pro system stack, matching the app UI and the caption subtitles. */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

:root {
  /* Warm-tinted neutrals — never pure black/white (Brand.swift). */
  --ground: #140e10;
  --surface: #1e1517;
  --surface-hi: #2a1f22;
  --hairline: #3a2c30;

  --text: #f6ecee;
  --text-2: #ccc0c3; /* body/secondary, lifted for legibility on the warm-dark stage */
  --muted: #a89a9e; /* captions/labels; clears WCAG AA (~7:1 on --ground) */

  --coral: #ff7e4a;
  --crimson: #f0186a;
  --record: #ff2e51;
  --studio: #b14bff;
  --synced: #2fbf8f;

  --grad: linear-gradient(135deg, var(--coral), var(--crimson));
  --grad-soft: linear-gradient(
    135deg,
    rgba(255, 126, 74, 0.9),
    rgba(240, 24, 106, 0.95)
  );

  /* Body / UI: real SF Pro on Apple devices, graceful fallback elsewhere. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    system-ui, "Segoe UI", Roboto, sans-serif;
  /* Display / headlines: Quicksand (App Store caption font). */
  --font-display: "Quicksand", var(--font);

  /* Fluid rhythm */
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(3rem, 7vw, 5rem);
  --maxw: 1180px;

  --radius-chip: 8px;
  --radius-card: 16px;
  --radius-thumb: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* ease-out-expo-ish */
}

/* ---------- reset-ish ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section {
  padding-block: var(--section-y);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- type ---------- */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--text);
}
.display {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.05rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 46ch;
}
.hl {
  color: var(--coral);
} /* solid brand emphasis, never gradient-clipped text */
.mono-label {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), opacity 0.3s var(--ease);
  will-change: transform;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 34px -12px rgba(240, 24, 106, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-hi);
  border-color: var(--muted);
}

/* App Store "coming soon" badge */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.15rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.store-badge:hover {
  border-color: var(--muted);
  background: var(--surface-hi);
}
.store-badge .apple,
.store-badge .sb-glyph {
  width: 26px;
  height: 26px;
  flex: none;
  fill: var(--text);
}
.store-badge .sb-sup {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  line-height: 1.2;
}
.store-badge .sb-main {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 14, 16, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(20, 14, 16, 0.9);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
}
.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  font-size: 0.96rem;
  color: var(--text-2);
  font-weight: 500;
}
.nav-links a {
  transition: color 0.25s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--surface-hi);
  border-color: var(--muted);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--text);
  padding: 0.4rem;
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  /* Keep the primary CTA in the bar so the download path never vanishes. */
  .nav .nav-cta {
    margin-left: auto;
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: 0.4rem;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--pad-x) 1.25rem;
  }
  .nav.open .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 1.05rem;
    color: var(--text);
  }
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem 1.5rem;
}
.footer h4 {
  margin: 0 0 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.footer a {
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}
.footer a:hover {
  color: var(--text);
}
.footer-brand p {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-size: 0.96rem;
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================================
   Marketing-page specifics
   ========================================================================= */

/* hero */
.hero {
  position: relative;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.hero::before {
  /* warm-dark stage glow behind the phone, footage-adjacent light */
  content: "";
  position: absolute;
  top: -12%;
  right: -6%;
  width: min(720px, 80vw);
  height: min(720px, 80vw);
  background: radial-gradient(
    circle at center,
    rgba(240, 24, 106, 0.22),
    rgba(255, 126, 74, 0.08) 42%,
    transparent 68%
  );
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-copy .display {
  margin-top: 1.4rem;
}
.hero-copy .lede {
  margin-top: 1.5rem;
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 1.15rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.dot-synced {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--synced);
  box-shadow: 0 0 0 4px rgba(47, 191, 143, 0.16);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-stage {
    order: -1;
    justify-self: center;
  }
  .lede {
    max-width: 54ch;
  }
}

/* ---------- phone mockup ---------- */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 630;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #2a1f22, #140e10);
  border: 1px solid var(--hairline);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--ground);
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  border-radius: 999px;
  background: #0d090a;
  z-index: 5;
}

/* footage fills the frame — the brightest thing on screen */
.capture-feed {
  position: relative;
  flex: 1;
  background: linear-gradient(
      145deg,
      rgba(255, 126, 74, 0.16),
      transparent 55%
    ),
    linear-gradient(300deg, rgba(177, 75, 255, 0.14), transparent 50%),
    radial-gradient(120% 90% at 72% 18%, #ffce8a 0%, #f78a52 24%, #b6355f 55%, #3a1430 82%, #180a13 100%);
}
.capture-feed::after {
  /* soft subject silhouette to read as real footage, not a flat block */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 62%;
  height: 68%;
  background: radial-gradient(
    60% 80% at 50% 100%,
    rgba(24, 8, 14, 0.72),
    transparent 72%
  );
}
/* real footage fills the frame, with the capture chrome layered on top.
   Uses the min-width/min-height + center-transform cover technique instead of
   object-fit, which iOS Safari applies inconsistently to <video> (left a seam
   near the controls). This fills reliably on every browser. */
.capture-video,
.capture-still {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  background: #180a13;
}
.capture-still {
  display: none;
}
.capture-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 16, 0.5),
    transparent 20%,
    transparent 68%,
    rgba(20, 14, 16, 0.58)
  );
}
@media (prefers-reduced-motion: reduce) {
  .capture-video {
    display: none;
  }
  .capture-still {
    display: block;
  }
}
.capture-top {
  position: absolute;
  inset: 40px 16px auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}
.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(20, 14, 16, 0.5);
  backdrop-filter: blur(6px);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.rec-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--record);
  animation: recblink 1.4s steps(2, jump-none) infinite;
}
@keyframes recblink {
  50% {
    opacity: 0.25;
  }
}
.capture-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 14, 16, 0.5);
  backdrop-filter: blur(6px);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.capture-controls {
  position: absolute;
  inset: auto 0 26px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.1rem;
  z-index: 4;
}
.mini-ctrl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 14, 16, 0.45);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}
.mini-ctrl svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}
/* THE record button — the one loud element */
.record-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(20, 14, 16, 0.55),
    0 0 0 6px rgba(255, 126, 74, 0.55), 0 12px 30px -6px rgba(240, 24, 106, 0.7);
  position: relative;
}
.record-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 126, 74, 0.35);
  animation: recpulse 2.6s var(--ease) infinite;
}
.record-btn i {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #fff;
}
@keyframes recpulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rec-pill i,
  .record-btn::before {
    animation: none;
  }
}

/* small floating "editor" card near the phone */
.float-card {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  max-width: 210px;
}
.float-card.a {
  left: -8%;
  top: 20%;
}
.float-card.b {
  right: -10%;
  bottom: 16%;
}
.fc-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: var(--grad);
}
.fc-ava.studio {
  background: linear-gradient(135deg, #c46bff, #7a2bff);
}
.fc-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.fc-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
}
.perm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--synced);
}
@media (max-width: 1080px) {
  .float-card {
    display: none;
  }
}

/* ---------- logos / trust strip ---------- */
.strip {
  border-block: 1px solid var(--hairline);
  padding-block: 1.6rem;
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2.4rem;
  color: var(--text-2);
  font-size: 0.95rem;
}
.strip-inner b {
  color: var(--text);
  font-weight: 600;
}
.strip-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hairline);
  flex: none;
}
/* On narrow screens the dot-separated row wraps into a ragged pile.
   Stack it cleanly: lead line on top, the four proof points as a 2-col grid. */
@media (max-width: 620px) {
  .strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.2rem;
    row-gap: 0.6rem;
  }
  .strip-inner b {
    grid-column: 1 / -1;
  }
  .strip-inner .strip-sep {
    display: none;
  }
}

/* ---------- section header ---------- */
.sec-head {
  max-width: 62ch;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}
.sec-head h2 {
  margin-top: 1rem;
}
.sec-head p {
  margin: 1.1rem 0 0;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* ---------- feature: split (owner/editor twist) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.role-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.role-owner .role-tag {
  color: var(--coral);
}
.role-editor .role-tag {
  color: var(--studio);
}
.role-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}
.role-card p {
  margin: 0;
  color: var(--text-2);
}
.role-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.role-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
}
.role-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}
.role-owner .role-list svg {
  stroke: var(--coral);
}
.role-editor .role-list svg {
  stroke: var(--studio);
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- how it works: numbered flow ---------- */
.flow {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.flow-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem);
  background: var(--surface);
  transition: background 0.3s var(--ease);
}
.flow-row:hover {
  background: var(--surface-hi);
}
.flow-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
}
.flow-main h3 {
  margin-bottom: 0.35rem;
}
.flow-main p {
  margin: 0;
  color: var(--text-2);
  max-width: 60ch;
}
.flow-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 260px;
}
.flow-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--ground);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-chip);
  padding: 0.3rem 0.6rem;
}
@media (max-width: 760px) {
  .flow-row {
    grid-template-columns: auto 1fr;
  }
  .flow-tags {
    display: none;
  }
}

/* ---------- feature bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 200px;
}
.tile.w3 {
  grid-column: span 3;
}
.tile.w2 {
  grid-column: span 2;
}
.tile.w4 {
  grid-column: span 4;
}
.tile.big {
  min-height: 300px;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
/* on-device / cloud-off visual that fills the big tile meaningfully */
.local-viz {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.lv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--hairline);
  background: var(--ground);
}
.lv-chip.on {
  color: var(--text);
  border-color: rgba(47, 191, 143, 0.4);
}
.lv-chip.on .lv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--synced);
  box-shadow: 0 0 0 4px rgba(47, 191, 143, 0.16);
}
.lv-chip.off {
  color: var(--muted);
}
.lv-chip.off svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  fill: none;
}
.lv-arrow {
  color: var(--muted);
  flex: none;
}
.lv-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}
.tile h3 {
  font-size: 1.25rem;
}
.tile p {
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
}
.tile .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface-hi);
  border: 1px solid var(--hairline);
}
.tile .ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--coral);
  fill: none;
}
.tile.local .ico svg {
  stroke: var(--synced);
}
.tile.secure .ico svg {
  stroke: var(--studio);
}
/* the "edit" showcase tile with a mini timeline */
.timeline {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 54px;
  margin-top: auto;
}
.timeline span {
  flex: 1;
  border-radius: 4px;
  background: var(--surface-hi);
  border: 1px solid var(--hairline);
}
.timeline span.sel {
  background: var(--grad);
  border-color: transparent;
}
.clip-strip {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.clip-strip span {
  flex: 1;
  height: 46px;
  border-radius: 8px;
}
.clip-strip span:nth-child(1) {
  background: radial-gradient(120% 120% at 30% 20%, #ffb070, #b6355f 70%, #3a1430);
}
.clip-strip span:nth-child(2) {
  background: radial-gradient(120% 120% at 60% 30%, #7fd8ff, #2f6fbf 70%, #12233a);
}
.clip-strip span:nth-child(3) {
  background: radial-gradient(120% 120% at 40% 40%, #c9a6ff, #7a2bff 70%, #2a1247);
}
.clip-strip span:nth-child(4) {
  background: radial-gradient(120% 120% at 55% 25%, #ffd98a, #f0863a 70%, #4a2410);
}
@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile.w3,
  .tile.w2,
  .tile.w4 {
    grid-column: span 1;
  }
  .tile.big {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile.big {
    grid-column: span 1;
    min-height: auto;
  }
}

/* ---------- privacy teaser band ---------- */
.privacy-band {
  background: linear-gradient(180deg, var(--surface), var(--ground));
  border-block: 1px solid var(--hairline);
}
.pb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.pb-points {
  display: grid;
  gap: 1.2rem;
}
.pb-point {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.pb-point .pi {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--surface-hi);
  border: 1px solid var(--hairline);
}
.pb-point .pi svg {
  width: 18px;
  height: 18px;
  stroke: var(--synced);
  fill: none;
}
.pb-point h4 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}
.pb-point p {
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .pb-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.plan.featured {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 22px 60px -42px rgba(240, 24, 106, 0.32);
}
.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.plan-name h3 {
  font-size: 1.3rem;
}
.plan-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.plan-badge.studio {
  background: linear-gradient(135deg, #c46bff, #7a2bff);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.plan-price .amt {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.plan-price .per {
  color: var(--muted);
  font-size: 0.92rem;
}
.plan-yr {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: -0.6rem;
}
.plan-desc {
  color: var(--text-2);
  font-size: 1rem;
  margin: 0;
}
.plan-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem;
}
.plan-feats li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.94rem;
}
.plan-feats svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  stroke: var(--synced);
  fill: none;
}
.plan .btn {
  margin-top: auto;
  width: 100%;
}
@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* ---------- final CTA ---------- */
.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 120% at 50% 0%,
    rgba(240, 24, 106, 0.18),
    transparent 60%
  );
  pointer-events: none;
}
.cta-final .inner {
  position: relative;
  max-width: 40ch;
  margin-inline: auto;
}
.cta-final h2 {
  margin-bottom: 1.2rem;
}
.cta-final .hero-actions {
  justify-content: center;
}

/* =========================================================================
   Legal / support document pages
   ========================================================================= */
.doc-hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline);
}
.doc-hero .display {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  margin-top: 1rem;
}
.doc-meta {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}
.doc-meta .strip-sep {
  background: var(--hairline);
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.doc-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 0.15rem;
  min-width: 0; /* let the grid track shrink instead of forcing overflow */
}
.doc-toc a {
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.doc-toc a:hover,
.doc-toc a.active {
  color: var(--text);
  background: var(--surface);
}
.doc-body {
  max-width: 70ch;
  min-width: 0; /* stop the 560px data-table from blowing out the 1fr column on mobile */
}
.doc-body > section {
  scroll-margin-top: 88px;
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--hairline);
}
.doc-body > section:last-child {
  border-bottom: 0;
}
.doc-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 1rem;
}
.doc-body h3 {
  font-size: 1.12rem;
  margin: 1.6rem 0 0.6rem;
}
.doc-body p,
.doc-body li {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.7;
}
.doc-body p {
  margin: 0 0 1rem;
}
.doc-body ul {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.doc-body li::marker {
  color: var(--coral);
}
.doc-body a.inline {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 126, 74, 0.4);
}
.doc-body a.inline:hover {
  text-decoration-color: var(--coral);
}
.doc-body strong {
  color: var(--text);
  font-weight: 700;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.3rem 1.5rem;
  margin: 0 0 1.4rem;
}
.callout p {
  margin: 0;
}
.callout .ct {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--synced);
  margin-bottom: 0.5rem;
}
.callout.warn .ct {
  color: var(--coral);
}

/* data-flow table for privacy */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.data-table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.data-table td {
  color: var(--text-2);
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.table-scroll {
  overflow-x: auto;
  margin-bottom: 1.4rem;
}
.table-scroll .data-table {
  margin-bottom: 0;
  min-width: 560px;
}

@media (max-width: 860px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-toc {
    position: static;
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 1.5rem;
  }
  .doc-toc a {
    white-space: nowrap;
    background: var(--surface);
  }
}

/* support / FAQ */
.faq {
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 0 1.4rem;
  transition: border-color 0.3s var(--ease);
}
.faq details[open] {
  border-color: var(--muted);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .chev {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: var(--muted);
  fill: none;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary .chev {
  transform: rotate(180deg);
}
.faq .ans {
  padding: 0 0 1.3rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
  max-width: 68ch;
}
.faq .ans a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* support contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  margin-top: 2rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-card .ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--surface-hi);
  border: 1px solid var(--hairline);
  margin-bottom: 0.4rem;
}
.contact-card .ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--coral);
  fill: none;
}
.contact-card h3 {
  font-size: 1.15rem;
}
.contact-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}
.contact-card a.mail {
  color: var(--coral);
  font-weight: 600;
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* skip link a11y */
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}
