/* Marketing page (landing3.html). Uses only the app's --hl-* tokens from design-system.css, so dark and light match the product.
   Accent colour: primary button, links and focus rings only. Motion: opacity and transform, 150 to 320 ms, once. */

/* Metric-matched stand-in while Inter loads, so the swap does not move the layout. */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body.lp {
  margin: 0; background: var(--hl-bg-page); color: var(--hl-text);
  font: 400 16px/1.6 Inter, 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; padding-top: 68px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--hl-accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--hl-accent-text); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--hl-bg-raised); color: var(--hl-text); border: 1px solid var(--hl-border-strong); border-radius: var(--hl-radius-md); }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * clamp(16px, 4vw, 40px), 1160px); margin-inline: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--hl-radius-md); font: 500 15px/1 var(--hl-font); text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--hl-ease), border-color 150ms var(--hl-ease), color 150ms var(--hl-ease), transform 150ms var(--hl-ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--hl-accent); color: var(--hl-text-on-accent); }
.btn-primary:hover { transform: translateY(-1px); border-color: var(--hl-accent-text); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--hl-text); border-color: var(--hl-border-strong); }
.btn-secondary:hover { background: var(--hl-bg-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--hl-text-muted); padding: 0 12px; }
.btn-ghost:hover { color: var(--hl-text); background: var(--hl-bg-hover); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--hl-radius-md);
  background: transparent; color: var(--hl-text-muted); cursor: pointer; transition: background-color 150ms var(--hl-ease), color 150ms var(--hl-ease);
}
.icon-btn:hover { background: var(--hl-bg-hover); color: var(--hl-text); }
[data-theme="dark"] .ico-moon, [data-theme="light"] .ico-sun { display: none; }

/* Header: compacts once the page scrolls */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--hl-bg-page); border-bottom: 1px solid transparent; transition: border-color 150ms var(--hl-ease); }
.site-header.is-compact { border-bottom-color: var(--hl-border); }
.bar { display: flex; align-items: center; gap: 28px; height: 68px; transition: height 150ms var(--hl-ease); }
.site-header.is-compact .bar { height: 56px; }
.brand { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--hl-text); text-decoration: none; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { color: var(--hl-text-muted); text-decoration: none; font-size: 15px; padding: 10px 0; white-space: nowrap; transition: color 150ms var(--hl-ease); }
.nav a:hover { color: var(--hl-text); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.link-quiet { color: var(--hl-text-muted); text-decoration: none; font-size: 15px; padding: 12px; transition: color 150ms var(--hl-ease); }
.link-quiet:hover { color: var(--hl-text); }

/* Hero background: a canvas of glowing dots (drawn by landing3.js), sized by CSS only so nothing shifts: the whole width of the hero and at most
   880 px of its height, where the dots fade out. It is decoration behind the hero text.
   Without JavaScript (the head script drops the .js class when the page script has not run), or when the canvas cannot be used (.no-canvas), a plain gradient from the --hl-* tokens, violet and
   blue, stands in for it, in both themes. With JavaScript there is no gradient: the page keeps its rule of no gradients, and the dots carry the colour. */
.hero-zone { position: relative; isolation: isolate; }   /* the background is sized by the whole hero and sits behind its text */
.hero-zone > .hero { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
html:not(.js) .hero-bg, html.no-canvas .hero-bg {
  background:
    radial-gradient(58% 52% at 84% 22%, var(--hl-accent-subtle), transparent 72%),
    radial-gradient(52% 50% at 10% 64%, var(--hl-info-bg), transparent 72%);
}
.hero-canvas { position: absolute; left: 0; top: 0; display: block; width: 100%; height: min(100%, 880px); }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 5.5rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; max-width: 12em; }
.hero h1 span { display: inline-block; }   /* each sentence stays whole, so the line break is the same before and after the font loads */
@media (max-width: 640px) { .hero h1 span { display: block; } }   /* phones: always two lines, in either font */
.lead { margin-top: 28px; max-width: 38rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--hl-text); }   /* full text colour: the hero grid can pass behind it */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 18px; font-size: 14px; color: var(--hl-text); }

/* Screenshot frames. Both themes are in the markup; the theme attribute picks one. */
.frame { border: 1px solid var(--hl-border-strong); border-radius: var(--hl-radius-lg); overflow: hidden; background: var(--hl-bg-card); box-shadow: var(--hl-shadow-card, none); }
.shot { display: block; width: 100%; height: auto; }
.shot-light { display: none; }
[data-theme="light"] .shot-light { display: block; }
[data-theme="light"] .shot-dark { display: none; }

