/* ============================================================
   Tetova Voice — Global Styles
   Plain CSS. No frameworks, no build step.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #FAFAF6;
  --bg-soft: #F3F7EF;
  --surface: #FFFFFF;
  --surface-green: #ECFDF5;
  --primary: #16A34A;
  --primary-dark: #14532D;
  --mint: #DCFCE7;
  --sage: #DDE7D8;
  --text: #0F172A;
  --muted: #64748B;
  --border: #DDE7D8;
  --amber: #F59E0B;
  --amber-soft: #FEF3C7;
  --red: #DC2626;
  --red-soft: #FEE2E2;
  --violet: #7C3AED;
  --violet-soft: #EDE9FE;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 83, 45, 0.12);
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman",
    serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --check-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314532D' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

/* Keep anchor targets clear of the sticky header */
[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(860px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.975rem;
  padding: 0.75rem 1.5rem;
  border-radius: 11px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #1cb457, var(--primary));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 2px rgba(20, 83, 45, 0.4), 0 8px 20px -6px rgba(22, 163, 74, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #18a04e, #128a3f);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-dark);
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.main-nav a:not(.btn) {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:not(.btn):hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: var(--tetova-accent, #dcebcf);
  border: none;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  line-height: 0;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.nav-toggle:hover {
  background: #cfe3bf;
  box-shadow: 0 2px 8px rgba(23, 102, 58, 0.18);
}

.nav-toggle:active {
  transform: scale(0.93);
}

.nav-toggle .bars {
  display: block;
  width: 20px;
  height: 3px;
  padding: 0;
  border-radius: 3px;
  background: var(--tetova-forest, #17663a);
  position: relative;
  transition: background 0.15s ease, width 0.2s ease;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--tetova-forest, #17663a);
  transition: transform 0.22s ease, top 0.22s ease, width 0.22s ease;
}

.nav-toggle .bars::before {
  top: -7px;
  width: 24px;
}

.nav-toggle .bars::after {
  top: 7px;
  width: 14px;
}

.nav-toggle:hover .bars,
.nav-toggle:hover .bars::before,
.nav-toggle:hover .bars::after {
  width: 24px;
}

.nav-toggle[aria-expanded="true"] .bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bars::before {
  top: 0;
  width: 24px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bars::after {
  top: 0;
  width: 24px;
  transform: rotate(-45deg);
}

/* Simplified header for landing pages */
.nav-simple {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-simple a:not(.btn) {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-simple a:not(.btn):hover {
  color: var(--primary-dark);
  text-decoration: none;
}

@media (max-width: 480px) {
  .nav-simple a:not(.btn) {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.75rem 0 3.75rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--sage) 1px, transparent 1px),
    linear-gradient(90deg, var(--sage) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.28;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 90% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 320px at 88% 8%, rgba(22, 163, 74, 0.1), transparent 65%),
    radial-gradient(460px 300px at 2% 95%, rgba(124, 58, 237, 0.05), transparent 65%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-visual .mock {
  rotate: -1.1deg;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-inner.hero-single {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero-single .hero-ctas {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--primary);
  flex: none;
}

.hero-single .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--primary);
  flex: none;
}

.hero .lead,
.section-head .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-single .lead {
  margin-inline: auto;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-visual {
  min-width: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.25rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-green {
  background: linear-gradient(180deg, var(--surface-green), var(--bg-soft));
}

.section-head {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* Center the lead paragraph block under a centered heading (not just its text) */
.section-head.center .lead {
  margin-inline: auto;
}

/* Demo request success confirmation */
.form-success {
  text-align: center;
  padding: 0.5rem 0;
}
.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-green);
  color: #17663a;
  border: 1px solid rgba(22, 163, 74, 0.3);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.form-success h2 {
  margin-bottom: 0.5rem;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-split > .split-copy h2 {
  max-width: 22ch;
}

/* ---------- Grids & cards ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-top: 0.9rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 0.94rem;
}

.card .muted,
.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--mint), var(--surface-green));
  border: 1px solid rgba(22, 163, 74, 0.18);
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.icon-chip svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.icon-chip.amber {
  background: linear-gradient(160deg, var(--amber-soft), #fffbeb);
  border-color: rgba(245, 158, 11, 0.25);
}

.icon-chip.violet {
  background: linear-gradient(160deg, var(--violet-soft), #f5f3ff);
  border-color: rgba(124, 58, 237, 0.2);
}

.icon-chip.amber {
  color: #92400e;
}

.icon-chip.violet {
  color: var(--violet);
}

.icon-chip.sage {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--primary-dark);
}

/* ---------- Capability bar ---------- */
.cap-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.9rem;
  justify-content: center;
}

.cap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.cap::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint) var(--check-svg) center / 10px auto no-repeat;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.b-green {
  background: var(--mint);
  color: var(--primary-dark);
}

.b-amber {
  background: var(--amber-soft);
  color: #92400e;
}

.b-red {
  background: var(--red-soft);
  color: #991b1b;
}

.b-violet {
  background: var(--violet-soft);
  color: #5b21b6;
}

.b-neutral {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--border);
}

.b-live {
  background: var(--red-soft);
  color: #991b1b;
}

.b-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--primary);
  border-bottom: 2px solid var(--mint);
  padding-bottom: 0.35rem;
  margin-bottom: 0.9rem;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Mockups ---------- */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05),
    0 30px 60px -22px rgba(20, 83, 45, 0.28);
  overflow: hidden;
  font-size: 0.85rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.mock-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
}

.mock-bar .dot:first-child {
  background: #fca5a5;
}

.mock-bar .dot:nth-child(2) {
  background: #fcd34d;
}

.mock-bar .dot:nth-child(3) {
  background: #86efac;
}

.mock-title {
  margin-left: 0.5rem;
  min-width: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body {
  padding: 1rem;
}

.mock-split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

.mock-split .mock-side {
  border-right: 1px solid var(--border);
  background: var(--bg);
  padding: 0.75rem;
  min-width: 0;
}

.mock-split .mock-main {
  padding: 0.9rem 1rem;
  min-width: 0;
}

/* Inbox list */
.inbox-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.3rem;
}

.inbox-item.active {
  background: var(--surface-green);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.inbox-item .chan {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.inbox-item .who {
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.inbox-item .preview {
  color: var(--muted);
  font-size: 0.74rem;
  margin: 0.1rem 0 0.25rem;
}

/* Conversation bubbles */
.convo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.msg {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.msg .msg-meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.msg.cust {
  align-self: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.msg.ai {
  align-self: flex-end;
  background: var(--surface-green);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-bottom-right-radius: 4px;
}

.msg.system {
  align-self: center;
  background: var(--violet-soft);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #4c1d95;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  max-width: 100%;
}

/* Key/value panels (Shopify order panel etc.) */
.panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.75rem;
}

.panel-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  padding: 0.22rem 0;
  border-bottom: 1px dashed var(--border);
}

.kv:last-child {
  border-bottom: 0;
}

.kv .k {
  color: var(--muted);
}

.kv .v {
  font-weight: 600;
  text-align: right;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 0.75rem 1.35rem;
  font-size: 0.8rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.35rem;
  bottom: -0.1rem;
  width: 2px;
  background: var(--border);
}

.timeline li:last-child::before {
  display: none;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--surface-green);
}

.timeline .t-time {
  color: var(--muted);
  font-size: 0.7rem;
  display: block;
}

/* Progress bars & mini charts */
.progress {
  height: 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 0.3rem 0 0.15rem;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.progress.warn > span {
  background: var(--amber);
}

.progress.danger > span {
  background: var(--red);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 90px;
  padding-top: 0.5rem;
}

.bars .bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--muted);
  height: 100%;
}

.bars .bar i {
  display: block;
  width: 100%;
  max-width: 42px;
  border-radius: 6px 6px 2px 2px;
  background: var(--primary);
}

.bars .bar.alt i {
  background: var(--sage);
}

.bars .bar.violet i {
  background: var(--violet);
}

/* Toggle pills (automation modes, settings) */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  color: var(--muted);
}

.pill.on {
  background: var(--mint);
  border-color: rgba(22, 163, 74, 0.4);
  color: var(--primary-dark);
}

.pill.violet {
  background: var(--violet-soft);
  border-color: rgba(124, 58, 237, 0.35);
  color: #5b21b6;
}

/* Switch (hard cap toggle) */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.switch .track {
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: var(--primary);
  position: relative;
  flex: none;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 2.5px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.switch.off .track {
  background: var(--sage);
}

.switch.off .track::after {
  right: auto;
  left: 3px;
}

/* Phone / SMS alert card */
.phone-card {
  background: var(--text);
  color: #f8fafc;
  border-radius: 20px;
  padding: 1rem;
  font-size: 0.82rem;
  max-width: 330px;
}

.phone-card .from {
  font-weight: 700;
  font-size: 0.75rem;
  color: #86efac;
  margin-bottom: 0.35rem;
}

.phone-card p {
  margin: 0;
  line-height: 1.5;
}

/* Push-style notification */
.notif {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  box-shadow: var(--shadow-md);
  font-size: 0.83rem;
}

.notif .n-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.notif .n-title {
  font-weight: 700;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.notif p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

/* Mock tables */
.mock table,
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.mock th,
.table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0.45rem 0.6rem;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}

.mock td,
.table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.mock tr:last-child td,
.table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Tabs ---------- */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.tab-btn[aria-selected="true"] {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.tab-panel[hidden] {
  display: none;
}

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.2rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text);
}

.faq-q .faq-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-q .faq-icon::before {
  content: "+";
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  max-width: 62rem;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.plan.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.plan .flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
}

.plan h3 {
  margin: 0 0 0.15rem;
}

.plan .plan-for {
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 2.6em;
  margin-bottom: 0.9rem;
}

.plan .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan .price-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.35rem 0 1.1rem;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  flex: 1;
}

.plan ul li {
  padding: 0.32rem 0 0.32rem 1.6rem;
  position: relative;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--mint) var(--check-svg) center / 8px auto no-repeat;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field .hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 15px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
  background-color: var(--surface);
}

.form-success {
  background: var(--surface-green);
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), #166534 60%, var(--primary));
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 3.25rem 2.5rem;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  max-width: 26ch;
  margin-inline: auto;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 58ch;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--mint);
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-band .hero-ctas {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.25rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: var(--text);
}

.footer-tagline {
  color: var(--muted);
  max-width: 34ch;
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-min {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 1.8rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-min .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-min a {
  color: var(--muted);
  margin-left: 1.1rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Custom audio player ---------- */
.player {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  margin: 0.7rem 0 0.9rem;
}

.player-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(180deg, #1cb457, var(--primary));
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -2px rgba(22, 163, 74, 0.45);
  transition: transform 0.15s ease;
}

.player-btn:hover {
  transform: scale(1.06);
}

.player-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.player-btn .icon-pause {
  display: none;
}

.player.playing .icon-play {
  display: none;
}

.player.playing .icon-pause {
  display: block;
}

.player-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--sage);
  overflow: hidden;
  cursor: pointer;
}

.player-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.15s linear;
}

.player-time {
  flex: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 2.6em;
  text-align: right;
}

/* Mockup cycling */
[data-cycle] .cycle-item {
  display: none;
}

[data-cycle] .cycle-item.is-active {
  display: block;
}

/* ---------- Utility ---------- */
.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.center {
  text-align: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.9rem;
}

.check-list li + li {
  border-top: 1px dashed var(--border);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint) var(--check-svg) center / 10px auto no-repeat;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.anchor-nav a {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.anchor-nav a:hover {
  text-decoration: none;
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a:not(.btn) {
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid var(--bg-soft);
    font-size: 1rem;
  }

  .main-nav .btn {
    margin-top: 0.9rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .section-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mock-split {
    grid-template-columns: 1fr;
  }

  .mock-split .mock-side {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 2.4rem 1.4rem;
  }

  .form-card {
    padding: 1.4rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print basics ---------- */
@media print {
  .site-header,
  .site-footer,
  .footer-min,
  .cta-band,
  .nav-toggle,
  .hero-ctas {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .mock {
    box-shadow: none;
  }
}
