/* ============================================================
   Clipper — production landing
   Light by default; a toggle flips to dark. Every colour below is
   a token, so the two themes stay in step. The demo panel is the one
   deliberate exception: it stays dark in both, because it is a screen.
   Every pair here was measured at >= 4.5:1 (>= 3:1 for large text).
   ============================================================ */

:root {
  color-scheme: light;

  --bg:        #F4F6F3;   /* page */
  --bg-alt:    #E7EBE5;   /* alternating section band */
  --surface:   #FFFFFF;   /* cards */
  --text:      #0D1321;
  --text-dim:  #3A4454;
  --muted:     #606A7A;
  --line:      rgba(13, 19, 33, .13);
  --line-soft: rgba(13, 19, 33, .07);

  --accent:      #FFB020;  /* fills and buttons */
  --accent-text: #8C6112;  /* the same idea, as readable text */
  --on-accent:   #0D1321;
  --teal:        #16C2A3;
  --teal-text:   #0D7663;

  --nav-bg:    rgba(244, 246, 243, .88);
  --btn-solid-bg:   #0D1321;
  --btn-solid-text: #F4F6F3;
  --hero-rule: rgba(13, 19, 33, .05);
  --shadow:    rgba(13, 19, 33, .5);
  --foot-bg:   #0D1321;   /* the footer stays inverted in light mode */
  --foot-dim:  #A7B1C0;
  --foot-text: #F4F6F3;
  --warn-bg:   rgba(255, 176, 32, .16);
  --warn-line: rgba(140, 97, 18, .38);
  --warn-text: #4A3A14;
  --link:      #0F4C8A;

  /* the product panel — fixed, both themes */
  --panel:       #161E2E;
  --panel-bar:   #202B3F;
  --panel-text:  #EDF0EC;
  --panel-dim:   rgba(237, 240, 236, .58);
  --panel-faint: rgba(237, 240, 236, .34);
  --panel-line:  rgba(237, 240, 236, .14);

  --display: 'Secular One', system-ui, sans-serif;
  --body:    'Assistant', system-ui, sans-serif;
  --data:    'IBM Plex Mono', ui-monospace, monospace;

  --shell: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --r: 14px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #0D1321;
  --bg-alt:    #131B2A;
  --surface:   #1B2436;
  --text:      #EDF0EC;
  --text-dim:  #C3CBD6;
  --muted:     #7E8BA0;
  --line:      rgba(237, 240, 236, .15);
  --line-soft: rgba(237, 240, 236, .08);

  --accent-text: #FFB020;
  --on-accent:   #0D1321;
  --teal-text:   #16C2A3;

  --nav-bg:    rgba(13, 19, 33, .9);
  --btn-solid-bg:   #EDF0EC;
  --btn-solid-text: #0D1321;
  --hero-rule: rgba(237, 240, 236, .05);
  --shadow:    rgba(0, 0, 0, .8);
  --foot-bg:   #060A12;
  --foot-dim:  #8D99AB;
  --foot-text: #EDF0EC;
  --warn-bg:   rgba(255, 176, 32, .1);
  --warn-line: rgba(255, 176, 32, .32);
  --warn-text: #E8D5A8;
  --link:      #7FB2E8;
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--data);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .3;
  max-width: 90px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 12px;
  background: var(--btn-solid-bg);
  color: var(--btn-solid-text);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 200;
}
.skip:focus { inset-inline-start: 12px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.nav-in {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .78; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; }

.btn {
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  border: 0;
  border-radius: 10px;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .12s ease, box-shadow .2s ease, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 22px -8px rgba(255, 176, 32, .45); }
.btn-amber:hover { box-shadow: 0 10px 28px -8px rgba(255, 176, 32, .95); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-ink { background: var(--btn-solid-bg); color: var(--btn-solid-text); }
.btn-sm { padding: 9px 18px; font-size: 15px; border-radius: 9px; }

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

.hero {
  background: var(--bg);
  color: var(--text);
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px);
  position: relative;
  overflow: hidden;
}
/* faint rate-rail texture: the send loop, drawn as ambient ticks */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--hero-rule) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  margin-bottom: 22px;
}
.hero h1 .hl {
  color: var(--accent-text);
  position: relative;
  white-space: nowrap;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 30em;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-family: var(--data); font-size: 12.5px; color: var(--muted); margin-top: 18px; }

.trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-dim);
}
.trust b { display: block; font-family: var(--data); font-size: 21px; color: var(--text); font-weight: 500; }

