/* =========================================================
   BabaPay — Crimson Ledger design system (Stitch)
   ========================================================= */


*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--surface-container-lowest); padding: 10px 16px; border-radius: var(--r-md);
}
.skip-link:focus { top: 16px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--ink-muted); max-width: 34ch; line-height: 1.55; }
.muted { color: var(--ink-muted); }
.accent { color: var(--primary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border: 0; border-radius: var(--r-md);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: var(--surface-container-lowest);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primary) 60%, transparent);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--primary) 75%, transparent); }
.btn-ghost { background: var(--surface-high); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-dim); }
.btn-dark { background: var(--ink); color: var(--surface-container-lowest); }
.btn-dark:hover { background: var(--on-surface); }
.btn-white { background: var(--surface-container-lowest); color: var(--primary); }
.btn-outline-light { background: transparent; color: var(--surface-container-lowest); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--surface-container-lowest) 45%, transparent); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--surface-container-lowest); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface-container-lowest) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); box-shadow: 0 6px 24px -18px color-mix(in srgb, var(--on-surface) 25%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.05em; color: var(--primary); }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav-links a { color: var(--secondary); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--primary); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-weight: 500; color: var(--secondary); }
.nav-login:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .nav-login { display: none; }
  .nav-toggle { display: block; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); padding: 12px 24px 24px;
    border-bottom: 1px solid var(--hairline);
  }
  .site-header.menu-open .nav-links a { display: block; padding: 12px 0; font-size: 1.1rem; }
  .site-header.menu-open .nav-links .mobile-only { display: block; }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
.mobile-only { display: none; }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--surface-low); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { margin-top: 16px; font-size: 1.1rem; color: var(--ink-muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 104px; }
.hero::before {
  content: ""; position: absolute; right: -12%; top: -20%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary-container) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface-mid); color: var(--ink-muted);
  font-size: .85rem; font-weight: 600;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-container); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { margin: 24px 0 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--ink-muted); font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--primary-container); flex: none; }

/* hero visual: dashboard + phone */
.hero-visual { position: relative; min-height: 560px; }
.dash {
  position: absolute; inset: 10px 0 auto 0; margin-left: 120px;
  background: var(--surface-white); border-radius: var(--r-xl);
  box-shadow: var(--shadow-float); padding: 24px; border: 1px solid var(--hairline);
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-top .brand { font-size: 1.05rem; }
.dash-top .brand img { width: 24px; height: 24px; }
.dash-chip { font-size: .78rem; font-weight: 600; color: var(--success); background: var(--surface-container-low); padding: 4px 10px; border-radius: 999px; }
.dash-label { font-size: .85rem; color: var(--ink-soft); }
.dash-amount { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; letter-spacing: -0.04em; margin: 2px 0 4px; }
.dash-amount small { font-size: 1.2rem; color: var(--ink-soft); font-weight: 700; }
.dash-delta { font-size: .85rem; color: var(--success); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin: 22px 0 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--hairline); }
.bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--primary-soft); transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
.bars span.hi { background: linear-gradient(180deg, var(--primary-container), var(--primary)); }
.bars span:nth-child(2) { animation-delay: .05s } .bars span:nth-child(3) { animation-delay: .1s }
.bars span:nth-child(4) { animation-delay: .15s } .bars span:nth-child(5) { animation-delay: .2s }
.bars span:nth-child(6) { animation-delay: .25s } .bars span:nth-child(7) { animation-delay: .3s }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar-days { display: flex; gap: 10px; font-size: .72rem; color: var(--ink-soft); }
.bar-days span { flex: 1; text-align: center; }
.tx { list-style: none; margin: 18px 0 0; padding: 0; }
.tx li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--surface-high); font-size: .9rem; }
.tx-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-low); display: grid; place-items: center; color: var(--slate-2); }
.tx-ico svg { width: 18px; height: 18px; }
.tx b { font-weight: 600; display: block; line-height: 1.3; }
.tx small { color: var(--ink-soft); font-size: .78rem; }
.tx .amt { font-weight: 700; font-family: var(--font-head); }

.phone {
  position: absolute; left: 0; top: 200px; width: 230px; z-index: 2;
  background: var(--slate); border-radius: 34px; padding: 10px;
  box-shadow: 0 40px 70px -24px color-mix(in srgb, var(--inverse-surface) 55%, transparent);
}
.phone-screen { background: var(--surface); border-radius: 26px; padding: 18px 16px 20px; }
.phone-notch { width: 70px; height: 6px; border-radius: 6px; background: var(--surface-high); margin: 0 auto 16px; }
.phone .merchant { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.phone .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--error-container); display: grid; place-items: center; font-weight: 800; color: var(--primary); font-family: var(--font-head); }
.phone .merchant b { font-size: .88rem; display: block; line-height: 1.2; }
.phone .merchant small { font-size: .72rem; color: var(--ink-soft); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.phone .price { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.04em; }
.phone .item { font-size: .78rem; color: var(--ink-muted); margin-bottom: 12px; }
.fake-input { white-space: nowrap; overflow: hidden; height: 34px; border-radius: 8px; background: var(--surface-container-lowest); border: 1px solid var(--hairline); margin-bottom: 8px; display: flex; align-items: center; padding: 0 10px; font-size: .74rem; color: var(--ink-soft); gap: 8px; }
.fake-input .card-brand { width: 22px; height: 14px; border-radius: 3px; background: linear-gradient(135deg, var(--inverse-surface), var(--secondary)); }
.fake-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .pay { margin-top: 6px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-container)); color: var(--surface-container-lowest); font-weight: 700; font-size: .85rem; display: grid; place-items: center; font-family: var(--font-head); }
.phone .secure { margin-top: 10px; font-size: .68rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; justify-content: center; }
.phone .secure svg { width: 12px; height: 12px; }

