/* TimbraFacile — landing styles
   Editorial hi-fi: Instrument Serif display + Geist sans, indigo + brand orange.
*/
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ─── BRAND WORDMARK ─── */
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 26px/1 var(--font-display);
  color: var(--accent-700); letter-spacing: -0.01em;
}
.wordmark .pin {
  display: inline-block; width: 24px; height: 24px;
  position: relative;
}
.wordmark .pin svg { width: 100%; height: 100%; }
.wordmark em { font-style: italic; color: var(--brand-500); font-weight: 400; }
.wordmark.on-dark { color: #fff; }
.wordmark.on-dark em { color: var(--brand-500); }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 252, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav-logo { text-decoration: none; }
.nav-links { display: flex; gap: 28px; flex: 1; margin-left: 8px; }
.nav-links a { color: var(--fg-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--brand-500); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ─── BUTTONS ─── */
.btn {
  height: 44px; padding: 0 20px; border-radius: 10px;
  font: 500 14.5px var(--font-sans); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--t-base); text-decoration: none; white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-3); }
.btn-secondary { background: transparent; color: var(--accent-700); border: 1px solid var(--border-strong); }
.btn-secondary:hover { color: var(--brand-500); border-color: var(--brand-500); background: var(--surface); }
.btn-ghost { background: transparent; color: var(--accent-700); }
.btn-ghost:hover { color: var(--brand-500); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; }
.btn-on-dark { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.btn-on-dark:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-white { background: #fff; color: var(--accent-700); }
.btn-white:hover { background: var(--brand-500); color: #fff; transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  position: relative; padding: 88px 0 0; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(238,112,56,.10), transparent 60%),
    radial-gradient(50% 60% at 5% 30%, rgba(72,82,175,.08), transparent 60%),
    var(--bg);
  z-index: 0;
}
/* Subtle indigo line pattern, like the design system note suggests */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(72,82,175,.045) 1px, transparent 1px);
  background-size: 80px 100%;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px 7px 8px; border-radius: 999px;
  font: 500 13px var(--font-sans); color: var(--fg-2);
  box-shadow: var(--shadow-1);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 3px rgba(26,166,107,.18); animation: pulse 2.4s ease-in-out infinite; }
.eyebrow b { color: var(--fg-1); font-weight: 600; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(26,166,107,.18); }
  50% { box-shadow: 0 0 0 6px rgba(26,166,107,.05); }
}
.hero h1 {
  font: 400 80px/0.98 var(--font-display);
  color: var(--fg-1); letter-spacing: -0.025em;
  margin: 22px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--brand-500); }
.hero h1 .underline {
  position: relative; white-space: nowrap;
}
.hero h1 .underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 8px; background: var(--brand-100); z-index: -1; border-radius: 2px;
}
.hero p.lede {
  font: 400 19px/1.55 var(--font-sans); color: var(--fg-3);
  margin: 0 0 32px; max-width: 540px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex; align-items: center; gap: 18px; margin-top: 22px;
  font-size: 13.5px; color: var(--fg-3);
}
.hero-meta svg { color: var(--success); flex-shrink: 0; }
.hero-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stat b { display: block; font: 400 36px/1 var(--font-display); color: var(--accent-700); letter-spacing: -0.01em; }
.hero-stat span { display: block; font-size: 13px; color: var(--fg-3); margin-top: 6px; }

/* Hero device mockup */
.hero-device {
  position: relative; perspective: 1400px;
  display: flex; justify-content: center; align-items: center;
  height: 600px;
}
.phone {
  width: 290px; height: 580px; border-radius: 44px;
  background: #1a1d2e; padding: 10px;
  box-shadow:
    0 50px 100px -20px rgba(20,24,50,0.35),
    0 30px 60px -30px rgba(238,112,56,0.18),
    inset 0 0 0 1px rgba(255,255,255,.05);
  position: relative;
  transform: rotate(-4deg);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%);
  position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px; background: #1a1d2e; border-radius: 999px; z-index: 5;
}
.phone-statusbar {
  display: flex; justify-content: space-between; padding: 14px 24px 0;
  font: 600 13px var(--font-sans); color: var(--fg-1);
}
.phone-statusbar .icons { display: flex; gap: 4px; align-items: center; color: var(--fg-2); }
.phone-greet { padding: 38px 22px 0; }
.phone-greet small { font: 500 11px var(--font-sans); color: var(--fg-4); text-transform: uppercase; letter-spacing: 0.1em; }
.phone-greet h4 { font: 400 26px/1.1 var(--font-display); color: var(--fg-1); margin: 4px 0 0; }
.phone-greet h4 em { font-style: italic; color: var(--brand-500); }

