/* The Reels App — "Cutting Room" */
:root {
  --bg: #F7F2E8;
  --text: #16130F;
  --accent: #E8F24A;
  --primary: #C8341F;
  --surface: #EDE5D6;
  --tertiary: #2B4C7E;
  --warn: #F3D27A;
  --coral: #FF6B4A;
  --muted: #5E574D;
  --outline: #8A8174;
  --line: #D8CFBF;
  --error: #9E1B32;
  --success: #1F6B45;
  --ink2: #26211B;
  --paper-muted: #B8AE9E;
  --field: #FFFCF5;
  --fh: "Unbounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fb: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fm: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gut: clamp(16px, 5vw, 32px);
  --max: 1160px;
  --band: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--fb);
}
@media (min-width: 1100px) { body { font-size: 1.0625rem; } }
img { max-width: 100%; height: auto; display: block; }
p, li { overflow-wrap: break-word; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--primary); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 {
  font-family: var(--fh);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 .55em;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.7rem, 1.15rem + 2.4vw, 2.75rem); }
.display { font-size: clamp(1.85rem, 1.05rem + 3.4vw, 3.35rem); line-height: 1.08; }
h2 { font-size: clamp(1.3rem, 1.02rem + 1.25vw, 2rem); }
h3 { font-size: clamp(1.02rem, .95rem + .45vw, 1.25rem); font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); line-height: 1.5; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--fm); font-weight: 500; }
.measure { max-width: 66ch; }

:focus-visible { outline: 3px solid var(--tertiary); outline-offset: 2px; border-radius: 4px; }
.band-ink :focus-visible { outline-color: #9DB8E8; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 8px; }

.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gut); }
.wrap > *, .grid > * { min-width: 0; }