/* Walkthrough */
.walk { margin: 48px 0 0; }
.walk-stage { position: relative; aspect-ratio: 1440 / 900; }
.walk-img { position: absolute; inset: 0; height: 100%; opacity: 0; }
.js .walk:not([data-ready]) .walk-img { transition: none; }
.walk-img { transition: opacity 280ms var(--hl-ease); }
.walk[data-state="find"] .walk-img[data-screen="find"],
.walk[data-state="queue"] .walk-img[data-screen="queue"],
.walk[data-state="calls"] .walk-img[data-screen="calls"] { opacity: 1; }
.mark { position: absolute; border: 2px solid var(--hl-text); border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 180ms var(--hl-ease), transform 150ms var(--hl-ease), background-color 150ms var(--hl-ease); }
.mark-row { left: 17.29%; top: 62.33%; width: 80.98%; height: 5%; }
.mark-approve { left: 85.28%; top: 21.33%; width: 10.83%; height: 3.89%; }
.mark-status { left: 2.3%; top: 53.33%; width: 95.4%; height: 4.89%; }
.walk[data-state="find"][data-marks~="row"] .mark-row,
.walk[data-state="queue"][data-marks~="approve"] .mark-approve,
.walk[data-state="calls"] .mark-status { opacity: 1; }
.walk[data-state="queue"][data-marks~="pressed"] .mark-approve { transform: scale(0.97); background: var(--hl-neutral-bg); }
.walk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; }
.walk-steps { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.walk-steps button { min-height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--hl-text-muted); font: 500 15px/1 var(--hl-font); cursor: pointer; transition: color 150ms var(--hl-ease), border-color 150ms var(--hl-ease); }
.walk-steps button:hover { color: var(--hl-text); }
.walk-steps button[aria-current="step"] { color: var(--hl-text); border-bottom-color: var(--hl-text); }
.walk-controls { display: flex; gap: 4px; }
.walk-controls[hidden] { display: none; }
html:not(.js) .walk-steps, html:not(.js) .walk-controls, html:not(.js) .walk-live { display: none; }
.btn:disabled { color: var(--hl-text-disabled); cursor: default; background: transparent; }
.walk-live { flex-basis: 100%; min-height: 3em; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--hl-text-muted); }
.walk-note { flex-basis: 100%; font-size: 13px; line-height: 1.5; color: var(--hl-text-muted); }