.toast-paid {
  position: absolute; right: 24px; top: 420px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-container-lowest); border-radius: 14px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-float); border: 1px solid var(--hairline);
  animation: toastIn .6s .7s cubic-bezier(.2,.8,.2,1) both;
}
.toast-paid .ok { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-container-low); color: var(--success); display: grid; place-items: center; }
.toast-paid .ok svg { width: 18px; height: 18px; }
.toast-paid b { display: block; font-size: .9rem; line-height: 1.25; }
.toast-paid small { font-size: .78rem; color: var(--ink-soft); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 600px; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 72px; }
  .hero-visual { min-height: 0; display: flex; flex-direction: column; }
  .dash { position: relative; inset: auto; margin: 0 0 0 28px; padding: 18px; }
  .phone { position: relative; left: auto; top: auto; margin: -110px 0 0 0; width: 210px; }
  .toast-paid { right: 0; top: auto; bottom: -16px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ---------- audience strip ---------- */
.audience { padding: 40px 0; background: var(--surface-low); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.audience-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.audience h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-muted); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface-white); border: 1px solid var(--hairline); border-radius: 999px; font-size: .92rem; font-weight: 500; }
.chips svg { width: 18px; height: 18px; color: var(--primary); }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile { background: var(--surface-mid); border-radius: var(--r-lg); padding: 36px; position: relative; overflow: hidden; }
.tile h3 { margin: 20px 0 10px; }
.tile p { color: var(--ink-muted); max-width: 42ch; }
.tile .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--surface-white); display: grid; place-items: center; color: var(--primary); }
.tile .ico svg { width: 24px; height: 24px; }
.t-link { grid-column: span 7; background: linear-gradient(150deg, var(--primary) 0%, var(--primary-container) 100%); color: var(--surface-container-lowest); }
.t-link h3, .t-link p { color: var(--surface-container-lowest); }
.t-link p { opacity: .88; }
.t-link .ico { background: color-mix(in srgb, var(--surface-container-lowest) 16%, transparent); color: var(--surface-container-lowest); }
.t-fraud { grid-column: span 5; }
.t-install { grid-column: span 4; }
.t-report { grid-column: span 8; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: var(--surface-white); border: 1px solid var(--hairline); }
.t-report .ico { background: var(--surface-low); }
.t-support { grid-column: span 5; background: var(--slate); }
.t-support h3 { color: var(--surface-container-lowest); } .t-support p { color: var(--success-container); }
.t-support .ico { background: color-mix(in srgb, var(--surface-container-lowest) 8%, transparent); color: var(--surface-container-lowest); }
.t-web { grid-column: span 7; background: var(--surface-white); border: 1px solid var(--hairline); }

.link-demo {
  margin-top: 28px; display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--surface-container-lowest) 12%, transparent); border: 1px solid color-mix(in srgb, var(--surface-container-lowest) 22%, transparent);
  border-radius: 10px; padding: 10px 10px 10px 16px; max-width: 460px;
}
.link-demo code { font-family: var(--font-body); font-size: .95rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-demo button { background: var(--surface-container-lowest); color: var(--primary); border: 0; border-radius: 7px; padding: 8px 14px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: var(--font-head); }
.share-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; font-size: .85rem; }
.share-row span { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--on-surface) 14%, transparent); }

.inst-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inst-list li { background: var(--surface-white); border-radius: 10px; padding: 10px; text-align: center; font-size: .8rem; color: var(--ink-soft); }
.inst-list b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }

.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.mini-chart span { flex: 1; background: var(--primary-soft); border-radius: 6px 6px 2px 2px; }
.mini-chart span.hi { background: var(--primary-container); }
.report-stats { display: flex; gap: 28px; margin-top: 20px; }
.report-stats b { font-family: var(--font-head); font-size: 1.5rem; display: block; letter-spacing: -0.03em; }
.report-stats small { color: var(--ink-soft); font-size: .82rem; }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.platforms span { padding: 6px 12px; border-radius: 8px; background: var(--surface-low); font-size: .85rem; font-weight: 600; color: var(--slate-2); }

