/* =====================================================================
   Alongside AI — styles
   Palette and layout follow the "Alongside AI – Website" PDF template:
   warm off-white, charcoal, one teal. System fonts only, so the site
   loads nothing from other companies.
   ===================================================================== */

:root {
  --bg: #f5f6f1;
  --surface: #ffffff;
  --ink: #15222b;
  --ink-2: #404952;
  --muted: #5d6871;
  --teal: #0d6c6b;
  --teal-700: #0a5655;
  --teal-eyebrow: #0a6f5d;
  --teal-50: #e3efed;
  --teal-100: #cde3df;
  --line: #dde2da;
  --urgent: #b4532a;
  --urgent-50: #f8e9e1;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(21, 34, 43, .05), 0 4px 14px rgba(21, 34, 43, .05);
  --shadow-md: 0 2px 4px rgba(21, 34, 43, .05), 0 16px 36px rgba(21, 34, 43, .09);
  --shadow-lg: 0 30px 70px rgba(21, 34, 43, .22);

  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.nowrap { white-space: nowrap; }

.eyebrow {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-eyebrow);
}

.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }

.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head .lede { margin-top: 2px; }

/* inline icons (symbols are defined once at the top of the page) */
.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .7rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  font-size: .98rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 108, 107, .28);
}
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(13, 108, 107, .34); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0b151b; transform: translateY(-2px); }

.btn-sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-weight: 650;
  font-size: .96rem;
  cursor: pointer;
  text-decoration: none;
}
.link-btn .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-btn:hover { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover .i-arrow { transform: translateX(4px); }

/* ----------------------------------------------------------- header */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 246, 241, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(21, 34, 43, .05);
  background: rgba(245, 246, 241, .94);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ------------------------------------------------------------- hero */

.hero { position: relative; padding-block: clamp(44px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -120px; background: rgba(13, 108, 107, .13); }
.hero::after  { width: 380px; height: 380px; left: -160px; bottom: -160px; background: rgba(13, 108, 107, .07); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 80px); align-items: center; }

.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5rem); line-height: .98; letter-spacing: -.04em; }
.hero-what { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.25; letter-spacing: -.02em; color: var(--teal); }
.hero .lede { font-weight: 550; color: var(--ink); font-size: 1.22rem; }
.cta-note { margin-top: -4px; max-width: 46ch; font-size: .95rem; color: var(--ink-2); }
.hero .sub { color: var(--ink-2); max-width: 50ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .i { width: 17px; height: 17px; color: var(--teal); }

/* hero animation: an emailed receipt becomes a logged expense */
.flow { position: relative; display: grid; gap: 14px; width: 100%; max-width: 470px; margin-left: auto; }
.flow-card { background: var(--surface); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-md); }
.flow-card .label { margin-bottom: 6px; font-size: .78rem; color: var(--muted); }

.flow-card--receipt { display: flex; align-items: center; gap: 16px; }
.flow-card--receipt strong { font-weight: 650; font-size: 1rem; }

.receipt {
  flex: none;
  width: 52px; height: 66px;
  padding: 9px 8px;
  background: #fff;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 90% calc(100% - 6px), 80% 100%, 70% calc(100% - 6px), 60% 100%, 50% calc(100% - 6px), 40% 100%, 30% calc(100% - 6px), 20% 100%, 10% calc(100% - 6px), 0 100%);
  display: grid;
  align-content: start;
  gap: 5px;
  transform: rotate(-4deg);
}
.receipt i { display: block; height: 3px; border-radius: 2px; background: var(--teal-100); }
.receipt i:nth-child(1) { width: 70%; background: var(--ink); opacity: .75; }
.receipt i:nth-child(3) { width: 85%; }
.receipt i:nth-child(5) { width: 60%; }
.receipt i:last-child { width: 100%; height: 4px; background: var(--teal); margin-top: 3px; }

.flow-card--dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.flow-card--dark .label { color: rgba(255, 255, 255, .62); }
.flow-card--dark .done { display: flex; align-items: flex-start; gap: 12px; font-weight: 650; line-height: 1.4; }
.flow-card--dark .done .tick {
  flex: none;
  display: grid; place-items: center;
  width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%;
  background: #2aa397;
  color: #fff;
}
.flow-card--dark .done .tick .i { width: 15px; height: 15px; stroke-width: 2.6; }
.flow-card--dark .working { display: none; align-items: center; gap: 12px; font-weight: 550; color: rgba(255, 255, 255, .85); }