.phone-time-card {
  margin: 18px 18px 0; padding: 18px;
  background: var(--accent-700); border-radius: 18px;
  color: #fff; position: relative; overflow: hidden;
}
.phone-time-card::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 999px;
  background: radial-gradient(circle, rgba(238,112,56,.35), transparent 70%);
}
.phone-time-card .label { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: 0.1em; }
.phone-time-card .clock { font: 400 38px/1 var(--font-display); margin: 4px 0 0; letter-spacing: -0.02em; }
.phone-time-card .session { font-size: 12px; opacity: .8; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.phone-time-card .session .live { width: 6px; height: 6px; border-radius: 999px; background: #1aa66b; box-shadow: 0 0 0 2px rgba(26,166,107,.3); }

.phone-stamp-btn {
  margin: 16px 18px 0; height: 60px; border-radius: 16px;
  background: var(--brand-500); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px var(--font-sans);
  box-shadow: 0 8px 20px -4px rgba(238,112,56,0.45);
}
.phone-stamp-btn svg { width: 22px; height: 22px; }

.phone-list { padding: 18px; flex: 1; }
.phone-list-h { font: 600 12px var(--font-sans); color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.phone-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.phone-row:last-child { border-bottom: none; }
.phone-row .ico { width: 28px; height: 28px; border-radius: 8px; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone-row .ico.out { background: var(--brand-100); color: var(--brand-600); }
.phone-row .text { flex: 1; }
.phone-row .text b { display: block; color: var(--fg-1); font-weight: 600; }
.phone-row .text span { color: var(--fg-3); font-size: 11.5px; }
.phone-row .time { color: var(--fg-2); font-weight: 500; font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* Floating map preview behind phone */
.hero-map {
  position: absolute; right: 50%; top: 50%; transform: translate(180px, -50%) rotate(3deg);
  width: 320px; height: 200px; border-radius: 16px;
  background: linear-gradient(135deg, #e9ecf5 0%, #f1f2f9 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3); overflow: hidden;
  z-index: -1;
}
.hero-map svg { width: 100%; height: 100%; }
.map-pin {
  position: absolute; width: 20px; height: 20px; border-radius: 999px;
  background: var(--brand-500);
  box-shadow: 0 0 0 6px rgba(238,112,56,.2), 0 0 0 12px rgba(238,112,56,.08);
}

/* ─── TRUST BAR ─── */
.trust { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust h4 { text-align: center; font: 500 12px var(--font-sans); color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 28px; }
.trust-row { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 32px; opacity: .55; }
.trust-row .logo-ph {
  font: 600 16px var(--font-sans); color: var(--fg-2); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.trust-row .logo-ph::before { content: ""; width: 22px; height: 22px; border-radius: 5px; background: var(--fg-3); }
.trust-row .logo-ph.r1::before { border-radius: 999px; }
.trust-row .logo-ph.r2::before { transform: rotate(45deg); border-radius: 4px; }

/* ─── SECTION ─── */
.section { padding: 112px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .overline {
  display: inline-block; font: 500 11px var(--font-sans); color: var(--brand-500);
  text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 14px;
  padding: 4px 10px; background: var(--brand-50); border-radius: 999px;
}
.section-head h2 { font: 400 48px/1.05 var(--font-display); color: var(--fg-1); margin: 0 0 16px; letter-spacing: -0.015em; }
.section-head h2 em { font-style: italic; color: var(--brand-500); }
.section-head p { font-size: 18px; line-height: 1.55; color: var(--fg-3); margin: 0 auto; max-width: 580px; }

/* ─── MODE CARDS ─── */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 32px; transition: all var(--t-base);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--brand-100); }
.mode-card.featured { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }
.mode-card.featured h3 { color: #fff; }
.mode-card.featured p { color: rgba(255,255,255,.78); }
.mode-card.featured::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 999px;
  background: radial-gradient(circle, rgba(238,112,56,.28), transparent 70%);
}
.mode-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.mode-card.featured .mode-icon { background: rgba(255,255,255,.12); }
.mode-tag {
  position: absolute; top: 24px; right: 24px;
  font: 500 11px var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--brand-500); color: #fff; padding: 4px 10px; border-radius: 999px;
}
.mode-card h3 { font: 400 28px/1.15 var(--font-display); margin: 0 0 12px; letter-spacing: -0.01em; }
.mode-card h3 em { font-style: italic; color: var(--brand-500); }
.mode-card p { font-size: 15px; line-height: 1.55; margin: 0 0 22px; color: var(--fg-3); }
.mode-points { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.mode-points li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--fg-2); line-height: 1.45; }
.mode-card.featured .mode-points li { color: rgba(255,255,255,.92); }
.mode-points li svg { flex-shrink: 0; margin-top: 3px; }
.mode-link {
  font: 500 14px var(--font-sans); color: var(--accent-500);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--t-fast);
}
.mode-link:hover { color: var(--brand-500); gap: 10px; }
.mode-card.featured .mode-link { color: #fff; }
.mode-card.featured .mode-link:hover { color: var(--brand-500); }

/* ─── PLATFORM (App + WebApp) ─── */
.platform {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.platform-copy h2 { font: 400 44px/1.05 var(--font-display); color: var(--fg-1); letter-spacing: -0.015em; margin: 0 0 16px; }
.platform-copy h2 em { font-style: italic; color: var(--brand-500); }
.platform-copy > p { font-size: 17px; line-height: 1.6; color: var(--fg-3); margin: 0 0 28px; }
.platform-list { list-style: none; padding: 0; margin: 0 0 32px; }
.platform-list li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.platform-list li:last-child { border-bottom: none; }
.platform-list .pl-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-100); color: var(--accent-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.platform-list b { display: block; color: var(--fg-1); font-weight: 600; font-size: 15px; }
.platform-list span { color: var(--fg-3); font-size: 14px; line-height: 1.5; }

.platform-visual {
  position: relative; height: 520px;
  display: flex; align-items: center; justify-content: center;
}
/* Browser window mockup */
.browser {
  width: 100%; max-width: 540px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-3); overflow: hidden;
  transform: rotate(-1deg);
  position: relative; z-index: 1;
}
.browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 999px; background: var(--border-strong); }
.browser-dots span:nth-child(1) { background: #ff6058; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }
.browser-url {
  flex: 1; height: 28px; border-radius: 8px; background: var(--bg);
  display: flex; align-items: center; padding: 0 12px;
  font: 500 12px var(--font-mono); color: var(--fg-3);
}
.browser-body { padding: 22px; min-height: 320px; }
.browser-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.browser-h h5 { font: 400 22px/1 var(--font-display); margin: 0; color: var(--fg-1); }
.browser-h .pill { font: 500 11px var(--font-sans); padding: 4px 10px; border-radius: 999px; background: var(--success-bg); color: var(--success); }
.browser-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.browser-stats .st { background: var(--bg); border-radius: 10px; padding: 12px; }
.browser-stats .st small { font: 500 11px var(--font-sans); color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; }
.browser-stats .st b { display: block; font: 400 22px/1.1 var(--font-display); color: var(--fg-1); margin-top: 4px; letter-spacing: -0.01em; }
.browser-table { background: var(--bg); border-radius: 10px; overflow: hidden; }
.browser-table .tr {
  display: grid; grid-template-columns: 1fr 80px 80px 28px;
  align-items: center; gap: 8px;
  padding: 11px 14px; font-size: 12.5px; color: var(--fg-2);
  border-bottom: 1px solid var(--border);
}
.browser-table .tr:last-child { border-bottom: none; }
.browser-table .tr.head { background: var(--surface); font: 500 11px var(--font-sans); color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 14px; }
.browser-table .tr b { color: var(--fg-1); font-weight: 500; font-size: 13px; }
.browser-table .tr .stat-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--success); justify-self: end; }
.browser-table .tr .stat-dot.off { background: var(--fg-4); }
.browser-table .tr .num { font-variant-numeric: tabular-nums; color: var(--fg-2); }

/* Small phone behind/beside browser */
.platform-visual .mini-phone {
  position: absolute; bottom: 10px; right: 10px;
  width: 170px; height: 340px; border-radius: 28px;
  background: #1a1d2e; padding: 7px;
  box-shadow: 0 30px 60px -10px rgba(20,24,50,.35);
  transform: rotate(6deg);
}
.platform-visual .mini-phone-screen {
  width: 100%; height: 100%; border-radius: 22px;
  background: linear-gradient(180deg, var(--accent-700), #1a1d4a);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; padding: 18px;
}
.mini-phone-screen .label { font: 500 9px var(--font-sans); text-transform: uppercase; letter-spacing: 0.14em; opacity: .6; }
.mini-phone-screen .clock { font: 400 32px/1 var(--font-display); margin: 6px 0 16px; }
.mini-phone-screen .stamp {
  width: 100%; height: 44px; border-radius: 12px;
  background: var(--brand-500); display: flex; align-items: center; justify-content: center;
  font: 600 13px var(--font-sans);
}
.mini-phone-screen .geo {
  margin-top: 14px; width: 100%; padding: 8px 10px;
  background: rgba(255,255,255,.08); border-radius: 8px;
  font: 500 10px var(--font-sans); display: flex; align-items: center; gap: 6px; opacity: .85;
}

/* ─── FEATURES ─── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; transition: all var(--t-base);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); border-color: var(--brand-100); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 11px; background: var(--accent-100); color: var(--accent-500);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature h4 { font: 600 17px var(--font-sans); color: var(--fg-1); margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { font-size: 14.5px; color: var(--fg-3); margin: 0; line-height: 1.55; }

/* ─── HOW IT WORKS ─── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 32px; left: 14%; right: 14%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step-num {
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font: 400 28px/1 var(--font-display); color: var(--brand-500);
  margin: 0 auto 20px; box-shadow: var(--shadow-2);
}
.step h4 { font: 600 18px var(--font-sans); color: var(--fg-1); margin: 0 0 8px; letter-spacing: -0.01em; }
.step p { font-size: 14.5px; color: var(--fg-3); margin: 0; line-height: 1.55; }

/* ─── MODULES (tutto incluso) ─── */
.modules-banner {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  color: var(--brand-600); padding: 7px 16px; border-radius: 999px;
  font: 500 12.5px var(--font-sans); margin-bottom: 14px;
}
.modules-banner svg { color: var(--brand-500); }

.modules-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.module {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 22px 22px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 168px;
}
.module::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--brand-500);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--t-base);
}
.module:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--border-strong);
}
.module:hover::before { transform: scaleY(1); }