@media (max-width: 960px) {
  .bento > * { grid-column: span 12 !important; }
  .t-report { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .tile { padding: 26px; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0; position: relative; }
.steps li { padding: 0 32px 0 0; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-white); border: 2px solid var(--primary-container); color: var(--primary);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--outline) 0 8px, transparent 8px 14px); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 24px 0 8px; }
.steps p { color: var(--ink-muted); max-width: 32ch; }
.steps .time { display: inline-block; margin-top: 14px; font-size: .85rem; font-weight: 600; color: var(--primary); background: var(--primary-tint); padding: 4px 10px; border-radius: 6px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li { padding: 0 0 0 76px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps li::after { left: 25px; top: 56px; bottom: -36px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--outline) 0 8px, transparent 8px 14px); }
  .steps h3 { margin-top: 10px; }
}

/* ---------- pricing + calculator ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.rate-hero { display: flex; align-items: baseline; gap: 6px; margin: 28px 0 8px; font-family: var(--font-head); }
.rate-hero .pct { font-size: 2rem; font-weight: 800; color: var(--primary); }
.rate-hero .num { font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.rate-hero .suffix { font-size: 1.1rem; color: var(--ink-muted); font-weight: 600; font-family: var(--font-body); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; color: var(--primary-container); flex: none; margin-top: 2px; }

.rate-table { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: .95rem; }
.rate-table caption { text-align: left; font-weight: 700; font-family: var(--font-head); margin-bottom: 10px; font-size: 1.05rem; }
.rate-table th, .rate-table td { padding: 11px 0; border-bottom: 1px solid var(--hairline); text-align: left; }
.rate-table th { font-weight: 500; color: var(--ink-muted); }
.rate-table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fine { font-size: .82rem; color: var(--ink-soft); margin-top: 12px; }

.calc {
  background: var(--surface-white); border-radius: var(--r-xl); padding: 36px;
  box-shadow: var(--shadow-editorial); border: 1px solid var(--hairline);
}
.calc h3 { font-size: 1.5rem; }
.calc > p { color: var(--ink-muted); margin-top: 6px; }
.calc-field { margin-top: 26px; }
.calc-field > label, .calc-field > .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.money-input { position: relative; }
.money-input input {
  width: 100%; border: 1.5px solid var(--hairline); background: var(--surface-low); border-radius: var(--r-md);
  padding: 16px 56px 16px 18px; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.money-input input:focus { outline: none; border-color: var(--primary-container); background: var(--surface-container-lowest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-container) 12%, transparent); }
.money-input span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--ink-soft); }
.seg { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; background: var(--surface-low); padding: 6px; border-radius: 12px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 10px 4px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-muted); transition: background .15s, color .15s; }
.seg input:checked + label { background: var(--ink); color: var(--surface-container-lowest); }
.seg input:focus-visible + label { outline: 3px solid var(--primary-container); outline-offset: 2px; }
.calc-out { margin-top: 28px; border-top: 1px dashed var(--outline); padding-top: 22px; display: grid; gap: 10px; }
.calc-row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.calc-row span:first-child { color: var(--ink-muted); }
.calc-row.total { margin-top: 6px; align-items: baseline; }
.calc-row.total span:first-child { color: var(--ink); font-weight: 600; }
.calc-row.total output { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; color: var(--primary); }
.calc .btn { margin-top: 24px; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .calc { padding: 24px; }
  .seg { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- developers ---------- */
.dev { background: var(--slate); color: var(--success-container); }
.dev h2 { color: var(--surface-container-lowest); }
.dev .section-head p { color: var(--success-container); }
.dev-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.code {
  background: var(--inverse-surface); border-radius: var(--r-lg); padding: 20px 24px 26px; box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--on-surface) 50%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface-container-lowest) 6%, transparent); overflow-x: auto;
}
.code .dots { display: flex; gap: 7px; margin-bottom: 18px; }
.code .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--primary-container); }
.code .dots i:nth-child(2) { background: var(--tertiary); } .code .dots i:nth-child(3) { background: var(--success); }
.code pre { margin: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.75; color: var(--success-container); }
.code .k { color: var(--primary-fixed-dim); } .code .s { color: var(--success-container); } .code .f { color: var(--success-container); } .code .c { color: var(--secondary); } .code .n { color: var(--primary-fixed-dim); }
.dev-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.dev-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.dev-list .ico { width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--surface-container-lowest) 7%, transparent); display: grid; place-items: center; color: var(--primary-fixed-dim); }
.dev-list .ico svg { width: 22px; height: 22px; }
.dev-list b { color: var(--surface-container-lowest); font-family: var(--font-head); font-size: 1.05rem; }
.dev-list p { color: var(--outline-variant); font-size: .95rem; }
@media (max-width: 960px) { .dev-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--primary); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- cta ---------- */
.cta-band { padding: 0 0 112px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-container) 100%);
  padding: 72px 48px; text-align: center; color: var(--surface-container-lowest); box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--primary) 55%, transparent);
}
.cta-box::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid color-mix(in srgb, var(--surface-container-lowest) 7%, transparent); }
.cta-box h2 { color: var(--surface-container-lowest); }
.cta-box p { margin: 18px auto 0; max-width: 48ch; font-size: 1.15rem; opacity: .9; }
.cta-box .hero-cta { justify-content: center; position: relative; z-index: 1; }
@media (max-width: 560px) { .cta-box { padding: 52px 22px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-low); border-top: 1px solid var(--hairline); padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { color: var(--ink-muted); margin-top: 14px; max-width: 34ch; }
.footer-grid h4 { font-size: .95rem; letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-muted); }
.footer-grid a:hover, .footer-grid .brand { color: var(--primary); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--ink-soft); font-size: .85rem; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badges span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: var(--surface-white); border: 1px solid var(--hairline); font-weight: 600; color: var(--slate-2); font-size: .78rem; }
.badges svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- forms (başvuru / giriş) ---------- */
.page-head { padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-head p { margin-top: 16px; font-size: 1.15rem; color: var(--ink-muted); max-width: 56ch; }
.apply-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; padding-bottom: 112px; }
.form-card { background: var(--surface-white); border-radius: var(--r-xl); padding: 40px; border: 1px solid var(--hairline); box-shadow: var(--shadow-editorial); }
.fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.fieldset:last-of-type { margin-bottom: 28px; }
.legend { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 22px; padding: 0; }
.legend .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); font-size: .95rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.grid-2 .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select {
  width: 100%; padding: 13px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--hairline); background: var(--surface-low);
  font-size: 1rem; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4040' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary-container); background-color: var(--surface-container-lowest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-container) 12%, transparent); }
