/* Softau — styles. Mobile first; breakpoints 480 / 900 / 1200. */

:root {
  --ground: #141413;
  --paper: #F5F3EE;
  --gold: #D4A017;
  --text: #F5F3EE;
  --muted: #A8A49C;
  --card: #1E1E1C;
  --border: #2E2D2A;

  /* light sections */
  --ink: #141413;
  --ink-muted: #5C584F;      /* 6:1 on paper */
  --light-card: #FFFFFF;
  --light-border: #E2DDD3;
  --gold-ink: #7A5A06;       /* gold for text on paper, 6:1 */

  --gutter: 16px;
  --max: 1200px;
  --radius: 16px;
  --nav-h: 64px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------- logo ---------------- */
.logo {
  display: inline-flex; align-items: center; gap: 0.18em;
  font-size: 26px; text-decoration: none; color: var(--text); line-height: 1;
}
.logo-soft { font-weight: 800; letter-spacing: -0.055em; }
.logo-tile {
  position: relative; display: inline-grid; place-items: center;
  width: 1.62em; height: 1.62em;
  border: 2px solid var(--gold); border-radius: 0.2em;
  color: var(--gold); line-height: 1;
}
.logo-au { font-weight: 800; font-size: 0.8em; letter-spacing: -0.04em; margin-top: 0.08em; }
.logo-num { position: absolute; top: 0.1em; left: 0.14em; font-weight: 600; font-size: 0.3em; letter-spacing: 0; }
.logo-name { position: absolute; bottom: 0.1em; left: 0; right: 0; text-align: center; font-weight: 600; font-size: 0.2em; letter-spacing: 0.18em; text-indent: 0.18em; }
.logo-sm { font-size: 22px; }
.logo-tile .logo-au { color: var(--gold); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E3B12A; }
.btn-ghost { border-color: #4A4843; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(20, 20, 19, 0.6);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.nav.is-scrolled, .nav.menu-open {
  background: rgba(20, 20, 19, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links {
  display: none;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  flex-direction: column; padding: 8px var(--gutter) 20px;
  background: var(--ground); border-bottom: 1px solid var(--border);
}
.nav.menu-open .nav-links { display: flex; }
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 600;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.nav-links a:last-child { border-bottom: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }

.lang { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.lang-sep { color: #5E5B55; }
.lang-btn {
  background: none; border: 0; cursor: pointer; padding: 8px 6px; min-width: 32px;
  color: var(--muted); font-weight: 700; letter-spacing: 0.04em; border-radius: 6px;
}
.lang-btn[aria-pressed="true"] { color: var(--gold); }
.lang-btn:hover { color: var(--text); }

.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}

/* ---------------- shared ---------------- */
.section { padding: 76px 0; }
.light { background: var(--paper); color: var(--ink); }
.section h2 { font-size: clamp(32px, 6vw, 56px); letter-spacing: -0.04em; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head .lead { margin-top: 18px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.light .lead { color: var(--ink-muted); }
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.icon {
  width: 28px; height: 28px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icon-gold { color: var(--gold); }
.grid { display: grid; gap: 16px; }

/* ---------------- hero ---------------- */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(46px, 11vw, 104px);
  letter-spacing: -0.055em; line-height: 0.96;
  margin-bottom: 24px;
}
.hero .lead { font-size: 18px; margin-bottom: 32px; }
.hero-visual { max-width: 460px; width: 100%; margin: 0 auto; }
.tailor-svg { width: 100%; height: auto; aspect-ratio: 520 / 460; }
.tailor-svg .frame { fill: none; stroke: #6B6862; stroke-width: 2; }
.tailor-svg .frame-solid { fill: var(--ground); stroke: var(--paper); }
.tailor-svg .hair { stroke: var(--border); stroke-width: 2; }
.tailor-svg .dot { fill: #3A3935; }
.tailor-svg .block { fill: var(--card); stroke: var(--border); stroke-width: 1.5; }
.tailor-svg .block-gold { fill: none; stroke: var(--gold); stroke-width: 2; }
.tailor-svg .block-line { fill: var(--gold); }
.tailor-svg .spark { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tailor-svg .bar { fill: #3A3935; }
.tailor-svg .bar-gold { fill: var(--gold); }
.tailor-svg .ring { fill: none; stroke: #3A3935; stroke-width: 8; }
.tailor-svg .ring-gold { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; }
.tailor-svg .tape-band { fill: none; stroke: var(--gold); stroke-width: 20; }
.tailor-svg .tape-ticks { fill: none; stroke: var(--ground); stroke-width: 7; stroke-dasharray: 1.5 7; }
.tailor-svg .tape-tip { fill: var(--muted); }
.tailor-svg .seam { stroke: #4A4843; stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; }

/* ---------------- pain ---------------- */
.pain-grid { margin-top: 40px; }
.card-light {
  background: var(--light-card); border: 1px solid var(--light-border);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.card-light .icon { color: var(--ink); }
.card-light p { font-size: 19px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; }
.closing {
  margin-top: 44px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 16px;
}
.closing::before {
  content: ""; width: 40px; flex: none; border-top: 2px dashed var(--ink);
}

/* ---------------- how ---------------- */
.steps { display: grid; gap: 16px; counter-reset: none; }
.step {
  position: relative; padding: 28px 24px 30px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.step::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0;
  border-top: 2px dashed var(--gold); opacity: .55;
}
.step-num { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px; }
.step .icon { margin-bottom: 16px; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

.sub-title { font-size: 28px; letter-spacing: -0.03em; margin: 72px 0 24px; }
.build-grid { gap: 0; border-top: 1px solid var(--border); }
.build {
  display: flex; gap: 16px; padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.build h4 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 4px; }
.build p { color: var(--muted); font-size: 16px; }

/* ---------------- work ---------------- */
.cases { display: grid; gap: 24px; }
.case {
  display: grid; overflow: hidden;
  background: var(--light-card); border: 1px solid var(--light-border); border-radius: 20px;
  border-top: 4px solid var(--accent);
}
.case-visual {
  position: relative; display: grid; place-items: center;
  min-height: 300px; padding: 32px 20px;
  background: color-mix(in srgb, var(--accent) 9%, #FBFAF7);
}
.case-body { padding: 28px 24px 30px; }
.case-tag {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
}
.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); flex: none; }
.case h3 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.04em; margin: 10px 0 18px; }
.case dl { margin: 0; display: grid; gap: 4px; }
.case dt { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-top: 12px; }
.case dd { margin: 0; font-size: 16px; color: var(--ink); }
.case .result {
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em; line-height: 1.4;
  padding-left: 12px; border-left: 3px solid var(--accent); color: var(--ink);
}
.case-link {
  display: inline-flex; gap: 6px; margin-top: 24px;
  font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.case-link:hover { text-decoration-color: var(--accent); }

/* device mocks — abstract blocks only */
.case-visual b { display: block; background: #ECE8E0; border-radius: 4px; height: 12px; }
.case-visual b.acc { background: var(--accent); }
.case-visual b.acc-soft { background: color-mix(in srgb, var(--accent) 22%, #fff); }
.w40 { width: 40%; } .w30 { width: 30%; } .w20 { width: 20%; } .w15 { width: 15%; }

.browser {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid #DDD8CE; border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(20, 20, 19, .35);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid #ECE8E0; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #DDD8CE; }
.browser-bar span { margin-left: 10px; height: 12px; flex: 1; max-width: 160px; background: #F1EEE8; border-radius: 6px; }
.browser-body { padding: 16px; }
.ui-b2b { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.ui-side { display: grid; gap: 10px; align-content: start; }
.ui-main { display: grid; gap: 14px; }
.ui-row { display: flex; gap: 10px; }
.ui-row b { height: 14px; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-tiles b { height: 52px; border-radius: 8px; }
.ui-table { display: grid; gap: 8px; }
.ui-table b { height: 16px; background: #F1EEE8; }

.phone-mock {
  width: 172px; height: 330px; padding: 22px 12px 14px;
  background: #fff; border: 8px solid var(--ink); border-radius: 32px;
  display: flex; flex-direction: column; gap: 12px; position: relative;
  box-shadow: 0 22px 40px -24px rgba(20, 20, 19, .45);
}
.phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 44px; height: 6px; background: var(--ink); border-radius: 4px; }
.ui-map { height: 130px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, #fff); overflow: hidden; }
.ui-map svg { width: 100%; height: 100%; }
.ui-map .route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2 5; stroke-linecap: round; }
.ui-map .pin { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.ui-map .pin-end { fill: var(--accent); }
.ui-list { display: grid; gap: 8px; }
.ui-list b { height: 30px; border-radius: 8px; background: #F1EEE8; }
.ui-list b.acc { background: color-mix(in srgb, var(--accent) 16%, #fff); box-shadow: inset 4px 0 0 var(--accent); }
.ui-btn { margin-top: auto; height: 34px; border-radius: 17px; background: var(--accent); }

.ui-pharma { display: grid; gap: 14px; padding-bottom: 28px; }
.ui-table-lock b { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--accent) 40%, #fff); }
.browser-narrow { max-width: 340px; margin-right: 70px; }
.phone-mini {
  position: absolute; right: 18px; bottom: 80px;
  width: 128px; height: 236px; padding: 18px 9px 10px; border-width: 6px; border-radius: 24px; gap: 9px;
}
.phone-mini .ui-list b { height: 22px; }
.ui-sign { height: 76px; border-radius: 10px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, #fff); display: grid; place-items: center; }
.ui-sign svg { width: 86%; }
.ui-sign .sig { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }

/* ---------------- about ---------------- */
.about-grid { display: grid; gap: 40px; }
.about-grid .lead { margin-top: 20px; font-size: 19px; }
.facts { display: grid; gap: 14px; grid-template-columns: 1fr; }
.fact { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.fact .icon { margin-bottom: 14px; }
.fact h3 { font-size: 20px; margin-bottom: 6px; }
.fact p { color: var(--muted); font-size: 15px; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; gap: 40px; }
.contact-grid .lead { margin-top: 20px; }
.contact-mail { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-weight: 700; font-size: 18px; }
.contact-mail a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.form {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; display: grid; gap: 18px;
}
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--ground); border: 1.5px solid #3A3935; border-radius: 12px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 160, 23, .25); }
.field [aria-invalid="true"] { border-color: #E07A5F; }
.form-note { color: var(--muted); font-size: 14px; text-align: center; }
.form-success { display: flex; gap: 14px; align-items: flex-start; }
.form-success[hidden] { display: none; }
.form-success strong { display: block; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.form-success p { color: var(--muted); }
.form.is-sent > :not(.form-success) { display: none; }
.form.is-sent { align-content: center; min-height: 240px; }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.footer-inner { display: grid; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .link-btn {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 6px 0;
}
.link-btn { background: none; border: 0; cursor: pointer; }
.footer-links a:hover, .link-btn:hover { color: var(--text); }
.legal { color: var(--muted); font-size: 14px; }

/* ================= 480 ================= */
@media (min-width: 480px) {
  .nav-cta { display: inline-flex; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 32px; }
}

/* ================= 900 ================= */
@media (min-width: 900px) {
  :root { --gutter: 32px; --nav-h: 76px; }
  .logo { font-size: 30px; }
  .menu-btn { display: none; }
  .nav-links {
    display: flex; position: static; flex-direction: row; gap: 30px;
    padding: 0; background: none; border: 0;
  }
  .nav-links a { padding: 6px 0; border: 0; font-size: 15px; color: var(--muted); transition: color .2s; }
  .nav-links a:hover { color: var(--text); }
  .nav-actions { gap: 16px; }

  .section { padding: 112px 0; }
  .hero { padding: 72px 0 112px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .hero-visual { max-width: none; }
  .hero .lead { font-size: 20px; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .pain-grid { gap: 20px; }
  .card-light { padding: 32px; min-height: 230px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .build-grid { column-gap: 40px; border-top: 0; }
  .build { border-top: 1px solid var(--border); border-bottom: 0; padding: 26px 0; }

  .case { grid-template-columns: 1fr 1fr; border-top-width: 1px; border-left: 4px solid var(--accent); }
  .case:nth-child(even) .case-visual { order: 2; }
  .case-visual { min-height: 420px; }
  .case-body { padding: 48px 44px; align-self: center; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .legal { grid-column: 1 / -1; }
}

/* ================= 1200 ================= */
@media (min-width: 1200px) {
  .hero { padding: 96px 0 140px; }
  .hero-grid { gap: 72px; }
  .case-body { padding: 56px 64px; }
  .step { padding: 32px 28px 34px; }
}

/* ---------------- brand opening ---------------- */
.brand { padding: 56px 0 8px; }
.brand-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo-xl { font-size: clamp(76px, 22vw, 270px); gap: 0.1em; margin-bottom: 0.18em; }
.logo-xl .logo-tile { width: 1em; height: 1em; border-width: clamp(3px, 0.5vw, 7px); border-radius: 0.1em; }
.logo-xl .logo-au { font-size: 0.6em; margin-top: 0.03em; }
.logo-xl .logo-num { font-size: 0.16em; top: 0.09em; left: 0.1em; }
.logo-xl .logo-name { font-size: 0.1em; bottom: 0.08em; }
.brand-tag { font-size: clamp(22px, 3.6vw, 34px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.brand-alt { margin-top: 10px; font-size: clamp(16px, 2vw, 20px); color: var(--muted); }
@media (min-width: 900px) { .brand { padding: 96px 0 16px; } .hero { padding-top: 48px; } }

/* ---------------- legal pages ---------------- */
.legal-doc { max-width: 760px; padding-block: 56px 96px; }
.legal-doc h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.045em; margin-bottom: 12px; }
.legal-updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.legal-intro { font-size: 19px; line-height: 1.6; margin-bottom: 12px; }
.legal-doc section { margin-top: 36px; display: grid; gap: 12px; }
.legal-doc h2 { font-size: 22px; letter-spacing: -0.02em; }
.legal-doc section p, .legal-doc li { color: var(--muted); font-size: 17px; line-height: 1.65; }
.legal-doc ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal-doc li::marker { color: var(--gold); }
.legal-doc section.cont { margin-top: 14px; }

/* ---------------- project card scenes (abstract, animated; 9s loops) ---------------- */
.sc .bar { display: block; height: 12px; border-radius: 4px; background: #ECE8E0; }
.sc .bar.acc { background: var(--accent); width: 42%; }

/* Aureterra: build a quote, send it, follow the shipment */
.qb { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 16px; }
.qb-side { display: grid; gap: 10px; align-content: start; }
.qb-side span { height: 12px; border-radius: 4px; background: #ECE8E0; }
.qb-side .acc { background: var(--accent); }
.qb-main { display: grid; gap: 10px; min-width: 0; }
.qb-head { display: flex; align-items: center; gap: 10px; }
.qb-head .bar { flex: 1; }
.q-send { width: 46px; height: 20px; border-radius: 10px; background: var(--accent); }
.q-chip { width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, #fff); box-shadow: inset 0 0 0 2px var(--accent); }
.q-row { display: grid; grid-template-columns: 26px 1fr 38px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: #F6F3EC; }
.q-row .thumb { width: 26px; height: 26px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, #fff); }
.q-row .price { height: 10px; border-radius: 4px; background: #DDD7CB; }
.q-total { display: flex; justify-content: flex-end; }
.q-total span { display: block; width: 46%; height: 14px; border-radius: 5px; background: var(--accent); transform-origin: right center; }
.q-track { position: relative; display: flex; justify-content: space-between; align-items: center; height: 16px; margin-top: 4px; }
.q-track .d { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: #DDD7CB; box-shadow: 0 0 0 3px #fff; }
.q-line { position: absolute; left: 6px; right: 6px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #E8E3D9; overflow: hidden; }
.q-fill { display: block; height: 100%; background: var(--accent); transform-origin: left center; }

/* FlowerDrop: order arrives, driver follows the route, slide to deliver */
.fd .ui-map { position: relative; }
.ui-map .driver { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.ui-map .ping { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.f-done { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 80%, #000); }
.f-done svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.f-card { display: grid; grid-template-columns: 30px 1fr 34px; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: #F6F3EC; }
.f-av { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 24%, #fff); }
.f-lines { display: grid; gap: 6px; }
.f-lines span { height: 8px; border-radius: 4px; background: #DDD7CB; }
.f-lines span:first-child { width: 80%; background: #CFC9BC; }
.f-eta { height: 8px; border-radius: 4px; background: #E8E3D9; overflow: hidden; }
.f-eta i { display: block; height: 100%; background: var(--accent); transform-origin: left center; }
.f-slide { position: relative; margin-top: auto; height: 36px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 14%, #fff); }
.f-thumb { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); }

/* PharmaDrop: bulk import, ID check, signature, audit trail */
.pb { display: grid; gap: 10px; padding: 16px 16px 30px; }
.p-import { height: 10px; border-radius: 5px; background: #E8E3D9; overflow: hidden; }
.p-imp-fill { display: block; height: 100%; background: var(--accent); transform-origin: left center; }
.p-row { display: grid; grid-template-columns: 10px 1fr 14px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #F1EEE8; }
.p-row .dotl { width: 10px; height: 10px; border-radius: 50%; background: #CFC9BC; }
.p-row .lock { width: 14px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 45%, #fff); }
.pd .p-id { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 8px; height: 62px; border-radius: 10px; background: #F6F3EC; overflow: hidden; }
.p-photo { width: 26px; height: 32px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 24%, #fff); }
.p-lines { display: grid; gap: 5px; }
.p-lines span { height: 6px; border-radius: 3px; background: #DDD7CB; }
.p-lines span:first-child { width: 70%; background: #CFC9BC; }
.p-scan { position: absolute; left: 0; right: 0; top: 2%; height: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); opacity: 0; }
.p-check { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.p-check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.p-confirm { margin-top: auto; height: 24px; border-radius: 12px; background: var(--accent); }
.ui-sign .sig { stroke-dasharray: 1; }

/* timelines */
@keyframes q1 { 0% { opacity:0;transform:translateY(10px) } 6% { opacity:0;transform:translateY(10px) } 11% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(10px) } 100% { opacity:0;transform:translateY(10px) } }
@keyframes q2 { 0% { opacity:0;transform:translateY(10px) } 13% { opacity:0;transform:translateY(10px) } 18% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(10px) } 100% { opacity:0;transform:translateY(10px) } }
@keyframes q3 { 0% { opacity:0;transform:translateY(10px) } 20% { opacity:0;transform:translateY(10px) } 25% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(10px) } 100% { opacity:0;transform:translateY(10px) } }
@keyframes q4 { 0% { opacity:0;transform:translateY(10px) } 27% { opacity:0;transform:translateY(10px) } 32% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(10px) } 100% { opacity:0;transform:translateY(10px) } }
@keyframes qtotal { 0% { transform:scaleX(0) } 34% { transform:scaleX(0) } 42% { transform:scaleX(1) } 93% { transform:scaleX(1) } 97% { transform:scaleX(0) } 100% { transform:scaleX(0) } }
@keyframes qsend { 0% { transform:scale(1) } 48% { transform:scale(1) } 50% { transform:scale(.9) } 54% { transform:scale(1) } 100% { transform:scale(1) } }
@keyframes qchip { 0% { opacity:0;transform:scale(.55) } 55% { opacity:0;transform:scale(.55) } 59% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:scale(.55) } 100% { opacity:0;transform:scale(.55) } }
@keyframes qfill { 0% { transform:scaleX(0) } 62% { transform:scaleX(0) } 90% { transform:scaleX(1) } 93% { transform:scaleX(1) } 97% { transform:scaleX(0) } 100% { transform:scaleX(0) } }
@keyframes qd1 { 0% { background:#DDD7CB } 62% { background:#DDD7CB } 64% { background:var(--accent) } 93% { background:var(--accent) } 97% { background:#DDD7CB } 100% { background:#DDD7CB } }
@keyframes qd2 { 0% { background:#DDD7CB } 76% { background:#DDD7CB } 78% { background:var(--accent) } 93% { background:var(--accent) } 97% { background:#DDD7CB } 100% { background:#DDD7CB } }
@keyframes qd3 { 0% { background:#DDD7CB } 90% { background:#DDD7CB } 92% { background:var(--accent) } 93% { background:var(--accent) } 97% { background:#DDD7CB } 100% { background:#DDD7CB } }
@keyframes fcard { 0% { opacity:0;transform:translateY(22px) } 4% { opacity:0;transform:translateY(22px) } 10% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(22px) } 100% { opacity:0;transform:translateY(22px) } }
@keyframes feta { 0% { transform:scaleX(1) } 15% { transform:scaleX(1) } 70% { transform:scaleX(.12) } 93% { transform:scaleX(.12) } 97% { transform:scaleX(1) } 100% { transform:scaleX(1) } }
@keyframes fthumb { 0% { left:3px } 60% { left:3px } 70% { left:calc(100% - 33px) } 93% { left:calc(100% - 33px) } 97% { left:3px } 100% { left:3px } }
@keyframes fdone { 0% { opacity:0;transform:scale(.55) } 72% { opacity:0;transform:scale(.55) } 77% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:scale(.55) } 100% { opacity:0;transform:scale(.55) } }
@keyframes fping { 0% { transform:scale(1);opacity:0 } 70% { transform:scale(1);opacity:0 } 71% { transform:scale(1);opacity:.9 } 86% { transform:scale(3.4);opacity:0 } 100% { transform:scale(1);opacity:0 } }
@keyframes pimp { 0% { transform:scaleX(0) } 5% { transform:scaleX(0) } 30% { transform:scaleX(1) } 93% { transform:scaleX(1) } 97% { transform:scaleX(0) } 100% { transform:scaleX(0) } }
@keyframes pr1 { 0% { opacity:0;transform:translateY(10px) } 30% { opacity:0;transform:translateY(10px) } 34% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(10px) } 100% { opacity:0;transform:translateY(10px) } }
@keyframes pr2 { 0% { opacity:0;transform:translateY(10px) } 34% { opacity:0;transform:translateY(10px) } 38% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(10px) } 100% { opacity:0;transform:translateY(10px) } }
@keyframes pr3 { 0% { opacity:0;transform:translateY(10px) } 38% { opacity:0;transform:translateY(10px) } 42% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(10px) } 100% { opacity:0;transform:translateY(10px) } }
@keyframes pr4 { 0% { opacity:0;transform:translateY(10px) } 42% { opacity:0;transform:translateY(10px) } 46% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(10px) } 100% { opacity:0;transform:translateY(10px) } }
@keyframes paudit { 0% { background-color:#F1EEE8 } 70% { background-color:#F1EEE8 } 74% { background-color:color-mix(in srgb, var(--accent) 24%, #fff) } 93% { background-color:color-mix(in srgb, var(--accent) 24%, #fff) } 97% { background-color:#F1EEE8 } 100% { background-color:#F1EEE8 } }
@keyframes pscan { 0% { opacity:0;top:2% } 8% { opacity:1;top:2% } 34% { opacity:1;top:92% } 36% { opacity:0;top:92% } 100% { opacity:0;top:2% } }
@keyframes pid { 0% { opacity:0;transform:translateY(10px) } 2% { opacity:0;transform:translateY(10px) } 8% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:translateY(10px) } 100% { opacity:0;transform:translateY(10px) } }
@keyframes pcheck { 0% { opacity:0;transform:scale(.55) } 38% { opacity:0;transform:scale(.55) } 42% { opacity:1;transform:none } 93% { opacity:1;transform:none } 97% { opacity:0;transform:scale(.55) } 100% { opacity:0;transform:scale(.55) } }
@keyframes psig { 0% { stroke-dashoffset:1 } 44% { stroke-dashoffset:1 } 62% { stroke-dashoffset:0 } 93% { stroke-dashoffset:0 } 97% { stroke-dashoffset:1 } 100% { stroke-dashoffset:1 } }
@keyframes pconf { 0% { opacity:.3 } 64% { opacity:.3 } 68% { opacity:1 } 93% { opacity:1 } 97% { opacity:.3 } 100% { opacity:.3 } }
@keyframes flow { 0% { stroke-dashoffset:0 } 100% { stroke-dashoffset:-14 } }

.q-row { animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: ease-out; }
.q1 { animation-name: q1; } .q2 { animation-name: q2; } .q3 { animation-name: q3; } .q4 { animation-name: q4; }
.q-total span { animation: qtotal 9s ease-out infinite; }
.q-send { animation: qsend 9s ease-in-out infinite; }
.q-chip { animation: qchip 9s ease-out infinite; }
.q-fill { animation: qfill 9s linear infinite; }
.q-track .d1 { animation: qd1 9s infinite; } .q-track .d2 { animation: qd2 9s infinite; } .q-track .d3 { animation: qd3 9s infinite; }

.ui-map .route { animation: flow 1.1s linear infinite; }
.ui-map .ping { animation: fping 9s ease-out infinite; }
.f-card { animation: fcard 9s ease-out infinite; }
.f-eta i { animation: feta 9s linear infinite; }
.f-thumb { animation: fthumb 9s ease-in-out infinite; }
.f-done { animation: fdone 9s ease-out infinite; }

.p-imp-fill { animation: pimp 9s ease-in-out infinite; }
.pr1 { animation: pr1 9s ease-out infinite, paudit 9s ease-in-out infinite; }
.pr2 { animation: pr2 9s ease-out infinite; } .pr3 { animation: pr3 9s ease-out infinite; } .pr4 { animation: pr4 9s ease-out infinite; }
.p-id { animation: pid 9s ease-out infinite; }
.p-scan { animation: pscan 9s ease-in-out infinite; }
.p-check { animation: pcheck 9s ease-out infinite; }
.ui-sign .sig { animation: psig 9s ease-in-out infinite; }
.p-confirm { animation: pconf 9s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .case-visual *, .case-visual *::before { animation: none !important; }
  .p-scan, .ui-map .ping { display: none; }
  .ui-sign .sig { stroke-dashoffset: 0; }
}

/* ---------------- scene captions ---------------- */
.case-visual { padding-bottom: 72px; }
.scene-cap {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: grid; justify-items: center; align-items: center;
  padding: 9px 16px 9px 30px; border-radius: 999px;
  background: #fff; border: 1px solid #DDD7CB; color: var(--ink);
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  box-shadow: 0 10px 24px -16px rgba(20, 20, 19, .4);
}
.scene-cap::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--accent);
}
.scene-cap span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; }
@keyframes capa1 { 0% { opacity:1 } 50% { opacity:1 } 52% { opacity:0 } 98% { opacity:0 } 100% { opacity:1 } }
@keyframes capa2 { 0% { opacity:0 } 55% { opacity:0 } 57% { opacity:1 } 70% { opacity:1 } 72% { opacity:0 } 100% { opacity:0 } }
@keyframes capa3 { 0% { opacity:0 } 74% { opacity:0 } 76% { opacity:1 } 93% { opacity:1 } 95% { opacity:0 } 100% { opacity:0 } }
@keyframes capf1 { 0% { opacity:1 } 12% { opacity:1 } 14% { opacity:0 } 98% { opacity:0 } 100% { opacity:1 } }
@keyframes capf2 { 0% { opacity:0 } 15% { opacity:0 } 17% { opacity:1 } 68% { opacity:1 } 70% { opacity:0 } 100% { opacity:0 } }
@keyframes capf3 { 0% { opacity:0 } 72% { opacity:0 } 74% { opacity:1 } 93% { opacity:1 } 95% { opacity:0 } 100% { opacity:0 } }
@keyframes capp1 { 0% { opacity:1 } 33% { opacity:1 } 35% { opacity:0 } 98% { opacity:0 } 100% { opacity:1 } }
@keyframes capp2 { 0% { opacity:0 } 36% { opacity:0 } 38% { opacity:1 } 42% { opacity:1 } 44% { opacity:0 } 100% { opacity:0 } }
@keyframes capp3 { 0% { opacity:0 } 45% { opacity:0 } 47% { opacity:1 } 67% { opacity:1 } 69% { opacity:0 } 100% { opacity:0 } }
@keyframes capp4 { 0% { opacity:0 } 70% { opacity:0 } 72% { opacity:1 } 93% { opacity:1 } 95% { opacity:0 } 100% { opacity:0 } }
.case-a .scene-cap .c1 { animation: capa1 9s ease-in-out infinite; }
.case-a .scene-cap .c2 { animation: capa2 9s ease-in-out infinite; }
.case-a .scene-cap .c3 { animation: capa3 9s ease-in-out infinite; }
.case-f .scene-cap .c1 { animation: capf1 9s ease-in-out infinite; }
.case-f .scene-cap .c2 { animation: capf2 9s ease-in-out infinite; }
.case-f .scene-cap .c3 { animation: capf3 9s ease-in-out infinite; }
.case-p .scene-cap .c1 { animation: capp1 9s ease-in-out infinite; }
.case-p .scene-cap .c2 { animation: capp2 9s ease-in-out infinite; }
.case-p .scene-cap .c3 { animation: capp3 9s ease-in-out infinite; }
.case-p .scene-cap .c4 { animation: capp4 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .scene-cap span { animation: none !important; }
  .scene-cap span:last-child { opacity: 1; }
}
@keyframes qtot { 0% { opacity:0; transform:translateY(10px) } 34% { opacity:0; transform:translateY(10px) } 40% { opacity:1; transform:none } 93% { opacity:1; transform:none } 97% { opacity:0; transform:translateY(10px) } 100% { opacity:0; transform:translateY(10px) } }
@keyframes plog { 0% { opacity:0 } 70% { opacity:0 } 74% { opacity:1 } 93% { opacity:1 } 97% { opacity:0 } 100% { opacity:0 } }

/* ---------------- example content inside the scenes ---------------- */
.sc { color: var(--ink); font-size: 11px; line-height: 1.25; }
.sc [data-i18n] { font-variant-numeric: tabular-nums; }

/* Aureterra */
.qb { grid-template-columns: 64px 1fr; gap: 12px; }
.qb-side { gap: 12px; padding-top: 3px; }
.qb-side span { height: auto; background: none; border-radius: 0; font-size: 10px; font-weight: 600; color: #5C584F; white-space: nowrap; }
.qb-side .acc { background: none; color: var(--ink); font-weight: 800; box-shadow: -8px 0 0 -6px var(--accent); }
.qb-side .acc::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 2px; background: var(--accent); }
.q-title { flex: 1; min-width: 0; font-size: 11px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-send { width: auto; height: auto; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; color: #fff; }
.q-row { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 5px 8px; gap: 8px; }
.q-row .thumb { width: 24px; height: 24px; }
.q-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-price { height: auto; background: none; font-weight: 700; text-align: right; }
.q-total { animation: qtot 9s ease-out infinite; justify-content: space-between; align-items: baseline; padding: 4px 8px 0; }
.q-total span { width: auto; height: auto; background: none; border-radius: 0; animation: none; transform: none; display: inline; }
.q-total span:first-child { font-weight: 600; color: #5C584F; }
.q-total span:last-child { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.q-labels { display: flex; justify-content: space-between; margin-top: -4px; font-size: 9px; font-weight: 600; color: #5C584F; }
.q-labels span { flex: 1; text-align: center; }
.q-labels span:first-child { text-align: left; } .q-labels span:last-child { text-align: right; }

/* FlowerDrop */
.f-from, .f-to { position: absolute; padding: 2px 6px; border-radius: 6px; background: #fff; font-size: 9px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px -3px rgba(20, 20, 19, .4); }
.f-from { left: 22px; bottom: 6px; }
.f-to { right: 20px; top: 6px; }
.f-card { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: 8px; padding: 8px 8px 10px; }
.f-av { display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--accent); }
.f-lines { gap: 2px; min-width: 0; }
.f-lines span { height: auto; background: none; border-radius: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-lines .f-t1 { width: auto; background: none; font-size: 10px; font-weight: 800; color: var(--ink); }
.f-lines .f-t2 { font-size: 9px; color: #5C584F; }
.f-etat { font-size: 11px; font-weight: 800; color: var(--accent); }
.f-eta { grid-column: 1 / -1; height: 5px; }
.f-st { position: absolute; inset: 0 0 0 38px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0A4A43; }

/* PharmaDrop */
.pb { gap: 8px; }
.p-title { font-size: 11px; font-weight: 800; letter-spacing: -0.01em; }
.p-row { grid-template-columns: 10px minmax(0, 1fr) auto 14px; gap: 8px; }
.p-name { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-log { font-size: 9px; font-weight: 800; color: var(--accent); opacity: 0; animation: plog 9s ease-out infinite; }
.pd .p-lines { gap: 3px; min-width: 0; }
.pd .p-lines span { height: auto; background: none; border-radius: 0; font-size: 9px; line-height: 1.2; white-space: nowrap; width: auto; color: #5C584F; }
.pd .p-lines span:first-child { font-weight: 800; color: var(--ink); }
.pd .ui-sign { position: relative; }
.p-signl { position: absolute; left: 7px; top: 4px; font-size: 8px; font-weight: 600; color: #5C584F; }
.pd .ui-sign svg { margin-top: 6px; }
.p-confirm { display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }

@media (prefers-reduced-motion: reduce) { .p-log { opacity: 1; animation: none !important; } }

/* example-content fixes */
.phone-mock.fd { width: 184px; }
.f-card { grid-template-columns: 30px minmax(0, 1fr); }
.f-prog { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.f-prog .f-eta { flex: 1; grid-column: auto; }
.f-etat { white-space: nowrap; }
@keyframes fst { 0% { opacity: 1 } 56% { opacity: 1 } 64% { opacity: 0 } 93% { opacity: 0 } 97% { opacity: 1 } 100% { opacity: 1 } }
.f-st { animation: fst 9s ease-in-out infinite; }
.pd .p-check { top: auto; bottom: 6px; right: 6px; }
@media (prefers-reduced-motion: reduce) { .f-st { animation: none !important; } }

/* fit inside the card on narrow screens */
.case-visual > * { min-width: 0; }
.browser { min-width: 0; max-width: 100%; }
.qb { grid-template-columns: 64px minmax(0, 1fr); }
.pb { min-width: 0; }
.pd .p-check { left: 22px; right: auto; bottom: 7px; width: 16px; height: 16px; }
.pd .p-check svg { width: 10px; height: 10px; }
@media (max-width: 899px) {
  .browser-narrow { margin-right: 44px; }
  .phone-mini { right: 10px; }
  .q-labels { font-size: 8px; }
}
.case-visual { grid-template-columns: minmax(0, 1fr); }
.case-visual > .browser, .case-visual > .phone-mock:not(.phone-mini) { justify-self: center; }

/* final fit fixes */
.qb-main { grid-template-columns: minmax(0, 1fr); }
.browser { max-width: 420px; }
.browser-narrow { max-width: 340px; }
@media (max-width: 899px) {
  .browser-narrow { width: calc(100% - 44px); margin-right: 0; margin-left: 0; justify-self: start; }
}
@media (max-width: 899px) { .case-visual > .browser-narrow { justify-self: start; } }