.module .m-ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-100); color: var(--accent-500);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-base), color var(--t-base), transform var(--t-base);
}
.module:hover .m-ico {
  background: var(--brand-100); color: var(--brand-600);
  transform: rotate(-4deg) scale(1.05);
}

.module h5 {
  font: 600 15.5px var(--font-sans); color: var(--fg-1);
  margin: 0; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.module h5 .m-incl {
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--success); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.module p {
  font-size: 13.5px; line-height: 1.5; color: var(--fg-3);
  margin: 0;
}

/* Accent variants — gentle color rhythm across the grid */
.module.v-orange .m-ico { background: var(--brand-100); color: var(--brand-600); }
.module.v-indigo .m-ico { background: var(--accent-100); color: var(--accent-500); }
.module.v-green  .m-ico { background: var(--success-bg); color: var(--success); }
.module.v-amber  .m-ico { background: var(--warning-bg); color: #b97607; }

.modules-foot {
  margin-top: 32px; padding: 24px 28px;
  background: linear-gradient(135deg, var(--accent-700) 0%, #1a1d4a 100%);
  border-radius: 18px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.modules-foot::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 999px;
  background: radial-gradient(circle, rgba(238,112,56,.3), transparent 70%);
}
.modules-foot > * { position: relative; z-index: 1; }
.modules-foot .mf-text { max-width: 540px; }
.modules-foot b { font: 500 17px var(--font-sans); color: #fff; letter-spacing: -0.005em; }
.modules-foot p { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.5; }

@media (max-width: 980px) {
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .modules-grid { grid-template-columns: 1fr; gap: 12px; }
  .module { min-height: 0; padding: 20px; }
  .modules-foot { flex-direction: column; align-items: flex-start; padding: 22px; }
}

/* ─── PRICING CALCULATOR ─── */
.calc-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  padding: 0; max-width: 1040px; margin: 0 auto; box-shadow: var(--shadow-3);
  display: grid; grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
}
.calc-left { padding: 44px; }
.calc-left h3 { font: 400 30px/1.1 var(--font-display); margin: 0 0 8px; color: var(--fg-1); letter-spacing: -0.01em; }
.calc-left h3 em { font-style: italic; color: var(--brand-500); }
.calc-left p.calc-sub { color: var(--fg-3); font-size: 15px; margin: 0 0 28px; line-height: 1.55; }

.calc-num {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px;
}
.calc-num input {
  width: 110px; height: 64px; text-align: center;
  font: 400 36px var(--font-display); border: 1px solid var(--border);
  border-radius: 12px; color: var(--fg-1); background: var(--bg);
  letter-spacing: -0.02em;
}
.calc-num input:focus { outline: none; border-color: var(--brand-500); background: var(--brand-50); }
.calc-num span { color: var(--fg-3); font-size: 15px; }

.calc-slider { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; background: var(--border); border-radius: 999px; outline: none; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 999px; background: var(--brand-500); cursor: pointer; box-shadow: 0 2px 6px rgba(238,112,56,.4), 0 0 0 4px rgba(238,112,56,.15); transition: transform var(--t-fast); }
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 999px; background: var(--brand-500); cursor: pointer; border: 0; box-shadow: 0 2px 6px rgba(238,112,56,.4), 0 0 0 4px rgba(238,112,56,.15); }
.calc-slider-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-4); margin-top: 8px; }

