:root {
  --navy: #14284b;
  --navy-soft: #2a3f66;
  --navy-deep: #0e1d38;
  --accent: #f29a4a;
  --accent-dark: #d97f2e;
  --accent-tint: #fdf1e6;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #1c2333;
  --muted: #5b6475;
  --border: #e3e7ef;
  --success: #1f9d68;
  --danger: #c8442f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 75, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 40, 75, 0.16);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-soft); }
a:hover { color: var(--accent-dark); }
img, svg { display: block; }
button { font: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(242, 154, 74, 0.55); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(20, 40, 75, 0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--navy); text-decoration: none; }
.logo:hover { color: var(--navy); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; letter-spacing: 0.5px;
  transition: transform 0.3s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-mark span { color: var(--accent); }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }
.logo-light .logo-mark { background: #fff; color: var(--navy); }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-alt); }
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(242, 154, 74, 0.28); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--navy); border-color: var(--border); background: #fff; }
.btn-ghost:hover { border-color: var(--navy-soft); color: var(--navy); }
.btn .spinner { display: none; }
.btn.is-loading .btn-label { opacity: 0.6; }
.btn.is-loading .spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
.btn.is-loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { color: #fff; text-decoration: underline; }

/* ---------- Typography & sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 56px 0 96px; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 12px;
}
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(36px, 5.6vw, 58px); letter-spacing: -1.2px; }
h2 { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -0.6px; margin-bottom: 16px; }
h3 { font-size: 19px; margin-bottom: 8px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 48px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 104px;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(242, 154, 74, 0.14), transparent 70%),
    radial-gradient(700px 500px at 10% 100%, rgba(42, 63, 102, 0.08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal; color: var(--accent-dark);
  background: linear-gradient(transparent 70%, rgba(242, 154, 74, 0.22) 70%);
}
.hero .lead { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; font-size: 14px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-dark); font-size: 11px; font-weight: 700;
}

.hero-visual { position: relative; height: 440px; }
.mock-card { position: absolute; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); }
.mock-phone {
  right: 40px; top: 0; width: 290px; padding: 18px 16px 22px;
  border: 1px solid var(--border); animation: float 6s ease-in-out infinite;
}
.mock-phone-top { display: flex; justify-content: center; margin-bottom: 16px; }
.mock-phone-top span { width: 70px; height: 6px; background: var(--border); border-radius: 6px; }
.bubble {
  max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; margin-bottom: 10px;
  opacity: 0; transform: translateY(8px); animation: bubble-in 0.5s var(--ease) forwards;
}
.bubble-in { background: var(--bg-alt); color: var(--text); border-bottom-left-radius: 4px; }
.bubble-out { margin-left: auto; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble:nth-child(2) { animation-delay: 0.4s; }
.bubble:nth-child(3) { animation-delay: 1.2s; }
.bubble:nth-child(4) { animation-delay: 2s; }
.typing {
  display: inline-flex; gap: 4px; padding: 10px 14px; background: var(--bg-alt); border-radius: 16px;
  opacity: 0; animation: bubble-in 0.4s var(--ease) 2.6s forwards;
}
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #a8b0c0; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

.mock-stats {
  left: 0; bottom: 10px; width: 260px; padding: 18px;
  animation: float 7s ease-in-out 1s infinite;
}
.mock-stats-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  color: var(--success); background: rgba(31, 157, 104, 0.1); padding: 3px 9px; border-radius: 99px;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: blink 1.6s infinite; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bars span {
  flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent), #f7c08f);
  transform-origin: bottom; transform: scaleY(0); animation: grow 0.9s var(--ease) forwards;
}
.bars span:nth-child(2) { animation-delay: 0.08s; }
.bars span:nth-child(3) { animation-delay: 0.16s; }
.bars span:nth-child(4) { animation-delay: 0.24s; }
.bars span:nth-child(5) { animation-delay: 0.32s; }
.bars span:nth-child(6) { animation-delay: 0.4s; }
.bars span:nth-child(7) { animation-delay: 0.48s; background: linear-gradient(180deg, var(--navy-soft), #6c80a8); }
.mock-stats-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bubble-in { to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes grow { to { transform: scaleY(1); } }

/* ---------- Ticker ---------- */
.ticker { padding: 0; background: var(--navy); color: #c3cbe0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker-track span { padding: 18px 36px; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.ticker-track span::after { content: "◆"; margin-left: 72px; color: var(--accent); font-size: 9px; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  position: relative; display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; color: inherit; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.card p { color: var(--muted); font-size: 15px; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card-more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent-dark); transition: transform 0.2s; }
.card-link:hover .card-more { transform: translateX(4px); }
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.badge {
  position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
}
.card-num { display: block; font-size: 13px; font-weight: 700; color: var(--accent-dark); margin-bottom: 12px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 18px; transition: transform 0.3s var(--ease);
}
.card-link:hover .icon { transform: scale(1.08) rotate(-4deg); }
.icon svg { width: 22px; height: 22px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--border); }
.steps li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent);
}
.step-num { display: block; font-size: 32px; font-weight: 800; color: var(--border); margin-bottom: 8px; line-height: 1; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.why-grid .lead { margin-bottom: 28px; }
.why-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-list li { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.why-list p { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; padding: 72px 0;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 154, 74, 0.3), transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #c3cbe0; }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 80px 0 48px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(242, 154, 74, 0.12), transparent 70%);
}
.page-hero h1 { margin-bottom: 16px; max-width: 800px; }
.page-hero-small { padding: 64px 0 24px; }
.page-hero-small h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 8px; }

