/* DBS Voice landing page. Palette: ink, paper, signal yellow (a ringing line), brand blue for actions. */
:root {
  --ink: #1a1f36;
  --ink-soft: #4d5670;
  --paper: #ffffff;
  --mist: #eef2f8;
  --signal: #ffc83d;
  --signal-soft: #fff4d4;
  --blue: #0b5cff;
  --blue-dark: #0846c4;
  --line: #dde3ee;
  --font: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 10px; border: 2px solid var(--blue); line-height: 1.2; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.dark:hover { background: #000; border-color: #000; }
.btn.small { padding: 8px 14px; font-size: 15px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 5vw, 56px); max-width: 1240px; margin: 0 auto; }
.brand { font-weight: 800; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--blue); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav nav a:not(.btn):hover { color: var(--blue); }

/* sections share one horizontal rhythm */
main > section { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 56px); }

/* hero */
main > section.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 5vw, 64px); }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 50ch; margin-top: 22px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.demo { margin-top: 18px; font-weight: 600; }

/* the call: the one memorable element */
.call { margin: 0; background: var(--signal); border-radius: 28px; padding: clamp(18px, 3vw, 30px); position: relative; }
.call-top { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.call-top .who { flex: 1; }
.call-top .time { opacity: .7; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ring 1.6s ease-out infinite; }
.lines { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lines li { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; opacity: 0; transform: translateY(6px); animation: say .45s ease-out forwards; }
.lines .ai { background: var(--paper); align-self: flex-start; border-bottom-left-radius: 6px; }
.lines .caller { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.lines .result { align-self: stretch; max-width: none; background: var(--signal-soft); border: 2px dashed var(--ink); border-radius: 14px; }
.lines .result strong { display: inline-block; background: var(--ink); color: var(--signal); padding: 1px 8px; border-radius: 6px; margin-right: 6px; }
.lines li:nth-child(1) { animation-delay: .3s; }
.lines li:nth-child(2) { animation-delay: 1.5s; }
.lines li:nth-child(3) { animation-delay: 2.7s; }
.lines li:nth-child(4) { animation-delay: 4.1s; }
.lines li:nth-child(5) { animation-delay: 5.1s; }
.lines li:nth-child(6) { animation-delay: 6.3s; }
@keyframes say { to { opacity: 1; transform: none; } }
@keyframes ring { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* how it works: a real sequence, so numbered */
main > section.how { background: var(--mist); max-width: none; }
.how > * { max-width: 1128px; margin-left: auto; margin-right: auto; }
.steps { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--signal); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--ink-soft); margin-top: 8px; max-width: 40ch; }

/* features: a plain definition list, not cards */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 5vw, 72px); margin: 36px 0 0; }
.features div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.features dt { font-weight: 700; font-size: 19px; }
.features dd { margin: 6px 0 0; color: var(--ink-soft); max-width: 48ch; }

/* who it's for */
.trades { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; }
.trades li { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 6px 24px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.trades li:last-child { border-bottom: 1px solid var(--line); }
.trades b { font-size: 18px; }
.trades span { color: var(--ink-soft); font-style: italic; }

/* pricing */
.pricing .sub { color: var(--ink-soft); margin-top: 12px; max-width: var(--measure); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; align-items: start; }
.plan { border: 2px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.plan.popular { border-color: var(--ink); background: var(--signal-soft); }
.plan .tag { align-self: flex-start; background: var(--ink); color: var(--signal); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price span { font-size: 16px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.plan .extra { color: var(--ink-soft); font-size: 15px; }
.plan ul { padding-left: 20px; margin: 6px 0 12px; font-size: 15.5px; }
.plan li { margin: 4px 0; }
.plan .btn { text-align: center; margin-top: auto; }
.loading { color: var(--ink-soft); }

/* faq */
main > section.faq { max-width: 880px; }
.faq h2 { margin-bottom: 18px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--ink-soft); max-width: var(--measure); }

/* closing call to action */
main > section.final { background: var(--signal); max-width: none; text-align: center; }
.final h2 { margin: 0 auto; max-width: 18ch; }
.final p { margin: 14px auto 28px; font-size: 19px; }

.foot { max-width: 1240px; margin: 0 auto; padding: 32px clamp(18px, 5vw, 56px) 48px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-soft); font-size: 15px; }

/* tablets and phones */
@media (max-width: 900px) {
  main > section.hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav a:not(.btn) { display: none; }
  .nav nav a[href="/app"] { display: inline; }
  .features { grid-template-columns: 1fr; }
  .trades li { grid-template-columns: 1fr; }
  .lines li { font-size: 14.5px; max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lines li { animation: none; opacity: 1; transform: none; }
  .dot { animation: none; }
}
