/* =========================================================
   Ordbee product site + /demo — „Топла работилница“
   Mobile-first: base styles are the phone layout, min-width
   queries add the desktop layout. CSP: no inline styles.
   ========================================================= */

/* Self-hosted Sofia Sans (same files as the app; CSP allows only 'self'). */
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/sofia-sans-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/sofia-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --honey: #F2B33D;
  --honey-deep: #E8900C;
  --honey-text: #B86A00;
  --honey-soft: #FBE6B8;
  --honey-wash: #FDF3DC;
  --ink: #1E1A16;
  --ink-2: #4A423A;
  --ink-3: #74695D;
  --paper: #F6F2EC;
  --paper-2: #EFE8DE;
  --card: #FFFDF9;
  --line: #E3D9CB;
  --line-strong: #CFC2B0;
  --on-dark: #CFC5B8;

  --brand: #B8456B;      /* demo business (Sweet Studio) */
  --brand-ink: #FFFFFF;

  --ok: #2F8A5B;
  --st-sent: #5B7FA6;
  --st-draft: #9A8F82;
  --danger: #C0452B;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(30, 26, 22, .06), 0 2px 8px rgba(30, 26, 22, .04);
  --shadow: 0 2px 4px rgba(30, 26, 22, .04), 0 12px 32px rgba(30, 26, 22, .08);
  --shadow-lg: 0 4px 8px rgba(30, 26, 22, .05), 0 30px 60px -10px rgba(30, 26, 22, .22);

  --font: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: 16px;
  --header-h: 60px;
  --sec: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

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