/* ---------- Tabs ---------- */
.tab-list {
  display: flex; gap: 6px; padding: 6px; background: var(--bg-alt); border-radius: 14px;
  margin-bottom: 32px; overflow-x: auto; scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button {
  flex: 1; white-space: nowrap; padding: 12px 18px; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tab-list button:hover { color: var(--navy); }
.tab-list button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(20, 40, 75, 0.08); }
.tab-panel { animation: fade-up 0.4s var(--ease); }
.panel-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.panel-grid .lead { margin-bottom: 28px; }
.panel-grid h3 { margin-bottom: 14px; }
.panel-aside { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.panel-aside ul { list-style: none; margin-bottom: 22px; }
.panel-aside li { color: var(--muted); font-size: 15px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.panel-aside p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--border); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-dark); font-size: 12px; font-weight: 700;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 56px; grid-template-columns: 1.4fr 1fr; align-items: start; }
.prose p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.founder { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; border-left: 4px solid var(--accent); }
.founder-mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.founder h3 { margin-bottom: 2px; }
.founder .role { font-size: 14px; color: var(--accent-dark); font-weight: 600; margin-bottom: 14px; }
.founder p { color: var(--muted); font-size: 15px; }
.office { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.office-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.office-card p { margin-bottom: 10px; }
.office-card .btn { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-search input {
  width: 100%; padding: 16px 18px 16px 48px; font: inherit; font-size: 16px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 16px center / 20px;
}
.faq-search input:focus { outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 4px rgba(42, 63, 102, 0.1); }
.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.chip {
  padding: 8px 16px; border-radius: 99px; border: 1px solid var(--border); background: #fff;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.chip:hover { border-color: var(--navy-soft); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 17px; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--navy); font-size: 18px; font-weight: 400; transition: transform 0.25s var(--ease), background 0.2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent-tint); color: var(--accent-dark); }
.faq p { color: var(--muted); padding: 0 44px 22px 0; animation: fade-up 0.3s var(--ease); }
.faq mark { background: var(--accent-tint); color: inherit; border-radius: 3px; }
.faq-empty { padding: 32px 0; color: var(--muted); text-align: center; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1.5fr 1fr; align-items: start; }
.contact-form, .form-success {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 36px; box-shadow: var(--shadow);
}
.form-step { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.form-step h3 { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
label, .label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314284b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 4px rgba(42, 63, 102, 0.1); }
textarea { min-height: 140px; resize: vertical; }
.input-prefix { display: flex; }
.input-prefix span {
  display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border); border-right: 0;
  border-radius: 10px 0 0 10px; background: var(--bg-alt); color: var(--muted); font-size: 15px;
}
.input-prefix input { border-radius: 0 10px 10px 0; }
.error { display: none; color: var(--danger); font-size: 13px; margin-top: 6px; }
.has-error input, .has-error textarea, .has-error .input-prefix span { border-color: var(--danger); }
.has-error + .error, .has-error .error { display: block; }
.error.is-visible { display: block; }
.field-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.counter { margin-left: auto; margin-top: 6px; font-size: 12px; color: var(--muted); }
.counter.is-near { color: var(--accent-dark); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-check { margin: 0; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-block; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--muted); transition: all 0.15s;
}
.chip-check:hover span { border-color: var(--navy-soft); color: var(--navy); }
.chip-check input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-check input:checked + span::before { content: "✓ "; }
.chip-check input:focus-visible + span { outline: 3px solid rgba(242, 154, 74, 0.55); outline-offset: 2px; }

.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radio { margin: 0; cursor: pointer; }
.radio input { position: absolute; opacity: 0; }
.radio span {
  display: inline-block; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--muted); transition: all 0.15s;
}
.radio input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--navy); }
.radio input:focus-visible + span { outline: 3px solid rgba(242, 154, 74, 0.55); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14.5px; color: var(--text); margin-bottom: 14px; cursor: pointer; }
.check input {
  appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #b9c1d1; border-radius: 6px;
  background: #fff; cursor: pointer; display: grid; place-items: center; transition: all 0.15s;
}
.check input::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 700; transform: scale(0); transition: transform 0.15s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: scale(1); }
.check.has-error input { border-color: var(--danger); }
.consents .error { margin: -6px 0 14px 32px; }
.consent-intro { font-size: 14px; color: var(--muted); margin: 18px 0 12px; }
.fine-print { font-size: 13px; color: var(--muted); margin-top: 6px; }
.consents { border-bottom: 0; margin-bottom: 8px; }