.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.field .err { display: none; font-size: .82rem; color: var(--error); margin-top: 6px; font-weight: 500; }
.field.invalid input, .field.invalid select { border-color: var(--error); background: var(--surface-container-low); }
.field.invalid .err { display: block; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-cards { position: relative; }
.radio-cards input, .seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.radio-cards label { display: block; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--hairline); background: var(--surface-low); cursor: pointer; font-weight: 600; font-size: .92rem; margin: 0; }
.radio-cards label small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .78rem; margin-top: 2px; }
.radio-cards input:checked + label { border-color: var(--primary-container); background: var(--primary-tint); box-shadow: inset 0 0 0 1px var(--primary-container); }
.radio-cards input:focus-visible + label { outline: 3px solid var(--primary-container); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.form-error { display: none; background: var(--surface-container-low); color: var(--error); border-radius: var(--r-md); padding: 12px 16px; font-size: .92rem; margin-bottom: 18px; font-weight: 500; }
.form-error.show { display: block; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-actions .fine { margin: 0; }

.side-card { background: var(--surface-mid); border-radius: var(--r-xl); padding: 32px; position: sticky; top: 96px; }
.side-card h2 { font-size: 1.35rem; margin-bottom: 20px; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.side-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.side-list .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-container-lowest); color: var(--primary); display: grid; place-items: center; }
.side-list .ico svg { width: 20px; height: 20px; }
.side-list b { font-family: var(--font-head); display: block; }
.side-list p { font-size: .9rem; color: var(--ink-muted); }
.side-docs { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: .9rem; }
.side-docs b { font-family: var(--font-head); display: block; margin-bottom: 10px; }
.side-docs ul { margin: 0; padding-left: 18px; color: var(--ink-muted); display: grid; gap: 4px; }
.side-help { margin-top: 18px; background: var(--slate); color: var(--success-container); border-radius: var(--r-xl); padding: 24px 28px; font-size: .92rem; }
.side-help b { color: var(--surface-container-lowest); font-family: var(--font-head); display: block; font-size: 1.05rem; }
.side-help a { display: inline-block; margin-top: 10px; color: var(--surface-container-lowest); font-weight: 700; font-size: 1.15rem; font-family: var(--font-head); }
@media (max-width: 960px) {
  .apply-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 600px) {
  .form-card { padding: 24px; }
  .grid-2, .radio-cards { grid-template-columns: 1fr; }
}

/* ---------- success ---------- */
.success-wrap { padding-top: 64px; padding-bottom: 112px; }
.success-top { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-bottom: 40px; }
.success-badge { width: 76px; height: 76px; border-radius: 22px; background: linear-gradient(140deg, var(--primary), var(--primary-container)); display: grid; place-items: center; color: var(--surface-container-lowest); box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--primary) 60%, transparent); }
.success-badge svg { width: 38px; height: 38px; }
.success-badge svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-top h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.success-top p { margin-top: 10px; color: var(--ink-muted); font-size: 1.1rem; max-width: 60ch; }
.success-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.summary-card { background: var(--surface-white); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-editorial); }
.summary-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.summary-head h2 { font-size: 1.3rem; }
.status-chip { font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface-container-low); color: var(--tertiary); }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.dl div { padding: 16px 0; border-top: 1px solid var(--surface-high); }
.dl dt { font-size: .82rem; color: var(--ink-soft); }
.dl dd { margin: 4px 0 0; font-weight: 700; font-family: var(--font-head); font-size: 1.05rem; word-break: break-word; display: flex; align-items: center; gap: 8px; }
.copy-btn { border: 0; background: var(--surface-low); border-radius: 6px; padding: 4px 8px; font-size: .75rem; font-weight: 600; cursor: pointer; color: var(--ink-muted); font-family: var(--font-body); }
.copy-btn:hover { background: var(--surface-high); }
.note { margin-top: 18px; display: flex; gap: 10px; background: var(--surface-low); border-radius: var(--r-md); padding: 14px 16px; font-size: .88rem; color: var(--ink-muted); }
.note svg { width: 18px; height: 18px; flex: none; color: var(--slate-2); margin-top: 2px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 26px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; background: var(--hairline); }
.timeline li.done:not(:last-child)::after { background: var(--primary-container); }
.timeline .dot2 { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-container-lowest); color: var(--ink-soft); font-weight: 800; font-family: var(--font-head); }
.timeline .done .dot2 { background: var(--primary-container); color: var(--surface-container-lowest); }
.timeline .active .dot2 { background: var(--surface-container-lowest); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary-container); }
.timeline .dot2 svg { width: 18px; height: 18px; }
.timeline b { font-family: var(--font-head); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.timeline b small { font-family: var(--font-body); font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-mid); color: var(--ink-muted); }
.timeline .done b small { background: var(--surface-container-low); color: var(--success); }
.timeline .active b small { background: var(--primary-tint); color: var(--primary); }
.timeline p { font-size: .92rem; color: var(--ink-muted); margin-top: 4px; }
.steps-card { background: var(--surface-mid); border-radius: var(--r-xl); padding: 32px; }
.steps-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.steps-card > p { color: var(--ink-muted); font-size: .9rem; margin-bottom: 22px; }
@media (max-width: 960px) { .success-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .success-top { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; } .summary-card, .steps-card { padding: 24px; } }