/* ---------- signature: the live send panel ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  background: var(--panel-bar);
  border-bottom: 1px solid var(--panel-line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(237,240,236,.2); }
.panel-title {
  font-family: var(--data);
  font-size: 12px;
  color: var(--panel-dim);
  margin-inline-start: auto;
  letter-spacing: .05em;
}
.panel-body { padding: 20px 18px 22px; }


.rail { height: 5px; background: var(--panel-line); border-radius: 99px; overflow: hidden; margin: 14px 0 6px; }
.rail-fill { height: 100%; background: var(--teal); border-radius: 99px; width: 0%; transition: width .45s cubic-bezier(.4,0,.2,1); }

.num { direction: ltr; unicode-bidi: isolate; }

.caps { display: flex; justify-content: space-between; font-family: var(--data); font-size: 11.5px; color: var(--panel-dim); margin-bottom: 18px; }
.caps span { unicode-bidi: isolate; }
.caps .warn { color: var(--accent); }

.queue { display: flex; flex-direction: column; gap: 2px; }
.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--panel-dim);
  transition: background .3s, color .3s;
}
.row.active { background: rgba(255, 176, 32, .1); color: var(--panel-text); }
.row.done { color: var(--panel-text); }
.row-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.row-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--panel-bar);
  display: grid; place-items: center;
  font-size: 11px; font-family: var(--data); color: var(--panel-dim);
  flex: none;
}
.row-delay { font-family: var(--data); font-size: 11.5px; color: var(--panel-dim); direction: ltr; unicode-bidi: isolate; }
.row.active .row-delay { color: var(--accent); }
.tick { font-family: var(--data); font-size: 13px; width: 22px; text-align: center; color: var(--panel-faint); }
.tick.sent { color: var(--panel-dim); }
.tick.read { color: var(--teal); }

.panel-foot {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--panel-line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--data);
  font-size: 11.5px;
  color: var(--panel-dim);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s ease-in-out infinite; flex: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

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

.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.sec-head p { color: var(--muted); font-size: 18px; }

.sec-alt { background: var(--bg-alt); }
.sec-alt .card { background: var(--surface); }

/* control section — the anti-ban thesis */
.control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.control-cell { background: var(--surface); padding: 30px 26px; }
.control-cell .n {
  font-family: var(--data); font-size: 32px; color: var(--accent-text);
  display: block; margin-bottom: 10px;
  text-align: start;
}
.control-cell .n svg { width: 30px; height: 30px; stroke-width: 1.5; }
.control-cell h3 { font-size: 18px; margin-bottom: 8px; }
.control-cell p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(13, 19, 33, .45); }
.card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--btn-solid-bg); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.card.wide { grid-column: span 2; }
.badge-soon {
  font-family: var(--data);
  font-size: 10.5px;
  letter-spacing: .08em;
  background: rgba(255, 176, 32, .18);
  color: var(--accent-text);
  padding: 3px 8px;
  border-radius: 5px;
  margin-inline-start: 8px;
  vertical-align: middle;
}

/* local-first statement */
.local { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.local h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 18px; }
.local p { color: var(--text-dim); font-size: 17px; margin-bottom: 14px; }
.flow { display: flex; flex-direction: column; gap: 10px; }
.flow-node {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  line-height: 1.45;
}
.flow-node small { font-size: 12.5px; color: var(--muted); }
.flow-node .tok { font-family: var(--data); font-size: .92em; unicode-bidi: isolate; }
.flow-node.off .tok { color: inherit; }
.flow-node.off { border-style: dashed; color: var(--muted); background: transparent; }
.flow-arrow { text-align: center; color: var(--muted); font-family: var(--data); font-size: 13px; }

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

.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 4px; gap: 4px; margin-bottom: 34px; }
.toggle button {
  font-family: var(--body); font-weight: 700; font-size: 15px;
  border: 0; background: transparent; color: var(--muted);
  padding: 9px 20px; border-radius: 8px; cursor: pointer; transition: background .15s, color .15s;
}
.toggle button[aria-pressed="true"] { background: var(--btn-solid-bg); color: var(--btn-solid-text); }
.toggle .save { font-family: var(--data); font-size: 11px; color: var(--teal-text); margin-inline-start: 6px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan.hot { border-color: var(--text); border-width: 2px; box-shadow: 0 24px 50px -32px rgba(13,19,33,.5); position: relative; }
.plan-tag {
  position: absolute; top: -12px; inset-inline-start: 26px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--data); font-size: 11px; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 6px;
}
.plan h3 { font-size: 21px; margin-bottom: 6px; }
.plan .desc { font-size: 14.5px; color: var(--muted); min-height: 44px; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price .amt { font-family: var(--display); font-size: 42px; line-height: 1; unicode-bidi: isolate; }
.price .per { font-size: 14.5px; color: var(--muted); }
.price-note { font-family: var(--data); font-size: 11.5px; color: var(--muted); margin-bottom: 22px; min-height: 17px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .tk { color: var(--teal-text); font-family: var(--data); font-size: 13px; flex: none; margin-top: 3px; }
.plan li.no { color: var(--muted); }
.plan li.no .tk { color: rgba(107,118,136,.5); }
.plan-cta { margin-top: auto; }
.plan-cta .btn { width: 100%; justify-content: center; }
.paypal-slot { margin-top: auto; min-height: 52px; }
.paypal-pending {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-family: var(--data);
  font-size: 12px;
  color: var(--muted);
}
.vat { font-family: var(--data); font-size: 12.5px; color: var(--muted); margin-top: 22px; }

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

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 0; font-size: 17.5px; font-weight: 700;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--data); font-size: 20px; color: var(--accent-text); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 22px; color: var(--muted); font-size: 16px; }

