/* SpokeChoice public website (www.spokechoice.com and /features/): plain CSS, no build step.
   The pages are static HTML in src/site, copied to the site root by the Angular build (angular.json assets).
   Colors match src/themes/colors.scss. Icons: see tools/site-icons.js. */

:root {
   --blue: #0a79ae;        /* $spoke-choice-blue */
   --blue-dark: #08628d;
   --blue-tint: #e3f2f9;
   --red: #be1e2d;         /* $spoke-choice-red, 6.2:1 on white */
   --green: #2e7d32;       /* $green-800 */
   --focus: #ffa726;       /* $orange-400 */
   --navy: #0d2b45;
   --ink: #1a2433;
   --muted: #4a5568;       /* 7.5:1 on white */
   --soft: #f3f8fb;
   --line: #dde7ee;
   --gold: #ffd180;        /* 9:1 on the navy bands */
   --on-navy: #dbe8f1;     /* 10:1 on the navy bands */
   --ai: #2f3a8f;
   --ai-tint: #eef0fb;
   --heading-font: 'Sarabun', sans-serif;
   --header-height: 72px;
}

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

html {
   scroll-padding-top: calc(var(--header-height) + 8px); /* in-page links land below the sticky header */
}

@media (prefers-reduced-motion: no-preference) {
   html {
      scroll-behavior: smooth;
   }
}

body {
   margin: 0;
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
   font-size: 16px;
   line-height: 1.5;
   color: var(--ink);
   background: #fff;
}

h1, h2, h3 {
   font-family: var(--heading-font);
   margin: 0 0 12px;
   line-height: 1.25;
}

p {
   margin: 0 0 16px;
}

img {
   max-width: 100%;
}

a {
   color: var(--blue);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
   outline: 3px solid var(--focus);
   outline-offset: 2px;
}

.container {
   max-width: 1140px;
   margin: 0 auto;
   padding: 0 16px;
}

.sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   overflow: hidden;
   clip: rect(0 0 0 0);
   white-space: nowrap;
}

.skip-link {
   position: absolute;
   left: 8px;
   top: -60px;
   z-index: 100;
   padding: 10px 16px;
   border-radius: 8px;
   background: var(--navy);
   color: #fff;
   font-weight: 700;
}

.skip-link:focus {
   top: 8px;
}

/* Icons: <svg class="i"><use href="/static/icons.svg#i-name"></use></svg> */
.i {
   display: inline-block;
   width: 1.25em;
   height: 1em;
   fill: currentColor;
   vertical-align: -0.125em;
   flex-shrink: 0;
}

/* ---------- Grids ---------- */
.grid {
   display: grid;
   gap: 24px;
}