.form-success { text-align: center; padding: 56px 36px; animation: fade-up 0.5s var(--ease); }
.form-success .lead { margin: 0 auto 28px; }
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: rgba(31, 157, 104, 0.12);
  color: var(--success); display: grid; place-items: center; font-size: 32px; font-weight: 700;
  animation: pop 0.5s var(--ease);
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

.contact-aside { display: grid; gap: 20px; position: sticky; top: 96px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-card-soft { background: var(--bg-alt); border-color: transparent; }
.contact-card h3 { margin-bottom: 18px; }
.contact-card dl { display: grid; gap: 16px; }
.contact-card dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 2px; }
.contact-card dd { color: var(--navy); font-weight: 500; }
.contact-card dd a { text-decoration: none; color: var(--navy); }
.contact-card dd a:hover { color: var(--accent-dark); }
.copy-btn {
  margin-left: 6px; padding: 2px 8px; font-size: 12px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); cursor: pointer;
}
.copy-btn:hover { border-color: var(--navy-soft); color: var(--navy); }
.open-status { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: var(--success); }
.open-status.is-closed { color: var(--muted); }
.mini-steps { padding-left: 20px; color: var(--muted); font-size: 15px; }
.mini-steps li { margin-bottom: 10px; padding-left: 4px; }
.mini-steps li::marker { color: var(--accent-dark); font-weight: 700; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.toc { background: var(--bg-alt); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 8px; }
.toc strong { display: block; color: var(--navy); margin-bottom: 10px; }
.toc ol { padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; }
.cookie-status {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--accent-tint); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0 8px;
}
.cookie-status strong { color: var(--navy); }
.cookie-status p { margin: 2px 0 0; color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-alt); color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
code { font-size: 13px; background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9b3c9; padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand > p { margin: 16px 0 24px; max-width: 360px; }
.site-footer h4 { color: #fff; font-size: 13px; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer ul a { color: #a9b3c9; text-decoration: none; }
.site-footer ul a:hover { color: #fff; }
.newsletter label:first-child { color: #fff; font-size: 14px; margin-bottom: 10px; }
.newsletter-row { display: flex; gap: 8px; margin-bottom: 12px; }
.newsletter-row input {
  flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #fff;
}
.newsletter-row input::placeholder { color: #7d89a3; }
.newsletter-row input:focus { border-color: var(--accent); box-shadow: none; }
.check-light { color: #a9b3c9; font-size: 13px; margin: 0; }
.check-light a { color: #fff; }
.check-light input { background: transparent; border-color: rgba(255, 255, 255, 0.3); }
.newsletter .has-error input[type="email"], .newsletter-row.has-error input { border-color: #ff8a73; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  padding: 24px 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13.5px;
}

/* ---------- Cookie banner & modal ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80; max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; padding: 22px 24px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: slide-up 0.5s var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { flex: 1; font-size: 14px; color: var(--muted); }
.cookie-banner-text strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@keyframes slide-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.modal {
  border: 0; padding: 0; border-radius: 18px; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px);
  margin: auto; box-shadow: var(--shadow-lg); color: var(--text);
}
.modal[open] { animation: pop 0.3s var(--ease); }
.modal::backdrop { background: rgba(14, 29, 56, 0.5); backdrop-filter: blur(3px); }
.modal-inner { padding: 28px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-head h3 { margin: 0; font-size: 21px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--navy);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.modal .muted { font-size: 14px; margin-bottom: 16px; }
.cookie-cat { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); }
.cookie-cat strong { color: var(--navy); font-size: 15px; }
.cookie-cat p { font-size: 13.5px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; border-top: 1px solid var(--border); }

.switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #cdd3df; border-radius: 99px; transition: background 0.2s; }
.switch span::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.25s var(--ease);
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: 0.6; }
.switch input:focus-visible + span { outline: 3px solid rgba(242, 154, 74, 0.55); outline-offset: 2px; }

/* ---------- Toasts & back to top ---------- */
.toast-stack { position: fixed; top: 88px; right: 20px; z-index: 90; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 14px 18px;
  background: var(--navy); color: #fff; font-size: 14px; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: toast-in 0.35s var(--ease);
}
.toast::before { content: "✓"; display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--success); font-size: 12px; font-weight: 700; }
.toast.is-error::before { content: "!"; background: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateX(20px); transition: all 0.3s; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--navy); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease), background 0.15s;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--accent); }
body.has-cookie-banner .back-to-top { bottom: 150px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .why-grid, .panel-grid, .about-grid, .contact-grid, .office { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 400px; max-width: 460px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-aside { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px rgba(20, 40, 75, 0.08);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-links a[aria-current="page"] { background: var(--bg-alt); }
  .nav-links a[aria-current="page"]::after { display: none; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .section-tight { padding: 32px 0 64px; }
  .hero { padding: 56px 0 64px; }
  .page-hero { padding: 48px 0 24px; }
  .hero-visual { height: 380px; }
  .mock-phone { right: 0; width: 250px; }
  .mock-stats { width: 210px; }
  .steps, .why-list, .field-row { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-form, .form-success { padding: 24px 20px; }
  .tab-list button { flex: none; }
  .toc ol { columns: 1; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1 1 auto; }
  .cookie-banner-actions [data-cookie="accept"] { order: -1; flex-basis: 100%; }
  body.has-cookie-banner .back-to-top { bottom: 250px; }
  .toast-stack { left: 12px; right: 12px; top: 80px; }
  .toast { max-width: none; }
}

/* Hero entrance (on load, not on scroll, so the first screen paints immediately) */
.hero-copy > *, .hero-visual { animation: fade-up 0.6s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.05s; }
.hero-copy > :nth-child(3) { animation-delay: 0.1s; }
.hero-copy > :nth-child(4) { animation-delay: 0.15s; }
.hero-copy > :nth-child(5) { animation-delay: 0.2s; }
.hero-visual { animation-delay: 0.15s; }

/* ---------- Shared bits for blog & work ---------- */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--bg-alt); color: var(--navy);
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px; margin-right: 6px;
}
.tag-accent { background: var(--accent-tint); color: var(--accent-dark); }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs span { margin: 0 6px; opacity: 0.5; }
.demo-note {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px;
  font-size: 13.5px; color: var(--muted);
}
.demo-note span, .demo-chip {
  display: inline-block; padding: 3px 10px; border-radius: 6px; border: 1px dashed var(--accent);
  color: var(--accent-dark); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.demo-note-light { color: #c3cbe0; margin: 0 0 18px; }
.demo-note-light span { color: #f7c08f; border-color: #f7c08f; }
.demo-chip { margin-bottom: 10px; }

/* ---------- Blog ---------- */
.post-cover {
  position: relative; display: grid; place-items: center; overflow: hidden; color: rgba(255, 255, 255, 0.9);
}
.post-cover svg { width: 64px; height: 64px; transition: transform 0.4s var(--ease); }
.post-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px); background-size: 16px 16px;
}
.cover-navy { background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft)); }
.cover-orange { background: linear-gradient(135deg, var(--accent-dark), #f7b77a); }
.cover-soft { background: linear-gradient(135deg, #e7ecf5, #fdf1e6); color: var(--navy); }
.cover-soft::before { background-image: radial-gradient(rgba(20, 40, 75, 0.08) 1px, transparent 1px); }
.cover-label {
  position: absolute; left: 16px; top: 16px; padding: 4px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.18); font-size: 12px; font-weight: 700; color: inherit; backdrop-filter: blur(4px);
}
.cover-soft .cover-label { background: rgba(255, 255, 255, 0.7); }

.post-featured {
  display: grid; grid-template-columns: 1fr 1.2fr; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  color: inherit; text-decoration: none; margin-bottom: 48px; transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.post-featured:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-3px); }
.post-featured .post-cover { min-height: 280px; }
.post-featured .post-cover svg { width: 96px; height: 96px; }
.post-featured:hover .post-cover svg, .post-card:hover .post-cover svg { transform: scale(1.1) rotate(-4deg); }
.post-featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.post-featured-body h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.post-featured-body p { color: var(--muted); }

.blog-toolbar { margin-bottom: 8px; }
.blog-toolbar .faq-filters { margin-top: 0; }
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.post-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .post-cover { height: 170px; }
.post-card-body { padding: 24px; }
.post-card h3 { font-size: 18px; margin-bottom: 8px; }
.post-card-body > p:last-child { color: var(--muted); font-size: 15px; }
.post-card[hidden], .case-card[hidden] { display: none; }

.newsletter-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Article */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.1s linear; }
.post-hero { padding: 64px 0 40px; background: radial-gradient(600px 300px at 90% 0%, rgba(242, 154, 74, 0.12), transparent 70%); }
.post-hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 16px; }
.post-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-byline strong { display: block; color: var(--navy); font-size: 15px; }
.post-byline span { font-size: 13.5px; color: var(--muted); }
.avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff !important;
  display: grid; place-items: center; font-size: 12px !important; font-weight: 700;
}
.avatar-lg { width: 64px; height: 64px; font-size: 15px !important; }
.share { margin-left: auto; display: flex; gap: 6px; }
.share .copy-btn { margin: 0; padding: 6px 10px; text-decoration: none; display: inline-block; }

.article { padding-top: 16px; padding-bottom: 72px; }
.article > p, .article > ul, .article > ol { font-size: 17px; color: #3a4357; margin-bottom: 18px; }
.article h2 { font-size: 26px; margin: 44px 0 14px; }
.article h3 { font-size: 19px; margin: 28px 0 8px; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent-dark); }
.article pre { background: var(--navy-deep); color: #e4e9f3; padding: 16px 18px; border-radius: 10px; overflow-x: auto; margin-bottom: 18px; }
.article pre code { background: none; padding: 0; color: inherit; font-size: 14px; }
.callout { background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 28px 0; }
.callout strong { display: block; color: var(--navy); margin-bottom: 8px; }
.callout ul { padding-left: 20px; }
.callout li, .callout p { color: #3a4357; margin-bottom: 6px; }
.mini-table { width: 100%; min-width: 0; font-size: 14.5px; margin: 6px 0 8px; background: #fff; border-radius: 10px; overflow: hidden; }
.mini-table th, .mini-table td { padding: 10px 12px; }
.sms-example { margin: 28px 0; padding: 22px; background: var(--bg-alt); border-radius: var(--radius); }
.sms-example-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.sms-example .muted { font-size: 13px; margin-top: 6px; }
.bubble.is-static { opacity: 1; transform: none; animation: none; background: #fff; max-width: 420px; font-size: 15px; margin-bottom: 0; }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 48px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.author-box strong { color: var(--navy); }
.author-box p { color: var(--muted); font-size: 15px; margin: 4px 0 0; }

/* ---------- Work ---------- */
.case-list { display: grid; gap: 28px; }
.case-card {
  display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  color: inherit; text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.case-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); }
.case-visual {
  position: relative; display: flex; align-items: flex-end; padding: 28px; min-height: 240px; overflow: hidden;
}
.case-visual::before, .mini-case-top::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px); background-size: 16px 16px;
}
.case-visual-orange { background: linear-gradient(135deg, var(--accent-dark), #f7b77a); color: #fff; }
.case-visual-navy { background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft)); color: #fff; }
.case-visual-soft { background: linear-gradient(135deg, #e7ecf5, #fdf1e6); color: var(--navy); }
.case-industry {
  position: absolute; left: 20px; top: 20px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.2);
  font-size: 12px; font-weight: 700;
}
.case-visual-soft .case-industry, .mini-case-top.case-visual-soft .case-industry { background: rgba(255, 255, 255, 0.75); }
.case-big { position: relative; }
.case-big strong { display: block; font-size: 56px; line-height: 1; letter-spacing: -2px; }
.case-big span { font-size: 15px; opacity: 0.85; }
.case-body { padding: 32px 36px; }
.case-body h2 { font-size: 24px; margin-bottom: 10px; }
.case-body > p { color: var(--muted); }
.case-tags { margin-bottom: 12px; }
.case-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 6px; padding-top: 20px; border-top: 1px solid var(--border); }
.case-stats strong { display: block; font-size: 22px; color: var(--navy); }
.case-stats span { font-size: 13px; color: var(--muted); }

.mini-case { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.mini-case:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-case-top { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 170px; padding: 20px; }
.mini-case-top strong { position: relative; font-size: 40px; line-height: 1; letter-spacing: -1.5px; }
.mini-case-top > span:last-child { position: relative; font-size: 14px; opacity: 0.85; }
.mini-case-top .case-industry { left: 16px; top: 16px; }
.mini-case-body { padding: 22px; display: block; }
.mini-case-body h3 { font-size: 18px; }

.case-hero { padding: 64px 0 56px; }
.case-hero-orange { background: linear-gradient(135deg, #c86f22, var(--accent)); }
.case-hero-navy { background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft)); }
.case-hero-soft { background: linear-gradient(135deg, #e7ecf5, #fdf1e6); }
.case-hero-orange, .case-hero-navy { color: #fff; }
.case-hero-orange h1, .case-hero-navy h1 { color: #fff; }
.case-hero-orange .lead, .case-hero-navy .lead { color: rgba(255, 255, 255, 0.85); }
.case-hero-orange .breadcrumbs, .case-hero-orange .breadcrumbs a, .case-hero-navy .breadcrumbs, .case-hero-navy .breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.case-hero-orange .demo-note-light span { color: #fff; border-color: #fff; }
.case-hero-orange .demo-note-light { color: rgba(255, 255, 255, 0.85); }
.case-hero-soft .demo-note { margin: 0 0 18px; }
.case-hero h1 { max-width: 820px; margin-bottom: 16px; font-size: clamp(32px, 4.8vw, 50px); }
.case-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 48px; margin-top: 36px; }
.case-facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
.case-facts dd { font-weight: 600; }

.result-strip { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.result-strip li { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.result-strip strong { display: block; font-size: 44px; line-height: 1.05; letter-spacing: -1.5px; color: var(--navy); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.result-strip span { color: var(--muted); font-size: 15px; }
.case-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.case-layout .article { padding: 0; }
.case-layout .article h2:first-child { margin-top: 0; }
.case-aside { display: grid; gap: 20px; position: sticky; top: 96px; }
.case-aside .muted { font-size: 15px; margin-bottom: 18px; }
.ticks-compact { margin-bottom: 20px; }
.ticks-compact li { font-size: 14.5px; padding: 8px 0 8px 32px; }
.ticks-compact li::before { top: 9px; }
.timeline { list-style: none; padding-left: 0 !important; counter-reset: tl; }
.timeline li { position: relative; padding: 0 0 22px 44px; margin: 0; counter-increment: tl; }
.timeline li::before {
  content: counter(tl); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.timeline li::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline strong { color: var(--navy); }
.case-next { text-align: center; }
.case-next a { text-decoration: none; }
.case-next h2 { margin: 8px 0 0; transition: color 0.15s; }
.case-next a:hover h2 { color: var(--accent-dark); }

/* ---------- SMS tool ---------- */
.tool-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.sms-input { min-height: 180px; font-size: 17px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; }
.sms-stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.sms-stats li { background: var(--bg-alt); border-radius: 12px; padding: 16px; }
.sms-stats strong { display: block; font-size: 26px; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sms-stats span { font-size: 13px; color: var(--muted); }
.sms-meter { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.sms-meter span { display: block; height: 100%; width: 0; background: var(--success); border-radius: 99px; transition: width 0.2s var(--ease), background 0.2s; }
.sms-meter span.is-multi { background: var(--accent); }
.sms-warning { margin-top: 14px; font-size: 14px; color: var(--accent-dark); background: var(--accent-tint); padding: 12px 14px; border-radius: 10px; }
.tool-preview { display: flex; justify-content: center; }
.mock-phone.is-static { position: relative; right: auto; top: auto; animation: none; width: 300px; min-height: 360px; }
.mock-phone.is-static .bubble { background: var(--bg-alt); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.phone-sender { text-align: center; font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 14px; }
.phone-time { font-size: 11px; color: var(--muted); margin-top: 6px; }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-featured, .case-card { grid-template-columns: 1fr; }
  .case-layout, .tool-grid { grid-template-columns: 1fr; }
  .case-aside { position: static; }
  .case-facts { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 640px) {
  .post-grid, .post-grid-2, .result-strip { grid-template-columns: 1fr; }
  .post-featured-body, .case-body { padding: 24px; }
  .post-featured .post-cover { min-height: 180px; }
  .case-visual { min-height: 180px; }
  .case-stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .case-stats strong { font-size: 18px; }
  .sms-stats { grid-template-columns: 1fr 1fr; }
  .share { margin-left: 0; width: 100%; }
  .article > p, .article > ul, .article > ol { font-size: 16px; }
  .result-strip strong { font-size: 36px; }
}

/* ---------- Subscribe & preferences ---------- */
.subscribe-grid { display: grid; gap: 48px; grid-template-columns: 1.5fr 1fr; align-items: start; }
.step-help { font-size: 14px; margin: -10px 0 16px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.channel { margin: 0; cursor: pointer; }
.channel input { position: absolute; opacity: 0; pointer-events: none; }
.channel-box {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px;
  border: 1.5px solid var(--border); border-radius: 12px; font-weight: 400; transition: all 0.15s;
}
.channel-box strong { color: var(--navy); font-size: 15px; }
.channel-box > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.4; }
.channel-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--bg-alt); color: var(--navy-soft); transition: all 0.15s;
}
.channel-icon svg { width: 18px; height: 18px; }
.channel-box::after {
  content: "✓"; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  border: 1.5px solid var(--border); background: #fff; color: transparent; transition: all 0.15s;
}
.channel:hover .channel-box { border-color: var(--navy-soft); }
.channel input:checked + .channel-box { border-color: var(--accent); background: #fffaf5; box-shadow: 0 0 0 3px var(--accent-tint); }
.channel input:checked + .channel-box .channel-icon { background: var(--accent); color: #fff; }
.channel input:checked + .channel-box::after { background: var(--accent); border-color: var(--accent); color: #fff; }
.channel input:focus-visible + .channel-box { outline: 3px solid rgba(242, 154, 74, 0.55); outline-offset: 2px; }
.channel-grid + .error { margin-top: 10px; }
.check[hidden] { display: none; }
.consents .check { animation: fade-up 0.3s var(--ease); }
.success-summary { list-style: none; display: grid; gap: 8px; max-width: 360px; margin: 0 auto 28px; text-align: left; }
.success-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg-alt); border-radius: 10px; font-size: 14px; }
.success-summary li span:last-child { color: var(--accent-dark); font-weight: 600; }
.newsletter-more { display: inline-block; margin-top: 12px; font-size: 13px; color: #fff; }
.newsletter-more:hover { color: var(--accent); }

.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.pref-row:first-of-type { border-top: 0; }
.pref-row strong { color: var(--navy); }
.pref-row p { font-size: 14px; color: var(--muted); }
.pref-frequency { margin-top: 12px; }
.is-disabled { opacity: 0.45; pointer-events: none; }
.pref-unsub { border-bottom: 0; }
.pref-note { margin-top: 24px; text-align: center; }

.slide-in {
  position: fixed; right: 20px; bottom: 20px; z-index: 75; width: 320px; padding: 22px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: slide-up 0.5s var(--ease);
}
.slide-in[hidden] { display: none; }
.slide-in strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 6px; padding-right: 30px; }
.slide-in p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.slide-in .modal-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; font-size: 18px; }
body.has-slide-in .back-to-top { opacity: 0; pointer-events: none; }

@media (max-width: 960px) {
  .subscribe-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .channel-grid { grid-template-columns: 1fr; }
  .channel-box { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 14px 44px 14px 14px; }
  .channel-icon { margin: 0; }
  .channel-box > span:last-child { flex-basis: 100%; }
  .slide-in { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