/* ---------- disclaimer + footer ---------- */

.legal-strip {
  background: var(--warn-bg);
  border-top: 1px solid var(--warn-line);
  border-bottom: 1px solid var(--warn-line);
  padding: 26px 0;
}
.legal-strip .shell { display: flex; gap: 16px; align-items: flex-start; }
.legal-strip .ic { color: var(--accent-text); flex: none; margin-top: 1px; display: grid; }
.legal-strip p { font-size: 14.5px; color: var(--warn-text); line-height: 1.6; }
.legal-strip b { font-weight: 700; }

.foot { background: var(--foot-bg); color: var(--foot-dim); padding: 56px 0 32px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.foot h2 { font-family: var(--data); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--foot-dim); margin: 0 0 14px; font-weight: 500; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot a { text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; color: var(--accent); }
.foot .shell > .foot-grid > div > p { color: var(--foot-dim); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; color: var(--foot-text); margin-bottom: 12px; }
.foot-brand img { width: 26px; height: 26px; border-radius: 7px; }
.foot-bottom {
  border-top: 1px solid rgba(237, 240, 236, .14);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--data); font-size: 12px; color: var(--foot-dim);
}

/* ---------- legal document pages ---------- */

.doc { max-width: 780px; margin-inline: auto; padding: clamp(40px, 6vw, 76px) var(--pad) 80px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.doc .updated { font-family: var(--data); font-size: 12.5px; color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-size: 22px; margin: 40px 0 14px; }
.doc h3 { font-size: 18px; margin: 26px 0 10px; }
.doc p, .doc li { color: var(--text-dim); font-size: 16.5px; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { padding-inline-start: 22px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.doc a { color: var(--link); }
.doc .fill { background: rgba(255,176,32,.25); padding: 1px 6px; border-radius: 4px; font-family: var(--data); font-size: 14px; }
.doc-back { display: inline-flex; gap: 8px; align-items: center; font-family: var(--data); font-size: 13px; text-decoration: none; color: var(--muted); margin-bottom: 30px; }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero-grid, .local { grid-template-columns: 1fr; }
  .control-grid, .feat-grid, .plans { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .plan.hot { order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .trust { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 13px;
  cursor: pointer;
  margin-inline-start: auto;
  transition: background .15s, border-color .15s;
}
.theme-toggle:hover { background: var(--line-soft); border-color: var(--muted); }
.theme-toggle svg { flex: none; }
/* light: offer the dark option. dark: offer the light one. */
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }

@media (max-width: 560px) {
  .theme-toggle .theme-label { display: none; }
  .theme-toggle { padding: 8px 10px; }
}

/* ---------- demo panel: tab strip + scene stage ---------- */

.panel-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  background: var(--panel-bar);
  border-bottom: 1px solid var(--panel-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.panel-tabs::-webkit-scrollbar { display: none; }
.ptab {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--panel-dim);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 12px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.ptab:hover { color: var(--panel-dim); }
.ptab.on { color: var(--accent); border-bottom-color: var(--accent); }
.ptab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }

.scene-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; min-height: 24px; }
.scene-title { font-family: var(--display); font-size: 17px; color: var(--panel-text); line-height: 1.25; }
.scene-count { font-family: var(--data); font-size: 12.5px; color: var(--teal); unicode-bidi: isolate; white-space: nowrap; }

.stage { min-height: 268px; }

.rows { display: flex; flex-direction: column; gap: 2px; }
.row.in { animation: rowIn .32s cubic-bezier(.2,.7,.3,1); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.row.dim { opacity: .3; }
.row.camp .row-name { flex-direction: column; align-items: flex-start; gap: 2px; }
.row.camp .row-delay { font-size: 11px; }

.chipbar { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--body); font-size: 12px; font-weight: 600;
  color: var(--panel-dim); background: transparent;
  border: 1px solid var(--panel-line); border-radius: 99px;
  padding: 4px 11px; cursor: default; transition: all .25s;
}
.chip.on { color: var(--panel); background: var(--accent); border-color: var(--accent); }

.tag {
  font-family: var(--body); font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  animation: rowIn .3s .12s;
}
.tag.t0 { background: rgba(255, 176, 32, .18); color: #FFC65A; }
.tag.t1 { background: rgba(22, 194, 163, .18); color: #4FD8BF; }
.tag.t2 { background: rgba(237, 240, 236, .14); color: var(--panel-text); }

.pill { font-family: var(--body); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: rgba(22, 194, 163, .18); color: #4FD8BF; }
.pill.warn { background: rgba(255, 176, 32, .18); color: #FFC65A; }

.actions { display: flex; gap: 7px; margin-top: 14px; animation: rowIn .3s; }
.mini-btn {
  font-family: var(--body); font-size: 12px; font-weight: 600;
  color: var(--panel-dim); border: 1px solid var(--panel-line);
  border-radius: 8px; padding: 6px 12px;
}
.mini-btn.on { color: var(--panel); background: var(--accent); border-color: var(--accent); }

.slash { font-family: var(--data); font-size: 12.5px; color: var(--accent); flex: none; }
.tpl { color: var(--panel-dim); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.composer {
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--panel-line); border-radius: 10px;
  background: rgba(237, 240, 236, .04);
  animation: rowIn .3s;
}
.composer-label { display: block; font-family: var(--data); font-size: 10.5px; color: var(--panel-faint); margin-bottom: 6px; letter-spacing: .06em; }
.composer-text { color: var(--panel-text); font-size: 14.5px; }
.caret { display: inline-block; width: 2px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.row.file .fileic { font-family: var(--data); color: var(--panel-faint); flex: none; }
.mini-rail { width: 54px; height: 4px; border-radius: 99px; background: var(--panel-line); overflow: hidden; flex: none; }
.mini-fill { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 99px; transition: width .7s cubic-bezier(.3,.8,.3,1); }

.demo-note { font-family: var(--data); font-size: 11.5px; color: var(--muted); margin-top: 12px; text-align: center; }

@media (max-width: 560px) {
  .stage { min-height: 300px; }
  .ptab { font-size: 12px; padding: 8px 9px 9px; }
}

/* ---------- privacy promises ---------- */

.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.promise {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 28px;
  position: relative;
  padding-inline-start: 26px;
}
.promise::before {
  content: '';
  position: absolute;
  inset-block: 26px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 99px;
  background: var(--teal);
}
.promise h3 { font-size: 19px; margin-bottom: 9px; }
.promise p { font-size: 15.5px; color: var(--muted); line-height: 1.62; }

@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* ---------- language picker ---------- */

.lang-picker { position: relative; margin-inline-start: auto; }
.lang-picker + .theme-toggle { margin-inline-start: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 12px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lang-btn:hover { background: var(--line-soft); border-color: var(--muted); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  min-width: 168px; margin: 0; padding: 5px;
  list-style: none; z-index: 120;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 18px 40px -18px var(--shadow);
}
.lang-menu li {
  padding: 9px 13px; border-radius: 7px; cursor: pointer;
  font-size: 15px; color: var(--text);
}
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--line-soft); outline: none; }
.lang-menu li[aria-selected="true"] { color: var(--accent-text); font-weight: 700; }
.lang-menu li[aria-selected="true"]::after { content: '✓'; float: inline-end; }

@media (max-width: 560px) { .lang-btn .lang-current { display: none; } .lang-btn { padding: 8px 10px; } }

/* ---------- cancellation form ---------- */

.cancel-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  margin: 30px 0 44px;
  display: flex;
  flex-direction: column;
}
.cancel-form label { font-weight: 700; font-size: 15.5px; margin-bottom: 7px; }
.cancel-form input {
  font-family: var(--data);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 6px;
}
.cancel-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.cancel-form input[aria-invalid="true"] { border-color: #B3261E; }
.cancel-form .hint { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.cancel-form .btn { align-self: flex-start; }
.cancel-form .btn[disabled] { opacity: .55; cursor: progress; }

.cancel-result { margin-top: 18px; font-size: 15.5px; line-height: 1.6; }
.cancel-result:empty { margin: 0; }
.cancel-result .ok {
  border: 1px solid var(--teal-text); border-inline-start-width: 3px;
  border-radius: 10px; padding: 14px 16px; color: var(--text);
}
.cancel-result .bad {
  border: 1px solid #B3261E; border-inline-start-width: 3px;
  border-radius: 10px; padding: 14px 16px; color: var(--text);
}

.recover { margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.recover summary { cursor: pointer; padding: 16px 22px; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.recover summary::-webkit-details-marker { display: none; }
.recover summary::after { content: '+'; font-family: var(--data); color: var(--accent-text); font-size: 19px; }
.recover[open] summary::after { content: '−'; }
.recover .cancel-form { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; }
