/* Rewrito website — "Ink and cobalt" (matches the desktop app). Light and dark follow the system. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --muted: #71717a;
  --faint: #a1a1aa;
  --accent: #3b5bfd;
  --accent-hover: #2f4ef0;
  --accent-soft: #eef1ff;
  --accent-text: #2c45c9;
  --ink: #09090b;
  --on-ink: #fafafa;
  --on-ink-muted: #a1a1aa;
  /* Hero "sky" */
  --sky-1: #dfe6ff;
  --sky-2: #b9c8ff;
  --sky-3: #eef1ff;
  --cloud: rgba(255, 255, 255, 0.85);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.75);
  --shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.35);
  --radius: 28px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
    --page: #09090b;
    --surface: #111113;
    --surface-2: #1c1c1f;
    --border: #27272a;
    --border-strong: #3f3f46;
    --text: #fafafa;
    --muted: #a1a1aa;
    --faint: #71717a;
    --accent: #5b76ff;
    --accent-hover: #6e86ff;
    --accent-soft: #171d40;
    --accent-text: #a9b8ff;
    --ink: #fafafa;
    --on-ink: #09090b;
    --on-ink-muted: #52525b;
    --sky-1: #0c1024;
    --sky-2: #1a2a7a;
    --sky-3: #0a0d1c;
    --cloud: rgba(120, 140, 255, 0.16);
    --glass: rgba(24, 24, 27, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img {
  display: block;
}
a {
  color: inherit;
}
::selection {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.display em {
  font-style: italic;
}
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: var(--surface);
  font: 600 0.85em/1.4 var(--sans);
  text-align: center;
  color: var(--text);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 12px;
}
.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 10px 30px -12px rgba(9, 9, 11, 0.6);
}
.btn-ink:hover {
  opacity: 0.92;
}
.btn-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
.btn-line {
  border: 1px solid var(--border-strong);
  color: var(--text);
  justify-content: center;
}
.btn-white {
  background: #fff;
  color: #09090b;
  justify-content: center;
}
.link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}
.link:hover {
  color: var(--text);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  inset: 18px 28px auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
}
.nav > * {
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img {
  border-radius: 22%;
}
.pill {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 30px -14px rgba(15, 23, 42, 0.35);
}
.pill a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.pill a:hover,
.pill a.active {
  background: var(--ink);
  color: var(--on-ink);
}
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav.scrolled .brand {
  opacity: 0;
  pointer-events: none;
}
.brand {
  transition: opacity 0.3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  margin: 12px;
  min-height: calc(100vh - 24px);
  padding-bottom: 80px !important;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px 24px 0;
  isolation: isolate;
}
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 110%, var(--sky-3) 10%, transparent 60%),
    linear-gradient(180deg, var(--sky-2) 0%, var(--sky-1) 55%, var(--sky-3) 100%);
  overflow: hidden;
}
.cloud {
  position: absolute;
  border-radius: 50%;
  background: var(--cloud);
  filter: blur(40px);
  animation: drift 40s ease-in-out infinite alternate;
}
.c1 {
  width: 620px;
  height: 180px;
  top: 14%;
  left: -6%;
}
.c2 {
  width: 520px;
  height: 160px;
  top: 30%;
  right: -8%;
  animation-duration: 52s;
}
.c3 {
  width: 380px;
  height: 120px;
  top: 6%;
  right: 22%;
  opacity: 0.7;
  animation-duration: 60s;
}
.glow {
  position: absolute;
  width: 900px;
  height: 900px;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
}
@keyframes drift {
  to {
    transform: translateX(80px) translateY(-10px);
  }
}

.hero-copy {
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(52px, 8.4vw, 112px);
}
.hero h1 .line {
  display: block;
}
.lead {
  max-width: 600px;
  margin: 26px 0 0;
  font-size: 18px;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.fine {
  margin: 16px 0 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 55%, transparent);
}

/* Blur-in reveal (the reference's signature move) */
.js .hero h1 .line,
.js .reveal-blur {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(14px);
  transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js.ready .hero h1 .line,
.js.ready .reveal-blur {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- Demo stage ---- */
.stage {
  position: relative;
  width: min(1000px, 100%);
  margin-top: 64px;
  height: 470px;
}
.doc {
  position: absolute;
  left: 0;
  top: 0;
  width: 62%;
  height: 380px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.doc-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.doc-bar b {
  margin-left: 10px;
  font-weight: 600;
}
.doc-body {
  padding: 18px 22px;
  font-size: 15px;
}
.doc-to {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.doc-text {
  margin: 16px 0 0;
  line-height: 1.7;
}
.doc-text mark {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 1px 0;
  transition: background 0.4s;
}
.doc-text mark.done {
  background: transparent;
}
.panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  min-width: 330px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  padding: 14px;
  font-size: 13px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.panel-head img {
  border-radius: 22%;
}
.seg {
  margin-left: auto;
  display: flex;
  padding: 2px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 11.5px;
}
.seg i {
  font-style: normal;
  padding: 3px 9px;
  border-radius: 8px;
  color: var(--muted);
}
.seg i.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.panel-text {
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  line-height: 1.6;
  font-size: 14px;
}
.panel-text .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.tiles span {
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  transition: all 0.3s;
}
.tiles span.hit {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
  transform: translateY(-1px);
}
.panel-btns {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.panel-btns span {
  flex: 1;
  padding: 9px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--border);
}
.panel-btns .replace {
  flex: 2;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.panel-btns .replace.press {
  transform: scale(0.97);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* ---- Works in ---- */
.works-in {
  padding: 70px 24px 10px;
  text-align: center;
}
.works-in p {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.works-in ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--faint);
}

/* ---- Sections ---- */
section {
  scroll-margin-top: 90px;
}
.section-head {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 68px);
}

/* Features */
.features {
  padding: 120px 0 40px;
}
.feature-wrap {
  max-width: 1100px;
  margin: 46px auto 0;
  padding: 0 24px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.tabs button {
  position: relative;
  padding: 0 0 18px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--faint);
  font: inherit;
}
.tabs b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s;
}
.tabs small {
  font-size: 13px;
}
.tabs button[aria-selected="true"] b {
  color: var(--text);
}
.tabs .bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--text);
}
.tabs button[aria-selected="true"] .bar {
  animation: fill var(--tab-ms, 6000ms) linear forwards;
}
.tabs.paused button[aria-selected="true"] .bar {
  animation: none;
  width: 100%;
}
@keyframes fill {
  to {
    width: 100%;
  }
}
.feature-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  margin-top: 28px;
}
.feature-copy {
  position: relative;
  min-height: 360px;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pane {
  position: absolute;
  inset: 36px;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.pane.on {
  opacity: 1;
  filter: none;
  transform: none;
  pointer-events: auto;
}
.pane h3 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 48px);
}
.pane p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 440px;
}
.feature-visual {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 80% 0%, var(--sky-2), transparent 60%),
    linear-gradient(160deg, var(--sky-1), var(--sky-3));
}
.fv {
  position: absolute;
  inset: 40px;
  padding: 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: all 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  font-size: 15px;
}
.fv.on {
  opacity: 1;
  transform: none;
}
.chip-row {
  margin-bottom: 16px;
}
.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 600;
}
.strike {
  margin: 0;
  color: var(--faint);
  text-decoration: line-through;
}
.better {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
}
ul.better {
  padding-left: 20px;
}
.prompt {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
}
.grid8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.grid8 span {
  padding: 18px 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}