@media (min-width: 768px) {
   .grid-2,
   .grid-3 {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (min-width: 992px) {
   .grid-3 {
      grid-template-columns: repeat(3, 1fr);
   }

   .grid-split {
      grid-template-columns: 7fr 5fr;
      align-items: center;
   }

   .grid-half {
      grid-template-columns: 1fr 1fr;
      align-items: center;
   }
}

/* ---------- Header ---------- */
.site-header {
   position: sticky;
   top: 0;
   z-index: 50;
   background: #fff;
   border-bottom: 1px solid var(--line);
}

.site-header .container {
   display: flex;
   align-items: center;
   gap: 20px;
   min-height: var(--header-height);
}

.site-logo img {
   display: block;
   height: 46px;
   width: auto;
}

.site-nav {
   display: none;
   flex: 1;
   justify-content: center;
   gap: 4px;
}

.site-nav a {
   padding: 8px 10px;
   border-radius: 8px;
   color: var(--ink);
   font-size: 15px;
   font-weight: 600;
   text-decoration: none;
}

.site-nav a:hover {
   background: var(--blue-tint);
   color: var(--blue-dark);
}

.header-actions {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-left: auto;
}

.header-actions .lp-btn {
   padding: 9px 18px;
   font-size: 15px;
   white-space: nowrap;
}

.header-actions .header-demo {
   display: none;
}

@media (min-width: 992px) {
   .site-nav {
      display: flex;
   }

   .header-actions {
      margin-left: 0;
   }
}

@media (min-width: 576px) {
   .header-actions .header-demo {
      display: inline-flex;
   }
}

/* ---------- Shared section look ---------- */
.lp-section {
   padding: 72px 0;
   position: relative;
}

.lp-eyebrow {
   display: inline-block;
   font-size: 13px;
   font-weight: 700;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   color: var(--blue);
   margin-bottom: 10px;
}

.lp-title {
   font-weight: 700;
   font-size: 34px;
   line-height: 1.2;
   color: var(--ink);
   margin-bottom: 14px;
}

.lp-lead {
   font-size: 17px;
   line-height: 28px;
   color: var(--muted);
   max-width: 760px;
}

.lp-center {
   text-align: center;
}

.lp-center .lp-lead {
   margin-left: auto;
   margin-right: auto;
}

.lp-card {
   display: flex;
   flex-direction: column;
   height: 100%;
   background: #fff;
   border: 1px solid var(--line);
   border-radius: 14px;
   padding: 24px;
   box-shadow: 0 2px 10px rgba(13, 43, 69, 0.05);
}

.lp-card h3 {
   font-size: 19px;
   font-weight: 700;
   color: var(--ink);
   margin: 14px 0 8px;
}

.lp-card p {
   font-size: 15px;
   line-height: 24px;
   color: var(--muted);
   margin-bottom: 0;
}

.lp-icon {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 46px;
   height: 46px;
   border-radius: 12px;
   font-size: 20px;
   color: var(--blue);
   background: var(--blue-tint);
   flex-shrink: 0;
}

/* Large rounded buttons for calls to action (links styled as buttons). */
.lp-btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 13px 26px;
   border-radius: 30px;
   font: inherit;
   font-size: 16px;
   font-weight: 700;
   line-height: 1.3;
   text-decoration: none;
   cursor: pointer;
   border: 2px solid var(--blue);
   transition: background-color 0.2s, color 0.2s;
}

.lp-btn-primary {
   background: var(--blue);
   color: #fff;
}

.lp-btn-primary:hover {
   background: var(--blue-dark);
   color: #fff;
}

.lp-btn-outline {
   background: transparent;
   color: var(--blue);
}

.lp-btn-outline:hover {
   background: var(--blue-tint);
}

.lp-btn-light {
   background: #fff;
   color: var(--navy);
   border-color: #fff;
}

.lp-btn-light:hover {
   background: var(--blue-tint);
}

.lp-btn[disabled] {
   opacity: 0.55;
   cursor: not-allowed;
}

/* "AI" note: marks where SpokeChoice's AI helps (robot icon + one line). */
.lp-ai {
   display: flex;
   align-items: flex-start;
   gap: 8px;
   margin-top: 14px;
   padding: 10px 12px;
   border-radius: 10px;
   background: var(--ai-tint);
   font-size: 14px;
   line-height: 20px;
   font-weight: 600;
   color: var(--ai); /* 8.7:1 on the tint */
}

.lp-ai-pill {
   display: inline-flex;
   align-items: center;
   gap: 4px;
   flex-shrink: 0;
   padding: 1px 8px;
   border-radius: 10px;
   background: var(--ai);
   color: #fff;
   font-size: 12px;
   font-weight: 700;
}

.lp-ai-inline {
   vertical-align: 2px;
}

.mt-3 {
   margin-top: 16px;
}

/* ---------- Hero ---------- */
.hero {
   padding: 64px 0 56px;
   background: radial-gradient(circle at 85% 20%, #dff1fa 0, rgba(223, 241, 250, 0) 45%),
      linear-gradient(180deg, #f6fbfe 0%, #fff 100%);
}

.hero-title {
   font-size: 44px;
   font-weight: 800;
   line-height: 1.12;
   color: var(--ink);
   margin-bottom: 18px;
}

.hero-accent {
   color: var(--red);
}

.hero-lead {
   font-size: 18px;
   line-height: 30px;
   color: var(--muted);
   max-width: 620px;
}

.hero-actions {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   margin: 28px 0 22px;
}

.hero-checks {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-wrap: wrap;
   gap: 8px 22px;
   color: var(--ink);
   font-size: 15px;
   font-weight: 600;
}

.hero-checks .i {
   color: var(--green);
   margin-right: 2px;
}

/* ---------- Proof strip ---------- */
.proof-strip {
   background: var(--navy);
   padding: 26px 0;
}

.proof-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   text-align: center;
}

@media (min-width: 768px) {
   .proof-grid {
      grid-template-columns: repeat(4, 1fr);
   }
}

.proof-item {
   padding: 8px 0;
}

.proof-number {
   font-family: var(--heading-font);
   font-size: 30px;
   font-weight: 800;
   color: #fff;
}

.proof-label {
   font-size: 14px;
   color: #cfe3ef; /* 10:1 on the navy */
}

/* ---------- "Does your agency still work this way?" ---------- */
.quick-check {
   padding: 60px 0;
   background: var(--soft);
}

.qc-list {
   list-style: none;
   padding: 0;
   margin: 10px 0 0;
}

.qc-item {
   display: flex;
   gap: 14px;
   padding: 14px 0;
   border-bottom: 1px solid var(--line);
}

.qc-item:last-child {
   border-bottom: none;
}

.qc-icon {
   flex-shrink: 0;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 34px;
   height: 34px;
   border-radius: 50%;
   background: #fdecea;
   color: var(--red);
   font-size: 15px;
}

.qc-practice {
   display: block;
   font-size: 17px;
   line-height: 24px;
   font-weight: 700;
   color: var(--ink);
}

.qc-answer {
   display: block;
   margin-top: 3px;
   font-size: 15px;
   line-height: 22px;
   color: var(--muted);
}

.qc-answer-label {
   font-weight: 700;
   color: var(--green);
}

.qc-cta {
   padding: 34px 30px;
   border-radius: 18px;
   background: linear-gradient(135deg, #0d2b45 0%, #0a4f73 100%);
   color: #fff;
   box-shadow: 0 18px 40px rgba(13, 43, 69, 0.2);
}

.qc-cta h3 {
   font-size: 26px;
   font-weight: 800;
   color: #fff;
   margin: 14px 0 12px;
}

.qc-cta p {
   font-size: 16px;
   line-height: 25px;
   color: var(--on-navy);
   margin-bottom: 22px;
}

.qc-cta-icon {
   font-size: 30px;
   color: var(--gold);
}

/* ---------- Billing in-house (navy band) ---------- */
.billing-compare {
   background: linear-gradient(135deg, #0d2b45 0%, #0a4f73 100%);
}

.billing-compare .lp-eyebrow {
   color: var(--gold);
}

.billing-compare .lp-title {
   color: #fff;
   font-size: 40px;
}

.billing-compare .lp-lead {
   color: var(--on-navy);
}

.bc-compare {
   margin-top: 36px;
}

.bc-col {
   height: 100%;
   padding: 26px 28px;
   border-radius: 16px;
}

.bc-col h3 {
   font-size: 21px;
   font-weight: 800;
   margin-bottom: 16px;
}

.bc-col h3 .i {
   margin-right: 4px;
}

.bc-col ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

.bc-col li {
   display: flex;
   gap: 10px;
   padding: 9px 0;
   font-size: 15.5px;
   line-height: 23px;
}

.bc-col li .i {
   margin-top: 4px;
}

.bc-them {
   background: rgba(255, 255, 255, 0.07);
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: var(--on-navy);
}

.bc-them h3 {
   color: #fff;
}

.bc-them li .i {
   color: #ff8a80;
}

.bc-us {
   background: #fff;
   border: 3px solid #69f0ae;
   color: var(--ink);
   box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.bc-us h3,
.bc-us li .i {
   color: var(--green);
}

/* Partner option under the SpokeChoice list. */
.bc-consultant {
   display: flex;
   gap: 12px;
   margin-top: 14px;
   padding: 14px 16px;
   border-radius: 12px;
   background: #e8f5e9;
}

.bc-consultant > .i {
   margin-top: 3px;
   font-size: 20px;
   color: var(--green);
}

.bc-consultant p {
   margin: 0;
   font-size: 15px;
   line-height: 23px;
   color: var(--ink);
}

/* Pricing strip. */
.bc-cost {
   margin-top: 36px;
   padding: 30px;
   border-radius: 16px;
   background: var(--soft);
   color: var(--ink);
}

.bc-cost-head {
   display: flex;
   align-items: center;
   gap: 16px;
   margin-bottom: 8px;
}

.bc-cost-head > .i {
   font-size: 34px;
   color: var(--red);
}

.bc-cost-head h3 {
   font-size: 24px;
   font-weight: 800;
   margin: 0;
}

.bc-cost-head p {
   margin: 2px 0 0;
   font-size: 15px;
   color: var(--muted);
}

.bc-cost-item {
   margin-top: 16px;
}

.bc-cost-item strong {
   display: block;
   font-size: 16px;
}

.bc-cost-item span {
   font-size: 14.5px;
   line-height: 21px;
   color: var(--muted);
}

.bc-cost-action {
   margin-top: 24px;
   text-align: center;
}

/* ---------- AI (blue band) ---------- */
.ai-band {
   background: linear-gradient(to right, rgba(54, 55, 149, 0.92), rgba(0, 92, 151, 0.92)),
      url('/assets/img/landing/img-1.jpg') center / cover no-repeat;
}

.ai-band .lp-eyebrow {
   color: var(--gold);
}

.ai-band .lp-title,
.ai-band .lp-lead {
   color: #fff;
}

.ai-band .grid {
   margin-top: 40px;
}

.ai-card {
   height: 100%;
   padding: 26px;
   border-radius: 14px;
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.25);
   color: #fff;
}

.ai-card h3 {
   font-size: 20px;
   font-weight: 700;
   margin: 14px 0 10px;
}

.ai-card p {
   font-size: 15px;
   line-height: 24px;
   margin-bottom: 0;
}

.ai-icon {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 48px;
   height: 48px;
   border-radius: 12px;
   font-size: 22px;
   color: var(--navy);
   background: #fff;
}

/* A button (opens a dialog) that looks like a link. */
.link-button {
   display: inline-block;
   margin-top: 14px;
   padding: 0;
   border: none;
   background: none;
   font: inherit;
   font-weight: 700;
   color: #0056b3;
   text-decoration: underline;
   cursor: pointer;
}

.ai-card .link-button {
   color: var(--gold);
}

.ai-card .link-button:hover {
   color: #fff;
}

/* ---------- Field-work items (home page) ---------- */
.why-item {
   display: flex;
   gap: 16px;
}

.why-item h3 {
   font-size: 18px;
   font-weight: 700;
   margin: 2px 0 6px;
}

.why-item p {
   font-size: 15px;
   line-height: 23px;
   color: var(--muted);
   margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
   max-width: 860px;
   margin: 24px auto 0;
}

.faq-item {
   border-bottom: 1px solid var(--line);
}

.faq-item summary {
   position: relative;
   padding: 18px 40px 18px 0;
   font-family: var(--heading-font);
   font-size: 18px;
   font-weight: 700;
   cursor: pointer;
   list-style: none;
}

.faq-item summary::-webkit-details-marker {
   display: none;
}

/* Plus / minus on the right. */
.faq-item summary::after {
   content: '+';
   position: absolute;
   right: 6px;
   top: 50%;
   transform: translateY(-50%);
   font-size: 24px;
   font-weight: 400;
   color: var(--blue);
}

.faq-item[open] summary::after {
   content: '\2212';
}

.faq-item p {
   margin: 0 0 18px;
   font-size: 16px;
   line-height: 26px;
   color: var(--muted);
}

/* ---------- Demo request ---------- */
.demo .lp-lead {
   max-width: none;
}

@media (min-width: 992px) {

   .demo-form {
      order: 1;
   }
}

.field {
   margin-bottom: 14px;
}

.field label {
   display: block;
   margin-bottom: 4px;
   font-weight: 600;
}

.field input {
   width: 100%;
   max-width: 340px;
   padding: 9px 12px;
   border: 1px solid #b7c4ce;
   border-radius: 8px;
   font: inherit;
   color: var(--ink);
}

.field input[aria-invalid='true'] {
   border-color: var(--red);
}

.field-error {
   margin-top: 4px;
   font-size: 14px;
   color: var(--red);
}

.captcha {
   margin: 18px 0 12px;
   min-height: 78px;
}

.form-status {
   margin: 12px 0 0;
   font-weight: 600;
}

.form-status.is-error {
   color: var(--red);
}

.form-status.is-done {
   color: var(--green);
}

/* ---------- Features page ---------- */
.features-hero {
   padding-bottom: 40px;
}

.back-link {
   font-weight: 700;
   text-decoration: none;
}

.custom-panel {
   margin-top: 48px;
   background: #fff;
   padding: 36px;
   border-radius: 18px;
   border: 1px solid var(--line);
}

.custom-panel p {
   font-size: 16px;
   line-height: 26px;
   color: var(--muted);
}

.custom-title {
   font-size: 26px;
   font-weight: 700;
   margin-bottom: 14px;
}

.custom-list {
   list-style: none;
   padding: 0;
   margin: 0 0 16px;
}

.custom-list li {
   display: flex;
   gap: 10px;
   padding: 5px 0;
   font-size: 15.5px;
   line-height: 23px;
}

.custom-list .i {
   margin-top: 4px;
   color: var(--blue);
}

.custom-img {
   display: block;
   margin: 0 auto;
   height: auto;
   border-radius: 14px;
   box-shadow: 0 14px 32px rgba(13, 43, 69, 0.15);
}

.get-started {
   padding: 100px 0;
   text-align: center;
   color: #fff;
   background: linear-gradient(to right, rgba(54, 55, 149, 0.92), rgba(0, 92, 151, 0.92)),
      url('/assets/img/landing/img-2.jpg') center / cover no-repeat;
}

.get-started h2 {
   font-size: 36px;
   color: #fff;
}

.get-started p {
   max-width: 760px;
   margin: 20px auto 24px;
   font-size: 17px;
   line-height: 28px;
}

/* Collaboration dialog. */
.collab-paths {
   display: flex;
   flex-wrap: wrap;
   gap: 18px 32px;
   align-items: center;
   justify-content: center;
   margin: 8px 0 20px;
   text-align: center;
   color: var(--muted);
}

.collab-paths figure {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 8px;
   margin: 0;
}

/* ---------- Dialogs ---------- */
.lp-dialog {
   width: min(920px, 95vw);
   max-height: 90vh;
   padding: 0;
   border: none;
   border-radius: 16px;
   box-shadow: 0 24px 60px rgba(13, 43, 69, 0.35);
   color: var(--ink);
}

.lp-dialog::backdrop {
   background: rgba(13, 43, 69, 0.55);
}

.lp-dialog[open] {
   display: flex;
   flex-direction: column;
}

.dialog-head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   padding: 16px 20px;
   border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
   margin: 0;
   font-size: 20px;
}

.dialog-close {
   padding: 6px 14px;
   border: 1px solid var(--line);
   border-radius: 20px;
   background: #fff;
   font: inherit;
   font-weight: 600;
   cursor: pointer;
}

.dialog-close:hover {
   background: var(--blue-tint);
}

.dialog-body {
   padding: 20px;
   overflow: auto;
}

.dialog-body h2 {
   font-size: 22px;
   margin-top: 18px;
}

/* Guide Me illustration: a mock SpokeChoice screen with a ringed button and the step card. */
.guide-title {
   font-size: 26px;
   font-weight: 800;
   margin-bottom: 12px;
}

.guide-intro,
.guide-outcome {
   font-size: 16px;
   line-height: 25px;
   color: var(--muted);
}

.guide-outcome {
   margin: 18px 0 0;
   font-weight: 700;
   color: var(--green);
}

.guide-steps {
   counter-reset: guide;
   list-style: none;
   padding: 0;
   margin: 18px 0 0;
}

.guide-steps li {
   counter-increment: guide;
   position: relative;
   padding: 0 0 14px 44px;
   font-size: 15px;
   line-height: 23px;
   color: var(--muted);
}

.guide-steps li::before {
   content: counter(guide);
   position: absolute;
   left: 0;
   top: 0;
   width: 30px;
   height: 30px;
   border-radius: 50%;
   background: var(--blue);
   color: #fff;
   font-weight: 700;
   display: flex;
   align-items: center;
   justify-content: center;
}

.guide-steps strong {
   display: block;
   color: var(--ink);
}

.guide-demo {
   position: relative;
   border-radius: 14px;
   border: 1px solid var(--line);
   background: var(--soft);
   padding-bottom: 70px;
   overflow: hidden;
}

.demo-bar {
   display: flex;
   align-items: center;
   gap: 6px;
   padding: 10px 14px;
   background: var(--navy);
}

.demo-heading {
   margin-left: 10px;
   color: #fff;
   font-size: 13px;
   font-weight: 700;
}

.demo-dot {
   width: 9px;
   height: 9px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.4);
}

.demo-body {
   padding: 18px;
}

.demo-toolbar {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   margin-bottom: 18px;
}

.demo-btn {
   padding: 6px 12px;
   border-radius: 8px;
   background: #fff;
   border: 1px solid var(--line);
   font-size: 13px;
   font-weight: 600;
}

.demo-target {
   margin-left: auto;
   background: var(--blue);
   border-color: var(--blue);
   color: #fff;
   box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--red);
   animation: guide-ring 1.8s ease-in-out infinite;
}

@keyframes guide-ring {
   0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 8px #be1e2d; }
   50% { box-shadow: 0 0 0 4px #fff, 0 0 0 12px rgba(190, 30, 45, 0.35); }
}

.demo-row {
   height: 14px;
   margin-bottom: 12px;
   border-radius: 7px;
   background: var(--line);
}

.demo-row.short {
   width: 60%;
}

.demo-card {
   position: absolute;
   right: 14px;
   bottom: 14px;
   width: 260px;
   max-width: calc(100% - 28px);
   padding: 12px 14px;
   border-radius: 12px;
   background: #fff;
   border: 2px solid var(--blue);
   box-shadow: 0 10px 24px rgba(13, 43, 69, 0.2);
}

.demo-card-head {
   display: flex;
   align-items: center;
   gap: 6px;
   font-size: 13px;
   font-weight: 800;
   color: var(--blue);
}

.demo-count {
   margin-left: auto;
   font-weight: 600;
   color: var(--muted);
}

.demo-card-text {
   margin-top: 6px;
   font-size: 14px;
   line-height: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
   padding: 28px 0;
   background: #272a33;
   color: #b0b8c1;
   font-size: 15px;
}

.site-footer .container {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-between;
   gap: 12px 24px;
}

.site-footer nav {
   display: flex;
   flex-wrap: wrap;
   gap: 6px 20px;
}

.site-footer a {
   color: #c1c8d1; /* 7.5:1 on the footer */
   text-decoration: none;
}

.site-footer a:hover {
   color: #fff;
   text-decoration: underline;
}

/* ---------- Small screens and reduced motion ---------- */
@media (max-width: 767px) {
   .lp-section {
      padding: 48px 0;
   }

   .lp-title {
      font-size: 27px;
   }

   .hero {
      padding: 40px 0;
   }

   .hero-title {
      font-size: 34px;
   }

   .billing-compare .lp-title {
      font-size: 30px;
   }

   .bc-cost {
      padding: 20px;
   }

   .bc-cost-head {
      align-items: flex-start;
   }

   .custom-panel {
      padding: 24px;
   }

   .get-started {
      padding: 64px 0;
   }
}

@media (prefers-reduced-motion: reduce) {
   .demo-target {
      animation: none;
   }

   .lp-btn {
      transition: none;
   }
}

/* ---------- Home page sections (first built for the version 2 draft, hence the v2- names) ---------- */

/* Placeholder for content we don't have yet (proof numbers, testimonial, screenshots, video, pricing). */
.ph {
   padding: 1px 6px;
   border-radius: 4px;
   background: #fff3cd;
   border: 1px dashed #b58105;
   color: #5c4400;
   font-weight: 600;
}

.proof-number .ph {
   font-size: 18px;
}

.v2-soft {
   background: var(--soft);
}

.v2-quote {
   padding: 36px 0;
   background: var(--soft);
   text-align: center;
}

.v2-quote figure {
   max-width: 760px;
   margin: 0 auto;
}

.v2-quote-icon {
   font-size: 28px;
   color: var(--blue);
}

.v2-quote blockquote {
   margin: 10px 0;
   font-size: 20px;
   line-height: 30px;
   font-style: italic;
   color: var(--ink);
}

.v2-quote figcaption {
   font-weight: 700;
   color: var(--muted);
}

.v2-value {
   gap: 40px;
}

.v2-points {
   list-style: none;
   padding: 0;
   margin: 18px 0 0;
}

.v2-points li {
   display: flex;
   gap: 10px;
   padding: 6px 0;
   font-size: 16px;
   line-height: 24px;
}

.v2-points .i {
   margin-top: 4px;
   color: var(--green);
}

/* Screenshot / video slot (replace the placeholder with a lazy-loaded image or video). */
.v2-slot {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 14px;
   min-height: 260px;
   padding: 24px;
   border-radius: 18px;
   border: 2px dashed #b7c4ce;
   background: #fff;
   text-align: center;
   color: var(--muted);
}

.v2-slot > .i {
   font-size: 40px;
   color: var(--blue);
}

.v2-video {
   max-width: 860px;
   margin: 32px auto 0;
   aspect-ratio: 16 / 9;
   min-height: 0;
}

.v2-aside {
   margin: 20px auto 0;
   max-width: 760px;
   text-align: center;
   font-size: 15px;
   color: var(--muted);
}

/* Visit-to-payment steps. */
.v2-flow {
   list-style: none;
   padding: 0;
   margin: 36px 0 0;
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 16px;
   counter-reset: flow;
}

@media (min-width: 768px) {
   .v2-flow {
      grid-template-columns: repeat(3, 1fr);
   }
}

@media (min-width: 1100px) {
   .v2-flow {
      grid-template-columns: repeat(6, 1fr);
   }

   .v2-flow li:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 38px;
      right: -12px;
      width: 9px;
      height: 9px;
      border-top: 3px solid var(--blue);
      border-right: 3px solid var(--blue);
      transform: rotate(45deg);
   }
}

.v2-flow li {
   position: relative;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   padding: 18px 12px;
   border-radius: 14px;
   border: 1px solid var(--line);
   background: #fff;
   text-align: center;
   counter-increment: flow;
}

.v2-flow strong {
   font-size: 16px;
}

.v2-flow strong::before {
   content: counter(flow) '. ';
   color: var(--blue);
}

.v2-flow span:last-child {
   font-size: 14px;
   line-height: 20px;
   color: var(--muted);
}

/* Services grid. */
.v2-services {
   list-style: none;
   padding: 0;
   margin: 28px auto 0;
   max-width: 900px;
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 12px;
}

@media (min-width: 768px) {
   .v2-services {
      grid-template-columns: repeat(3, 1fr);
   }
}

.v2-services li {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 16px 18px;
   border-radius: 12px;
   background: #fff;
   border: 1px solid var(--line);
   font-size: 16px;
   font-weight: 700;
}

.v2-services .i {
   font-size: 20px;
   color: var(--blue);
}

.v2-field {
   margin-top: 28px;
}

.v2-field h3 {
   font-size: 18px;
   font-weight: 700;
   margin: 2px 0 6px;
}

.v2-field p {
   font-size: 15px;
   line-height: 23px;
   color: var(--muted);
   margin: 0;
}

.bc-cost-head .v2-h2 {
   font-size: 26px;
   font-weight: 800;
   margin: 0;
}

.v2-steps {
   list-style: none;
   padding: 0;
   margin: 28px 0 0;
}

/* The version 2 headline is two sentences, so a little smaller. */
.v2-hero-title {
   font-size: 38px;
}

@media (max-width: 767px) {
   .v2-hero-title {
      font-size: 30px;
   }

   .bc-cost-head .v2-h2 {
      font-size: 22px;
   }
}

/* ---------- Home page sections added in version 3 (v3- names) ---------- */

/* Version 3 hero: text only, full width. */
.v3-hero-text {
   max-width: 860px;
}

.v3-hero-text .hero-lead {
   max-width: 720px;
}

/* Version 3: one-line note for current users above the demo form, Spanish behind a toggle. */
.v3-users-note {
   display: flex;
   align-items: flex-start;
   gap: 10px;
   max-width: 760px;
   margin: 4px 0 6px;
   padding: 12px 16px;
   border-radius: 12px;
   background: #fff;
   border: 1px solid var(--line);
   border-left: 5px solid var(--blue);
   font-size: 15px;
   line-height: 23px;
}

.v3-users-note > .i {
   margin-top: 4px;
   color: var(--blue);
}

.v3-users-note a {
   font-weight: 700;
}

.v3-users-es {
   max-width: 760px;
   margin-bottom: 20px;
   font-size: 14.5px;
   color: var(--muted);
}

.v3-users-es summary {
   cursor: pointer;
   font-weight: 600;
   color: var(--blue);
}

.v3-users-es p {
   margin: 8px 0 0;
}

.v3-demo-form {
   margin-top: 8px;
}

/* Proof bar with three numbers (home page). */
@media (min-width: 768px) {
   .proof-grid-3 {
      grid-template-columns: repeat(3, 1fr);
   }
}

@media (max-width: 767px) {
   .proof-grid-3 {
      grid-template-columns: repeat(3, 1fr);
   }

   .proof-grid-3 .proof-number {
      font-size: 24px;
   }

   .proof-grid-3 .proof-label {
      font-size: 13px;
   }
}

/* ---------- Features page: groups by job ---------- */
.fx-jump {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
}

.fx-jump a {
   padding: 7px 14px;
   border-radius: 20px;
   border: 1px solid var(--line);
   background: #fff;
   color: var(--ink);
   font-size: 14.5px;
   font-weight: 600;
   text-decoration: none;
}

.fx-jump a:hover {
   border-color: var(--blue);
   color: var(--blue-dark);
}

.fx-ai-note {
   padding: 14px 0;
   background: var(--ai-tint);
   text-align: center;
}

.fx-ai-note p {
   margin: 0;
   font-size: 15px;
   color: var(--ai);
   font-weight: 600;
}

.fx-group {
   padding: 56px 0;
}

.fx-soft {
   background: var(--soft);
}

.fx-head {
   display: flex;
   gap: 16px;
   align-items: flex-start;
   margin-bottom: 24px;
}

.fx-head .lp-title {
   margin-bottom: 6px;
}

.fx-head .lp-lead {
   margin: 0;
}

.fx-group .lp-card h3 {
   margin-top: 0;
}

.fx-aside {
   margin: 18px 0 0;
   font-size: 15.5px;
   color: var(--ink);
   font-weight: 600;
}

.fx-group .custom-panel {
   margin-top: 32px;
}

/* ---------- Topic pages (one topic each, e.g. /ddd-billing-software/) ---------- */
.crumbs ol {
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
   list-style: none;
   padding: 0;
   margin: 0 0 18px;
   font-size: 14px;
   color: var(--muted);
}

.crumbs li + li::before {
   content: '/';
   margin-right: 6px;
   color: #8a9aa8;
}

.crumbs a {
   font-weight: 600;
   text-decoration: none;
}

.tp-cards {
   margin-top: 36px;
}

.tp-split {
   gap: 40px;
}

/* AI card: the same purple tint and text color as the features page's AI blocks (.lp-ai). */
.tp-ai {
   background: var(--ai-tint);
   border-color: #d3d7f1;
}

.tp-ai h3,
.tp-ai p {
   color: var(--ai);
}

.tp-ai .lp-ai-pill {
   align-self: flex-start;
}

.tp-ai p + p {
   margin-top: 10px;
}

.tp-points {
   max-width: 760px;
   margin: 24px auto 0;
}

/* "Read more" link from a section to its topic page. */
.more-link {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   margin-top: 16px;
   font-weight: 700;
   text-decoration: none;
}

.more-link:hover {
   text-decoration: underline;
}

/* Numbers row on a topic page (e.g. how many DDD documents the compliance check tracks). */
.tp-stats {
   display: grid;
   gap: 16px;
   margin-top: 32px;
}

@media (min-width: 768px) {
   .tp-stats {
      grid-template-columns: repeat(3, 1fr);
   }
}

.tp-stat {
   padding: 22px 20px;
   border: 1px solid var(--line);
   border-radius: 14px;
   background: #fff;
   text-align: center;
}

.tp-stat-number {
   font-family: var(--heading-font);
   font-size: 40px;
   font-weight: 800;
   line-height: 1.1;
   color: var(--blue);
}

.tp-stat-label {
   margin-top: 6px;
   font-size: 15px;
   line-height: 22px;
   color: var(--muted);
}

/* Space between two "read more" links on one line (features page, Every DDD program). */
.fx-more-gap {
   margin-left: 24px;
}
