/*
 * Agendo design tokens
 * Values are taken from the supplied brand reference and app screenshots.
 * Components consume these variables so future brand adjustments stay centralized.
 */
:root {
  --agendo-primary: #6b63e6;
  --agendo-primary-pressed: #5a51d6;
  --agendo-primary-light: #ecebfb;
  --agendo-primary-soft: #f3f2fd;
  --agendo-background: #f5f5f8;
  --agendo-surface: #ffffff;
  --agendo-surface-tertiary: #f0f0f4;
  --agendo-text: #1b1b21;
  --agendo-text-secondary: #4a4a52;
  --agendo-text-muted: #8b8b93;
  --agendo-border: #ececf1;
  --agendo-border-strong: #dcdce3;
  --agendo-success: #2fb673;
  --agendo-warning: #e8992e;
  --agendo-error: #e0574c;
  --agendo-radius-sm: 14px;
  --agendo-radius-md: 22px;
  --agendo-radius-lg: 32px;
  --agendo-radius-xl: 44px;
  --agendo-shadow: 0 18px 55px rgba(27, 27, 33, 0.08);
  --agendo-shadow-soft: 0 10px 30px rgba(27, 27, 33, 0.055);
  --content-max: 1180px;
  --content-gutter: 40px;
  font-family: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--agendo-text);
  background: var(--agendo-background);
  font-synthesis: none;
}

