/* SK Dialer landing page — tokens from the brief */
:root {
  --bg: #FFFFFF;
  /* palette taken from the SK Dialer app (green primary, deep-green dark) */
  --bg-soft: #F5F9F5;
  --line: #DAE0DA;
  --silver: #8C968C;
  --ink: #0A130B;
  --ink-soft: #4E5A4E;
  --gold: #2BA321;        /* primary green (name kept for the existing rules) */
  --gold-deep: #137A09;   /* green text on white */
  --gold-tint: #E4F3E2;
  --live: #2BA321;
  --dark: #04170A;
  --frame: #E6EEE6;
  --panel-end: #F5F9F5;
  --on-dark: #E6EEE6;
  --shadow: 0 24px 60px rgba(4, 23, 10, 0.12);
  --pad: 16px;
  --section-y: 72px;
}
@media (min-width: 768px) { :root { --pad: 24px; --section-y: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--frame);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Shell ---------- */
.frame { margin: 16px; display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--bg);
  border-radius: 24px;
  padding: var(--section-y) 0;
  position: relative;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--gold-tint); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }
h1 { font-size: 36px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
@media (min-width: 768px) { h1 { font-size: 64px; } h2 { font-size: 40px; } }
.sub { color: var(--ink-soft); max-width: 560px; margin: 16px auto 0; }
.word { display: inline-block; will-change: transform, filter; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(43, 163, 33, 0.28); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-line { background: var(--bg); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--silver); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50;
  width: min(760px, calc(100% - 24px));
  transform: translateX(-50%);
  transition: transform .35s ease;
}
.nav-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px 8px 8px 14px; box-shadow: 0 6px 20px rgba(4, 23, 10, 0.06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.nav.scrolled .nav-pill { transform: scale(0.96); box-shadow: 0 14px 34px rgba(4, 23, 10, 0.14); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand img { height: 32px; width: auto; display: block; }
.nav-links { display: none; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-login { display: none; font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 10px; color: var(--ink-soft); }
.nav-login:hover { color: var(--ink); }
@media (min-width: 720px) { .nav-links { display: flex; } .nav-login { display: block; } }

/* ---------- Hero ---------- */
.hero { padding-top: 112px; overflow: hidden; }
@media (min-width: 768px) { .hero { padding-top: 144px; } }
.net { position: relative; width: min(760px, 100%); aspect-ratio: 760 / 340; margin: 0 auto 56px; container-type: inline-size; }
.net-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net-lines path { fill: none; stroke: var(--silver); stroke-width: 1.4; opacity: 0.7; }
.net-lines circle { fill: var(--gold); }
.tile {
  position: absolute; display: grid; place-items: center; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--line); color: var(--silver);
  --s: 11cqw; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  box-shadow: 0 8px 22px rgba(4, 23, 10, 0.06);
}
.tile .icon { width: 42%; height: 42%; }
.tile small {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; display: none;
}
@media (min-width: 640px) { .tile { --s: 72px; } .tile small { display: block; } }
.tile-core {
  --s: 15.8cqw; border-radius: 26px; background: var(--gold); border-color: var(--gold); color: var(--ink);
  box-shadow: var(--shadow); z-index: 2;
}
@media (min-width: 640px) { .tile-core { --s: 120px; border-radius: 30px; } }
.tile-core .icon { width: 44%; height: 44%; stroke-width: 1.75; position: absolute; }
.tile-avatar { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.hero-copy { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-copy .sub { margin-top: 20px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.proof { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }
.proof span { padding: 0 6px; color: var(--silver); }

/* ---------- Hero (photo + floating UI) ---------- */
.hero { padding-bottom: 56px; background: radial-gradient(60% 520px at 50% 0, rgba(43, 163, 33, 0.16), transparent 72%), var(--bg); }
.hero h1 { font-size: clamp(38px, 7.2vw, 80px); letter-spacing: -0.03em; }
.hl { color: var(--gold-deep); }
.hero-visual { position: relative; margin-top: 64px; }
.photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--dark); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 118%; object-fit: cover; object-position: 72% 30%; display: block; }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: 28px; background: linear-gradient(180deg, rgba(4,23,10,0) 55%, rgba(4,23,10,0.45) 100%); pointer-events: none; }
@media (min-width: 768px) { .photo { aspect-ratio: 16 / 9; } .photo img { object-position: 50% 28%; } }
.fcard { position: absolute; z-index: 2; }
.fc { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.f-dial { left: 4%; right: 4%; bottom: -28px; }
.f-dial .fc { max-width: 300px; }
.f-dispo, .f-rec, .f-live { display: none; }
@media (min-width: 768px) {
  .f-dial { left: -2%; right: auto; bottom: 8%; width: 290px; }
  .f-dispo { display: block; left: 5%; top: 9%; width: 280px; }
  .f-dispo .fc { animation-delay: -2s; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .f-dispo .dispo { margin: 0; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
  .f-rec { display: block; right: -2%; bottom: 10%; width: 270px; }
  .f-rec .fc { animation-delay: -4s; }
  .f-live { display: block; right: 6%; top: 8%; }
  .f-live .fc { animation-delay: -1s; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 999px; }
}
.rec-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.rec-head .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-tint); color: var(--gold-deep); display: grid; place-items: center; }
.rec-head .ic .icon { width: 18px; height: 18px; }
.rec-head small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.f-rec .wave { display: flex; margin-top: 12px; height: 28px; }
.f-rec .wave i { background: var(--gold); opacity: 0.8; }
.avs { display: flex; }
.avs .avatar { width: 32px; height: 32px; font-size: 11px; margin-left: -8px; border: 2px solid #fff; }
.avs .avatar:first-child { margin-left: 0; }
.live-t { font-size: 13px; font-weight: 600; line-height: 1.25; }
.live-t span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; }

/* ---------- Agents live ---------- */
.agents { overflow: hidden; }
.agents-head { text-align: center; }
.agents-head .tile-sm { position: static; margin: 0 auto 20px; --s: 48px; width: 48px; height: 48px; color: var(--gold-deep); background: var(--gold-tint); border-color: transparent; border-radius: 14px; box-shadow: none; }
.agents-head .tile-sm .icon { width: 24px; height: 24px; }
.agent-field { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
.agent-col { display: contents; }
.agent {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  min-height: 190px; box-shadow: 0 10px 28px rgba(4, 23, 10, 0.05);
}
.avatar {
  width: 56px; height: 56px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 600; font-size: 16px; color: var(--ink);
}
.agent h3 { font-size: 16px; margin-top: 14px; }
.agent .role { font-size: 13px; color: var(--ink-soft); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--silver); }
.pill.on-call { color: var(--ink); }
.pill.on-call::before { background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.pill.ready { background: var(--gold-tint); border-color: transparent; color: var(--gold-deep); }
.pill.ready::before { background: var(--gold-deep); }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (min-width: 1000px) {
  .agent-wrap { display: grid; grid-template-columns: 180px 180px 1fr 180px 180px; gap: 20px; align-items: center; margin-top: 0; }
  .agents-head { grid-column: 3; grid-row: 1; padding: 0 8px; }
  .agent-field { display: contents; }
  .agent-col { display: flex; flex-direction: column; gap: 20px; grid-row: 1; }
  .agent-col.c1 { grid-column: 1; margin-top: -60px; }
  .agent-col.c2 { grid-column: 2; margin-top: 70px; }
  .agent-col.c3 { grid-column: 4; margin-top: 40px; }
  .agent-col.c4 { grid-column: 5; margin-top: -50px; }
  .agent { width: 180px; height: 220px; }
  .agent-col.c1 .agent, .agent-col.c4 .agent { filter: blur(1.4px); opacity: 0.65; }
}

/* ---------- Bento ---------- */
.bento-head { text-align: center; margin-bottom: 56px; }
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .b-sm { grid-column: span 2; }
  .b-wide { grid-column: span 4; }
}
.b {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.b:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.b p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.b-for { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.mock { margin-top: auto; padding-top: 20px; transition: transform .35s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 100%; }
.b:hover .mock { transform: scale(1.02); }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bars i { flex: 1; background: var(--line); border-radius: 6px 6px 2px 2px; height: var(--h); transform-origin: bottom; display: block; }
.bars i:last-child { background: var(--gold); }
.kpis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.kpis b { display: block; font-size: 20px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.bar-days { display: flex; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--silver); }
.bar-days span { flex: 1; text-align: center; }

.dialer .lead { display: flex; align-items: center; gap: 10px; }
.dialer .avatar { width: 38px; height: 38px; font-size: 13px; }
.dialer .nm { font-weight: 600; font-size: 14px; line-height: 1.3; }
.dialer .ph { font-size: 12px; color: var(--ink-soft); }
.dialer .row { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; }
.ctrls { display: flex; gap: 8px; }
.ctrl { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 12px; font-weight: 500; }
.ctrl .icon { width: 14px; height: 14px; }
.ctrl.end { background: var(--ink); border-color: var(--ink); color: #fff; }
.dispo {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--gold-tint); font-size: 13px; line-height: 1.35; box-shadow: var(--shadow);
}
.dispo .icon { color: var(--gold-deep); width: 18px; height: 18px; }
.dispo b { font-weight: 600; }

.shield-box { display: grid; place-items: center; padding: 28px 0 12px; }
.shield-art { position: relative; width: 112px; height: 112px; display: grid; place-items: center; color: var(--silver); border-radius: 28px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.shield-art .icon { width: 56px; height: 56px; }
.shield-art .pad { position: absolute; width: 22px; height: 22px; color: var(--gold-deep); top: 46px; }
.shield-art::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(43, 163, 33, 0.3) 50%, transparent 65%);
  transform: translateX(-120%); animation: shimmer 3.6s ease-in-out infinite;
}
@keyframes shimmer { 60%, 100% { transform: translateX(120%); } }

.logrows { display: flex; flex-direction: column; gap: 8px; }
.logrow { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.logrow .t { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.logrow .who { font-weight: 600; line-height: 1.3; }
.logrow .who span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-deep); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.n { background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--line); }
.wave { display: none; align-items: center; gap: 2px; height: 22px; }
.wave i { width: 2px; border-radius: 2px; background: var(--silver); height: var(--h); display: block; }
@media (min-width: 520px) { .logrow { grid-template-columns: 52px 1fr 96px auto; } .wave { display: flex; } }

.ring { position: relative; width: 224px; height: 224px; margin: 8px auto 0; }
.ring-core { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-deep); }
.ring-spin { position: absolute; inset: 0; animation: spin 48s linear infinite; }
.ring-spin .avatar { position: absolute; left: calc(50% - 22px); top: calc(50% - 22px); width: 44px; height: 44px; font-size: 13px; transform: rotate(var(--a)) translateY(-90px) rotate(calc(-1 * var(--a))); }
.ring-spin .avatar span { display: block; animation: spin-back 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { to { transform: rotate(-360deg); } }

/* ---------- Setup arc ---------- */
.setup { overflow: hidden; }
.setup-head { text-align: center; }
.setup-head .tile-sm { position: static; margin: 0 auto 20px; width: 48px; height: 48px; color: var(--gold-deep); background: var(--gold-tint); border-color: transparent; border-radius: 14px; box-shadow: none; }
.setup-head .tile-sm .icon { width: 24px; height: 24px; }
.arc { position: relative; height: 270px; margin-top: 48px; touch-action: pan-y; cursor: grab; user-select: none; }
.arc.drag { cursor: grabbing; }
.arc-tile {
  position: absolute; left: 50%; top: 10px; width: 104px; height: 104px; margin-left: -52px;
  border-radius: 22px; background: var(--bg); border: 1px solid var(--line); color: var(--silver);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px;
  text-align: center; font-size: 12px; font-weight: 600; line-height: 1.2; cursor: pointer; box-shadow: 0 10px 26px rgba(4, 23, 10, 0.06);
}
.arc-tile .icon { width: 32px; height: 32px; }
.arc-tile.center { color: var(--gold-deep); border-color: var(--gold); box-shadow: var(--shadow); }
@media (min-width: 768px) {
  .arc { height: 330px; }
  .arc-tile { width: 168px; height: 168px; margin-left: -84px; border-radius: 28px; font-size: 15px; gap: 12px; }
  .arc-tile .icon { width: 44px; height: 44px; }
}
.arc-cap { text-align: center; margin-top: 8px; min-height: 56px; }
.arc-cap p { color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps-head { text-align: center; margin-bottom: 64px; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; --p: 0; }
.steps-track { position: absolute; background: var(--line); border-radius: 2px; left: 19px; top: 20px; bottom: 20px; width: 2px; }
.steps-fill { position: absolute; inset: 0; background: var(--gold); border-radius: 2px; transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; padding-left: 64px; }
.step .num {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 999px; background: var(--bg);
  border: 1.5px solid var(--silver); color: var(--silver); display: grid; place-items: center; font-weight: 600; font-size: 15px;
  transition: color .4s ease, border-color .4s ease, background-color .4s ease, transform .4s cubic-bezier(.3,1.6,.5,1);
}
.step.on .num { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.08); }
.step p { color: var(--ink-soft); margin-top: 4px; font-size: 15px; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps-track { left: 12.5%; right: 12.5%; top: 19px; bottom: auto; width: auto; height: 2px; }
  .steps-fill { transform-origin: left; transform: scaleX(var(--p)); }
  .step { padding: 56px 8px 0; text-align: center; }
  .step .num { left: 50%; margin-left: -20px; }
}

/* ---------- Security ---------- */
.sec { background: var(--dark); color: var(--on-dark); border-radius: 24px; }
.sec .eyebrow { color: var(--gold); background: rgba(43, 163, 33, 0.14); }
.sec h2 { color: var(--on-dark); }
.sec-head { text-align: center; margin-bottom: 56px; }
.lock-art { width: 72px; height: 72px; margin: 0 auto 24px; color: var(--gold); }
.lock-art svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sec-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
.sec-item { border: 1px solid rgba(232, 232, 230, 0.16); border-radius: 16px; padding: 24px; display: flex; gap: 16px; }
.sec-item .icon { color: var(--silver); width: 26px; height: 26px; margin-top: 2px; }
.sec-item h3 { color: var(--on-dark); font-size: 18px; }
.sec-item p { color: var(--silver); font-size: 15px; margin-top: 4px; }
.sec-note { text-align: center; margin-top: 40px; color: var(--silver); font-size: 15px; }

/* ---------- Demo / envelope ---------- */
.demo { overflow: hidden; }
.demo .sub { margin-bottom: 56px; }
.env-stage { position: relative; isolation: isolate; width: min(620px, 100%); margin: 0 auto; perspective: 1200px; clip-path: inset(-400px -80px 0 -80px); text-align: left; }
.env-card {
  position: relative; z-index: 2; background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px 120px; margin: 0 20px -96px; box-shadow: var(--shadow);
}
.env-card h3 { font-size: 22px; }
.env-card #formWrap > p { color: var(--ink-soft); font-size: 15px; margin: 4px 0 20px; }
.form { display: grid; gap: 14px; }
.form .two { display: grid; gap: 14px; }
@media (min-width: 560px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; min-height: 46px;
}
.field input:hover, .field select:hover { border-color: var(--silver); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.form .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-ok { padding: 24px 0 12px; }
.form-ok h3 { margin-bottom: 8px; }
.env { position: relative; height: 150px; }
@media (min-width: 560px) { .env { height: 220px; } }
.env-back, .env-front { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 0 0 18px 18px; }
.env-back { background: var(--bg-soft); z-index: 1; }
.env-front { background: var(--bg); z-index: 3; border-top: 0; clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%); }
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 4; background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; backface-visibility: visible;
}
@media (min-width: 560px) { .env-flap { height: 130px; } }
.env.open .env-flap { z-index: 1; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.4fr; gap: 80px; } .faq-grid h2 { position: sticky; top: 120px; align-self: start; } }
.faq-grid .sub { margin: 16px 0 0; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  background: none; border: 0; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 18px; line-height: 1.35;
}
.acc-q .plus { width: 20px; height: 20px; position: relative; flex: none; color: var(--silver); transition: transform .35s cubic-bezier(.3,1.3,.5,1), color .3s; }
.acc-q .plus::before, .acc-q .plus::after { content: ""; position: absolute; left: 2px; right: 2px; top: 9px; height: 1.5px; background: currentColor; border-radius: 2px; }
.acc-q .plus::after { transform: rotate(90deg); }
.acc-item.open .plus { transform: rotate(45deg); color: var(--gold-deep); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1); }
.acc-item.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { color: var(--ink-soft); padding: 0 40px 22px 0; }

/* ---------- Footer ---------- */
.foot { overflow: hidden; padding: 56px 0 0; container-type: inline-size; }
.foot-top { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.3fr 2.2fr 0.6fr; } }
.foot-tag { color: var(--ink-soft); font-size: 15px; margin-top: 14px; max-width: 280px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-cols h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { text-decoration: none; font-size: 15px; }
.foot-cols a:hover { color: var(--gold-deep); text-decoration: underline; }
.socials { display: flex; gap: 8px; }
@media (min-width: 900px) { .socials { justify-content: flex-end; align-items: flex-start; } }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--silver); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--gold-deep); border-color: var(--gold); }
.copy { font-size: 13px; color: var(--ink-soft); padding-bottom: 8px; }
.wordmark-wrap { position: relative; overflow: hidden; height: 15.4cqw; margin-top: 8px; pointer-events: none; user-select: none; }
.wordmark { font-size: 24cqw; font-weight: 600; line-height: 1; letter-spacing: -0.05em; color: var(--gold); white-space: nowrap; text-align: center; margin: 0; transform: translateY(-3.3cqw); }