/* ---------- login ---------- */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(150deg, var(--primary) 0%, var(--primary-container) 100%); color: var(--surface-container-lowest); padding: 72px 64px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid color-mix(in srgb, var(--surface-container-lowest) 7%, transparent); }
.auth-side h2 { color: var(--surface-container-lowest); max-width: 14ch; }
.auth-side p { opacity: .88; margin-top: 16px; max-width: 40ch; font-size: 1.05rem; }
.auth-stat { position: relative; z-index: 1; background: color-mix(in srgb, var(--surface-container-lowest) 12%, transparent); border: 1px solid color-mix(in srgb, var(--surface-container-lowest) 20%, transparent); border-radius: var(--r-lg); padding: 20px 22px; max-width: 340px; }
.auth-stat small { opacity: .8; }
.auth-stat b { display: block; font-family: var(--font-head); font-size: 2rem; letter-spacing: -0.04em; }
.auth-main { display: grid; place-items: center; padding: 56px 24px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 2.3rem; }
.auth-form > p { color: var(--ink-muted); margin: 10px 0 30px; }
.auth-form .field { margin-bottom: 18px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; margin: 4px 0 24px; gap: 12px; }
.auth-row label { display: flex; gap: 8px; align-items: center; color: var(--ink-muted); }
.auth-row input { accent-color: var(--primary); width: 16px; height: 16px; }
.auth-row a, .auth-alt a { color: var(--primary); font-weight: 600; }
.auth-alt { text-align: center; margin-top: 26px; color: var(--ink-muted); font-size: .95rem; }
.info-box { display: none; background: var(--surface-mid); border-radius: var(--r-md); padding: 12px 16px; font-size: .9rem; color: var(--ink-muted); margin-top: 16px; }
.info-box.show { display: block; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 112px; max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-muted); }
.legal p + p { margin-top: 12px; }

/* ---------- print (başvuru özeti PDF) ---------- */
@media print {
  .site-header, .site-footer, .summary-actions, .copy-btn, .steps-card .btn, .no-print { display: none !important; }
  body { background: var(--surface-container-lowest); }
  .success-wrap { padding-top: 0; padding-bottom: 0; }
  .summary-card, .steps-card { box-shadow: none; border: 1px solid var(--surface-dim); break-inside: avoid; }
  .success-grid { grid-template-columns: 1fr; }
}

/* fraud tile checklist */
.guard { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.guard li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-white); border-radius: 10px; padding: 12px 14px; font-size: .92rem; font-weight: 500; }
.guard li span:last-child { font-size: .78rem; font-weight: 600; color: var(--success); background: var(--surface-container-low); padding: 3px 9px; border-radius: 999px; }
.guard li.warn span:last-child { color: var(--tertiary); background: var(--surface-container-low); }

/* =========================================================
   v2 — Stripe-inspired layer (ribbon, duo headline, live
   link builder, product cards with UI art, sector tabs)
   ========================================================= */