.grid8 span:nth-child(2),
.grid8 span:nth-child(5) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* How */
.how {
  padding: 120px 0 40px;
}
.steps {
  max-width: 1100px;
  margin: 46px auto 0;
  padding: 0 24px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps li {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.steps .num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.steps h3 {
  margin: 16px 0 6px;
  font-size: 20px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

/* Pricing */
.pricing {
  padding: 120px 0 40px;
}
.plans {
  max-width: 900px;
  margin: 46px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.plan h3 {
  margin: 0;
  font-size: 20px;
}
.plan .price {
  margin: 14px 0 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan .price .display {
  font-size: 72px;
  line-height: 1;
}
.plan .price small {
  color: var(--muted);
}
.plan ul {
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1;
}
.plan li {
  padding-left: 26px;
  position: relative;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-pro {
  position: relative;
  overflow: hidden;
  background: #09090b;
  color: #fafafa;
  border-color: #27272a;
}
.plan-pro::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -200px;
  background: radial-gradient(circle, rgba(91, 118, 255, 0.45), transparent 65%);
  pointer-events: none;
}
:root[data-theme="dark"] .plan-pro {
    background: linear-gradient(160deg, #161a33, #101014 60%);
    border-color: rgba(91, 118, 255, 0.45);
}
.plan-pro .price small {
  color: #a1a1aa;
}
.plan-pro li::before {
  border-color: #8ea2ff;
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(91, 118, 255, 0.25);
  color: #c7d2ff;
  font-size: 12px;
  font-weight: 600;
}
.fine-ink {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #a1a1aa;
}

/* Privacy */
.privacy {
  max-width: 1100px;
  margin: 120px auto 0;
  padding: 50px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.privacy h2 {
  margin: 0;
  font-size: clamp(40px, 4.8vw, 60px);
}
.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.privacy-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.privacy-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.privacy-list b {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}
.privacy-list a {
  color: var(--accent-text);
  font-weight: 600;
}

/* FAQ: two panels */
.faq {
  padding: 120px 0 40px;
}
.faq-box {
  max-width: 1100px;
  margin: 46px auto 0;
  padding: 20px;
  border-radius: 32px;
  background:
    radial-gradient(70% 90% at 100% 0%, var(--sky-1), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.faq-questions {
  padding: 30px 22px 22px;
  border-radius: 24px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(59, 91, 253, 0.35), transparent 60%),
    #0b0d1a;
  color: #fafafa;
  display: flex;
  flex-direction: column;
  max-height: 520px;
}
.faq-questions h3,
.faq-answer h3 {
  margin: 0 0 18px;
  padding-left: 12px;
  font-size: 30px;
}
.faq-list {
  display: grid;
  gap: 4px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.faq-list button {
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(250, 250, 250, 0.72);
  font: 600 15.5px/1.4 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.faq-list button:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}
.faq-list button[aria-selected="true"] {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 2px 0 0 #8ea2ff;
}
.faq-answer {
  position: relative;
  padding: 30px 22px 22px;
  display: flex;
  flex-direction: column;
}
.faq-asked {
  align-self: flex-end;
  max-width: 85%;
  margin: 0 0 14px;
  color: var(--muted);
  text-align: right;
  font-size: 15px;
}
.faq-bubble {
  max-width: 92%;
  padding: 18px 20px;
  border-radius: 20px 20px 20px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.35);
  font-size: 16px;
  line-height: 1.6;
  transition: opacity 0.25s, transform 0.25s, filter 0.25s;
}
.faq-bubble p {
  margin: 0;
}
.faq-bubble.swap {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
}
.faq-avatar {
  margin-top: 12px;
  border-radius: 50%;
}

/* Closing */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 120px 12px 0;
  padding: 120px 24px;
  border-radius: var(--radius);
  text-align: center;
}
.closing h2 {
  margin: 0 0 36px;
  font-size: clamp(44px, 6vw, 84px);
}

/* Footer */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 28px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}
.footer nav a {
  text-decoration: none;
  color: var(--muted);
}
.footer nav a:hover {
  color: var(--text);
}
.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 13px;
}

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .nav {
    inset: 14px 16px auto;
    grid-template-columns: 1fr auto;
  }
  .pill {
    display: none;
  }
  .hero {
    padding-top: 120px;
  }
  .stage {
    height: 420px;
  }
  .doc {
    display: none;
  }
  .panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(400px, 100%);
    min-width: 0;
  }
  .feature-body,
  .plans,
  .privacy,
  .steps {
    grid-template-columns: 1fr;
  }
  .tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 0;
  }
  .feature-copy {
    min-height: 300px;
  }
  .privacy {
    margin: 100px 12px 0;
    padding: 30px;
  }
  .footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js .hero h1 .line,
  .js .reveal-blur,
  .js .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ---- Theme toggle ---- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s;
}
.theme-toggle:hover {
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.theme-toggle .i-moon {
  fill: currentColor;
  stroke: none;
}
.theme-toggle .i-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

/* ---- App icons ---- */
.works-in ul.apps {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  gap: 14px 30px;
}
.apps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.apps img {
  width: 26px;
  height: 26px;
}
:root[data-theme="dark"] .apps img.mono {
  filter: invert(1);
}
.apps-note {
  margin: 18px 0 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  color: var(--faint) !important;
}

/* ---- Announcement bar ---- */
.announce {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.announce b {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
}


/* ---- Marquee (right to left) ---- */
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  flex: none;
  display: flex;
  gap: 64px;
  margin: 0;
  padding: 6px 32px;
  list-style: none;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  opacity: 0.85;
}
.marquee-track img {
  width: 28px;
  height: 28px;
}
:root[data-theme="dark"] .marquee-track img.mono {
  filter: invert(1);
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ---- Speed band ---- */
.speed {
  margin: 90px 12px 0;
  padding: 100px 0 90px;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(59, 91, 253, 0.45), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(59, 91, 253, 0.25), transparent 60%),
    #0b0d1a;
  color: #fafafa;
  overflow: hidden;
}
.speed-head {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.speed-head h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 80px);
}
.speed-head p {
  margin: 18px auto 0;
  max-width: 520px;
  color: #a1a1aa;
  font-size: 17px;
}
.lanes {
  margin-top: 60px;
  display: grid;
  gap: 18px;
}
.lane {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
}
.lane-label {
  padding-left: 48px;
}
.lane-label b {
  display: block;
  font-size: 15px;
}
.lane-label span {
  font-family: var(--serif);
  font-size: 30px;
  color: #a1a1aa;
}
.lane-fast .lane-label span {
  color: #8ea2ff;
}
.lane-strip {
  overflow: hidden;
  padding: 18px 0;
  border-radius: 16px 0 0 16px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.lane-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 24px;
  font-size: 18px;
  animation: lane 60s linear infinite;
}
.lane-slow .lane-text {
  color: #71717a;
  font-style: italic;
}
.lane-fast .lane-text {
  color: #fafafa;
  font-weight: 500;
  animation-duration: 14s;
}
@keyframes lane {
  to {
    transform: translateX(-50%);
  }
}

/* ---- Sticky scroll story ---- */
.story {
  padding: 120px 0 40px;
}
.story-grid {
  max-width: 1150px;
  margin: 50px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 200px 1fr 330px;
  gap: 40px;
}
.story-nav,
.story-visual {
  position: sticky;
  top: 22vh;
  align-self: start;
}
.story-nav {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 16px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--faint);
}
.story-nav li {
  position: relative;
  transition: color 0.3s;
}
.story-nav li.on {
  color: var(--text);
}
.story-nav li.on::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--accent);
}
.story-visual {
  height: 440px;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 70% at 70% 10%, var(--sky-2), transparent 65%),
    linear-gradient(160deg, var(--sky-1), var(--sky-3));
  overflow: hidden;
}
.sv {
  position: relative;
  height: 100%;
}
.sv-doc {
  position: absolute;
  left: 7%;
  top: 12%;
  width: 70%;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s;
}
.sv-text {
  margin: 0;
  padding: 20px 22px 26px;
  font-size: 15px;
  line-height: 1.7;
}
.sv-sel {
  background: transparent;
  color: inherit;
  border-radius: 3px;
  transition: background 0.5s;
}
.sv-panel {
  position: absolute;
  right: 7%;
  bottom: 9%;
  width: 62%;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: all 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sv-key {
  font-size: 11px;
}
.sv-panel .panel-head kbd:first-of-type {
  margin-left: auto;
}
.sv-ptext {
  min-height: 60px;
  font-size: 13px;
}
.sv-panel .tiles span {
  font-size: 11px;
}
/* Step states */
.story[data-step="0"] .sv-sel,
.story[data-step="1"] .sv-sel {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}
.story[data-step="1"] .sv-panel,
.story[data-step="2"] .sv-panel {
  opacity: 1;
  transform: none;
}
.story[data-step="1"] .sv-doc,
.story[data-step="2"] .sv-doc {
  transform: translateY(-8px) scale(0.98);
  opacity: 0.85;
}
.story[data-step="2"] .sv-pro {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.story-steps {
  display: grid;
}
.step-block {
  min-height: 62vh;
  padding-top: 8vh;
  opacity: 0.35;
  transition: opacity 0.4s;
}
.step-block.on {
  opacity: 1;
}
.step-block .num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}
.step-block h3 {
  margin: 12px 0 0;
  font-size: 38px;
}
.step-block p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16.5px;
}