/* Sections */
section.wrap { padding-block: clamp(64px, 10vw, 128px); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; }
.feature p { margin-top: 16px; color: var(--hl-text-muted); max-width: 34rem; }
.features-grid { display: grid; gap: 0; }
.feature { padding-block: 40px; }
.feature-fig { margin: 28px 0 0; }
.features-panel { display: none; }
@media (min-width: 960px) {
  .features-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .feature { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; padding-block: 32px; padding-left: 24px; border-left: 2px solid var(--hl-border); transition: border-color 280ms var(--hl-ease); }
  .js .feature.is-active { border-left-color: var(--hl-text); }
  /* The sticky panel shows the screenshots; the inline figures stay in the page for screen readers. */
  .js .feature-fig { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .js .features-panel { display: block; }
  .panel-sticky { position: sticky; top: 96px; }
}
.panel-frame { position: relative; aspect-ratio: 1440 / 900; }
.panel-frame .shot { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 280ms var(--hl-ease); }
.panel-frame[data-active="find"] .shot[data-shot="find"],
.panel-frame[data-active="queue"] .shot[data-shot="queue"],
.panel-frame[data-active="email"] .shot[data-shot="email"],
.panel-frame[data-active="calls"] .shot[data-shot="calls"] { opacity: 1; }

/* Workflow line: the line draws itself once when it enters view */
.flow-section { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.flow-wrap { position: relative; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.flow li { padding-inline: 8px; text-align: center; }
.flow .dot { display: block; width: 12px; height: 12px; margin: 0 auto 18px; border: 2px solid var(--hl-text); border-radius: 50%; background: var(--hl-bg-page); position: relative; z-index: 1; transition: background-color 180ms var(--hl-ease); }
.flow-title { display: block; font-size: 17px; font-weight: 600; }
.flow p { margin: 6px auto 0; max-width: 15rem; font-size: 14px; line-height: 1.5; color: var(--hl-text-muted); }
.flow-line { position: absolute; left: 0; top: 5px; width: 100%; height: 2px; overflow: visible; }
.flow-line path { fill: none; stroke: var(--hl-border-strong); stroke-width: 1; }
.js .flow-line path { stroke: var(--hl-text); stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow-wrap.is-drawn .flow-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--hl-ease); }
.js .flow-wrap.is-drawn .dot { background: var(--hl-text); }
.js .flow-wrap.is-drawn li:nth-child(2) .dot { transition-delay: 280ms; }
.js .flow-wrap.is-drawn li:nth-child(3) .dot { transition-delay: 560ms; }
.js .flow-wrap.is-drawn li:nth-child(4) .dot { transition-delay: 840ms; }
.js .flow-wrap:not(.is-drawn) .dot { background: var(--hl-bg-page); }
@media (max-width: 640px) { .flow p { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Team and trust: plain rows, no card grids */
.team-grid { display: grid; gap: 40px; }
.control-grid { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .team-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
  .control-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
}
.team-fig { margin: 0; }
.rows { margin: 24px 0 0; padding: 0; }
.rows > div { display: grid; grid-template-columns: minmax(7.5rem, 11rem) 1fr; gap: 8px 24px; padding-block: 16px; border-top: 1px solid var(--hl-border); }
.rows > div:last-child { border-bottom: 1px solid var(--hl-border); }
.rows dt { font-weight: 600; }
.rows dd { margin: 0; color: var(--hl-text-muted); }
.rows-wide { margin-top: 0; }
@media (max-width: 520px) { .rows > div { grid-template-columns: 1fr; gap: 2px; } }

/* FAQ: native details, works without JavaScript */
.faq-list { max-width: 46rem; margin-top: 32px; border-bottom: 1px solid var(--hl-border); }
.faq-list details { border-top: 1px solid var(--hl-border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: var(--hl-text); clip-path: polygon(43% 0, 57% 0, 57% 43%, 100% 43%, 100% 57%, 57% 57%, 57% 100%, 43% 100%, 43% 57%, 0 57%, 0 43%, 43% 43%); transition: transform 180ms var(--hl-ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 32px 20px 0; max-width: 40rem; color: var(--hl-text-muted); }

/* Pricing: three plain cards (stacked on phones), then one list of what every plan includes. Tokens only; no shadows, gradients or accent fills. */
.pricing-intro { margin-top: 14px; max-width: 40rem; color: var(--hl-text-muted); }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.plan { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--hl-border-strong); border-radius: var(--hl-radius-lg); background: var(--hl-bg-card); }
.plan h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 16px; }
.plan-amount { font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.plan-per { font-size: 15px; color: var(--hl-text-muted); }
.plan-limit { margin-top: 12px; color: var(--hl-text-muted); }
.plan .btn { width: 100%; margin-top: 28px; }
.includes-title { margin-top: 56px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.includes { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hl-border); }
.includes li { padding-block: 14px; border-bottom: 1px solid var(--hl-border); color: var(--hl-text-muted); break-inside: avoid; overflow-wrap: anywhere; }
@media (min-width: 860px) { .includes { column-count: 2; column-gap: 48px; } }
.pricing-note { margin-top: 24px; max-width: 62ch; font-size: 14px; line-height: 1.6; color: var(--hl-text-muted); }

.closing h2 { max-width: 20ch; }
.closing p { margin-top: 14px; color: var(--hl-text-muted); }

/* Footer: four columns (wordmark, Product, Company, Support) above a bottom bar. Tokens only, both themes. Two columns at tablet width, stacked on phones.
   Links keep the page-wide focus ring; on phones each link is at least 44 px tall. */
.site-footer { border-top: 1px solid var(--hl-border); padding-block: 40px 32px; font-size: 14px; color: var(--hl-text-muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 600px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (min-width: 960px) { .site-footer { padding-block-start: 56px; } .foot-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 40px; } }
.foot-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--hl-text); }
.foot-wordmark { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.foot-tagline { max-width: 30ch; }
.foot-links { margin: 0; padding: 0; list-style: none; }
.foot-links a { display: inline-block; padding: 6px 0; color: var(--hl-text-muted); text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--hl-text); text-decoration: underline; }
@media (max-width: 640px) { .foot-links a { display: flex; align-items: center; min-height: 44px; padding: 0; } }
.foot-address { margin: 12px 0 0; font-style: normal; overflow-wrap: anywhere; }
.foot-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hl-border); }
@media (min-width: 960px) { .foot-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 12px 32px; } .foot-bottom p:last-child { text-align: right; } }

/* Reveal: once, 8 px, only when JavaScript runs */
.js .reveal { opacity: 0; transform: translateY(8px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 320ms var(--hl-ease) calc(var(--i, 0) * 70ms), transform 320ms var(--hl-ease) calc(var(--i, 0) * 70ms); }

@media (forced-colors: active) { .faq-list summary::after { background: CanvasText; } .mark { border-color: Highlight; } .hero-bg { display: none; } }
@media (max-width: 860px) { .nav { display: none; } .bar { gap: 12px; } }
@media (max-width: 420px) { .link-quiet { display: none; } }

/* Reduced motion: no transitions, no drawing, no reveal; the final state is shown at once */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .flow-line path { stroke-dashoffset: 0; }
  .js .flow-wrap:not(.is-drawn) .dot, .js .flow-wrap .dot { background: var(--hl-text); }
}