/* ---------- Reveal helpers (JS adds .js) ---------- */
.js [data-reveal] { opacity: 0; }
.js.no-motion [data-reveal] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .shield-art::after, .ring-spin, .ring-spin .avatar span { animation: none !important; }
}

.wordmark-wrap::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); pointer-events: none; }

/* ---------- Section CTAs & perks ---------- */
.sec-cta { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sec-cta p { font-size: 14px; color: var(--ink-soft); }
.bento-head .sub, .steps-head .sub, .setup-head .sub { margin-top: 16px; }
.steps-head { margin-bottom: 56px; }
.perks { list-style: none; margin: 20px 0 56px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 15px; font-weight: 500; }
.perks li { display: inline-flex; align-items: center; gap: 8px; }
.perks .icon { width: 18px; height: 18px; color: var(--gold); stroke-width: 2; }
.demo .sub { margin-bottom: 0; }

/* ---------- Demo form: deep-green card + green envelope ---------- */
.env-card { background: var(--dark); border-color: rgba(255,255,255,0.08); color: var(--on-dark); box-shadow: 0 30px 70px rgba(4, 23, 10, 0.35); }
.env-card h3 { color: #fff; }
.env-card #formWrap > p { color: #9FB09F; }
.env-card .field label { color: var(--on-dark); }
.env-card .field input, .env-card .field select { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #fff; color-scheme: dark; }
.env-card .field input::placeholder { color: #7E907E; }
.env-card .field input:hover, .env-card .field select:hover { border-color: rgba(255,255,255,0.4); }
.env-card .field input:focus-visible, .env-card .field select:focus-visible { outline-color: var(--gold); border-color: var(--gold); background: rgba(255,255,255,0.1); }
.env-card .field select option { color: #0A130B; background: #fff; }
.env-card .form-note { color: #9FB09F; }
.env-card .form-note a { color: #5FD455 !important; }
.env-card #formErr { color: #fff !important; }
.env-card .form-ok p { color: #9FB09F !important; }
.env-back { background: var(--gold-deep); border-color: var(--gold-deep); }
.env-front { background: var(--gold-tint); }
.env-flap { background: var(--gold); }

/* ---------- Live floor board ---------- */
.live-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .live-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; } }
.live-copy .sub { margin: 16px 0 0; }
.live-points { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 22px; }
.live-points li { display: flex; gap: 16px; }
.live-points .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-tint); color: var(--gold-deep); display: grid; place-items: center; }
.live-points h3 { font-size: 17px; }
.live-points p { color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.board { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); }
.board-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; font-size: 15px; }
.board-head .muted { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.kpi-row div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.kpi-row b { display: block; font-size: 24px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.kpi-row div:first-child b { color: var(--gold-deep); }
.kpi-row span { font-size: 12px; color: var(--ink-soft); }
.table { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.thead, .live-row { display: grid; grid-template-columns: 1.6fr 1.2fr 0.5fr 0.6fr; gap: 8px; align-items: center; padding: 10px 14px; }
.thead { font-size: 12px; color: var(--ink-soft); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.live-row { border-bottom: 1px solid var(--line); font-size: 14px; }
.live-row:last-child { border-bottom: 0; }
.live-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.live-row .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; }
.live-row b { display: block; font-weight: 600; line-height: 1.25; }
.live-row .who span { display: block; font-size: 12px; color: var(--ink-soft); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.board-note { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-deep); font-size: 13px; font-weight: 500; line-height: 1.4; }
.board-note .icon { width: 18px; height: 18px; }
@media (max-width: 540px) {
  .thead, .live-row { grid-template-columns: 1.5fr 1.2fr 0.5fr; }
  .hide-sm { display: none; }
  .live-row .who span { display: none; }
}

/* ---------- Integrations ---------- */
.setup-head { text-align: center; margin-bottom: 56px; }
.setup-head .sub { max-width: 640px; }
.int-grid { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .int-grid { grid-template-columns: repeat(12, 1fr); }
  .i-pbx { grid-column: span 5; }
  .i-sheet { grid-column: span 7; }
  .i-chrome, .i-wa, .i-sms { grid-column: span 4; }
}
.int { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.int:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.int p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; max-width: 38ch; }
.int-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.int-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-tint); color: var(--gold-deep); display: grid; place-items: center; }
.ok-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(43, 163, 33, 0.16); color: #7FE074; }
.ok-chip i { width: 7px; height: 7px; border-radius: 999px; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.ok-chip.soft { background: var(--gold-tint); color: var(--gold-deep); }
.int-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.int-dark h3 { color: #fff; }
.int-dark p { color: #9FB09F; }
.int-dark .int-ic { background: rgba(43, 163, 33, 0.16); color: #7FE074; }
.status-list { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: grid; gap: 8px; }
.status-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); font-size: 14px; }
.status-list span { color: #9FB09F; }
.status-list b { font-weight: 600; color: #fff; }
.sheet { margin-top: auto; padding-top: 0; display: grid; gap: 6px; }
.int-grid .i-sheet .sheet { margin-top: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; gap: 0; }
.sh-row { display: grid; grid-template-columns: 1.1fr 1.2fr 0.9fr 0.9fr; gap: 8px; padding: 10px 14px; font-size: 13px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-row:first-child { border-top: 0; }
.sh-head { background: var(--gold-tint); color: var(--gold-deep); font-weight: 600; }
.browser { margin-top: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.int-grid .i-chrome .browser { margin-top: 18px; }
.b-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.b-bar i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); }
.b-bar span { margin-left: 8px; font-size: 11px; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.b-body { display: flex; align-items: center; gap: 12px; padding: 14px; font-size: 14px; }
.b-body b { display: block; font-weight: 600; line-height: 1.25; }
.b-body small { color: var(--ink-soft); font-size: 12px; }
.b-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex: none; }
.b-ic .icon { width: 20px; height: 20px; }
.mic { margin-left: auto; display: flex; align-items: center; gap: 3px; height: 22px; }
.mic i { width: 3px; border-radius: 2px; background: var(--gold); animation: mic 1.2s ease-in-out infinite; height: 40%; }
.mic i:nth-child(2) { animation-delay: .15s; } .mic i:nth-child(3) { animation-delay: .3s; } .mic i:nth-child(4) { animation-delay: .45s; } .mic i:nth-child(5) { animation-delay: .6s; }
@keyframes mic { 50% { height: 100%; } }
.chat { margin-top: 18px; display: grid; gap: 8px; }
.bub { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; }
.bub.in { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; }
.bub.out { background: var(--gold-tint); color: var(--ink); border-bottom-right-radius: 4px; justify-self: end; }
.bub em { font-style: normal; color: var(--gold-deep); font-size: 12px; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .mic i, .ok-chip i { animation: none !important; } }

/* ---------- Dark sections (token swap) ---------- */
.dark {
  --bg: #04170A;
  --bg-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #F2F7F2;
  --ink-soft: #9FB09F;
  --silver: #7E907E;
  --gold-tint: rgba(43, 163, 33, 0.16);
  --gold-deep: #7FE074;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: var(--bg);
  color: var(--ink);
}
.dark .btn-gold { color: #0A130B; }
.dark .ctrl.end { background: var(--gold); border-color: var(--gold); color: #0A130B; }
.dark .b-ic { color: #0A130B; }
.dark .int-dark { background: rgba(43, 163, 33, 0.12); border-color: rgba(43, 163, 33, 0.35); }
.dark .int:hover, .dark .board:hover { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.dark .perks .icon { color: var(--gold); }
.dark .avatar { background: rgba(255, 255, 255, 0.08); }
.dark .kpi-row div:first-child b { color: #7FE074; }
.dark .pill.on-call { color: #fff; }
.dark .live-row:hover { background: rgba(255, 255, 255, 0.03); }
.dark .step.on .num { color: #0A130B; }

/* ---------- Small-phone refinements ---------- */
@media (max-width: 540px) {
  .sh-row { grid-template-columns: 1.2fr 1.2fr 1fr; padding: 10px 12px; }
  .sh-row span:nth-child(3) { display: none; }
  .board-head b, .live-row b { white-space: nowrap; }
  .board-head .muted { display: none; }
  .kpi-row div { padding: 10px; }
  .kpi-row span { white-space: nowrap; font-size: 11px; }
  .live-row .avatar { display: none; }
  .thead, .live-row { padding-inline: 12px; }
}

@media (max-width: 540px) {
  /* call log rows */
  .logrow { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 12px; }
  .logrow .t { display: none; }
  .logrow .who span { display: block; white-space: nowrap; }
  .chip { font-size: 11.5px; padding: 3px 9px; }
  /* demo form card */
  .env-card { margin-inline: 4px; padding: 24px 20px 120px; }
  .demo .container { padding-inline: 12px; }
  .b { padding: 20px; }
}