/* ---------- hero 2 ---------- */
.hero2 { position: relative; overflow: hidden; padding: 64px 0 48px; isolation: isolate; }
.ribbon { position: absolute; inset: -30% -12% auto 48%; height: 120%; z-index: -1; filter: blur(46px) saturate(120%); pointer-events: none; transform: skewY(-12deg); }
.ribbon span { position: absolute; border-radius: 50%; opacity: .75; animation: drift 18s ease-in-out infinite alternate; }
.ribbon .r1 { width: 58%; height: 46%; left: 6%; top: 18%; background: var(--primary-container); }
.ribbon .r2 { width: 46%; height: 40%; left: 40%; top: 6%; background: var(--primary-fixed-dim); animation-duration: 22s; }
.ribbon .r3 { width: 40%; height: 36%; left: 52%; top: 40%; background: var(--inverse-surface); opacity: .35; animation-duration: 26s; }
.ribbon .r4 { width: 34%; height: 30%; left: 22%; top: 52%; background: var(--primary-fixed-dim); opacity: .55; animation-duration: 20s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6%, -5%) scale(1.08); }
  100% { transform: translate(-5%, 4%) scale(.95); }
}
.hero2-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; min-height: 560px; }
.h-duo { font-size: clamp(2.2rem, 4vw, 3.35rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.07; color: var(--ink-soft); margin: 24px 0 0; text-wrap: balance; max-width: 19ch; }
.hero-lead { margin-top: 22px; max-width: 40ch; }
.h-duo span { color: var(--ink); }
.hero2 .hero-cta { margin-top: 36px; }
.hero2 .hero-visual .dash { background: color-mix(in srgb, var(--surface-container-lowest) 94%, transparent); backdrop-filter: blur(6px); }
.trust-row { list-style: none; padding: 22px 0 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: .95rem; font-weight: 500; }
.trust-row li { display: inline-flex; align-items: center; gap: 10px; }
.trust-row svg { width: 20px; height: 20px; color: var(--primary); }
@media (max-width: 1020px) {
  .hero2-grid { grid-template-columns: 1fr; min-height: 0; }
  .ribbon { inset: 38% -30% auto 0; height: 60%; }
}
@media (max-width: 560px) {
  .hero2 { padding: 36px 0 32px; }
  .h-duo { font-size: 2.15rem; }
  .trust-row { gap: 12px 20px; margin-top: 64px; }
}

/* ---------- live link builder ---------- */
.builder-sec { padding-top: 96px; }
.builder { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.builder-form h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.builder-form .sub { margin: 14px 0 28px; color: var(--ink-muted); font-size: 1.08rem; max-width: 42ch; }
#builder .field { margin-bottom: 16px; }
#builder .grid-2 { gap: 0 16px; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.link-out[hidden] { display: none; }
.link-out { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-tint); border: 1px dashed var(--outline); border-radius: var(--r-md); padding: 8px 8px 8px 14px; max-width: 100%; animation: toastIn .35s ease both; }
.link-out code { font-family: var(--font-body); font-weight: 600; color: var(--primary); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini { border: 0; background: var(--primary); color: var(--surface-container-lowest); font-weight: 700; font-size: .8rem; padding: 7px 12px; border-radius: 6px; cursor: pointer; font-family: var(--font-head); flex: none; }

.builder-stage { position: relative; min-height: 560px; border-radius: var(--r-xl); background: linear-gradient(160deg, var(--surface-container-low) 0%, var(--primary-fixed) 45%, var(--surface-container-low) 100%); overflow: hidden; }
.builder-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--primary) 9%, transparent) 1px, transparent 1px); background-size: 18px 18px; }
.chat { position: absolute; left: 24px; top: 32px; width: min(280px, 50%); background: var(--surface-container-low); border-radius: 18px; padding: 0 12px 14px; box-shadow: var(--shadow-float); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; background: var(--success); color: var(--surface-container-lowest); margin: 0 -12px 12px; padding: 10px 14px; }
.chat-head b { font-size: .9rem; display: block; line-height: 1.2; }
.chat-head small { font-size: .72rem; opacity: .8; }
.avatar.sm { width: 30px; height: 30px; border-radius: 50%; background: var(--error-container); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); font-size: .85rem; }
.bubble { font-size: .84rem; line-height: 1.4; padding: 8px 10px; border-radius: 10px; margin-top: 8px; max-width: 88%; box-shadow: 0 1px 1px color-mix(in srgb, var(--on-surface) 8%, transparent); }
.bubble.in { background: var(--surface-container-lowest); }
.bubble.out { background: var(--success-container); margin-left: auto; }
.link-card { display: block; margin-top: 8px; background: var(--surface-container-lowest); border-radius: 8px; padding: 8px 10px; border-left: 3px solid var(--primary-container); }
.link-card b { display: block; font-size: .85rem; }
.link-card span:last-child { font-size: .74rem; color: var(--success); word-break: break-all; }
.lc-brand { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; color: var(--primary); font-family: var(--font-head); }
.lc-brand img { width: 14px; height: 14px; }
.phone-live { position: absolute; right: 32px; top: 50%; left: auto; bottom: auto; transform: translateY(-50%); width: 250px; }
.inst-pick { display: flex; gap: 6px; margin: 4px 0 8px; flex-wrap: wrap; }
.inst-pick span { font-size: .7rem; padding: 4px 8px; border-radius: 6px; background: var(--surface-container-lowest); border: 1px solid var(--hairline); color: var(--ink-muted); }
.inst-pick span.on { border-color: var(--primary-container); color: var(--primary); background: var(--primary-tint); font-weight: 600; }
.paid-overlay { position: absolute; inset: 10px; border-radius: 26px; background: color-mix(in srgb, var(--surface-container-lowest) 96%, transparent); display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.paid-overlay.show { opacity: 1; }
.paid-overlay b { font-family: var(--font-head); font-size: 1.2rem; }
.paid-overlay small { color: var(--ink-soft); }
.ok-big { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-container-low); color: var(--success); display: grid; place-items: center; margin-bottom: 6px; transform: scale(.6); transition: transform .4s cubic-bezier(.2,1.4,.4,1); }
.paid-overlay.show .ok-big { transform: scale(1); }
.ok-big svg { width: 32px; height: 32px; }
.flash { animation: flash .5s ease; }
@keyframes flash { 0% { background: var(--primary-soft); } 100% { background: transparent; } }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .builder-stage { min-height: 0; padding: 20px 16px 24px; display: grid; gap: 18px; justify-items: center; }
  .chat { position: relative; left: auto; top: auto; width: 100%; }
  .phone-live { position: relative; right: auto; top: auto; transform: none; width: 240px; margin: 0; }
}