.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.flow-card--pale { background: var(--teal-50); box-shadow: none; font-size: .94rem; color: var(--ink-2); }

.sheet { background: var(--surface); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-sm); font-size: .8rem; overflow: hidden; }
.sheet-row { display: grid; grid-template-columns: 1fr 1.6fr 1fr .8fr; gap: 8px; padding: 7px 4px; align-items: center; }
.sheet-row--head { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.sheet-row--old { color: var(--muted); border-bottom: 1px solid var(--line); }
.sheet-row--new { background: var(--teal-50); border-radius: 8px; font-weight: 650; color: var(--ink); }
.sheet-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff; font-size: .72rem; font-weight: 650; color: var(--teal); }

.flow-replay { justify-self: end; margin-top: 2px; }

html.js .flow-step { opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .4s ease, transform .4s var(--ease); }
html.js .flow-step.is-in { opacity: 1; transform: none; }
html.js .flow-card--dark.is-working .working { display: flex; }
html.js .flow-card--dark.is-working .done { display: none; }
html.js .flow-replay { opacity: 0; pointer-events: none; transition: opacity .4s; }
html.js .flow-replay.is-in { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------ stats */

.stats { background: var(--ink); color: #fff; padding-block: clamp(44px, 6vw, 72px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.stat { display: grid; gap: 10px; align-content: start; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat p { color: rgba(255, 255, 255, .78); font-size: .98rem; max-width: 34ch; }
.stat a { display: inline-block; margin-top: 2px; font-size: .84rem; color: #8fd0c8; text-underline-offset: 3px; }
.stat a:hover { color: #fff; }

/* ---------------------------------------------------------- cards */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card p { color: var(--ink-2); font-size: .98rem; }
.card .link-btn { margin-top: auto; padding-top: 10px; }
.card-links { display: grid; gap: 10px; justify-items: start; margin-top: auto; padding-top: 10px; }
.card-links .link-btn { margin-top: 0; padding-top: 0; }

.icon-box {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal);
  transition: background .25s, color .25s;
}
.icon-box .i { width: 22px; height: 22px; }
.card:hover .icon-box { background: var(--teal); color: #fff; }

.card-tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-eyebrow); margin-top: 6px; }

.also { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 20px; }
.also .card:hover { transform: none; box-shadow: var(--shadow-sm); }
.also h3 { font-size: 1.1rem; }
.also ul { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.also li { position: relative; padding-left: 20px; font-size: .96rem; color: var(--ink-2); }
.also li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.also li strong { color: var(--ink); }

.ask { justify-content: center; background: var(--teal-50); box-shadow: none; }
.ask:hover { box-shadow: none; }

/* ------------------------------------------------------------- demo */

.demo { background: linear-gradient(180deg, var(--bg), #eef1ec 40%, var(--bg)); }
.demo-accordion { display: grid; gap: 14px; max-width: 960px; margin-inline: auto; }
.demo-item {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: transparent;
  scroll-margin-top: 96px;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.demo-item:hover { border-color: var(--teal-100); }
.demo-item.is-open { background: var(--surface); border-color: var(--teal); box-shadow: var(--shadow-md); }
.demo-item-h { margin: 0; font: inherit; }
.demo-tab {
  display: flex; gap: 16px; align-items: center;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
}
.demo-tab[aria-expanded="true"] .icon-box { background: var(--teal); color: #fff; }
.demo-tab .chev { margin-left: auto; flex: none; width: 22px; height: 22px; color: var(--muted); transition: transform .25s var(--ease); }
.demo-tab[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--teal); }
.demo-tab-title { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.demo-tab-sub { display: block; margin-top: 2px; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.demo-panel { padding: 6px 20px 28px; }
.demo-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 392px);
  gap: 28px clamp(24px, 5vw, 64px);
  align-items: start;
}
.demo-notes { display: grid; gap: 14px; align-content: start; padding-top: 8px; }
.demo-notes ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.demo-notes li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--ink-2); }
.demo-notes li .i { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--teal); }
.demo-fineprint { font-size: .85rem; color: var(--muted); max-width: 60ch; margin: 6px 0 0; }

.demo-stage { position: sticky; top: 100px; display: grid; gap: 16px; justify-items: center; }
.demo-stage--static { position: static; }

.phone {
  width: 100%;
  max-width: 392px;
  padding: 12px;
  background: var(--ink);
  border-radius: 46px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  position: relative;
  display: flex; flex-direction: column;
  height: 580px;
  overflow: hidden;
  background: #eef2ee;
  border-radius: 35px;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.phone-top::before { content: ""; position: absolute; top: 7px; left: 50%; width: 74px; height: 5px; margin-left: -37px; border-radius: 3px; background: #d4d9d2; }
.phone-top .avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; }
.phone-top .avatar .i { width: 17px; height: 17px; }
.phone-top strong { display: block; font-size: .92rem; line-height: 1.2; }
.phone-top span { display: block; font-size: .74rem; color: var(--muted); }

.phone-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: none; }
.phone-body::-webkit-scrollbar { display: none; }

.phone-foot { padding: 12px 16px 16px; background: var(--surface); border-top: 1px solid var(--line); }

.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.42; box-shadow: var(--shadow-sm); }
.bubble small { display: block; margin-bottom: 2px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.bubble--ai { align-self: flex-start; background: var(--teal-50); border-bottom-left-radius: 6px; }
.bubble--caller { align-self: flex-end; background: var(--surface); border-bottom-right-radius: 6px; }
.bubble--caller small { color: var(--muted); }

.notice { align-self: stretch; padding: 14px 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-md); font-size: .88rem; }
.notice-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: .95rem; }
.badge-urgent { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--urgent); box-shadow: 0 0 0 4px var(--urgent-50); }
.notice dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.notice dt { color: var(--muted); }
.notice dd { margin: 0; font-weight: 600; }
.notice-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