/* Dark values are the exact dark-mode colors supplied in the Agendo brand file. */
html[data-theme="dark"] {
  color-scheme: dark;
  --agendo-primary: #8b83f0;
  --agendo-primary-pressed: #8b83f0;
  --agendo-primary-light: #222229;
  --agendo-primary-soft: #26262f;
  --agendo-background: #0e0e12;
  --agendo-surface: #18181e;
  --agendo-surface-tertiary: #222229;
  --agendo-text: #f5f5f7;
  --agendo-text-secondary: #f5f5f7;
  --agendo-text-muted: #9a9aa2;
  --agendo-border: #26262f;
  --agendo-border-strong: #26262f;
  --agendo-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
  --agendo-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .site-header.scrolled,
html[data-theme="dark"] .nav-wrap {
  background: rgba(38, 38, 48, 0.74);
  border-color: #26262f;
}
html[data-theme="dark"] .check-list li:hover { background: #18181e; }

/* Base and accessibility */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; background: var(--agendo-background); color: var(--agendo-text); overflow-x: hidden; transition: background .25s ease, color .25s ease; }
body.menu-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--agendo-text-secondary); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3 { margin: 0; letter-spacing: -0.045em; }
h1 { font-size: clamp(3.25rem, 7vw, 6.6rem); line-height: 0.94; font-weight: 800; }
h2 { font-size: clamp(2.35rem, 4.8vw, 4.5rem); line-height: 1.02; font-weight: 800; }
h3 { font-size: 1.35rem; line-height: 1.15; font-weight: 750; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: var(--agendo-text); color: #fff; border-radius: 12px; transition: top .2s ease; }
.skip-link:focus { top: 16px; }
.section { width: calc(100% - var(--content-gutter)); max-width: var(--content-max); margin: 0 auto; padding: 116px 0; }
.compact-section { padding-top: 80px; }
.section-label { display: inline-flex; align-items: center; margin-bottom: 22px; color: var(--agendo-primary-pressed); font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.section-label.light { color: rgba(255,255,255,.72); }
.section-intro { max-width: 770px; }
.section-intro p { margin-top: 24px; max-width: 620px; }
.section-intro.centered { margin-inline: auto; text-align: center; }
.section-intro.centered p { margin-inline: auto; }

/* Header and shared actions */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 14px 0; transition: background .25s ease, box-shadow .25s ease, padding .25s ease; }
.site-header.scrolled { padding: 8px 0; background: rgba(255,255,255,.94); box-shadow: 0 1px 0 rgba(27,27,33,.08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-wrap { width: calc(100% - 32px); max-width: 1240px; min-height: 64px; margin: 0 auto; padding: 7px 10px 7px 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(220,220,227,.85); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 10px 34px rgba(27,27,33,.04); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { display: grid; gap: 1px; letter-spacing: 0; line-height: 1; }
.brand-name b { font-size: 1.08rem; letter-spacing: -.035em; }
.brand-name small { color: var(--agendo-text-muted); font-size: .6rem; font-weight: 750; letter-spacing: .015em; }
.brand-mark { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 13px; background: #060914; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; grid-area: 1 / 1; object-fit: contain; }
.agendo-logo--dark-theme { display: none; }
html[data-theme="dark"] .agendo-logo--light-theme { display: none; }
html[data-theme="dark"] .agendo-logo--dark-theme { display: block; }
html[data-theme="dark"] .brand-mark { background: #fff; }
.brand-mark.large { width: 66px; height: 66px; border-radius: 20px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.button) { color: var(--agendo-text-secondary); font-size: .92rem; font-weight: 650; transition: color .2s ease; }
.site-nav > a:not(.button):hover { color: var(--agendo-primary); }
.menu-toggle { display: none; }

.theme-toggle { min-height: 46px; padding: 0 4px 0 10px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 14px; background: transparent; color: var(--agendo-text-secondary); cursor: pointer; }
.theme-toggle-label { font-size: .82rem; font-weight: 700; }
.theme-toggle-track { position: relative; width: 48px; height: 28px; display: block; border-radius: 999px; background: var(--agendo-surface-tertiary); border: 1px solid var(--agendo-border); transition: background .2s ease; }
.theme-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--agendo-surface); color: var(--agendo-primary); box-shadow: 0 2px 6px rgba(27,27,33,.12); transition: transform .22s ease; }
.theme-toggle svg { grid-area: 1 / 1; width: 13px; height: 13px; stroke-width: 2; }
.theme-icon-moon { opacity: 0; }
html[data-theme="dark"] .theme-toggle-thumb { transform: translateX(20px); }
html[data-theme="dark"] .theme-icon-sun { opacity: 0; }
html[data-theme="dark"] .theme-icon-moon { opacity: 1; }

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border-radius: 16px; background: var(--agendo-primary); color: #fff; font-size: 1rem; font-weight: 750; box-shadow: 0 10px 24px rgba(107,99,230,.22); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--agendo-primary-pressed); box-shadow: 0 14px 30px rgba(107,99,230,.28); }
.button:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(107,99,230,.32); outline-offset: 3px; }
.button-small { min-height: 48px; padding: 0 20px; border-radius: 14px; font-size: .92rem; }
.button-disabled { opacity: .58; cursor: default; box-shadow: none; user-select: none; }
.button-disabled:hover { transform: none; background: var(--agendo-primary); box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--agendo-text); font-weight: 700; }

/* Hero */
.hero { min-height: 880px; padding-top: 172px; display: grid; grid-template-columns: 0.93fr 1.07fr; align-items: center; gap: 62px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 span { color: var(--agendo-primary); white-space: nowrap; }
.hero-copy > p { max-width: 585px; margin-top: 30px; font-size: clamp(1.08rem, 1.5vw, 1.28rem); }
.eyebrow { width: max-content; margin-bottom: 26px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--agendo-border); border-radius: 999px; background: var(--agendo-surface); color: var(--agendo-text-secondary); font-size: .86rem; font-weight: 700; }
.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--agendo-success); box-shadow: 0 0 0 5px rgba(47,182,115,.12); }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 28px; }
.trust-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--agendo-text-muted); font-size: .84rem; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--agendo-success); stroke-width: 2.5; }
.device-stack { position: relative; height: 690px; overflow: visible; }
.device { position: absolute; display: block; height: auto; }
.device-primary { z-index: 1; width: 380px; left: 2%; top: 18px; transform: rotate(-4deg); }
.device-secondary { z-index: 2; width: 300px; right: 0; top: 132px; transform: rotate(5deg); }
.device-single { width: min(100%, 430px); justify-self: center; transform: rotate(-2deg); }
.device-single img { display: block; width: 100%; height: auto; }