/* ---------- product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.prod { background: var(--surface-white); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; }
.prod-copy { padding: 28px 28px 22px; }
.prod-copy h3 { font-size: 1.25rem; }
.prod-copy p { color: var(--ink-muted); margin-top: 8px; font-size: .97rem; }
.prod-art { flex: 1; min-height: 260px; margin: 0 12px 12px; border-radius: 16px; display: grid; place-items: center; padding: 26px 20px; position: relative; overflow: hidden; }
.art-crimson { background: linear-gradient(150deg, var(--primary) 0%, var(--primary-container) 55%, var(--primary-fixed-dim) 100%); }
.art-rose { background: linear-gradient(150deg, var(--primary-fixed) 0%, var(--error-container) 60%, var(--primary-fixed) 100%); }
.art-slate { background: linear-gradient(150deg, var(--inverse-surface) 0%, var(--inverse-surface) 60%, var(--on-surface-variant) 140%); }
.m-card { background: var(--surface-container-lowest); border-radius: 12px; box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--on-surface) 35%, transparent); width: 100%; max-width: 330px; font-size: .82rem; }
.m-list { padding: 6px 14px; }
.m-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--surface-high); }
.m-row:last-child { border-bottom: 0; }
.m-row:first-child > span:first-child { font-weight: 700; font-family: var(--font-head); }
.m-row b { display: block; font-size: .84rem; }
.m-row small { color: var(--ink-soft); font-size: .72rem; display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-btn { font-size: .72rem; font-weight: 700; color: var(--surface-container-lowest); background: var(--primary); padding: 4px 9px; border-radius: 6px; }
.tag { font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--surface-container-low); color: var(--success); }
.tag.wait { background: var(--surface-mid); color: var(--ink-muted); }
.tag.warn { background: var(--surface-container-low); color: var(--tertiary); }

.qr-stand { background: var(--surface-container-lowest); border-radius: 14px; padding: 14px 16px 12px; box-shadow: 0 24px 44px -18px color-mix(in srgb, var(--primary) 45%, transparent); text-align: center; width: 168px; transform: rotate(-3deg); }
.qr-top { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-head); font-weight: 800; color: var(--primary); font-size: .85rem; margin-bottom: 10px; }
.qr-top img { width: 18px; height: 18px; }
.qr { width: 136px; height: 136px; margin: 0 auto; shape-rendering: crispEdges; }
.qr-foot { margin-top: 8px; font-size: .75rem; color: var(--ink-soft); font-weight: 600; }

.checkout { padding: 16px; }
.checkout label { display: block; font-size: .68rem; color: var(--ink-soft); margin: 8px 0 4px; }
.co-line { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--surface-high); }
.co-line b { font-family: var(--font-head); }
.co-input { border: 1px solid var(--hairline); border-radius: 7px; padding: 7px 9px; font-size: .8rem; background: var(--surface-low); white-space: nowrap; overflow: hidden; }
.co-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.co-pay { margin-top: 12px; text-align: center; color: var(--surface-container-lowest); font-weight: 700; padding: 9px; border-radius: 7px; background: linear-gradient(135deg, var(--primary), var(--primary-container)); font-family: var(--font-head); }
.typing { border-color: var(--primary-container); background: var(--surface-container-lowest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-container) 12%, transparent); }
.type-txt { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--primary-container); width: 19ch; animation: typing 3.2s steps(19) infinite, caret .8s step-end infinite; vertical-align: bottom; font-variant-numeric: tabular-nums; }
@keyframes typing { 0% { width: 0; } 60%, 100% { width: 19ch; } }
@keyframes caret { 50% { border-color: transparent; } }

.inst { padding: 14px; }
.inst-title { font-weight: 700; font-family: var(--font-head); margin-bottom: 8px; }
.inst-opt { display: flex; justify-content: space-between; padding: 9px 10px; border: 1px solid var(--hairline); border-radius: 8px; margin-top: 6px; }
.inst-opt.sel { border-color: var(--primary-container); background: var(--primary-tint); box-shadow: inset 0 0 0 1px var(--primary-container); }
.inst-opt b { font-variant-numeric: tabular-nums; }

.report { padding: 16px; }
.rp-top { display: flex; align-items: baseline; gap: 10px; }
.rp-top span { color: var(--ink-soft); }
.rp-top b { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: -0.03em; }
.rp-top .up { color: var(--success); font-weight: 600; }
.spark { width: 100%; height: 90px; margin: 8px 0; }
.rp-rows { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--surface-high); }
@media (max-width: 1020px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: 1fr; } .prod-copy { padding: 24px 22px 18px; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hairline); background: var(--surface-white); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .95rem; cursor: pointer; color: var(--ink-muted); transition: background .15s, color .15s, border-color .15s; }
.tabs button svg { width: 18px; height: 18px; }
.tabs button:hover { border-color: var(--outline); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface-container-lowest); border-color: var(--ink); }
.tab-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; background: var(--surface-mid); border-radius: var(--r-xl); padding: 48px; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.7rem; letter-spacing: -0.03em; }
.tab-panel p { color: var(--ink-muted); margin-top: 12px; max-width: 52ch; font-size: 1.05rem; }
.scenario { background: var(--surface-white); border-radius: var(--r-lg); padding: 36px 32px; box-shadow: var(--shadow-editorial); }
.sc-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 6vw, 4.4rem); letter-spacing: -0.05em; line-height: 1; color: var(--primary); }
.sc-lbl { display: block; margin-top: 10px; color: var(--ink-muted); }
@media (max-width: 860px) { .tab-panel { grid-template-columns: 1fr; padding: 28px; gap: 24px; } .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .tabs button { flex: none; } }

/* ---------- dark CTA ---------- */
.cta-dark { position: relative; overflow: hidden; background: var(--slate); color: var(--surface-container-lowest); padding: 96px 0; isolation: isolate; }
.ribbon-cta { inset: -60% -20% -60% 30%; height: auto; opacity: .55; }
.cta-dark-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-dark h2 { color: var(--surface-container-lowest); max-width: 16ch; }
.cta-dark p { color: var(--success-container); margin-top: 12px; font-size: 1.1rem; }
.v2 .site-footer { border-top: 0; }