/* ---- Bento ---- */
.bento-wrap {
  padding: 120px 0 40px;
}
.bento {
  max-width: 1100px;
  margin: 46px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cell {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cell h3 {
  margin: 0;
  font-size: 19px;
}
.cell > h3 + p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.cell-tone {
  grid-column: span 2;
  background:
    radial-gradient(70% 90% at 100% 0%, var(--sky-1), transparent 60%),
    var(--surface);
}
.tone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tone-chips button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: 500 14px var(--sans);
  cursor: pointer;
  transition: all 0.2s;
}
.tone-chips button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}
.tone-src {
  margin: 22px 0 0;
  color: var(--faint);
  text-decoration: line-through;
  font-size: 15px;
}
.tone-out {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  transition: opacity 0.25s, filter 0.25s;
}
.tone-out.swap {
  opacity: 0;
  filter: blur(6px);
}
.cell .prompt {
  margin-top: 18px;
}
.mini-draft {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
}
.cell-name {
  background: linear-gradient(170deg, var(--surface) 40%, var(--accent-soft));
}
.sign {
  position: relative;
  height: 60px;
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: 30px;
}
.sign span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  animation: sign 5s ease-in-out infinite;
}
.sign-from {
  color: var(--faint);
}
.sign-to {
  color: var(--accent-text);
  animation-name: sign-in !important;
}
@keyframes sign {
  0%, 35% { opacity: 1; filter: none; }
  45%, 90% { opacity: 0; filter: blur(8px); }
  100% { opacity: 1; filter: none; }
}
@keyframes sign-in {
  0%, 35% { opacity: 0; filter: blur(8px); }
  45%, 90% { opacity: 1; filter: none; }
  100% { opacity: 0; filter: blur(8px); }
}
.cell-cmd {
  grid-column: span 2;
}
.cell-cmd .grid8 {
  margin-top: 18px;
}
.dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.dots i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
}
.dots i.d {
  background: var(--accent);
}
.dots i.today {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}
.streak-num {
  margin: 14px 0 0;
  color: var(--muted);
}
.streak-num .display {
  font-size: 44px;
  color: var(--text);
  margin-right: 4px;
}
.cell-lang {
  grid-column: span 2;
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.langs span {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 16px;
}

@media (max-width: 860px) {
  .lane {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lane-label {
    padding-left: 24px;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-nav {
    display: none;
  }
  .story-visual {
    top: 80px;
    height: 330px;
    z-index: 1;
  }
  .step-block {
    min-height: 45vh;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .cell-tone,
  .cell-cmd,
  .cell-lang {
    grid-column: auto;
  }

}
.works-in ul.marquee-track {
  font-family: var(--sans);
  font-size: 19px;
  gap: 64px;
  padding: 6px 32px;
  color: var(--text);
}

@media (max-width: 860px) {
  .faq-box {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .faq-questions {
    max-height: 340px;
  }
}

/* ---- Speed band: step chips ---- */
.flows {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 32px;
  display: grid;
  gap: 26px;
}
.flow {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 20px;
}
.flow-label b {
  display: block;
  font-size: 15px;
}
.flow-label span {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
  color: #a1a1aa;
}
.flow-fast .flow-label span {
  color: #8ea2ff;
}
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-steps li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.35s, background 0.35s, border-color 0.35s;
}
.flow-steps li.arrow {
  padding: 0;
  border: 0;
  background: none;
  color: #3f3f46;
}
.flow-slow .flow-steps li.lit {
  color: #e4e4e7;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}
.flow-fast .flow-steps li {
  font-size: 16px;
  padding: 10px 18px;
}
.flow-fast .flow-steps li.lit {
  color: #fff;
  border-color: #5b76ff;
  background: rgba(91, 118, 255, 0.35);
}
@media (max-width: 860px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ---- Pricing page ---- */
.page-hero {
  margin: 12px;
  padding: 150px 24px 80px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
}
.page-hero p {
  margin: 18px auto 0;
  max-width: 520px;
  font-size: 18px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}
.pricing-page .plans {
  margin-top: -40px;
  position: relative;
}
.compare {
  max-width: 900px;
  margin: 90px auto 0;
  padding: 0 24px;
}
.compare h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4vw, 48px);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.compare th:not(:first-child),
.compare td:not(:first-child) {
  text-align: center;
  width: 22%;
}
.compare thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare td.yes::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}
.geo-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 10px;
  opacity: 0.7;
  color: var(--faint);
}
.geo-note a {
  color: inherit;
  text-decoration: none;
}

/* ---- Nav: Sign in as a frosted button ---- */
.nav-signin {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.nav-signin:hover {
  transform: translateY(-1px);
}
.nav-actions {
  gap: 10px;
}

/* ---- Speed band: each row in its own card ---- */
.flow {
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}
.flow-fast {
  border-color: rgba(91, 118, 255, 0.45);
  background: linear-gradient(90deg, rgba(59, 91, 253, 0.16), rgba(59, 91, 253, 0.04));
  box-shadow: 0 0 40px -12px rgba(59, 91, 253, 0.45);
}
.flows {
  gap: 16px;
}

/* ---- Legal and contact pages ---- */
.page-hero-sm {
  padding: 140px 24px 64px;
}
.page-hero-sm h1 {
  font-size: clamp(44px, 6vw, 76px);
}
.legal {
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
}
.legal-toc p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}
.legal-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.legal-toc a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.legal-body {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
}
.legal-updated {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--faint);
}
.legal-summary {
  margin: 0 0 40px;
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(80% 120% at 100% 0%, var(--sky-1), transparent 60%),
    var(--surface-2);
}
.legal-summary .eyebrow {
  margin: 0 0 8px;
}
.legal-summary p:not(.eyebrow) {
  margin: 6px 0 0;
  padding-left: 22px;
  position: relative;
}
.legal-summary p:not(.eyebrow)::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.legal-body section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.legal-body h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
}
.legal-body p {
  margin: 0 0 12px;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}
.legal-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: color-mix(in srgb, var(--text) 82%, transparent);
}
.legal-body li {
  margin: 6px 0;
}
.legal-body li::marker {
  color: var(--accent);
}
.legal-body strong {
  color: var(--text);
  font-weight: 600;
}
.legal-body a,
.contact-card p a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.contact-grid {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 18px 40px -24px rgba(59, 91, 253, 0.5);
}
.contact-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-card h2 {
  margin: 10px 0 8px;
  font-size: 38px;
}
.contact-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}
.contact-mail {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
}
.contact-meta {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-meta > div {
  padding: 22px 4px;
  border-top: 1px solid var(--border);
}
.contact-meta .eyebrow {
  margin: 0 0 6px;
}
.contact-meta p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.legal-page .footer {
  margin-top: 100px;
}
@media (max-width: 860px) {
  .legal {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-toc {
    position: static;
  }
  .legal-toc ol {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid,
  .contact-meta {
    grid-template-columns: 1fr;
  }
}

/* ---- Phones ---- */
@media (max-width: 760px) {
  /* Nav: logo only, compact buttons */
  .nav {
    inset: 12px 12px auto;
  }
  .nav .brand span {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  .theme-toggle,
  .nav-signin,
  .nav-actions .btn {
    height: 36px;
  }
  .theme-toggle {
    width: 36px;
  }
  .nav-signin {
    padding: 0 12px;
    font-size: 13px;
  }
  .nav-actions .btn {
    padding: 0 14px;
    font-size: 13px;
  }

  /* Action tiles: let long labels wrap instead of being cut off */
  .tiles {
    gap: 5px;
  }
  .tiles span {
    padding: 8px 2px;
    font-size: 10.5px;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
  }

  /* Speed band */
  .speed {
    padding: 70px 0 56px;
  }
  .flows {
    margin-top: 36px;
    padding: 0 14px;
    gap: 12px;
  }
  .flow {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .flow-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .flow-label span {
    font-size: 26px;
  }
  .flow-steps {
    gap: 6px;
  }
  .flow-steps li {
    padding: 6px 11px;
    font-size: 12.5px;
    white-space: normal;
  }
  .flow-fast .flow-steps li {
    padding: 8px 14px;
    font-size: 14px;
  }

  /* Features */
  .features,
  .story,
  .faq {
    padding-top: 80px;
  }
  .feature-copy {
    min-height: 0;
    padding: 26px 22px;
  }
  .feature-visual {
    min-height: 340px;
  }
  .fv {
    inset: 16px;
    padding: 20px;
  }
  .tabs small {
    font-size: 12px;
  }

  /* FAQ */
  .faq-questions,
  .faq-answer {
    padding: 22px 14px 14px;
  }
  .faq-bubble {
    max-width: 100%;
  }

  /* Pricing, legal and contact pages */
  .page-hero,
  .page-hero-sm {
    padding: 120px 20px 56px;
  }
  .legal,
  .contact-grid,
  .contact-meta,
  .compare {
    padding: 0 16px;
  }
  .legal {
    margin-top: 40px;
  }
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    display: none;
  }
  .legal-body h2 {
    font-size: 26px;
  }
  .compare table {
    font-size: 13.5px;
  }
  .compare th,
  .compare td {
    padding: 12px 6px;
  }
}
@media (max-width: 760px) {
  .sv-doc {
    left: 5%;
    width: 90%;
  }
  .sv-panel {
    right: 4%;
    width: 92%;
  }
  .sv-panel .tiles span {
    font-size: 10.5px;
  }
}
@media (max-width: 760px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .hero {
    min-height: 0;
    padding-bottom: 28px !important;
  }
  .stage {
    height: auto;
    margin-top: 36px;
  }
  .panel {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .feature-copy {
    min-height: 290px;
  }
  .pane {
    inset: 24px 22px;
  }
  .pane h3 {
    font-size: 34px;
  }
  .feature-visual {
    min-height: 390px;
  }
}
.flow-steps li.arrow,
.flow-fast .flow-steps li.arrow {
  padding: 0;
  border: 0;
  background: none;
}
@media (max-width: 760px) {
  .flow-fast .flow-steps li:not(.arrow) {
    padding: 7px 11px;
    font-size: 13px;
  }
  .flow-fast .flow-steps {
    gap: 5px;
  }
}

/* Pricing: hide the amounts until the visitor's currency is known */
.plans .price .display {
  transition: opacity 0.25s ease;
}
.js .plans.pending .price .display {
  opacity: 0;
}

/* ---- Account page ---- */
.acct {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.acard {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
}
.acard-wide {
  grid-column: 1 / -1;
}
.acard h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.1;
}
.acard-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.plan-badge {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
}
.plan-badge.is-pro {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}
.acard-plan {
  background:
    radial-gradient(70% 90% at 100% 0%, var(--sky-1), transparent 60%),
    var(--surface);
}
.usage-big {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.usage-big .display {
  font-size: 56px;
  line-height: 1;
  color: var(--text);
  margin-right: 4px;
}
.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b76ff, var(--accent));
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.meter.low span {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.acard-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--faint);
}
.acard-note a {
  color: var(--accent);
}
.acard-status {
  margin: 18px 0 0;
  font-size: 15px;
}
.acard-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.acard-actions [hidden] {
  display: none;
}
.btn-text {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 14px var(--sans);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text:hover {
  color: var(--text);
}
.btn-text.danger:hover {
  color: #dc2626;
}
.btn-text:disabled {
  opacity: 0.5;
  cursor: default;
}
.acard-app {
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(59, 91, 253, 0.4), transparent 60%),
    #0b0d1a;
  border-color: transparent;
  color: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.acard-app p {
  margin: 0 0 22px;
  color: rgba(250, 250, 250, 0.72);
  line-height: 1.6;
}
.acard-app kbd {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  font: 600 12px var(--sans);
  color: #fff;
}
.acard-app .btn {
  margin-top: auto;
}
.acard-count {
  font-size: 13px;
  color: var(--faint);
}
.acard-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.pc-list,
.pay-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pc-list li,
.pay-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.pc-list li:first-child,
.pay-list li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.pc-list b,
.pay-list b {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.pc-list span,
.pay-list li > div span {
  font-size: 13px;
  color: var(--faint);
}
.pay-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.pay-status.s-captured {
  background: color-mix(in srgb, #16a34a 14%, transparent);
  color: #16a34a;
}
.pay-status.s-failed {
  background: color-mix(in srgb, #dc2626 14%, transparent);
  color: #dc2626;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.aform {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.aform label:not(.check) {
  font-size: 14px;
  font-weight: 600;
}
.aform input:not([type="checkbox"]) {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: 15px var(--sans);
}
.aform input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.aform-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.aform-row .btn {
  flex: none;
}
.aform .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.aform .acard-note {
  margin: 0;
}
.profile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.profile-foot strong {
  color: var(--text);
  overflow-wrap: anywhere;
}
.msg-inline {
  display: none;
  font-size: 13px;
}
.msg-inline.show {
  display: block;
  margin-top: 6px;
}
.msg-inline.ok {
  color: #16a34a;
}
.msg-inline.error {
  color: #dc2626;
}
.account-page .page-hero p {
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .acct,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .acct {
    padding: 0 12px;
    margin-top: 28px;
    gap: 12px;
  }
  .acard {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .acard h2 {
    font-size: 28px;
  }
  .usage-big .display {
    font-size: 46px;
  }
}
.acct[hidden] {
  display: none;
}
button.btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* ---- Small screens, round 2 ---- */
@media (max-width: 760px) {
  /* Hero runs edge to edge, so the nav buttons sit inside it */
  .hero,
  .page-hero {
    margin: 0;
    border-radius: 0 0 28px 28px;
  }

  /* Demo: show the message being edited, with the panel over it */
  .stage {
    height: auto;
    width: 100%;
  }
  .doc {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
  }
  .doc-body {
    padding: 14px 16px 64px;
  }
  .doc-text {
    font-size: 14px;
  }
  .panel {
    position: relative;
    width: 94%;
    margin: -48px 0 0 auto;
  }

  /* Speed band: no arrows between the by-hand steps */
  .flow-slow .flow-steps li.arrow {
    display: none;
  }

  /* Feature visuals: natural height, one at a time */
  .feature-visual {
    min-height: 0;
    padding: 16px;
  }
  .fv {
    position: relative;
    inset: auto;
  }
  .fv:not(.on) {
    display: none;
  }
}
@media (max-width: 760px) {
  /* Same height for every feature picture, so the page doesn't jump between tabs */
  .feature-visual {
    min-height: 400px;
  }
  .grid8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .grid8 span {
    padding: 10px 2px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .copyright {
    text-align: center;
  }
}

/* ---- Upgrade page ---- */
.up-wrap {
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: start;
}
.up-why {
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.up-why h2 {
  margin: 0 0 18px;
  font-size: 34px;
}
.up-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.up-list li {
  position: relative;
  padding-left: 32px;
}
.up-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.up-list b {
  display: block;
  font-size: 15.5px;
}
.up-list span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.up-card {
  position: sticky;
  top: 100px;
  min-height: 300px;
  padding: 32px;
  border-radius: 24px;
  color: #fafafa;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(59, 91, 253, 0.45), transparent 60%),
    #0b0d1a;
}
.up-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.up-card .price {
  margin: 18px 0 22px;
}
.up-card .price .display {
  font-size: 64px;
  line-height: 1;
}
.up-card .price small {
  color: rgba(250, 250, 250, 0.6);
  margin-left: 6px;
}
.up-btn {
  width: 100%;
  justify-content: center;
}
.up-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.up-fine,
.up-pay {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.62);
}
.up-pay {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.up-card .msg-inline.error {
  color: #fca5a5;
}
.up-center {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.up-center[hidden],
.up-card [hidden] {
  display: none;
}
.up-center h2 {
  font-size: 24px;
}
.up-center p {
  margin: 0 0 8px;
  color: rgba(250, 250, 250, 0.7);
  line-height: 1.55;
}
.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.up-who {
  margin: 22px auto 0;
  padding: 0 24px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}
.up-who .btn-text {
  font-size: 13px;
}
@media (max-width: 860px) {
  .up-wrap {
    grid-template-columns: 1fr;
  }
  .up-card {
    position: static;
    order: -1;
  }
}
@media (max-width: 760px) {
  .up-wrap {
    padding: 0 12px;
    margin-top: 28px;
    gap: 12px;
  }
  .up-why,
  .up-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
}

/* ---- Account rows and the password dialog ---- */
.arows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.arows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.arows li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.arows b {
  display: block;
  font-size: 15px;
}
.arows span {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.arows .btn {
  flex: none;
}
.modal {
  width: min(440px, calc(100% - 32px));
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45);
}
.modal::backdrop {
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(4px);
}
.modal[open] {
  animation: modal-in 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
.modal-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.modal-head h2 {
  margin: 0;
  font-size: 30px;
}
.modal-x {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-x:hover {
  color: var(--text);
}
.modal .aform {
  gap: 8px;
}
.modal .aform label:not(.check) {
  margin-top: 6px;
}
.modal .check {
  margin-top: 6px;
}
.modal-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.modal-actions .btn:disabled {
  opacity: 0.6;
}
@media (max-width: 760px) {
  .arows li {
    flex-wrap: wrap;
  }
}

/* ---- Download page ---- */
.dl-meta {
  margin-top: 14px !important;
  font-size: 13.5px !important;
  color: var(--muted) !important;
}
.dl-again {
  margin-top: 6px !important;
  font-size: 14px !important;
}
.dl-again a,
.dl-help a {
  color: var(--accent-text);
  font-weight: 600;
}
.dl-steps {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 24px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dl-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.dl-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14px;
}
.dl-step h2 {
  margin: 16px 0 8px;
  font-size: 30px;
  line-height: 1.1;
}
.dl-step p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}
.dl-step p b {
  color: var(--text);
}
.dl-art {
  margin-top: auto;
  min-height: 150px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(80% 90% at 100% 0%, var(--sky-2), transparent 60%),
    linear-gradient(160deg, var(--sky-1), var(--sky-3));
}
.dl-chip {
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px -20px rgba(15, 23, 42, 0.45);
}
.dl-file img {
  display: block;
  border-radius: 22%;
}
.dl-chip-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}
.dl-chip-text b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-chip-text small {
  color: var(--faint);
}
.dl-open {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}
.smartscreen {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 6px;
  background: #0063b1;
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 16px 36px -20px rgba(15, 23, 42, 0.6);
}
.smartscreen b {
  font-size: 15px;
  font-weight: 600;
}
.smartscreen > span {
  font-size: 11.5px;
  line-height: 1.4;
  opacity: 0.9;
}
.ss-link {
  align-self: flex-start;
  text-decoration: underline;
  font-weight: 600;
  opacity: 1 !important;
  outline: 2px solid #ffd54f;
  outline-offset: 2px;
  border-radius: 2px;
}
.ss-row {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  opacity: 1 !important;
}
.ss-btn {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
}
.ss-run {
  background: rgba(255, 255, 255, 0.15);
  outline: 2px solid #ffd54f;
  outline-offset: 2px;
}
.dl-keys {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: var(--muted);
}
.dl-keys kbd {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-bottom-width: 4px;
  background: var(--surface);
  font: 600 22px var(--sans);
  color: var(--text);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.45);
}
.dl-help {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 960px) {
  .dl-steps {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}
@media (max-width: 760px) {
  .dl-steps {
    padding: 0 12px;
    margin-top: 28px;
    gap: 12px;
  }
}

/* ---- Homepage: privacy ---- */
.trust {
  padding: 120px 12px 40px;
}
.trust-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 40px 48px;
  border-radius: 32px;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--sky-1), transparent 65%),
    var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}
.trust-head h2 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 68px);
}
.trust-head > p:last-child {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.trust-grid {
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
  border-top: 1px solid var(--border);
}
.trust-grid li {
  padding: 34px 32px 6px;
}
.trust-grid li + li {
  border-left: 1px solid var(--border);
}
.trust-grid li:first-child {
  padding-left: 0;
}
.trust-grid li:last-child {
  padding-right: 0;
}
.trust-grid h3 {
  margin: 0;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}
.trust-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.trust-link {
  margin-top: 40px;
}
@media (max-width: 760px) {
  .trust {
    padding-top: 80px;
  }
  .trust-box {
    padding: 44px 18px 36px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid li,
  .trust-grid li:first-child,
  .trust-grid li:last-child {
    padding: 26px 0 22px;
  }
  .trust-grid li + li {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

.dl-alt {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.dl-alt a {
  color: var(--accent-text);
  font-weight: 600;
}

/* ---- Download page ---- */
.dl-hero {
  padding-bottom: 70px;
}
.dl-badges {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.dl-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  font-weight: 600;
}
.dl-badges svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dl-started {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.dl-started a {
  color: var(--accent-text);
  font-weight: 600;
}
.dl-steps {
  max-width: 1100px;
  margin: 70px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dl-step {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 14px 14px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.dl-bignum {
  position: absolute;
  z-index: -1;
  right: 18px;
  bottom: -34px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 190px;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 12%, transparent);
  pointer-events: none;
  user-select: none;
}
.dl-step h2 {
  margin: 24px 12px 0;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}
.dl-step p {
  position: relative;
  margin: 10px 12px 0;
  max-width: 30ch;
  color: var(--muted);
  line-height: 1.55;
}
.dl-vis {
  position: relative;
  height: 190px;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 90% at 50% 0%, var(--sky-1), transparent 70%),
    var(--surface-2);
  --cycle: 5s;
}
.dl-vis .cur {
  position: absolute;
  width: 22px;
  height: 22px;
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.dl-vis .v1-card,
.dl-vis .v2-card,
.dl-vis .v3-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 30px -18px rgba(15, 23, 42, 0.45);
}

/* Step 1: the download finishes, then "Open file" is clicked. */
.v1-card {
  width: 78%;
  padding: 12px 14px 14px;
  border-radius: 14px;
}
.v1-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.v1-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.v1-file img {
  display: block;
  border-radius: 7px;
}
.v1-meta {
  flex: 1;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}
.v1-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.v1-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: v1-bar var(--cycle) infinite;
}
.v1-open {
  display: inline-block;
  margin: 12px 0 0 36px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  animation: v1-open var(--cycle) infinite;
}
.v1 .cur {
  left: 30%;
  top: 72%;
  animation: v1-cur var(--cycle) infinite;
}
@keyframes v1-bar {
  0% { width: 0; }
  40%, 100% { width: 100%; }
}
@keyframes v1-open {
  0%, 40% { opacity: 0.35; transform: none; }
  45%, 66% { opacity: 1; transform: none; }
  70% { opacity: 1; transform: scale(0.92); }
  76%, 100% { opacity: 1; transform: none; }
}
@keyframes v1-cur {
  0%, 40% { opacity: 0; transform: translate(130px, 60px); }
  46% { opacity: 1; transform: translate(130px, 60px); }
  66% { opacity: 1; transform: translate(0, 0); }
  70% { transform: translate(0, 0) scale(0.85); }
  76%, 90% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(0, 0); }
}

/* Step 2: "Sign in with Rewrito" is clicked and turns into "Signed in". */
.v2-card {
  width: 74%;
  padding: 18px 14px;
  border-radius: 14px;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 13px;
}
.v2-card img {
  border-radius: 9px;
}
.v2-btn {
  position: relative;
  margin-top: 4px;
  width: 100%;
  height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
  font-weight: 600;
  animation: v2-btn var(--cycle) infinite;
}
.v2-btn span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.v2-a { animation: v2-a var(--cycle) infinite; }
.v2-b { opacity: 0; animation: v2-b var(--cycle) infinite; }
.v2 .cur {
  left: 52%;
  top: 76%;
  animation: v2-cur var(--cycle) infinite;
}
@keyframes v2-btn {
  0%, 46% { transform: none; background: var(--ink); }
  50% { transform: scale(0.95); }
  56%, 100% { transform: none; background: #16a34a; }
}
@keyframes v2-a {
  0%, 52% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes v2-b {
  0%, 52% { opacity: 0; }
  56%, 100% { opacity: 1; }
}
@keyframes v2-cur {
  0%, 10% { opacity: 0; transform: translate(110px, 50px); }
  16% { opacity: 1; transform: translate(110px, 50px); }
  44% { opacity: 1; transform: translate(0, 0); }
  50% { transform: translate(0, 0) scale(0.85); }
  56%, 85% { opacity: 1; transform: translate(0, 0); }
  95%, 100% { opacity: 0; transform: translate(0, 0); }
}

/* Step 3: text is selected, Ctrl+Q is pressed, the fixed text appears. */
.v3 {
  align-content: center;
  gap: 14px;
}
.v3-text {
  margin: 0;
  font-size: 14px;
}
.v3-sel {
  padding: 2px 3px;
  border-radius: 4px;
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 28%, transparent));
  background-repeat: no-repeat;
  background-size: 0 100%;
  animation: v3-sel var(--cycle) infinite;
}
.v3-keys {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.v3-keys kbd {
  animation: v3-key var(--cycle) infinite;
}
.v3-keys kbd + kbd {
  animation-delay: 0.12s;
}
.v3-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  animation: v3-panel var(--cycle) infinite;
}
.v3-panel img {
  border-radius: 4px;
}
@keyframes v3-sel {
  0%, 8% { background-size: 0 100%; }
  28%, 100% { background-size: 100% 100%; }
}
@keyframes v3-key {
  0%, 36% { transform: none; border-bottom-width: 3px; }
  40%, 46% { transform: translateY(2px); border-bottom-width: 1px; }
  50%, 100% { transform: none; border-bottom-width: 3px; }
}
@keyframes v3-panel {
  0%, 50% { opacity: 0; transform: translateY(8px) scale(0.96); }
  58%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* Play the three steps one after another. */
.dl-vis * { animation-fill-mode: backwards; }
.dl-step:nth-child(2) .dl-vis * { animation-delay: 1.6s; }
.dl-step:nth-child(3) .dl-vis * { animation-delay: 3.2s; }
.dl-step:nth-child(3) .v3-keys kbd + kbd { animation-delay: 3.32s; }

@media (prefers-reduced-motion: reduce) {
  .dl-vis *,
  .dl-vis *::before { animation: none !important; }
  .v1-bar i { width: 100%; }
  .v1 .cur, .v2 .cur { display: none; }
  .v2-a { opacity: 0; }
  .v3-sel { background-size: 100% 100%; }
}

.dl-store {
  margin: 56px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}
.dl-store a {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.dl-store a:hover {
  transform: translateY(-2px);
}
.dl-store .badge-light { display: none; }
:root[data-theme="dark"] .dl-store .badge-dark { display: none; }
:root[data-theme="dark"] .dl-store .badge-light { display: inline; }
.download-page .dl-help {
  margin-top: 28px;
}
@media (max-width: 860px) {
  .dl-steps {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-top: 40px;
  }
}

/* ---- Hero demo "video": Gmail + Rewrito, drawn at 1000px and scaled to fit ---- */
.film {
  position: relative;
  width: min(1040px, 100%);
  margin-top: 60px;
  --s: 1;
}
.film-scale {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 640px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  text-align: left;
}
.film-win {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-2) 80%, var(--surface));
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px -40px rgba(30, 41, 99, 0.45), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.film-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 10px 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.film-dots {
  display: flex;
  gap: 7px;
}
.film-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.film-dots i:nth-child(2) { background: #febc2e; }
.film-dots i:nth-child(3) { background: #28c840; }
.film-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}
.film-url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 6px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  text-align: center;
}
.film-body {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 170px 1fr;
}
.gm-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 10px;
  font-size: 13px;
  color: var(--muted);
}
.gm-compose-btn {
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}
.gm-nav {
  display: flex;
  justify-content: space-between;
  padding: 6px 14px;
  border-radius: 999px;
}
.gm-nav.on {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}
.gm-list {
  padding: 14px 18px 0 6px;
  font-size: 13px;
}
.gm-list div {
  display: flex;
  gap: 16px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
}
.gm-list b {
  width: 92px;
  flex: none;
}
.gm-list span {
  color: var(--muted);
}
.gm-compose {
  position: absolute;
  left: 250px;
  bottom: 0;
  width: 470px;
  height: 430px;
  display: flex;
  flex-direction: column;
  border-radius: 14px 14px 0 0;
  background: var(--surface);
  box-shadow: 0 10px 40px -8px rgba(15, 23, 42, 0.35);
  font-size: 14px;
}
.gm-head {
  display: flex;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 14px 14px 0 0;
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 600;
}
.gm-head span {
  color: var(--muted);
  font-weight: 400;
}
.gm-field {
  margin: 0 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.gm-field em {
  font-style: normal;
  color: var(--muted);
  margin-right: 6px;
}
.gm-text {
  flex: 1;
  padding: 14px 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.gm-text #f-email {
  border-radius: 3px;
  transition: background 0.5s;
}
.film.selected #f-email {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}
.film.replaced #f-email {
  animation: f-flash 1.4s ease;
}
@keyframes f-flash {
  0% { background: color-mix(in srgb, #22c55e 30%, transparent); }
  100% { background: transparent; }
}
.f-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--text);
  animation: blink 1s steps(1) infinite;
}
.gm-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 14px;
}
.gm-send {
  padding: 8px 22px;
  border-radius: 999px;
  background: #0b57d0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.gm-tools {
  display: flex;
  gap: 14px;
  color: var(--muted);
}
.gm-tools svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The Rewrito panel, as in the app */
.f-panel {
  position: absolute;
  right: 22px;
  top: 64px;
  width: 400px;
  padding: 14px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.45);
  font-size: 13px;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  pointer-events: none;
}
.f-panel.show {
  opacity: 1;
  transform: none;
}
.f-phead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.f-phead img {
  border-radius: 22%;
}
.f-seg {
  margin-left: auto;
  display: flex;
  padding: 2px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 11.5px;
}
.f-seg i {
  font-style: normal;
  padding: 3px 9px;
  border-radius: 8px;
  color: var(--muted);
}
.f-seg i.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.f-ptext {
  min-height: 150px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  line-height: 1.55;
  font-size: 13.5px;
  white-space: pre-wrap;
}
.f-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.f-tiles span {
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  transition: all 0.25s;
}
.f-tiles span.hit {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.f-btns {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.f-btns span {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--border);
}
.f-btns .f-replace {
  flex: 2;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transition: transform 0.15s;
}
.f-btns .f-replace.press {
  transform: scale(0.96);
}

/* Ctrl + Q keys, shown big like a keystroke overlay */
.f-keys {
  position: absolute;
  left: 50%;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  color: var(--on-ink);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.25s;
}
.f-keys.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.f-keys kbd {
  min-width: 46px;
  padding: 8px 12px;
  font-size: 18px;
  transition: transform 0.12s, border-bottom-width 0.12s;
}
.f-keys.press kbd {
  transform: translateY(2px);
  border-bottom-width: 1px;
}
.f-keys b {
  font-size: 18px;
  opacity: 0.6;
}

.f-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.25s;
  z-index: 5;
}
.f-cursor.show {
  opacity: 1;
}
.f-cursor.click path {
  transform: scale(0.85);
  transform-origin: 5px 3px;
}

/* Bottom bar: the current step and a progress line, like a video player */
.film-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 8px 2px;
}
.film-step {
  min-width: 210px;
  font-size: 13px;
  font-weight: 600;
}
.film-step.in {
  animation: f-step 0.35s ease;
}
@keyframes f-step {
  from { opacity: 0; transform: translateY(4px); }
}
.film-progress {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.film-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* Narrow screens: hide Gmail's sidebar and list, keep the compose window and panel */
@media (max-width: 760px) {
  .film {
    margin-top: 36px;
  }
  .film-scale {
    width: 450px;
    height: 720px;
  }
  .film-body {
    display: block;
  }
  .gm-side,
  .gm-list,
  .film-url {
    display: none;
  }
  .gm-compose {
    left: 14px;
    right: 14px;
    width: auto;
    height: 400px;
    top: 14px;
    bottom: auto;
    border-radius: 14px;
  }
  .f-panel {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 12px;
    width: 420px;
    margin-left: -210px;
  }
}

/* ---- Pricing: two tiers with sticker tags ---- */
.plans.tiers {
  max-width: 860px;
  margin-top: 40px;
  gap: 24px;
}
.tier {
  position: relative;
  padding: 58px 38px 38px;
  border-radius: 32px;
  background: var(--surface);
  border: 1.5px solid var(--border);
}
.tier-pro {
  border-color: var(--ink);
}
.tier-tag {
  position: absolute;
  top: -20px;
  left: 50%;
  padding: 7px 20px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 8px 18px -8px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%) rotate(-5deg);
}
.tag-free {
  background: #ff6a4d;
  color: #2a0d06;
}
.tag-pro {
  background: #d8c8ff;
  color: #1d1240;
  transform: translateX(-50%) rotate(3deg);
}
.tier-eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier .price {
  margin: 14px 0 0;
}
.tier .price .display {
  font-size: 56px;
  line-height: 1.05;
}
.tier-btn {
  display: flex;
  width: 100%;
  margin-top: 30px;
  justify-content: center;
  border-radius: 12px;
}
.tier-btn-line {
  border: 1.5px solid var(--ink);
  color: var(--text);
}
.tier-lead {
  margin: 34px 0 0;
  font-style: italic;
  color: var(--muted);
}
.tier ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.tier li {
  position: relative;
  padding-left: 32px;
  line-height: 1.45;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}
@media (max-width: 760px) {
  .plans.tiers {
    gap: 40px;
  }
  .tier {
    padding: 52px 26px 30px;
  }
}

/* ---- Account: cancel Pro dialog ---- */
.cancel-modal {
  max-width: 460px;
}
.cancel-lead {
  margin: 4px 0 14px;
  color: var(--muted);
  line-height: 1.5;
}
.reasons {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.aform .reasons label {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.aform .reasons label:hover {
  border-color: var(--border-strong);
}
.aform .reasons label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.aform .reasons input[type="radio"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}
.cancel-modal textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: 15px var(--sans);
  resize: vertical;
}
.cancel-modal textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.cancel-modal .opt {
  color: var(--faint);
  font-weight: 400;
}
.cancel-keep {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.danger-btn {
  color: var(--danger, #dc2626);
}

/* ---- Account: on/off switch ---- */
.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background 0.2s;
  pointer-events: none;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.switch input:checked + span {
  background: var(--accent);
}
.switch input:checked + span::after {
  transform: translateX(18px);
}
.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Blog ---- */
.post-list {
  max-width: 820px;
  margin: 10px auto 0;
  padding: 0 24px;
  display: grid;
  gap: 16px;
}
.post-card {
  display: block;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.post-card-meta {
  font-size: 12.5px;
  color: var(--muted);
}
.post-card h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 400;
}
.post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.post-card-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--accent-text);
}
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 24px 20px;
}
.post-back {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
}
.post h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 400;
}
.post-meta {
  margin: 0 0 34px;
  font-size: 13.5px;
  color: var(--muted);
}
.post-body {
  font-size: 17px;
  line-height: 1.75;
}
.post-body .lead {
  font-size: 19px;
  color: var(--text);
}
.post-body h2 {
  margin: 44px 0 12px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
}
.post-body p,
.post-body ul,
.post-body ol {
  margin: 0 0 18px;
}
.post-body li {
  margin-bottom: 8px;
}
.post-body a {
  color: var(--accent-text);
}
.ba {
  margin: 22px 0 26px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.ba-label {
  margin: 0 0 10px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.ba-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.6;
}
.ba-row + .ba-row {
  margin-top: 8px;
}
.ba-row span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 3px;
}
.ba-row p {
  margin: 0 !important;
}
.ba-before p {
  color: var(--muted);
}
.ba-after {
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent);
}
.ba-after span {
  color: var(--accent-text);
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.cmp th,
.cmp td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.cmp th {
  font-size: 13px;
  color: var(--muted);
}
.cmp td:first-child {
  font-weight: 600;
}
.post-cta {
  margin: 48px 0 10px;
  padding: 30px;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 100% 0%, var(--sky-1), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}
.post-cta-title {
  margin: 0 0 8px !important;
  font-size: 32px;
  line-height: 1.15;
}
.post-cta p {
  color: var(--muted);
}
@media (max-width: 760px) {
  .post { padding-top: 110px; }
  .post-card { padding: 22px; }
  .post-card h2 { font-size: 25px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 27px; }
  .ba-row { grid-template-columns: 1fr; gap: 4px; }
}