/* ---------- Buttons & small parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-honey { background: var(--honey); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(232, 144, 12, .7); }
.btn-honey:hover { background: #F5BF55; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #3A332C; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--card); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--honey-text); margin-bottom: 12px; }
.hex-dot { width: 11px; height: 12px; flex: none; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lead { font-size: 18px; color: var(--ink-2); }
.tag { display: inline-block; font-size: 13px; font-weight: 800; background: var(--honey-soft); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }

.st { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; white-space: nowrap; }
.st-confirmed { background: var(--ok); }
.st-sent { background: var(--st-sent); }
.st-draft { background: var(--st-draft); }

.th { display: inline-block; width: 40px; height: 40px; border-radius: 9px; flex: none; }
.th1 { background: radial-gradient(circle at 50% 35%, #fff 0 22%, transparent 23%), linear-gradient(160deg, #F4CAD6, #E8A0B6); }
.th2 { background: radial-gradient(circle at 30% 60%, #fff 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #fff 0 14%, transparent 15%), linear-gradient(160deg, #F7E3C4, #EBC690); }
.th3 { background: repeating-linear-gradient(45deg, #D9E8EF 0 6px, #C6DCE6 6px 12px); }
.th.add { border: 1.5px dashed #D6CCBF; color: var(--ink-3); font-weight: 700; font-size: 18px; display: inline-grid; place-items: center; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 20px; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.ticks.sm li { font-size: 16px; }

.hex-field {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.4L28 64.8 0 48.6V16.2zM28 64.8l28 16.2M28 64.8L0 81' fill='none' stroke='%23E3D9CB' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 70%);
}
.hex-field-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16.2v32.4L28 64.8 0 48.6V16.2zM28 64.8l28 16.2M28 64.8L0 81' fill='none' stroke='%23F2B33D' stroke-opacity='.14' stroke-width='1.2'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 10% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 10% 0%, #000 0%, transparent 70%);
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
/* Blur lives on a pseudo-element so it doesn't trap the fixed mobile menu. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(246, 242, 236, .88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 32px; width: auto; }
.nav-toggle { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
  display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; background: var(--paper); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav.is-open { visibility: visible; opacity: 1; transform: none; }
.nav a:not(.btn) { text-decoration: none; font-size: 20px; font-weight: 800; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav-cta { margin-top: 20px; min-height: 54px; font-size: 17px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--sec) 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 7.4vw, 44px); font-weight: 900; }
.section-head .lead { margin-top: 12px; }
.section-head.on-dark h2 { color: var(--paper); }
.section-head.on-dark .lead { color: var(--on-dark); }
.section-head.on-dark .eyebrow { color: var(--honey); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 24px 0 40px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; }
.hero h1 { font-size: clamp(34px, 9.4vw, 64px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--honey-soft) 62%, var(--honey-soft) 92%, transparent 92%); }
.hero .lead { margin-bottom: 20px; }
.hero-actions { display: grid; gap: 10px; margin-bottom: 16px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.hero-proof li { display: flex; align-items: center; gap: 6px; }
.hero-proof li::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--honey); color: var(--ink); font-size: 10px; font-weight: 900; }

/* Transformation story: DM → link → fill → confirmed */
.story { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: s; }
.story-step { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.story-card {
  height: 150px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 10px; overflow: hidden; font-size: 11.5px; line-height: 1.3;
  display: flex; flex-direction: column; gap: 5px;
  animation: storyGlow 8s ease-in-out infinite;
}
.story-step:nth-child(2) .story-card { animation-delay: 2s; }
.story-step:nth-child(3) .story-card { animation-delay: 4s; }
.story-step:nth-child(4) .story-card { animation-delay: 6s; }
@keyframes storyGlow {
  0%, 22% { border-color: var(--honey); box-shadow: 0 0 0 3px var(--honey-soft), var(--shadow); transform: translateY(-3px); }
  28%, 100% { border-color: var(--line); box-shadow: var(--shadow-sm); transform: none; }
}
.story-cap { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; line-height: 1.2; }
.story-n { flex: none; display: grid; place-items: center; width: 22px; height: 24px; background: var(--honey); font-size: 12px; font-weight: 900; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

.dm-head, .ig-top { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 11px; }
.ig-ring { flex: none; width: 22px; height: 22px; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, #F9CE34, #EE2A7B, #6228D7, #F9CE34); display: grid; place-items: center; font-style: normal; }
.ig-ring b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #F2D5DF; color: #8C2E50; font-size: 9px; border: 1.5px solid #fff; }
.bub { max-width: 88%; padding: 6px 9px; border-radius: 14px; font-size: 11px; line-height: 1.3; }
.bub.in { background: #EFEAE4; align-self: flex-start; border-bottom-left-radius: 4px; }
.bub.out { background: linear-gradient(135deg, #7B4DDB, #C43DAE); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 3px; padding: 8px 10px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #B3A99D; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.sc-link { justify-content: center; }
.link-prev { display: flex; align-items: center; gap: 7px; align-self: flex-end; max-width: 94%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; box-shadow: var(--shadow-sm); }
.link-prev b { display: block; font-size: 10.5px; }
.link-prev small { display: block; font-size: 9.5px; color: var(--ink-3); }
.lp-logo { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.mf { display: grid; gap: 1px; border: 1.5px solid #E4DDD4; border-radius: 8px; padding: 4px 7px; background: #fff; }
.mf small { font-size: 9px; font-weight: 700; color: var(--ink-3); }
.mf span { font-weight: 700; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-photo { grid-template-columns: auto auto 1fr; align-items: center; gap: 5px; border-style: dashed; }
.mf-photo small { grid-column: 1 / -1; }
.mf-photo .th { width: 24px; height: 24px; border-radius: 6px; }
.sc-done { align-items: center; justify-content: center; text-align: center; background: #F1F8F3; border-color: #CDE7D6; }
.sc-done b { font-size: 15px; color: var(--ok); }
.sc-done small { font-size: 10.5px; color: var(--ink-2); }
.done-big { width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 900; }

/* ---------- Problem ---------- */
.problem { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scraps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.scrap p { font-size: 17px; line-height: 1.2; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.src i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.scrap-viber { --c: #7360F2; }
.scrap-ig { --c: #E1306C; }
.scrap-phone { --c: #2F8A5B; }
.scrap-chat { --c: #5B7FA6; }
.scrap-bit { font-size: 12.5px; color: var(--ink-3); background: var(--card); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 5px 8px; margin-top: auto; }
.scrap-photo { display: flex; gap: 6px; border: 0; padding: 0; background: none; }
.scrap-photo .th { width: 34px; height: 34px; }

.resolve { display: grid; gap: 18px; align-items: center; margin-bottom: 32px; }
.resolve h2 { font-size: clamp(28px, 7.4vw, 46px); font-weight: 900; }
.resolve h2 span { color: var(--honey-text); }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px; }
.oc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.oc-head b { font-size: 17px; }
.order-card dl { margin: 0; display: grid; gap: 0; }
.order-card dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--paper-2); }
.order-card dt { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.order-card dd { margin: 0; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.order-card dd .th { width: 30px; height: 30px; }
.order-card dd::after { content: "✓"; margin-left: auto; color: var(--ok); font-weight: 900; }

.results { display: grid; gap: 12px; }
.results article { border-left: 4px solid var(--honey); padding: 4px 0 4px 14px; }
.results h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.results p { font-size: 16px; color: var(--ink-2); }

/* ---------- How: animated player ---------- */
.player { display: grid; gap: 18px; }
.stage { position: relative; height: 470px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.stage[data-active="phone"] .laptop, .stage[data-active="both"] .laptop { display: none; }
.stage[data-active="laptop"] .phone { display: none; }
.dev { transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.appear { animation: appear .4s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

.laptop { width: calc(100% - 24px); max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; }
.screen-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.url { font-size: 11.5px; color: var(--ink-3); background: var(--card); padding: 2px 10px; border-radius: 6px; }
.lp-body { position: relative; padding: 16px; display: grid; gap: 12px; min-height: 330px; align-content: start; }
.lp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-head b { font-size: 19px; font-weight: 900; margin-right: 2px; }
.timer-chip { margin-left: auto; font-size: 11.5px; font-weight: 800; background: var(--honey-wash); color: var(--honey-text); padding: 3px 9px; border-radius: 999px; }
.lp-field { display: grid; gap: 5px; }
.lp-field > small { font-weight: 700; color: var(--ink-3); font-size: 12px; }
.lp-field > span { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; font-weight: 700; }
.lp-items { display: grid; gap: 6px; }
.lp-item { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff; font-weight: 700; }
.lp-item b { margin-left: auto; }
.pi { width: 22px; height: 22px; border-radius: 6px; background: var(--honey-soft); display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.lp-add { border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 7px 10px; color: var(--ink-3); font-weight: 700; }
.lp-actions { display: flex; }
.lp-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 16px; border-radius: 999px; background: var(--honey); font-weight: 800; }
.lp-btn-ink { background: var(--ink); color: var(--paper); }
.toast { position: absolute; left: 16px; right: 16px; bottom: 14px; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 10px 14px; font-weight: 700; box-shadow: var(--shadow); }
.toast-bell { background: var(--ok); }

.phone { position: relative; flex: none; width: 236px; aspect-ratio: 236 / 480; background: var(--ink); border-radius: 38px; padding: 9px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #3A332C; }
.phone-notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 70px; height: 19px; background: var(--ink); border-radius: 999px; z-index: 3; }
.ph-screen, .portal { height: 100%; background: #fff; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; color: var(--ink); }
.ig-top { padding: 38px 12px 10px; border-bottom: 1px solid #F0EBE4; }
.ig-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.ig-body .bub { font-size: 12px; }
.lp-out { margin-top: 2px; }

.portal-top { display: flex; align-items: center; gap: 9px; padding: 38px 14px 11px; background: var(--brand); color: var(--brand-ink); }
.portal-logo { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-ink); color: var(--brand); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.portal-biz { font-weight: 800; font-size: 13px; }
.portal-sub { font-size: 11px; opacity: .85; }
.portal-scroll { flex: 1; padding: 14px 14px 10px; overflow: hidden; display: flex; flex-direction: column; gap: 9px; }
.portal-h { font-weight: 900; font-size: 16px; }
.portal-p { color: var(--ink-2); font-size: 12px; }
.portal-p.xs { font-size: 10.5px; color: var(--ink-3); }
.pf { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pf > span { font-weight: 700; font-size: 11px; color: var(--ink-2); }
.pf input, .pf-in { font-style: normal; font-size: 13px; font-weight: 600; width: 100%; border: 1.5px solid #E4DDD4; border-radius: 9px; padding: 8px 10px; background: #fff; pointer-events: none; }
.pf-missing input { border-color: #E8B0A0; background: #FFF7F4; }
.pf-missing input::placeholder { color: #B98A7C; }
.typed { display: block; white-space: nowrap; overflow: hidden; }
.appear .typed, .typed.appear { animation: typeIn 1.1s steps(18) both .2s; }
.ph-screen.appear .typed { animation: typeIn 1.1s steps(18) both .3s; }
@keyframes typeIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ph-screen.appear .pop { animation: appear .4s ease both 1.4s; }
.thumbs { display: flex; gap: 6px; }
.thumbs.big .th { width: 46px; height: 46px; }
.portal-cta { padding: 10px 12px 14px; border-top: 1px solid #F0EBE4; }
.portal-btn { display: block; text-align: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 14px; padding: 12px; border-radius: 12px; }
.ph-screen.appear .press { animation: press .5s ease 2.1s both; }
@keyframes press { 50% { transform: scale(.95); filter: brightness(1.12); } }
.confirmed-view { justify-content: center; align-items: center; text-align: center; gap: 10px; }
.big-check { width: 60px; height: 60px; border-radius: 50%; background: #E3F2E9; color: var(--ok); display: grid; place-items: center; font-size: 28px; font-weight: 900; }
.progress { height: 6px; background: #F0EBE4; border-radius: 99px; overflow: hidden; }
.progress i { display: block; width: 66%; height: 100%; background: var(--brand); }
.request { background: #F7F4F0; border-radius: 12px; padding: 10px; }
.request small { font-size: 10px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.request p { font-weight: 700; margin: 3px 0 8px; font-size: 12.5px; }
.req-reply { background: #fff; border: 1.5px solid var(--brand); border-radius: 9px; padding: 7px 9px; font-weight: 600; }

.stage { height: 460px; }
.stage .phone { width: 212px; }
.player-side { display: grid; gap: 14px; align-content: start; }
/* Phone: the timeline acts as a caption — only the current step is shown. */
.timeline li:not(.is-on) { display: none; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.timeline button {
  width: 100%; display: grid; grid-template-columns: 50px 1fr; gap: 10px; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 9px 10px; color: var(--ink-3); font-size: 16px; line-height: 1.35;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.timeline time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.timeline li.is-on button { background: var(--card); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.timeline li.is-on time { color: var(--honey-text); }
.timeline li.is-done button { color: var(--ink-2); }
.player-controls { display: flex; align-items: center; gap: 12px; }
.play-btn { flex: none; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.play-btn::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.play-btn[aria-pressed="true"]::before { width: 9px; height: 11px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.progress-track { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; background: var(--honey-deep); border-radius: 99px; transition: width .3s ease; }
.player-note { font-weight: 800; color: var(--ok); }

/* ---------- Split ---------- */
.split { background: var(--paper-2); }
.split-grid { display: grid; gap: 12px; }
.split-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.split-col h3 { font-size: 20px; font-weight: 900; margin-bottom: 12px; display: grid; gap: 8px; justify-items: start; }
.split-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.split-col li { position: relative; padding-left: 20px; font-size: 16px; color: var(--ink-2); }
.split-col li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 9px; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.who-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--honey-soft); }
.who-tag-client { background: #F6D9E3; color: #8C2E50; }
.who-tag-sys { background: var(--honey); color: var(--ink); }
.split-sys { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.split-sys li { color: var(--on-dark); }

/* ---------- Client view ---------- */
.client { background: var(--ink); color: var(--paper); overflow: hidden; }
.client .wrap { position: relative; z-index: 1; }
.phones { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px var(--gutter) 6px; margin: 0 calc(-1 * var(--gutter)) 24px; }
.phones::-webkit-scrollbar { display: none; }
.phone-fig { margin: 0; flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone-fig .phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 2px #4A423A; background: #0E0C0A; }
.phone-fig .phone-notch { background: #0E0C0A; }
.phone-fig figcaption { text-align: center; max-width: 236px; color: var(--on-dark); font-size: 15px; }
.phone-fig figcaption b { display: block; color: var(--paper); font-size: 17px; margin-bottom: 2px; }
.client-foot { display: grid; gap: 18px; }
.client-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.client-points li { border: 1px solid rgba(246, 242, 236, .16); border-radius: var(--r); padding: 10px 12px; font-size: 14.5px; font-weight: 700; color: var(--paper); }

/* ---------- Fields ---------- */
.fields-grid { display: grid; gap: 24px; }
.fields-copy h2 { font-size: clamp(28px, 7.4vw, 42px); font-weight: 900; margin-bottom: 12px; }
.fields-copy > p { color: var(--ink-2); margin-bottom: 16px; }
.tabs { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.tab-list { display: flex; gap: 4px; padding: 6px; background: var(--paper-2); overflow-x: auto; scrollbar-width: none; }
.tab-list button { flex: 1 0 auto; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; font-weight: 800; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { padding: 14px; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qlist li { display: grid; grid-template-columns: 1fr auto 14px; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; }
.qlist span { font-weight: 700; font-size: 15.5px; }
.qlist em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: var(--paper); padding: 2px 8px; border-radius: 6px; }
.qlist b { color: var(--danger); }
.qlist .q-int { border-style: dashed; border-color: var(--honey); background: var(--honey-wash); }
.qlist .q-int em { background: var(--honey-soft); color: var(--honey-text); }
.all-features { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.all-features summary { cursor: pointer; padding: 14px 18px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.all-features summary::-webkit-details-marker { display: none; }
.all-features summary::after { content: "+"; font-weight: 900; }
.all-features[open] summary::after { content: "–"; }
.all-features ul { margin: 0; padding: 0 18px 18px 36px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Who ---------- */
.who { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.verticals { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verticals li { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font-size: 15.5px; }
.verticals .v-main { grid-column: 1 / -1; background: var(--honey-wash); border-color: #F1D696; flex-wrap: wrap; }
.verticals .v-main b { font-size: 18px; }
.verticals .v-main small { flex-basis: 100%; padding-left: 50px; margin-top: -6px; color: var(--ink-2); font-size: 14px; }
.v-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.v-ico svg { width: 24px; height: 24px; }
.v-main .v-ico { background: var(--honey); border-color: var(--honey); }
.objections { display: grid; gap: 12px; }
.objections article { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 20px; }
.objections h3 { font-size: 21px; font-weight: 900; margin-bottom: 8px; color: var(--honey); }
.objections p { color: var(--on-dark); font-size: 16px; }

/* ---------- Trust ---------- */
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust-list li { position: relative; padding-left: 52px; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: 0; width: 38px; height: 42px; background: var(--ink); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.trust-list li::after { content: ""; position: absolute; left: 14px; top: 16px; width: 10px; height: 6px; border-left: 2.5px solid var(--honey); border-bottom: 2.5px solid var(--honey); transform: rotate(-45deg); }
.trust-list h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.trust-list p { font-size: 15.5px; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.pricing { background: var(--paper-2); }
.price-grid { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 24px 20px; box-shadow: var(--shadow-lg); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 58px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.price span { font-weight: 800; font-size: 22px; }
.price small { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.plan .ticks { margin: 18px 0 20px; }
.plan-fine { text-align: center; margin-top: 10px; font-weight: 700; font-size: 15px; }
.plan-trial { display: inline-block; margin: 10px 0 2px; padding: 5px 12px; border-radius: 999px; background: var(--honey-soft); color: var(--honey-text); font-weight: 800; font-size: 14px; }
.plan-note { text-align: center; margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.roi { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 15px; color: var(--ink-2); text-align: center; }
.dfy { background: var(--honey-wash); border: 1px solid #F1D696; border-radius: var(--r-lg); padding: 22px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dfy .tag { background: var(--honey); margin-bottom: 0; }
.dfy h3 { font-size: 24px; font-weight: 900; }
.dfy p { color: var(--ink-2); font-size: 16px; }
.dfy .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 16px; }
.faq h2 { font-size: clamp(28px, 7.4vw, 44px); font-weight: 900; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-weight: 800; font-size: 17px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 800; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--honey); }
.faq-list details p { padding: 0 40px 18px 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Start ---------- */
.start { background: var(--ink); color: var(--paper); overflow: hidden; }
.start-inner { position: relative; z-index: 1; max-width: 720px; text-align: center; }
.start .eyebrow { color: var(--honey); }
.start h2 { font-size: clamp(30px, 8vw, 50px); font-weight: 900; margin-bottom: 12px; }
.start .lead { color: var(--on-dark); margin-bottom: 22px; }
.start-form { display: grid; gap: 10px; background: var(--card); padding: 8px; border-radius: 20px; }
.start-form input { min-height: 54px; border: 0; border-radius: 14px; padding: 0 16px; font-size: 17px; background: #fff; color: var(--ink); }
.start-form input:focus { outline: 3px solid var(--honey); outline-offset: 0; }
.start-form.has-error input { outline: 2px solid var(--danger); }
.form-note { min-height: 1.4em; margin-top: 10px; font-weight: 700; }
.form-note.ok { color: #7FD3A3; }
.form-note.err { color: #F4A58F; }
.start-fine { color: var(--on-dark); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { background: #15120F; color: #B9AE9F; padding: 44px 0 96px; }
.footer-inner { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(246, 242, 236, .1); }
.footer-brand img { height: 36px; width: auto; margin-bottom: 10px; }
.footer-brand p { font-size: 15px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.footer-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: #E6DDD1; }
.footer-nav a:hover { color: var(--honey); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 18px; font-size: 13.5px; }
.made-by { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.made-by a { display: inline-flex; align-items: center; border-radius: 4px; transition: opacity .15s; }
.made-by a:hover { opacity: .8; }
.made-by a:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }
/* The wordmark's lowercase body sits low in the image; lift it so it centres on the text. */
.made-by img { display: block; height: 22px; width: auto; transform: translateY(-2px); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 242, 236, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); animation: slideUp .25s ease both;
}
.sticky-cta .btn { min-height: 46px; font-size: 15.5px; padding: 10px 12px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }

/* Reveal on scroll (added by JS) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; --sec: 72px; }
  .hero-actions { display: flex; flex-wrap: wrap; }
  .story { grid-template-columns: repeat(4, 1fr); }
  .scraps { grid-template-columns: repeat(4, 1fr); }
  .scrap:nth-child(odd) { transform: rotate(-1.2deg); }
  .scrap:nth-child(even) { transform: rotate(1deg) translateY(6px); }
  .split-grid, .results { grid-template-columns: repeat(3, 1fr); }
  .objections { grid-template-columns: 1fr 1fr; }
  .trust-list { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .verticals { grid-template-columns: repeat(4, 1fr); }
  .client-points { grid-template-columns: repeat(4, 1fr); }
  .start-form { grid-template-columns: 1fr auto; }
  .footer-nav { grid-template-columns: repeat(3, auto); }
  .stage { height: 480px; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 960px) {
  :root { --header-h: 70px; --sec: 88px; }
  body { font-size: 18px; }
  .lead { font-size: 20px; }
  .brand img { height: 38px; }
  .nav-toggle { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 22px; padding: 0; background: none; overflow: visible; visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { font-size: 15.5px; font-weight: 600; color: var(--ink-2); padding: 0; border: 0; }
  .nav a:not(.btn):hover { color: var(--ink); }
  .nav-login { padding-left: 18px !important; border-left: 1px solid var(--line-strong) !important; }
  .nav-cta { margin: 0; min-height: 40px; font-size: 15px; }

  .section-head { margin-bottom: 40px; }
  .hero { padding: 56px 0 72px; }
  .hero-copy { text-align: center; margin: 0 auto; max-width: 940px; }
  .hero .eyebrow, .hero-actions, .hero-proof { justify-content: center; }
  .hero .lead { max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 26px; }
  .story { margin-top: 48px; gap: 36px; }
  .story-step { position: relative; }
  .story-step:not(:last-child)::after { content: "→"; position: absolute; right: -28px; top: 64px; font-size: 22px; font-weight: 900; color: var(--line-strong); }
  .story-card { height: 170px; padding: 12px; font-size: 12.5px; }
  .story-cap { font-size: 16px; }

  .resolve { grid-template-columns: 1.1fr 1fr; gap: 48px; margin-bottom: 44px; }
  .scraps { margin-bottom: 48px; }
  .scrap { padding: 16px; }
  .scrap p { font-size: 19px; }

  .player { grid-template-columns: 1.45fr 1fr; gap: 36px; align-items: center; }
  .timeline li:not(.is-on) { display: block; }
  .stage { height: 500px; display: block; }
  .stage .phone { width: 236px; }
  .stage .laptop, .stage .phone { display: block !important; position: absolute; }
  .stage .laptop { left: 20px; top: 44px; width: calc(100% - 290px); }
  .stage .phone { right: 24px; top: 10px; }
  .stage .phone .ph-screen, .stage .phone .portal { display: flex; }
  .stage .phone .ph-screen[hidden] { display: none !important; }
  .stage[data-active="phone"] .laptop, .stage[data-active="laptop"] .phone { filter: saturate(.35) brightness(.96); transform: scale(.96); }

  .phones { justify-content: center; overflow: visible; gap: 40px; padding: 0; margin: 0 0 40px; }
  .phone-fig:nth-child(2) { position: relative; top: -24px; }
  .client-foot { grid-template-columns: 1fr auto; align-items: center; }

  .fields-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .verticals { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .verticals .v-main { grid-column: auto; }
  .verticals li { flex-direction: column; align-items: flex-start; }
  .verticals .v-main { flex-wrap: nowrap; }
  .verticals .v-main small { flex-basis: auto; padding-left: 0; margin-top: -4px; }
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .trust-list li { padding-left: 0; padding-top: 56px; }
  .price-grid { grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
  .plan { padding: 32px; }
  .dfy { padding: 32px; }
  .faq-grid { grid-template-columns: .7fr 1.3fr; gap: 56px; }
  .faq-list summary { font-size: 19px; padding: 20px 44px 20px 0; }
  .site-footer { padding-bottom: 28px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .sticky-cta { display: none !important; }
}

/* =========================================================
   /demo — interactive customer view
   ========================================================= */
.demo-body { background: var(--paper-2); }
.demo-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 8px var(--gutter); background: var(--ink); color: var(--paper); font-size: 13.5px; }
.demo-bar p { color: var(--on-dark); line-height: 1.3; }
.demo-bar b { color: var(--honey); }
.demo-back { flex: none; display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; color: var(--paper); }
.demo-back img { width: 26px; height: 26px; }

.dp { max-width: 540px; margin: 0 auto; background: var(--paper); min-height: 100vh; }
.dp-brand { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--brand); color: var(--brand-ink); }
.dp-brand b { display: block; font-size: 17px; }
.dp-brand small { font-size: 13px; opacity: .85; }
.dp-logo { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-ink); color: var(--brand); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.dp-status { margin-left: auto; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .2); padding: 4px 10px; border-radius: 99px; }
.dp-status.is-ok { background: #fff; color: var(--ok); }
.dp-form { padding: 16px 16px 0; display: grid; gap: 12px; }
.dp-hero h1 { font-size: 28px; font-weight: 900; margin-bottom: 6px; }
.dp-hero p { color: var(--ink-2); font-size: 16px; }
.dp-secure { margin-top: 8px; font-size: 13.5px !important; font-weight: 700; }
.dp-alert { background: #FDECE7; color: #8E2F1B; border: 1px solid #F3C2B4; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.dp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 14px; }
.dp-card h2 { font-size: 19px; font-weight: 900; }
.dp-item { display: flex; align-items: center; gap: 10px; }
.dp-item small { color: var(--ink-3); font-size: 13.5px; }
.dp-pi { flex: none; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); display: grid; place-items: center; font-weight: 900; }
.dp-field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.dp-field > span, .dp-field legend { font-weight: 800; font-size: 15px; padding: 0; margin-bottom: 6px; }
.dp-field > span { margin-bottom: 0; }
.dp-field input[type="text"], .dp-field input[type="tel"], .dp-field input[type="date"], .dp-field select, .dp-field textarea {
  width: 100%; min-height: 50px; font-size: 16px; border: 1.5px solid #E1D8CC; border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink);
}
.dp-field textarea { resize: vertical; }
.dp-field input:focus, .dp-field select:focus, .dp-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.dp-field.is-invalid input, .dp-field.is-invalid select, .dp-field.is-invalid textarea { border-color: var(--danger); background: #FFF8F6; }
.dp-err { color: var(--danger); font-weight: 700; font-size: 14px; }
.dp-choices { display: grid; gap: 8px; }
.dp-choices label, .dp-chips label { display: flex; align-items: center; gap: 10px; min-height: 50px; border: 1.5px solid #E1D8CC; border-radius: 12px; padding: 10px 14px; background: #fff; font-weight: 700; cursor: pointer; }
.dp-choices label:has(input:checked), .dp-chips label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.dp-choices input, .dp-chips input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-chips label { min-height: 44px; padding: 8px 14px; }
.dp-field.is-invalid .dp-choices label, .dp-field.is-invalid .dp-chips label { border-color: #E8B0A0; }
.dp-upload { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; border: 1.5px dashed #D6CCBF; border-radius: 12px; background: #fff; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.dp-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dp-upload:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.dp-preview img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; }
.dp-submit { position: sticky; bottom: 0; margin: 4px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 70%, rgba(246, 242, 236, 0)); }
.dp-submit-note { text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.dp-locked { font-weight: 700; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.dp-btn { width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--brand); color: var(--brand-ink); font-weight: 900; font-size: 18px; cursor: pointer; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.dp-btn:active { transform: scale(.99); }
.dp-done { padding: 28px 16px 40px; text-align: center; display: grid; gap: 12px; justify-items: center; outline: none; }
.dp-done h1 { font-size: 28px; font-weight: 900; }
.dp-done > p { color: var(--ink-2); }
.dp-check { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 38px; font-weight: 900; animation: appear .4s ease both; }
.dp-link { background: none; border: 0; padding: 6px; font-weight: 800; color: var(--brand); text-decoration: underline; cursor: pointer; font-size: 15.5px; }
.dp-summary { width: 100%; margin: 6px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 16px; text-align: left; }
.dp-summary div { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--paper-2); font-size: 15px; }
.dp-summary div:last-child { border-bottom: 0; }
.dp-summary dt { color: var(--ink-3); font-weight: 700; }
.dp-summary dd { margin: 0; font-weight: 700; word-break: break-word; }
.dp-pitch { width: 100%; margin-top: 12px; background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 22px 18px; display: grid; gap: 10px; justify-items: center; }
.dp-pitch-k { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--honey); }
.dp-pitch h2 { font-size: 23px; font-weight: 900; }
.dp-pitch p { color: var(--on-dark); font-size: 15.5px; }
.dp-pitch .dp-link { color: var(--honey); }

@media (min-width: 640px) {
  .dp { margin-top: 24px; margin-bottom: 40px; min-height: 0; border-radius: 24px; overflow: clip; box-shadow: var(--shadow-lg); }
  .dp-submit { border-radius: 0 0 24px 24px; }
}

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

/* Legal pages (/terms) */
.legal-body { background: var(--paper); }
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 900; line-height: 1.15; }
.legal-meta { margin-top: 8px; color: var(--ink-3, #6B6157); font-size: 14px; }
.legal section { margin-top: 28px; }
.legal h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.legal p { margin: 0 0 12px; line-height: 1.65; }
.legal ul { margin: 0 0 12px; padding-left: 22px; line-height: 1.65; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; }
.legal-back { margin-top: 36px; }

/* "След потвърждението": six feature notes in two rows */
.after .results { row-gap: 24px; }