.calc-mode { margin-top: 28px; }
.calc-mode-h { font: 500 12px var(--font-sans); color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.calc-mode-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.calc-mode-btn {
  padding: 12px 10px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); cursor: pointer; transition: all var(--t-fast);
  text-align: left; font: 500 13px var(--font-sans); color: var(--fg-2);
  display: flex; flex-direction: column; gap: 2px;
}
.calc-mode-btn:hover { border-color: var(--brand-500); }
.calc-mode-btn.active { background: var(--brand-50); border-color: var(--brand-500); color: var(--accent-700); }
.calc-mode-btn small { font: 400 11.5px var(--font-sans); color: var(--fg-4); }
.calc-mode-btn.active small { color: var(--brand-600); }

.calc-right {
  background: linear-gradient(165deg, var(--accent-700) 0%, #1a1d4a 100%);
  padding: 44px; color: #fff; position: relative; overflow: hidden;
}
.calc-right::before {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 260px; height: 260px; border-radius: 999px;
  background: radial-gradient(circle, rgba(238,112,56,.28), transparent 70%);
}
.calc-right > * { position: relative; z-index: 1; }
.calc-toggle { display: flex; gap: 4px; background: rgba(255,255,255,.08); padding: 4px; border-radius: 999px; margin-bottom: 28px; }
.calc-toggle button {
  flex: 1; height: 38px; border: none; background: transparent;
  color: rgba(255,255,255,.7); font-weight: 500; font-size: 13px; border-radius: 999px;
  cursor: pointer; transition: all var(--t-fast);
}
.calc-toggle button.active { background: #fff; color: var(--accent-700); }
.calc-period-label { font: 500 11px var(--font-sans); color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 0.14em; }
.calc-total { font: 400 64px/1 var(--font-display); margin: 8px 0 4px; letter-spacing: -0.025em; display: flex; align-items: baseline; gap: 6px; }
.calc-total small { font: 400 16px var(--font-sans); color: rgba(255,255,255,.65); }
.calc-period-note { font-size: 13.5px; color: rgba(255,255,255,.7); margin-bottom: 24px; }
.calc-bd { font-size: 13.5px; color: rgba(255,255,255,.85); display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.calc-bd:first-of-type { border-top: 0; padding-top: 6px; }
.calc-bd b { font-weight: 600; color: #fff; }
.calc-savings {
  margin-top: 18px; padding: 14px; border-radius: 12px;
  background: rgba(238,112,56,.18); border: 1px solid rgba(238,112,56,.3);
  font-size: 13px; color: #fff; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
}
.calc-savings svg { flex-shrink: 0; margin-top: 1px; color: var(--brand-500); }
.calc-savings b { color: var(--brand-500); }
.calc-cta { margin-top: 22px; width: 100%; }
.calc-foot { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,.6); text-align: center; }

/* ─── TESTIMONIALS ─── */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; transition: all var(--t-base); display: flex; flex-direction: column; }
.t-card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.t-stars { display: flex; gap: 2px; margin-bottom: 16px; color: var(--brand-500); }
.t-quote { font: 400 17px/1.55 var(--font-display); font-style: italic; color: var(--fg-1); margin: 0 0 22px; flex: 1; letter-spacing: -0.005em; }
.t-author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.t-avatar { width: 44px; height: 44px; border-radius: 999px; background: linear-gradient(135deg, var(--brand-500), var(--accent-500)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.t-author b { display: block; font-size: 14px; color: var(--fg-1); font-weight: 600; }
.t-author span { font-size: 12.5px; color: var(--fg-3); }

/* ─── FAQ ─── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--border); padding: 22px 0; cursor: pointer; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font: 600 17px var(--font-sans); color: var(--fg-1); letter-spacing: -0.005em;
}
.faq-q .plus { width: 24px; height: 24px; flex-shrink: 0; transition: transform var(--t-base); color: var(--brand-500); }
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-a { font-size: 15px; line-height: 1.6; color: var(--fg-3); margin: 12px 0 0; max-width: 90%; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(165deg, var(--accent-700) 0%, #1a1d4a 100%);
  border-radius: 28px; padding: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: #fff; position: relative; overflow: hidden;
}
.cta-banner::before { content: ""; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px; border-radius: 999px; background: radial-gradient(circle, rgba(238,112,56,.3), transparent 70%); }
.cta-banner::after {
  content: ""; position: absolute; left: 0; bottom: 0; right: 0; top: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 100%;
  mask-image: radial-gradient(50% 80% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(50% 80% at 50% 50%, #000, transparent 75%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h3 { font: 400 40px/1.05 var(--font-display); margin: 0 0 12px; color: #fff; letter-spacing: -0.015em; max-width: 600px; }
.cta-banner h3 em { font-style: italic; color: var(--brand-500); }
.cta-banner p { color: rgba(255,255,255,.78); margin: 0; font-size: 16.5px; max-width: 540px; line-height: 1.55; }
.cta-banner .right { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex-shrink: 0; }
.cta-banner .right small { color: rgba(255,255,255,.6); font-size: 12.5px; }

/* ─── FOOTER ─── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 72px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 56px; }
.foot-grid h5 { font: 600 13px var(--font-sans); color: var(--fg-1); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 18px; }
.foot-grid a { display: block; color: var(--fg-3); font-size: 14px; padding: 4px 0; font-weight: 400; }
.foot-grid a:hover { color: var(--brand-500); }
.foot-tag { color: var(--fg-3); font-size: 14px; margin: 16px 0 22px; line-height: 1.6; max-width: 320px; }
.foot-stores { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px; border-radius: 10px;
  background: var(--fg-1); color: #fff; font: 500 12.5px var(--font-sans);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--t-fast), background var(--t-fast);
}
.foot-store:hover { background: #000; color: #fff; transform: translateY(-1px); }
.foot-store .store-ico { flex-shrink: 0; display: block; }
.foot-store span { display: flex; flex-direction: column; line-height: 1; }
.foot-store small { display: block; font-size: 9.5px; opacity: .72; line-height: 1; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; }
.foot-store b { display: block; font-size: 14px; line-height: 1; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--fg-3); }

/* ─── MOBILE ─── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-device { height: 480px; order: 2; }
  .hero-map { transform: translate(120px, -50%) rotate(3deg); width: 240px; height: 150px; }
  .platform { grid-template-columns: 1fr; gap: 40px; }
  .platform-visual { height: 460px; }
  .modes { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-left, .calc-right { padding: 32px; }
  .testimonials { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .cta-banner .right { align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .section-head h2 { font-size: 36px; }
  .hero h1 { font-size: 56px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-actions .btn-secondary { display: none; }
  .hero { padding: 56px 0 0; }
  .hero h1 { font-size: 44px; }
  .hero p.lede { font-size: 17px; }
  .hero-stats { gap: 18px; }
  .hero-stat b { font-size: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-device { height: 440px; }
  .hero-map { display: none; }
  .section-head h2 { font-size: 30px; }
  .section { padding: 64px 0; }
  .calc-num input { width: 90px; height: 56px; font-size: 28px; }
  .calc-total { font-size: 48px; }
  .cta-banner h3 { font-size: 28px; }
  .calc-mode-row { grid-template-columns: 1fr; }
  .browser { transform: none; }
  .platform-visual .mini-phone { right: 0; bottom: -10px; transform: rotate(8deg); }
}