.public-inline-1 { height:42%; }
.public-inline-2 { height:58%; }
.public-inline-3 { height:36%; }
.public-inline-4 { height:70%; }
.public-inline-5 { height:52%; }
.public-inline-6 { height:96%; }
.public-inline-7 { height:64%; }
.public-inline-8 { margin-top:16px;font-size:1.1rem;max-width:44ch; }
.public-inline-9 { display:block;font-size:.9rem;font-weight:600;margin-bottom:8px; }
.public-inline-10 { margin-top:0;border-top:0;padding-top:0; }
.public-inline-11 { margin-top:4px; }
.public-document-body { white-space: pre-wrap; }
.public-legal-form { display: grid; gap: 1rem; max-width: 44rem; margin-block: 1.5rem; }
.public-legal-form label { display: grid; gap: .25rem; }
.public-legal-form textarea { min-height: 8rem; }
#cookie-banner { background: var(--surface-white); color: var(--ink); border-top: 1px solid var(--outline); padding: 1rem max(1rem, calc((100% - var(--container)) / 2)); }
#cookie-banner form { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .5rem; }
#cookie-banner button, #cookie-banner a { color: var(--primary-strong); border: 1px solid var(--outline); border-radius: var(--r-md); padding: .5rem .75rem; background: var(--surface-white); }

.hero-process { padding: clamp(1rem, 4vw, 2.5rem); background: var(--surface-container-lowest); border-radius: var(--r-xl); align-self: center; }
.hero-process ol { padding-inline-start: 1.4rem; }
.hero-process li + li { margin-top: .8rem; }
.btn.btn-primary { color: var(--on-primary); background: linear-gradient(135deg, var(--primary), var(--primary-container)); }
.form-card .cl-field { display: grid; gap: .4rem; margin-block: .75rem; }
.form-card .cl-control { color: var(--on-surface); background: var(--surface-container-low); border: 1px solid var(--outline); border-radius: var(--r-md); min-height: 44px; padding: .7rem; width: 100%; font: inherit; }
.form-card .cl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; }
.form-card .cl-field-error { color: var(--on-error-container); margin: 0; }
.form-card [data-met="true"] { color: var(--success); font-weight: 600; }
.apply-grid .application-brand { background: var(--inverse-surface); color: var(--inverse-on-surface); }
.apply-grid .application-brand a { color: var(--primary-fixed); }
.apply-grid .application-brand > strong { display: block; margin-bottom: 1rem; font-family: var(--font-head); }
@media (min-width: 52rem) { .apply-grid:has(.application-brand) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
@media (max-width: 51.99rem) { .apply-grid .application-brand { grid-row: 2; } }

.apply-grid .application-brand :is(h2,p) { color: inherit; }