/* Real Expo build embedded inside the untouched supplied phone hardware. */
.interactive-demo { min-width: 0; display: grid; justify-items: center; gap: 18px; }
.demo-toolbar { width: min(100%, 540px); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--agendo-border); border-radius: 18px; background: var(--agendo-surface); box-shadow: var(--agendo-shadow-soft); }
.demo-toolbar > div:first-child { display: grid; gap: 4px; text-align: left; }
.demo-toolbar strong { font-size: .98rem; letter-spacing: -.02em; }
.demo-live { display: inline-flex; align-items: center; gap: 7px; color: var(--agendo-text-muted); font-size: .7rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.demo-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--agendo-success); box-shadow: 0 0 0 4px rgba(47,182,115,.12); }
.demo-role-switch { padding: 4px; display: flex; gap: 3px; border-radius: 13px; background: var(--agendo-surface-tertiary); }
.demo-role-switch button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--agendo-text-secondary); font-size: .72rem; font-weight: 750; cursor: pointer; }
.demo-role-switch button.active { background: var(--agendo-surface); color: var(--agendo-primary); box-shadow: 0 3px 10px rgba(27,27,33,.08); }
.demo-role-switch button:focus-visible { outline: 3px solid rgba(107,99,230,.25); outline-offset: 2px; }
.demo-phone { position: relative; width: min(100%, 378px); aspect-ratio: 1164 / 2296; isolation: isolate; filter: drop-shadow(0 24px 28px rgba(27,27,33,.14)); }
.demo-screen { position: absolute; z-index: 2; left: 5.33%; top: 2.18%; width: 89.35%; height: 95.65%; overflow: hidden; border-radius: 13.6% / 6.45%; background: var(--agendo-surface); }
.demo-screen iframe { width: 100%; height: 100%; display: block; border: 0; background: var(--agendo-surface); }
.demo-phone-frame { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.demo-dynamic-island { position: absolute; z-index: 3; top: 3.32%; left: 50%; width: 30.4%; height: 3.98%; border-radius: 999px; background: #020204; transform: translateX(-50%); pointer-events: none; }
.demo-note { max-width: 480px; color: var(--agendo-text-muted); font-size: .8rem; line-height: 1.45; text-align: center; }

/* Prevent wider Windows font metrics from forcing grid columns past the viewport. */
.hero > *, .audience-section > *, .price-card-body > *, .faq > * { min-width: 0; }

/* Problem / consolidation flow */
.problem { padding-bottom: 124px; }
.consolidation { max-width: 1030px; margin: 58px auto 0; padding: 32px; display: grid; grid-template-columns: 1fr 86px .62fr; align-items: center; gap: 28px; border: 1px solid var(--agendo-border); border-radius: var(--agendo-radius-lg); background: var(--agendo-surface); box-shadow: var(--agendo-shadow-soft); }
.source-list { display: flex; flex-wrap: wrap; gap: 12px; }
.source-pill { min-height: 54px; padding: 0 17px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--agendo-border); border-radius: 16px; background: var(--agendo-background); color: var(--agendo-text-secondary); font-size: .92rem; font-weight: 700; }
.source-pill svg { width: 20px; height: 20px; color: var(--agendo-primary); }
.flow-arrow { display: flex; align-items: center; gap: 8px; color: var(--agendo-primary); }
.flow-arrow span { width: 48px; border-top: 2px dashed #c0baf0; }
.flow-arrow svg { width: 20px; height: 20px; }
.agendo-destination { display: flex; align-items: center; gap: 16px; }
.agendo-destination strong, .agendo-destination small { display: block; }
.agendo-destination strong { font-size: 1.35rem; }
.agendo-destination small { margin-top: 4px; color: var(--agendo-text-muted); }

/* Professional and client product stories */
.audience-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 110px; }
.audience-reverse { grid-template-columns: 1.05fr .95fr; }
.audience-copy > p { margin-top: 26px; max-width: 530px; }
.check-list { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.check-list li { padding: 17px 18px; display: flex; gap: 16px; border: 1px solid transparent; border-radius: 18px; transition: border-color .2s ease, background .2s ease; }
.check-list li:hover { border-color: var(--agendo-border); background: rgba(255,255,255,.66); }
.check-list li > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--agendo-primary-light); color: var(--agendo-primary-pressed); font-size: .72rem; font-weight: 800; }
.check-list strong, .check-list small { display: block; }
.check-list strong { font-size: 1rem; }
.check-list small { margin-top: 5px; color: var(--agendo-text-secondary); font-size: .92rem; line-height: 1.45; }
.client-gallery .device-primary { width: 370px; left: -1%; top: 20px; transform: rotate(-4deg); }
.client-gallery .device-secondary { width: 315px; right: -3%; top: 110px; transform: rotate(5deg); }
.booking-flow { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.booking-flow span { padding: 11px 13px; border: 1px solid var(--agendo-border); border-radius: 12px; background: var(--agendo-surface); color: var(--agendo-text-secondary); font-size: .79rem; font-weight: 750; }
.booking-flow span.active { border-color: #c0baf0; background: var(--agendo-primary-light); color: var(--agendo-primary-pressed); }
.booking-flow i { color: var(--agendo-text-muted); font-style: normal; }
.plain-list { margin: 30px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; color: var(--agendo-text-secondary); }
.plain-list li { position: relative; padding-left: 28px; line-height: 1.45; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: .46em; width: 9px; height: 9px; border: 3px solid var(--agendo-primary); border-radius: 50%; }

/* Three-step journeys */
.how { padding-block: 130px; }
.role-switch { width: max-content; margin: 48px auto 32px; padding: 5px; display: flex; gap: 4px; border: 1px solid var(--agendo-border); border-radius: 16px; background: var(--agendo-surface-tertiary); }
.role-switch button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: transparent; color: var(--agendo-text-secondary); font-weight: 750; cursor: pointer; }
.role-switch button[aria-selected="true"] { background: var(--agendo-surface); color: var(--agendo-primary); box-shadow: 0 4px 12px rgba(27,27,33,.08); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; min-height: 300px; padding: 34px; border: 1px solid var(--agendo-border); border-radius: var(--agendo-radius-md); background: var(--agendo-surface); box-shadow: var(--agendo-shadow-soft); }
.step-number { position: absolute; top: 22px; right: 22px; color: #c8c8d0; font-size: .82rem; font-weight: 800; }
.line-icon, .feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--agendo-primary-light); color: var(--agendo-primary-pressed); }
.line-icon svg, .feature-icon svg { width: 25px; height: 25px; }
.step-card h3 { margin-top: 54px; }
.step-card p { margin-top: 13px; font-size: .97rem; }