/* Highlighter + REC */
.hl {
  background: var(--accent); color: var(--text);
  padding: 0 .14em; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.rec {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .rec.pulse { animation: rec 1.2s ease-out 1; }
  @keyframes rec { 0% { transform: scale(.4); opacity: .3; } 60% { transform: scale(1.35); } 100% { transform: scale(1); opacity: 1; } }
}

/* Header */
.hdr { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hdr .wrap {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: .5rem; min-height: 64px; padding-block: .5rem; position: relative;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
/* The logo file has a white ground: multiply drops it into the paper and beige bands */
.logo img { height: 40px; width: auto; mix-blend-mode: multiply; }
.hdr .btn { margin-left: auto; flex: none; }
@media (max-width: 379px) { .hdr .btn-sm { padding-inline: .7rem; font-size: .875rem; } .logo img { height: 34px; } }
.menu-btn {
  flex: none; width: 44px; height: 44px; border: 2px solid var(--text); border-radius: 12px;
  background: var(--field); color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -6px; }
.menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
.mainnav ul { display: flex; gap: 0 1.1rem; list-style: none; margin: 0; padding: 0; }
.mainnav a {
  display: inline-flex; align-items: center; min-height: 44px; position: relative;
  font-weight: 600; text-decoration: none; padding-inline: .1rem;
}
.mainnav a:hover { text-decoration: underline; text-decoration-color: var(--primary); }
.mainnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 8px; height: 8px;
  margin-left: -4px; border-radius: 50%; background: var(--primary);
}
@media (max-width: 899px) {
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--text); color: var(--bg); border-bottom: 2px solid var(--text);
    padding: .5rem var(--gut) 1.25rem; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; }
  .mainnav li + li { border-top: 1px solid var(--ink2); }
  .mainnav a { display: flex; min-height: 52px; font: 600 1.25rem/1.2 var(--fh); text-decoration-color: var(--coral); }
  .mainnav a[aria-current="page"]::after { position: static; margin-left: .6rem; }
  .mainnav :focus-visible { outline-color: #9DB8E8; }
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .logo img { height: 52px; }
  .hdr .wrap { min-height: 76px; gap: 1.25rem; }
  .mainnav { order: 2; margin-inline: auto; }
  .hdr .btn { order: 3; margin-left: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .65rem 1.3rem; border-radius: 999px;
  border: 2px solid var(--text); background: transparent; color: var(--text);
  font: 700 1rem/1.2 var(--fb); text-decoration: none; cursor: pointer; text-align: center;
}
.btn-sm { min-height: 44px; padding: .45rem 1rem; font-size: .9375rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #A92A17; border-color: #A92A17; }
.btn-secondary:hover { background: var(--surface); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: var(--text); }
.btn-coral:hover { background: #FF8466; }
.btn-ghost-light { color: var(--bg); border-color: var(--bg); }
.btn-ghost-light:hover { background: var(--ink2); }
.btn-text {
  border: 0; background: none; padding: .5rem .25rem; min-height: 44px; cursor: pointer;
  font: 700 1rem var(--fb); color: var(--text); text-decoration: underline;
  text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px;
  display: inline-flex; align-items: center; gap: .45rem;
}
.cut::before {
  content: ""; display: inline-block; width: 14px; height: 2px; background: currentColor;
  transform: rotate(-40deg);
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

/* Sections, bands, timecodes, dividers */
.sec { padding-block: clamp(48px, 8vw, 96px); }
.sec-tight { padding-block: clamp(32px, 5vw, 56px); }
.band-ink { background: var(--text); color: var(--bg); --band: var(--text); }
.band-ink a { text-decoration-color: var(--coral); }
.band-ink .muted { color: var(--paper-muted); }
.band-surface { background: var(--surface); --band: var(--surface); }
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin: 0 0 .8rem; font: 600 .8125rem/1.3 var(--fb);
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.band-ink .eyebrow { color: var(--paper-muted); }
.tc {
  font-family: var(--fm); font-weight: 500; letter-spacing: 0; text-transform: none;
  border: 1.5px solid currentColor; border-radius: 4px; padding: 1px 6px; color: var(--text);
}
.band-ink .tc { color: var(--bg); }
.tl {
  height: 10px; border-top: 2px solid var(--text);
  background: repeating-linear-gradient(to right, var(--text) 0 2px, transparent 2px 24px);
}
.band-ink .tl { border-color: var(--bg); background: repeating-linear-gradient(to right, var(--bg) 0 2px, transparent 2px 24px); }
.section-head { max-width: 46rem; margin-bottom: clamp(24px, 4vw, 40px); }

/* Tags and badges */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 600 .8125rem/1.2 var(--fb); padding: .35rem .7rem; border-radius: 999px;
  background: var(--tertiary); color: var(--bg);
}
.tag-free { background: var(--accent); color: var(--text); }
.tag-outline { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.dot-hollow { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; display: inline-block; }

/* Frames */
.frame { border: 2px solid var(--text); border-radius: 20px; overflow: hidden; background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero .offer { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); margin-bottom: .5rem; }
.hero .aud { color: var(--muted); margin-bottom: 1.5rem; }
.hero .fine { margin-top: .9rem; font-size: .875rem; color: var(--muted); }
.hero-fig { margin: 0; }
.hero-fig .frame { aspect-ratio: 3 / 2; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .hero-text { grid-column: 1 / 8; }
  .hero-fig { grid-column: 8 / 13; }
  .hero-fig .frame { transform: rotate(-2deg); }
}

/* Audience 9:16 strip */
.aud-strip {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: minmax(0, 1fr); gap: 16px;
}
.tile {
  min-width: 0; border: 2px solid var(--text); border-radius: 20px;
  background: var(--surface); padding: 0 1.1rem 1.1rem; display: flex; flex-direction: column;
  overflow: hidden;
}
.tile-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -1.1rem 1rem; padding: .55rem 1.1rem; background: var(--text); color: var(--bg);
  border-bottom: 2px solid var(--text);
}
.tile .num { font: 500 1.35rem/1 var(--fm); }
.tile h3 { margin-bottom: .4rem; }
.tile-line { margin: 0 0 1rem; font-size: .95rem; }
.tile-cut { margin: auto 0 0; padding-top: .9rem; border-top: 2px solid var(--text); display: grid; gap: .55rem;
  background: repeating-linear-gradient(to right, var(--text) 0 2px, transparent 2px 24px) top left / 100% 8px no-repeat; }
.tile-cut > div { min-width: 0; }
.tile-cut dt { font: 500 .75rem/1.3 var(--fm); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tile-cut dd { margin: .1rem 0 0; font-size: .9375rem; font-weight: 600; overflow-wrap: break-word; }
@media (min-width: 600px) {
  .aud-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .aud-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card {
  background: var(--surface); border-radius: 20px; border: 1.5px solid var(--outline);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem;
}
.band-surface .card { background: var(--bg); }
.card h3 { margin: 0; }
.card p { margin: 0; }
.card .more { margin-top: auto; font-weight: 700; }
.card .lbl { font: 500 .8125rem var(--fm); color: var(--muted); }

/* Tracks (steps + roadmap) */
.track { position: relative; list-style: none; margin: 0; padding: 0 0 0 54px; display: grid; gap: 1.75rem; }
.track::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: currentColor; }
.track li { position: relative; }
.track h3 { margin-bottom: .35rem; }
.track p { margin: 0; }
.mk {
  position: absolute; left: -54px; top: -4px; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid currentColor; background: var(--band);
  display: grid; place-items: center; font: 500 .8rem var(--fm);
}
.mk-now { background: var(--primary); border-color: var(--primary); }
.mk-now::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.mk-coming::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.mk-thru { border-style: dashed; }
.stage { font: 500 .8125rem var(--fm); display: block; margin-bottom: .2rem; color: var(--muted); }
.band-ink .stage { color: var(--paper-muted); }
@media (min-width: 1100px) {
  .track { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 58px 0 0; gap: 32px; }
  .track::before { left: 0; right: 0; top: 17px; bottom: auto; width: auto; height: 2px; }
  .mk { left: 0; top: -58px; }
}
.note { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.band-ink .note { color: var(--paper-muted); }

.wide-fig { margin: 0 0 clamp(28px, 4vw, 48px); }
.wide-fig .frame { aspect-ratio: 3 / 2; }
@media (min-width: 900px) { .wide-fig .frame { aspect-ratio: 12 / 5; } }

/* Split layout helper */
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
}

/* Pricing */
.plans { display: grid; gap: 20px; max-width: 880px; }
.plans.center { margin-inline: auto; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan {
  border: 2px solid var(--text); border-radius: 20px; padding: 1.5rem; background: var(--bg);
  display: flex; flex-direction: column; gap: .8rem;
}
.plan-now { box-shadow: 4px 4px 0 var(--text); }
.plan-coming { border-style: dashed; }
.plan .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; }
.plan h3 { margin: 0; }
.price { font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.75rem)/1 var(--fh); margin: .2rem 0; }
.plan p { margin: 0; }
.plan .btn { align-self: flex-start; margin-top: auto; }

/* Join (early access) */
.join-card {
  max-width: 660px; margin-inline: auto; background: var(--ink2); color: var(--bg);
  border: 2px solid var(--bg); border-radius: 20px; padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 4px 4px 0 var(--coral);
}
.join-card h2 { margin-bottom: .4rem; }
.join-card .lbl { display: block; font-weight: 600; margin-bottom: .35rem; }
.join-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.join-row input { flex: 1 1 220px; }
.join-row .btn { flex: 0 1 auto; }
@media (max-width: 599px) { .join-row .btn { flex-basis: 100%; } }
.consent { font-size: .875rem; color: var(--paper-muted); margin: .9rem 0 0; }
.join-done h2 { display: flex; gap: .6rem; align-items: center; }

/* Forms */
.field { margin-bottom: 1.1rem; }
.field > label, .field > .lbl, legend.lbl { display: block; font-weight: 600; margin-bottom: .2rem; }
.help { display: block; font-size: .875rem; color: var(--muted); margin-bottom: .4rem; }
.band-ink .help { color: var(--paper-muted); }
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; max-width: 100%; min-height: 48px; padding: .65rem .8rem;
  border: 1.5px solid var(--outline); border-radius: 12px; background: var(--field);
  color: var(--text); font: 400 1rem/1.4 var(--fb);
}
textarea { resize: vertical; min-height: 120px; }
input.mono-in { font-family: var(--fm); }
[aria-invalid="true"] { border: 2px solid var(--error) !important; }
.err { display: flex; gap: .4rem; align-items: flex-start; color: var(--error); font-size: .9rem; font-weight: 600; margin: .35rem 0 0; }
.err:empty { display: none; }
.band-ink .err, .join-card .err { color: #FF8A8A; }
.req { font-weight: 400; color: var(--muted); font-size: .875rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: flex; gap: .6rem; align-items: center; min-height: 44px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--tertiary); }

.segctl { display: flex; flex-wrap: wrap; gap: 8px; }
.segctl label { position: relative; }
.segctl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segctl span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px;
  padding: .4rem .9rem; border: 2px solid var(--text); border-radius: 999px;
  font: 500 .9375rem var(--fm); cursor: pointer; background: var(--field);
}
.segctl input:checked + span { background: var(--text); color: var(--bg); }
.segctl input:focus-visible + span { outline: 3px solid var(--tertiary); outline-offset: 2px; }

.form-card {
  background: var(--bg); border: 2px solid var(--text); border-radius: 20px;
  box-shadow: 4px 4px 0 var(--text); padding: clamp(1.25rem, 4vw, 2rem);
}
.err-summary { border: 2px solid var(--error); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.err-summary[hidden] { display: none; }

/* Status lines */
.status { display: flex; gap: .5rem; align-items: flex-start; font-weight: 600; margin: .5rem 0 0; }
.status:empty { display: none; }
.status.ok { color: var(--success); }
.status.bad { color: var(--error); }
.status.warn { background: var(--warn); color: var(--text); padding: .55rem .8rem; border-radius: 10px; }
.status.info { color: var(--muted); font-weight: 500; }
.band-ink .status.ok, .join-card .status.ok { color: #8FE0B0; }
.band-ink .status.bad, .join-card .status.bad { color: #FF8A8A; }
.ico { font-family: var(--fm); flex: none; }

/* Features page */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .95rem;
  border: 2px solid var(--text); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--field);
}
.chips a:hover { background: var(--accent); }
.feat { display: grid; gap: 1.75rem; align-items: start; }
.feat-fig { margin: 0; }
.feat-fig .frame { aspect-ratio: 1 / 1; }
@media (min-width: 1000px) {
  .feat { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .feat.flip .feat-fig { order: 2; }
  .feat-fig { position: sticky; top: 100px; }
}
.io { display: grid; gap: 12px; margin: 1.2rem 0; }
@media (min-width: 700px) { .io { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.io > div { background: var(--surface); border-radius: 12px; padding: 1rem; border: 1.5px solid var(--outline); }
.io-k { display: inline-block; font: 500 .8125rem var(--fm); background: var(--text); color: var(--bg); padding: 2px 8px; border-radius: 4px; margin-bottom: .45rem; }
.io p { margin: 0; }
.example { border: 2px dashed var(--text); border-radius: 16px; padding: 1rem 1.1rem; margin: 1.2rem 0; }
.example .tag { margin-bottom: .5rem; }
.example p { margin: 0; }

/* Tools */
.clarity {
  display: flex; gap: .7rem; background: var(--surface); border-left: 4px solid var(--tertiary);
  border-radius: 12px; padding: 1rem 1.1rem; margin: 1.25rem 0; max-width: 46rem;
}
.clarity p { margin: 0; }
.privacy-badge {
  display: inline-flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center;
  border: 1.5px solid var(--text); border-radius: 999px; padding: .4rem .9rem;
  font-weight: 600; font-size: .875rem;
}
.tool { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) {
  .tool { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
  .tool .result { position: sticky; top: 96px; }
}
.panel { background: var(--surface); border-radius: 20px; padding: clamp(1rem, 3vw, 1.5rem); }
.result {
  background: var(--bg); border: 2px solid var(--text); border-radius: 20px;
  box-shadow: 4px 4px 0 var(--text); padding: clamp(1rem, 3vw, 1.4rem);
}
.result h3 { margin-bottom: .6rem; }
.scene, .segment {
  border: 1.5px solid var(--outline); border-radius: 16px; padding: 1rem; margin-bottom: 1rem; background: var(--bg);
}
.scene > legend, .segment > legend { padding: 0 .45rem; font: 500 .9rem var(--fm); background: var(--bg); }
.scene-head { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.scene-head .mono { font-size: .9rem; }
.pair { display: grid; gap: 0 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.secs { display: flex; gap: 8px; align-items: stretch; max-width: 220px; }
.secs input { text-align: center; font-family: var(--fm); }
.secs button { flex: none; width: 48px; border-radius: 12px; border: 2px solid var(--text); background: var(--field); font: 700 1.2rem var(--fm); cursor: pointer; color: var(--text); }
.total { font: 500 .95rem var(--fm); margin: 0 0 .5rem; }
.tbar {
  position: relative; height: 34px; border: 2px solid var(--text); border-radius: 8px;
  background: var(--field); overflow: hidden; margin: .4rem 0 .3rem;
}
.tbar .sg {
  position: absolute; top: 0; bottom: 0; border-right: 2px solid var(--text);
  display: flex; align-items: center; justify-content: center; font: 500 .75rem var(--fm); overflow: hidden;
}
.tbar .sg:nth-child(odd) { background: var(--accent); }
.tbar .sg:nth-child(even) { background: var(--line); }
.tbar .over {
  position: absolute; top: 0; bottom: 0;
  background: repeating-linear-gradient(45deg, var(--warn) 0 6px, var(--text) 6px 8px);
}
.tbar .target { position: absolute; top: -2px; bottom: -2px; width: 3px; background: var(--primary); }
.tscale { display: flex; justify-content: space-between; font: 500 .75rem var(--fm); color: var(--muted); }
.out {
  font: 500 .875rem/1.5 var(--fm); white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--field); border: 1.5px solid var(--outline); border-radius: 12px;
  padding: .9rem; margin: .8rem 0; max-height: 380px; overflow: auto;
}
.out.empty { color: var(--muted); font-family: var(--fb); }
.issues { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .3rem; }
.issues li { display: flex; gap: .45rem; color: var(--error); font-weight: 600; font-size: .9rem; }
.result-cta { border-top: 2px solid var(--text); margin-top: 1.1rem; padding-top: 1rem; }
.result-cta p { margin-bottom: .7rem; }
.ex-note { font-size: .875rem; color: var(--muted); margin: .4rem 0 0; }

.phone {
  width: min(100%, 210px); aspect-ratio: 9 / 16; border: 2px solid var(--text); border-radius: 22px;
  background: var(--text); padding: 10px; display: flex; flex-direction: column; justify-content: flex-end;
  margin: .5rem 0 1rem;
}
.phone .cap {
  background: var(--bg); border-radius: 10px; padding: .55rem .65rem; font-size: .85rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.phone .cap.empty { color: var(--muted); }
.counters { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 .8rem; }
.counters li { font: 500 .85rem var(--fm); border: 1.5px solid var(--text); border-radius: 999px; padding: .25rem .7rem; }
.meter { height: 14px; border: 2px solid var(--text); border-radius: 999px; overflow: hidden; background: var(--field); }
.meter span { display: block; height: 100%; background: var(--success); }
.meter.over span { background: repeating-linear-gradient(45deg, var(--warn) 0 6px, var(--text) 6px 8px); }
.removed { list-style: none; padding: 0; margin: .4rem 0 0; font-size: .875rem; }

.seg-grid { display: grid; gap: 0 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg-grid .full { grid-column: 1 / -1; }
.dur { font: 500 .85rem var(--fm); display: inline-flex; gap: .35rem; align-items: center; padding: .2rem .6rem; border-radius: 999px; border: 1.5px solid var(--text); }
.dur.over { background: var(--warn); }
.cuts { width: 100%; border-collapse: collapse; font: 500 .85rem/1.4 var(--fm); margin: .6rem 0; }
.cuts th, .cuts td { text-align: left; padding: .45rem .4rem; border-bottom: 1.5px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.cuts th { border-bottom: 2px solid var(--text); font-weight: 500; }
.cuts tr.over td { background: var(--warn); }
.cuts tr.bad td { color: var(--error); }
@media (max-width: 699px) {
  .cuts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cuts, .cuts tbody, .cuts tr, .cuts td { display: block; width: 100%; }
  .cuts tr { border: 1.5px solid var(--text); border-radius: 12px; margin-bottom: .6rem; overflow: hidden; }
  .cuts td { border: 0; padding: .3rem .7rem; }
  .cuts td::before { content: attr(data-label) ": "; color: var(--muted); }
  .cuts tr.bad td::before { color: inherit; }
}

dialog {
  border: 2px solid var(--text); border-radius: 20px; padding: 1.5rem; max-width: min(92vw, 420px);
  background: var(--bg); color: var(--text); box-shadow: 4px 4px 0 var(--text);
}
dialog::backdrop { background: rgba(22, 19, 15, .55); }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 2px solid var(--text); }
.faq details:first-child { border-top: 2px solid var(--text); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; font-weight: 700; padding: .7rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.4rem var(--fm); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; }

/* Principles */
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: p; }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principles li { border: 1.5px solid var(--outline); border-radius: 20px; padding: 1.25rem; background: var(--bg); }
.principles .lbl { font: 500 .8125rem var(--fm); color: var(--muted); display: block; margin-bottom: .3rem; }
.principles strong { font-family: var(--fh); font-weight: 600; display: block; margin-bottom: .3rem; }
.principles p { margin: 0; }

/* Contact */
.mailcard { border: 2px solid var(--text); border-radius: 20px; padding: 1.25rem; margin-bottom: 1rem; background: var(--surface); }
.mailcard h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.mailcard a { font: 500 1rem var(--fm); overflow-wrap: anywhere; }
.mailcard p { margin: .4rem 0 0; }

/* Legal */
.legal { max-width: 68ch; }
.legal h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.eff { font: 500 .875rem var(--fm); color: var(--muted); }

/* 404 */
.nf { min-height: 60vh; display: grid; align-content: center; }
.nf .code { font: 500 clamp(2.5rem, 1.5rem + 6vw, 5.5rem)/1 var(--fm); margin: 0 0 1rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.splice { display: block; height: 0; border-top: 2px dashed var(--text); width: min(100%, 420px); transform: rotate(-4deg); margin: 1.5rem 0 2rem; }

.mt { margin-top: .8rem; }
.h3like { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 600; margin: 0; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--text); }
a.card:hover h3 { text-decoration: underline; text-decoration-color: var(--primary); }
.join-done h3 { font-size: 1.3rem; }
.tool-head { max-width: 46rem; margin-bottom: 1.5rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.jump a { display: inline-flex; min-height: 44px; align-items: center; padding: .4rem .95rem; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; }
.jump a:hover { background: var(--tertiary); }

/* Footer */
.ftr { background: var(--surface); padding-block: 48px 32px; margin-top: 0; }
.ftr-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
.ftr .logo img { height: 48px; }
.ftr h2 { font-size: .9375rem; font-family: var(--fb); font-weight: 700; margin-bottom: .5rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li a { display: inline-flex; align-items: center; min-height: 40px; }
.ftr .lines { font-size: .9rem; }
.ftr .lines p { margin: .3rem 0; }
.ftr .copy { margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--text); font-size: .875rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.ftr .copy p { margin: 0; }

@media (prefers-contrast: more) {
  :root { --muted: #16130F; --outline: #16130F; }
  .btn-primary { border-color: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