.card-mini { align-self: stretch; padding: 14px 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); font-size: .88rem; }
.card-mini h4 { margin-bottom: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-eyebrow); }
.card-mini dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 0; }
.card-mini dt { color: var(--muted); }
.card-mini dd { margin: 0; font-weight: 600; }

.quote-lines { display: grid; gap: 7px; margin: 0 0 10px; padding: 0; list-style: none; }
.quote-lines li { display: flex; justify-content: space-between; gap: 12px; }
.quote-lines li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.quote-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; font-size: 1rem; }
.quote-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: #fff4de; color: #7a5200; font-size: .8rem; font-weight: 600; }
.quote-status .i { width: 16px; height: 16px; }
.quote-status.is-sent { background: #dcf1e6; color: #0d5a3a; }
.quote-actions { display: flex; gap: 8px; margin-top: 12px; }
.quote-actions .btn { flex: 1; min-height: 42px; padding: .5rem .8rem; font-size: .9rem; }

.working-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: .84rem; font-weight: 600; }

.msg { align-self: stretch; padding: 12px 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); font-size: .88rem; border-left: 4px solid var(--teal-100); }
.msg b { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-eyebrow); }
.msg--late { border-left-color: #d6a443; }
.msg--late b { color: #8a6210; }
.msg--alert { background: var(--ink); color: #fff; border-left-color: #2aa397; }
.msg--alert b { color: #8fd0c8; }

.invoice-head { align-self: stretch; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: .88rem; }
.invoice-head strong { display: block; }
.invoice-head span { color: var(--muted); font-size: .8rem; }
.invoice-head .amount { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.slider-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: .82rem; color: var(--muted); }
.slider-label output { font-weight: 700; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.slider-ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: .7rem; color: var(--muted); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--teal) var(--fill, 0%), var(--line) var(--fill, 0%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); box-shadow: 0 2px 8px rgba(21, 34, 43, .25); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); box-shadow: 0 2px 8px rgba(21, 34, 43, .25); }

.demo-ring { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: .92rem; color: var(--ink-2); max-width: 392px; }
.demo-ring .btn { min-height: 44px; }
.replay { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; font-weight: 600; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.replay:hover { border-color: var(--teal); transform: translateY(-1px); }
.replay .i { width: 16px; height: 16px; }

/* Chat style: a message takes no space until it arrives, and the newest sits at the bottom. */
html.js [data-seq]:not(.is-in) { display: none; }
html.js [data-seq].is-in { animation: seqIn .35s var(--ease) both; }
@keyframes seqIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes seqFade { from { opacity: 0; } to { opacity: 1; } }
.phone-body[data-body]:not([data-invoice])::before { content: ""; margin-top: auto; }
/* Invoice phone: summary pinned at the top, reminders arrive at the bottom like a chat. */
.phone-body[data-invoice] .invoice-head { position: sticky; top: 0; z-index: 1; flex: none; margin-bottom: auto; box-shadow: 0 -16px 0 #eef2ee, var(--shadow-sm); }
.working-chip.is-gone { display: none; }
.pop { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.demo-ring p { margin: 0; }
.demo-ring a { color: var(--teal); }

/* ----------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.step-bar { position: relative; display: block; height: 3px; margin-bottom: 20px; border-radius: 3px; background: var(--line); overflow: hidden; }
.step-bar::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform: scaleX(1); transform-origin: 0 50%; transition: transform .6s var(--ease) .1s; }
html.js .step:not(.is-in) .step-bar::after { transform: scaleX(0); }
.step-num { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; color: var(--teal); }
.step h3 { margin-bottom: 8px; font-size: 1.08rem; }
.step p { font-size: .95rem; color: var(--ink-2); }

/* ------------------------------------------------------------ safe */

.safe { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 4.5vw, 52px); background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-sm); margin-top: clamp(48px, 7vw, 80px); }
.safe p { color: var(--ink-2); margin-top: 12px; }
.safe ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.safe li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.safe li strong { color: var(--ink); }
.safe .tick { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--teal); color: #fff; }
.safe .tick .i { width: 16px; height: 16px; stroke-width: 2.6; }

/* -------------------------------------------------------- training */

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 5px 12px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: .82rem; font-weight: 600; }
.card .small { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------- pricing */

.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.price-card { display: grid; align-content: start; gap: 10px; padding: 26px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card .name { font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.price-card .value { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1.05; letter-spacing: -.035em; }
.price-card .value small { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-card p { font-size: .92rem; color: var(--ink-2); }
.price-card--dark { background: var(--ink); color: #fff; }
.price-card--dark .name, .price-card--dark p { color: rgba(255, 255, 255, .8); }
.price-card--dark .value { color: #fff; }
.price-note { margin-top: 20px; font-size: .92rem; color: var(--muted); max-width: 70ch; }

.estimator { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 44px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-sm); }
.estimator h3 { font-size: 1.35rem; margin-bottom: 6px; }
.estimator .hint { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: all .2s; cursor: pointer; }
.seg label:hover span { border-color: var(--teal-100); }
.seg input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper[hidden] { display: none; }
.stepper > span { font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.stepper button { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: border-color .2s, background .2s; }
.stepper button:hover:not(:disabled) { border-color: var(--teal); background: var(--teal-50); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 5.5ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.estimate { padding: 28px; border-radius: 22px; background: var(--teal-50); text-align: left; }
.estimate .label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-eyebrow); }
.estimate .figure { display: block; margin: 6px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.04em; color: var(--ink); transition: transform .25s var(--ease); }
.estimate .figure.bump { transform: scale(1.05); }
.estimate p { font-size: .9rem; color: var(--ink-2); }

/* ----------------------------------------------------------- about */

.about { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 32px; background: var(--teal-50); z-index: 0; transition: transform .5s var(--ease); }
.about-photo:hover::before { transform: translate(6px, 6px); }
.about-photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 30px; box-shadow: var(--shadow-md); }
.about-copy { display: grid; gap: 18px; }
.about-copy p { color: var(--ink-2); max-width: 58ch; }
.about-copy h2 { margin-bottom: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.facts .i { width: 16px; height: 16px; color: var(--teal); }

/* ------------------------------------------------------------- faq */

.faq { max-width: 900px; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s; }
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; padding: 20px 24px; background: none; border: 0; text-align: left; font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; cursor: pointer; }
.faq-q .i { width: 20px; height: 20px; color: var(--teal); transition: transform .35s var(--ease); }
.faq-q[aria-expanded="true"] .i { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility .4s; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--ink-2); max-width: 64ch; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; visibility: visible; }
.faq-a a { color: var(--teal); }

/* --------------------------------------------------------- contact */

.contact { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 60px); background: var(--teal); color: #fff; border-radius: 32px; overflow: hidden; }
.contact::before, .contact::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); pointer-events: none; }
.contact::before { width: 420px; height: 420px; right: -120px; top: -160px; }
.contact::after  { width: 420px; height: 420px; right: -40px; top: -120px; }
.contact > * { position: relative; z-index: 1; }
.contact h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.contact-copy { display: grid; gap: 16px; }
.contact-copy p { color: rgba(255, 255, 255, .9); max-width: 44ch; }
.contact-lines { display: grid; gap: 6px; font-weight: 650; }
.contact-lines a { text-underline-offset: 3px; }
.contact-copy .where { font-weight: 400; color: rgba(255, 255, 255, .85); }

.form-card { padding: clamp(22px, 3vw, 32px); background: #fff; border-radius: 24px; color: var(--ink); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 650; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid #cfd5cc; border-radius: 14px; background: #fff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13, 108, 107, .16); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: .84rem; color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; font-weight: 550; }
.form-status.is-ok { background: #dcf1e6; color: #0d5a3a; }
.form-status.is-bad { background: #fbe4e1; color: #8c1d18; }
.form-card .btn-dark { margin-top: 4px; }
.form-note { margin-top: 12px; font-size: .8rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--teal); }

/* ---------------------------------------------------------- footer */

#contact { padding-bottom: 0; }
.site-footer { margin-top: clamp(40px, 6vw, 72px); padding-block: 30px; background: var(--ink); color: rgba(255, 255, 255, .8); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer-inner nav { display: flex; gap: 20px; }
.site-footer a { text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }

/* ------------------------------------------------------- privacy page */

.prose { max-width: 740px; padding-block: clamp(40px, 6vw, 72px) 0; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.prose h2 { margin: 36px 0 10px; font-size: 1.35rem; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 6px 0; }
.prose .updated { margin-bottom: 8px; font-size: 1.1rem; color: var(--muted); }
.prose a { color: var(--teal); }

/* ------------------------------------------------- scroll reveals */

html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s var(--ease); transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  .grid-4, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(21, 34, 43, .08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 15px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav .btn { margin-top: 18px; }

  .hero-grid { grid-template-columns: 1fr; }
  .flow { margin-inline: auto; max-width: 520px; }
  .stats-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-3, .also { grid-template-columns: 1fr; }
  .demo-panel-grid { grid-template-columns: minmax(0, 1fr); }
  .safe, .estimator, .about, .contact { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

@media (max-width: 600px) {
  .wrap { width: min(1120px, 100% - 36px); }
  .grid-4, .price-grid, .steps { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }

  /* Phones: tighter hero so the main button stays in the first screen. */
  .hero { padding-top: 24px; }
  .hero-copy { gap: 14px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-what { font-size: 1.15rem; }
  .hero .lede { font-size: 1.05rem; line-height: 1.5; }
  .hero .sub { font-size: .96rem; line-height: 1.5; }
  .cta-note { margin-top: 0; }
  .phone-screen { height: 540px; }
  .sheet-row { grid-template-columns: .9fr 1.5fr .9fr .8fr; font-size: .74rem; }
  .faq-q { padding: 18px 18px; font-size: 1rem; }
  .faq-a p { padding: 0 18px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .progress, .demo, .flow-replay { display: none !important; }
  html.js [data-reveal], html.js .flow-step { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  html.js [data-reveal], html.js .flow-step { opacity: 1; transform: none; }
  /* The demo still plays step by step, as a gentle fade with no movement */
  html.js [data-seq].is-in { animation: seqFade .35s ease both; }
}

/* ---- richer footer (added 21 Oct 2026) ---- */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px 36px; }
.footer-grid p { margin: 0 0 8px; }
.footer-name { color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer-place { color: rgba(255, 255, 255, .6); }
.footer-h { margin: 0 0 10px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-base { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- name with a short line underneath (added 21 Oct 2026) ---- */
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-tag { margin-top: 3px; font-size: .72rem; font-weight: 500; letter-spacing: .01em; color: var(--muted); white-space: nowrap; }
.footer-tag { color: rgba(255, 255, 255, .85); }
@media (max-width: 340px) { .brand-tag { display: none; } }