/* Feature cards */
.features { padding-top: 90px; }
.feature-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 255px; padding: 30px; border: 1px solid var(--agendo-border); border-radius: var(--agendo-radius-md); background: var(--agendo-surface); box-shadow: 0 8px 24px rgba(27,27,33,.035); }
.feature-card.featured { grid-row: span 2; min-height: 528px; display: flex; flex-direction: column; }
.feature-card h3 { margin-top: 36px; }
.feature-card p { margin-top: 12px; font-size: .96rem; }
.agenda-preview { margin-top: auto; padding: 16px; display: grid; gap: 7px; border-radius: 18px; background: var(--agendo-background); }
.agenda-preview span { padding: 12px; display: grid; grid-template-columns: 52px 10px 1fr; align-items: center; gap: 8px; border-radius: 12px; background: var(--agendo-surface); color: var(--agendo-text-secondary); font-size: .78rem; }
.agenda-preview b { color: var(--agendo-text-muted); font-size: .72rem; }
.agenda-preview i { width: 8px; height: 26px; border-radius: 8px; }
.agenda-preview i.green { background: #a7dcc0; }.agenda-preview i.purple { background: #c0baf0; }.agenda-preview i.yellow { background: #ecd79e; }

/* Pricing */
.pricing { padding-block: 130px; }
.price-card { max-width: 850px; margin: 54px auto 0; overflow: hidden; border: 1px solid var(--agendo-border); border-radius: var(--agendo-radius-lg); background: var(--agendo-surface); box-shadow: var(--agendo-shadow); }
.price-card-head { padding: 32px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--agendo-border); }
.price-card-head h3 { max-width: 400px; margin-top: 10px; }
.plan-label { color: var(--agendo-primary-pressed); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.billing-switch { padding: 4px; display: flex; border-radius: 13px; background: var(--agendo-surface-tertiary); }
.billing-switch button { min-height: 40px; padding: 0 15px; border: 0; border-radius: 10px; background: transparent; color: var(--agendo-text-secondary); font-size: .82rem; font-weight: 750; cursor: pointer; }
.billing-switch button.active { background: var(--agendo-surface); color: var(--agendo-primary); box-shadow: 0 3px 10px rgba(27,27,33,.08); }
.price-card-body { padding: 34px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 28px 64px; }
.price-wrap .price { display: block; font-size: 3.4rem; font-weight: 800; letter-spacing: -.065em; }
.price-wrap .period { color: var(--agendo-text-secondary); font-size: 1rem; }
.price-wrap small { display: block; margin-top: 12px; color: var(--agendo-text-muted); }
.price-card-body ul { margin: 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.price-card-body li { display: flex; align-items: center; gap: 10px; color: var(--agendo-text-secondary); font-size: .94rem; }
.price-card-body li svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--agendo-success); stroke-width: 2.5; }
/* FAQ */
.faq { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 100px; padding-bottom: 140px; }
.faq-list { border-top: 1px solid var(--agendo-border-strong); }
.faq-side { display: grid; gap: 38px; }
.faq details { border-bottom: 1px solid var(--agendo-border-strong); }
.faq summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--agendo-text); font-size: 1rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--agendo-primary); font-size: 1.7rem; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { padding: 0 38px 26px 0; font-size: .95rem; }
.support-form { padding: 24px; display: grid; gap: 17px; border: 1px solid var(--agendo-border); border-radius: var(--agendo-radius-md); background: var(--agendo-surface); box-shadow: var(--agendo-shadow-soft); }
.support-form-head { display: grid; gap: 8px; }
.support-form-head .section-label { margin-bottom: 0; }
.support-form-head p { font-size: .88rem; }
.support-form label { display: grid; gap: 8px; color: var(--agendo-text-secondary); font-size: .8rem; font-weight: 750; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.support-form input,
.support-form select,
.support-form textarea { width: 100%; border: 1px solid var(--agendo-border-strong); border-radius: 12px; background: var(--agendo-background); color: var(--agendo-text); font: inherit; font-size: .92rem; outline: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.support-form input,
.support-form select { min-height: 46px; padding: 0 13px; }
.support-form textarea { min-height: 120px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus { border-color: var(--agendo-primary); box-shadow: 0 0 0 3px rgba(107,99,230,.14); }
.privacy-check { grid-template-columns: 18px 1fr !important; align-items: start; gap: 10px !important; font-weight: 500 !important; line-height: 1.45; }
.privacy-check input { width: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--agendo-primary); }
.privacy-check a { color: var(--agendo-primary); text-decoration: underline; text-underline-offset: 2px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.support-submit { width: 100%; border: 0; cursor: pointer; }
.form-status { padding: 12px 14px; border-radius: 12px; font-size: .86rem; }
.form-status.success { background: rgba(47,182,115,.12); color: var(--agendo-success); }
.form-status.error { background: rgba(224,87,76,.12); color: var(--agendo-error); }

/* Footer */
.footer { padding: 62px 20px 28px; background: var(--agendo-surface); }
.footer-main { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 60px; }
.footer-brand p { margin-top: 18px; color: var(--agendo-text-muted); font-size: .9rem; }
.footer-links { display: grid; align-content: start; gap: 12px; }
.footer-links strong { margin-bottom: 5px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links a { width: max-content; color: var(--agendo-text-secondary); font-size: .9rem; }
.footer-links a:hover { color: var(--agendo-primary); }
.inline-link { text-decoration: underline; text-decoration-color: rgba(107,99,230,.4); text-underline-offset: 3px; }
.inline-link:hover { color: var(--agendo-primary); }
.footer-bottom { width: 100%; max-width: 1180px; margin: 56px auto 0; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--agendo-border); color: var(--agendo-text-muted); font-size: .76rem; }

/* Legal pages share the product shell without duplicating landing components. */
.legal-nav { display: flex; align-items: center; gap: 22px; }
.legal-nav .text-link { font-size: .9rem; }
.legal-main { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 176px 0 110px; }
.legal-hero { padding-bottom: 48px; border-bottom: 1px solid var(--agendo-border-strong); }
.legal-hero h1 { max-width: 780px; font-size: clamp(3rem, 7vw, 5.5rem); }
.legal-meta { margin-top: 22px; color: var(--agendo-text-muted); font-size: .9rem; }
.legal-content { padding-top: 52px; display: grid; gap: 44px; }
.legal-content section { display: grid; gap: 14px; }
.legal-content h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.legal-content h3 { margin-top: 8px; font-size: 1.05rem; letter-spacing: -.02em; }
.legal-content ul { margin: 0; padding-left: 22px; color: var(--agendo-text-secondary); line-height: 1.7; }
.legal-content a { color: var(--agendo-primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { padding: 22px; border: 1px solid var(--agendo-border); border-radius: var(--agendo-radius-md); background: var(--agendo-surface); }

/* A single restrained entrance keeps all off-screen content immediately renderable. */
.reveal { opacity: 1; transform: none; }
.hero .reveal { animation: rise-in .55s ease both; }
.hero .hero-visual { animation-delay: .08s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive layers: compact desktop, tablet, then mobile */
@media (max-width: 1180px) {
  .site-nav { gap: 20px; }
  .site-nav .button-small { padding-inline: 16px; }
  .hero { grid-template-columns: .9fr 1.1fr; gap: 34px; }
  .device-primary { width: 340px; left: 0; }
  .device-secondary { width: 265px; right: -2%; }
  .audience-section, .audience-reverse { gap: 64px; }
}

@media (max-width: 1040px) {
  :root { --content-max: 720px; --content-gutter: 32px; }
  .section { padding: 84px 0; }
  .menu-toggle { width: 46px; height: 46px; padding: 0; display: grid; place-content: center; gap: 6px; border: 0; border-radius: 14px; background: var(--agendo-primary-light); color: var(--agendo-primary); cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: fixed; top: 88px; left: 16px; right: 16px; max-height: calc(100vh - 104px); max-height: calc(100dvh - 104px); padding: 20px; display: grid; gap: 0; border: 1px solid var(--agendo-border); border-radius: 22px; background: var(--agendo-surface); box-shadow: var(--agendo-shadow); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav > a:not(.button) { padding: 14px 4px; border-bottom: 1px solid var(--agendo-border); font-size: 1rem; }
  .site-nav .theme-toggle { min-height: 54px; padding-inline: 4px; justify-content: space-between; border-bottom: 1px solid var(--agendo-border); border-radius: 0; }
  .site-nav .button { margin-top: 16px; }
  .hero { min-height: auto; padding-top: 146px; grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .eyebrow { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .interactive-demo { width: min(100%, 600px); margin-inline: auto; }
  .device-stack { width: min(100%, 620px); height: 650px; margin-inline: auto; }
  .device-primary { width: 360px; left: 8%; }
  .device-secondary { width: 285px; right: 8%; }
  .consolidation { grid-template-columns: 1fr; }
  .flow-arrow { justify-content: center; transform: rotate(90deg); }
  .agendo-destination { justify-content: center; }
  .audience-section, .audience-reverse { grid-template-columns: 1fr; gap: 58px; }
  .audience-reverse .client-gallery { order: 2; }
  .audience-copy { max-width: 650px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 250px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.featured { grid-row: span 1; min-height: 420px; grid-column: 1 / -1; }
  .faq { grid-template-columns: 1fr; align-items: start; gap: 44px; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --content-gutter: 24px; }
  p { font-size: 1rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  h2 { font-size: clamp(2.18rem, 10.5vw, 3.15rem); }
  .section { padding: 70px 0; }
  .nav-wrap { width: calc(100% - 20px); min-height: 62px; }
  .legal-nav { gap: 10px; }
  .legal-nav .text-link { font-size: .78rem; }
  .legal-nav .theme-toggle-label { display: none; }
  .legal-main { width: calc(100% - 32px); padding: 132px 0 80px; }
  .legal-content { gap: 36px; }
  .hero { padding-top: 130px; gap: 24px; text-align: left; }
  .eyebrow { margin-inline: 0; }
  .hero-copy > p { margin-inline: 0; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .interactive-demo { margin-top: 18px; gap: 14px; }
  .demo-toolbar { padding: 12px; align-items: stretch; flex-direction: column; gap: 10px; }
  .demo-toolbar > div:first-child { text-align: center; }
  .demo-live { justify-content: center; }
  .demo-role-switch { width: 100%; }
  .demo-role-switch button { flex: 1; }
  .demo-phone { width: min(100%, 350px); }
  .demo-note { max-width: 330px; font-size: .75rem; }
  .text-link { justify-content: center; }
  /* Keep the real product imagery visible in the first mobile viewport. */
  .trust-row { display: none; }
  .device-stack { height: 500px; }
  .device-primary { width: 250px; left: -3%; top: 16px; transform: rotate(-4deg); }
  .device-secondary { width: 205px; right: -3%; top: 90px; transform: rotate(5deg); }
  .device-single { width: min(94%, 340px); }
  .client-gallery .device-primary { width: 250px; left: -4%; top: 20px; }
  .client-gallery .device-secondary { width: 210px; right: -4%; top: 96px; }
  .consolidation { margin-top: 40px; padding: 22px; }
  .source-pill { flex: 1 1 calc(50% - 12px); justify-content: center; padding: 0 10px; }
  .booking-flow { gap: 8px; }
  .booking-flow span { padding: 9px 10px; font-size: .7rem; }
  .role-switch { width: 100%; }
  .role-switch button { flex: 1; padding: 0 10px; }
  .step-card { min-height: 235px; padding: 28px; }
  .step-card h3 { margin-top: 42px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.featured { grid-column: auto; min-height: 415px; }
  .price-card-head { flex-direction: column; }
  .billing-switch { width: 100%; }
  .billing-switch button { flex: 1; }
  .price-card-body { grid-template-columns: 1fr; gap: 30px; padding: 28px 22px; }
  .price-wrap .price { font-size: 3.05rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 50px 22px 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 42px 28px; }
  .footer-links:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
