/* Akaden landing page. Values follow the design mockup "Landing — akaden.ai (interactive)". */

:root {
  /* Colours */
  --color-ink: #1A1E2F;
  --color-text: #2D3A4C;
  --color-text-muted: #414752;
  --color-text-soft: #4B5565;
  --color-accent: #432DD7;
  --color-accent-dark: #1F2752;
  --color-accent-soft: #F1EFFD;
  --color-accent-ink: #3730A3;
  --color-accent-border: #8B7BEA;
  --color-day-open: #EEEAFE;
  --color-day-open-hover: #E0DAFD;
  --color-day-closed: #64748B;
  --color-disabled: #94A3B8;
  --color-hero-text: #EEF0FF;
  --color-hero-note: #E0DBFF;
  --color-periwinkle: #A3B3FF;
  --color-sand: #F7F6F0;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  --color-input-border: #CBD5E1;
  --color-table-total: #EEF2FF;
  --color-highlight: #FEF9C3;
  --color-highlight-strong: #FDE047;
  --color-demo-frame: #FFF085;
  --color-success-bg: #E8F7EE;
  --color-success: #127A3E;
  --color-warning-bg: #FFF7E0;
  --color-warning: #7A4B00;
  --color-warning-border: #F2C94C;
  --color-error: #B42318;
  --color-footer-bg: #1E2133;
  --color-footer-text: #CBD5E1;
  --color-footer-muted: #94A3B8;

  /* Type */
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --font-quote: Georgia, serif;

  /* Layout */
  --container-max: 1200px;
  --gutter: 24px;
  --section-pad: 112px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-panel: 16px;
  --radius-2xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-btn: 0 4px 16px -4px rgba(29, 49, 149, 0.24);
  --shadow-btn-white: 0 8px 24px -8px rgba(15, 23, 42, 0.4);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-panel: 0 24px 56px rgba(15, 23, 42, 0.22);
  --shadow-path: 0 12px 32px -12px rgba(29, 49, 149, 0.45);

  /* The header floats once the page scrolls (see "Header"). */
  --header-float-max-width: 1240px;
  --header-float-width: 94%;
  --header-float-top: 8px;
  --header-float-radius: 16px;
  --header-float-bg: rgba(255, 255, 255, 0.75);
  --header-float-blur: blur(10px);
  --header-float-shadow: 0 4px 20px -10px rgba(0, 0, 0, 0.2);
  --header-float-range: 50px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-sans);
}

img { max-width: 100%; }

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }

[hidden] { display: none !important; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section { padding: var(--section-pad) var(--gutter); scroll-margin-top: 72px; }
.section-white { background: var(--color-white); }
.section-sand { background: var(--color-sand); }
.section-periwinkle { background: var(--color-periwinkle); }

.h2,
.h2-lg,
.h2-xl {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.12; }
.h2-lg { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; }
.h2-xl { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.1; }

.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--color-text); }
.lead-lg { margin: 0; font-size: 21px; line-height: 1.55; color: var(--color-text); }
.accent { color: var(--color-accent); }

.icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-muted { color: var(--color-text-muted); }
.icon-accent { color: var(--color-accent); }
.icon-dashed { stroke-dasharray: 3 2.4; }
.icon-bold { width: 24px; height: 24px; stroke-width: 2.4; }
.icon-sm { width: 18px; height: 18px; stroke-width: 2; margin-top: 2px; }
.done-icon .icon { width: 24px; height: 24px; stroke-width: 2; }
.done-icon .icon-bold { stroke-width: 2.4; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  font: 600 15px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn-primary { background: var(--color-accent); color: var(--color-white); padding: 0 18px; }
.btn-primary:hover { background: var(--color-accent-dark); color: var(--color-white); }
.btn-shadow { box-shadow: var(--shadow-btn); }

.btn-ghost { background: var(--color-white); color: var(--color-accent); border: 1px solid var(--color-accent); }
.btn-ghost:hover { background: var(--color-accent-soft); color: var(--color-accent); }

.btn-md { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn-lg { min-height: 56px; padding: 0 28px; border-radius: var(--radius-md); font-size: 18px; }

.btn-white { background: var(--color-white); color: var(--color-ink); box-shadow: var(--shadow-btn-white); }
.btn-white:hover { background: var(--color-accent-soft); color: var(--color-ink); }

.btn-outline-white { background: transparent; color: var(--color-white); border: 1.5px solid var(--color-white); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); color: var(--color-white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  margin-inline: auto;
  background: var(--color-periwinkle);
  transition: all 0.4s ease;
}

/* Once the page scrolls, the full-width band becomes a floating, rounded, blurred panel.
   Browsers with scroll-driven animations do it in CSS alone, tied to the scroll position;
   the others get the same end state from `is-scrolled`, set by js/landing.js (StickyHeader). */
@keyframes header-float {
  to {
    max-width: var(--header-float-max-width);
    width: var(--header-float-width);
    top: var(--header-float-top);
    border-radius: var(--header-float-radius);
    background: var(--header-float-bg);
    backdrop-filter: var(--header-float-blur);
    -webkit-backdrop-filter: var(--header-float-blur);
    box-shadow: var(--header-float-shadow);
  }
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .site-header {
    animation: header-float linear both;
    animation-timeline: scroll();
    animation-range: 0px var(--header-float-range);
  }
}

.site-header.is-scrolled {
  max-width: var(--header-float-max-width);
  width: var(--header-float-width);
  top: var(--header-float-top);
  border-radius: var(--header-float-radius);
  background: var(--header-float-bg);
  backdrop-filter: var(--header-float-blur);
  -webkit-backdrop-filter: var(--header-float-blur);
  box-shadow: var(--header-float-shadow);
}

.nav {
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-logo { display: flex; }
.nav-logo img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  flex-grow: 1;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
}
.nav-links a { color: var(--color-ink); text-decoration: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-signin { color: var(--color-ink); font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 8px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0 var(--gutter);
}
.hero-inner {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0;
}
.hero-copy {
  position: relative;
  z-index: 1;
  /* Narrower than the mockup's 560px on mid-size screens, so the hero image never covers the text. */
  max-width: min(560px, 44vw);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-lead { margin: 0; font-size: 21px; line-height: 1.55; color: var(--color-hero-text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 0; font-size: 15px; color: var(--color-hero-note); }
.hero-note a { color: var(--color-white); font-weight: 600; }
.hero-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(52%, 974px);
  height: auto;
  pointer-events: none;
}

/* ---------- Overview ---------- */

.overview { display: flex; flex-direction: column; gap: 112px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split-reverse { flex-wrap: wrap-reverse; }
.split-text,
.split-media { flex: 1 1 420px; min-width: 0; }
.split-text { display: flex; flex-direction: column; gap: 24px; }
.split-media img { width: 100%; height: auto; display: block; }

.icon-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 19px;
  color: var(--color-text);
}
.icon-list li { display: flex; gap: 16px; align-items: center; }

/* ---------- Proof ---------- */

.proof { display: flex; flex-direction: column; gap: 56px; align-items: center; }
.proof-intro { max-width: 860px; text-align: center; display: flex; flex-direction: column; gap: 20px; }
.demo-wrapper {
  width: 100%;
  background: var(--color-demo-frame);
  border-radius: var(--radius-2xl);
  padding: 14px;
}
.demo-frame {
  display: block;
  width: 100%;
  height: 74vh;
  max-height: calc(100vh - 12rem);
  min-height: 28rem;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

/* ---------- Specification ---------- */

.specification { display: flex; flex-direction: column; gap: 56px; }
.spec-intro { display: flex; flex-direction: column; gap: 40px; }
.spec-intro .lead-lg { max-width: 1100px; }
.spec-headline { display: flex; flex-direction: column; gap: 4px; }
.spec-headline .h2 { line-height: 1.15; }
.spec-number { font-size: clamp(64px, 8vw, 104px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }

.table-scroll { overflow-x: auto; }
.results {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
}
.results thead tr {
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.results thead th { padding: 20px 24px; font-weight: 600; text-align: left; }
.results thead .col-num { text-align: center; padding: 20px 16px; }
.results .col-step:first-child { width: 24%; }
.results .col-estimated { width: 12%; }
.results .col-actual { width: 14%; }
.results tbody tr { border-bottom: 1px solid var(--color-border); }
.results tbody th { text-align: left; padding: 24px; font-weight: 600; font-size: 17px; }
.results .num { text-align: center; padding: 24px 16px; font-size: 18px; }
.results .num-actual { background: var(--color-highlight); font-size: 20px; font-weight: 600; }
.results .how { padding: 24px; color: var(--color-text-muted); }
.results .how strong { color: var(--color-ink); }
.results tfoot tr { background: var(--color-table-total); }
.results tfoot th { text-align: left; padding: 28px 24px; font-weight: 600; font-size: 18px; }
.results tfoot .num { padding: 28px 16px; font-size: 20px; font-weight: 600; }
.results tfoot .num-total { background: var(--color-highlight-strong); font-size: 22px; font-weight: 700; }
.results .total-note { padding: 28px 24px; font-size: 18px; font-weight: 600; }
.footnote { margin: -32px 0 0; font-size: 15px; color: var(--color-text-muted); }
.demo-caption { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: var(--color-text-muted); }

/* ---------- Outcomes ---------- */

.outcomes { display: flex; flex-direction: column; gap: 56px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.eco-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-card);
}
.eco-text { display: flex; flex-direction: column; gap: 16px; }
.eco-text h3 { margin: 0; font-size: 24px; font-weight: 600; }
.eco-text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--color-text-muted); }
.eco-logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.eco-logos img { height: 28px; width: auto; }

/* ---------- Get started ---------- */

.get-started { display: flex; flex-direction: column; gap: 40px; }
.gs-header { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.gs-intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; flex: 1 1 480px; }
.gs-intro .h2-lg { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.12; }
.gs-intro .lead { line-height: 1.55; color: var(--color-ink); }

.quote {
  flex: 0 1 420px;
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.quote-mark { font-size: 40px; line-height: 0.8; color: var(--color-accent); font-family: var(--font-quote); }
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.55; }
.quote cite { font-style: normal; color: var(--color-text); }

.gs-body { display: flex; flex-direction: column; gap: 24px; }

/* The three routes in a row, the form panel full width under them (design: Get started). */
.path-chooser { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.path-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  margin: 1px;
  padding: 20px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
}
.path-card:hover { border-color: var(--color-accent-border); }
.path-card[aria-checked="true"] {
  margin: 0;
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-path);
}
.path-card:focus-visible { outline: 2px solid var(--color-accent-dark); outline-offset: 2px; }
.path-dot {
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  border: 2px solid #6B7280;
  background: var(--color-white);
}
.path-card[aria-checked="true"] .path-dot { border: 6px solid var(--color-accent); }
.path-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.path-title-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.path-title { font-size: 18px; font-weight: 600; color: var(--color-ink); }
.path-body { font-size: 15px; line-height: 1.5; color: var(--color-text); }
.pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent-ink);
  background: var(--color-accent-soft);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}
.gs-signin { margin: -8px 0 0; font-size: 14px; line-height: 1.5; }
.gs-signin a { font-weight: 600; color: var(--color-ink); }

.form-card {
  min-width: 0;
  background: var(--color-white);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  /* Room for the floating header (about 100px high on a wide screen) when the page scrolls to the form. */
  scroll-margin-top: 112px;
}

.panel { display: flex; flex-direction: column; gap: 20px; }
/* Trial and institution keep their one-column form; the demo steps fill the card. */
.form-card > [data-panel="trial"],
.form-card > [data-panel="institution"] { max-width: 760px; box-sizing: border-box; padding: clamp(24px, 3vw, 40px); }
.panel-head { display: flex; flex-direction: column; gap: 6px; }
.panel-head h3 { margin: 0; font-size: 24px; font-weight: 600; }
.panel-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-text); }
.panel-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.panel-foot .hint, .panel-foot .consent-note { flex: 1 1 240px; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field-row-top { align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.optional { font-weight: 400; color: var(--color-text-soft); }
.hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--color-text-soft); }

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-input-border);
  border-radius: var(--radius-sm);
  font: 400 15px/1.4 var(--font-sans);
  color: var(--color-ink);
  background: var(--color-white);
}
.input:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.input[aria-invalid="true"] { border-color: var(--color-error); }

.check-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-sand);
  cursor: pointer;
}
.check-card input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color-accent); flex-shrink: 0; }
.check-text { display: flex; flex-direction: column; gap: 2px; }
.check-title { font-size: 15px; font-weight: 600; }
.check-body { font-size: 14px; line-height: 1.5; color: var(--color-text); }

.form-error { margin: 0; font-size: 14px; line-height: 1.5; color: var(--color-error); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--color-sand); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.fact-label { font-size: 13px; color: var(--color-text-soft); }
.fact-value { font-size: 16px; font-weight: 600; }

.domain-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-sand);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.domain-box.is-free-mail { background: var(--color-warning-bg); color: var(--color-warning); border-color: var(--color-warning-border); }
.domain-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.domain-note { font-size: 13px; line-height: 1.5; }

.next-steps {
  margin: 0;
  padding: 16px 20px 16px 36px;
  background: var(--color-sand);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.done-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-success-bg);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.outline-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.box-title { margin: 0; font-size: 15px; font-weight: 600; }
.steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
}
.next-box {
  background: var(--color-sand);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.next-box p { margin: 0; font-size: 15px; line-height: 1.5; flex: 1 1 260px; }

.timeline { display: flex; flex-wrap: wrap; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.timeline-step { flex: 1 1 160px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.timeline-step + .timeline-step { border-left: 1px solid var(--color-border); }
.timeline-now { background: var(--color-accent-soft); }
.timeline-label { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-soft); }
.timeline-now .timeline-label { color: var(--color-accent-ink); }
.timeline-title { font-size: 15px; font-weight: 600; }


/* ---------- Demo booking (Get started → Book a demo) ---------- */

.booking-split { flex-direction: row; flex-wrap: wrap; gap: 0; }
.booking-aside {
  flex: 1 1 260px;
  min-width: 0;
  box-sizing: border-box;
  padding: 32px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.booking-main { flex: 1.8 1 480px; min-width: 0; box-sizing: border-box; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.booking-calendar {
  flex: 1.5 1 360px;
  min-width: 0;
  box-sizing: border-box;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.booking-slots {
  flex: 1 1 250px;
  min-width: 0;
  box-sizing: border-box;
  padding: 32px;
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.booking-narrow { max-width: 640px; margin: 0 auto; box-sizing: border-box; padding: 48px 32px; gap: 22px; }

.booking-logo { height: 26px; width: auto; align-self: flex-start; }
.booking-title { display: flex; flex-direction: column; gap: 4px; }
.booking-title h3 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; }
.booking-kicker { font-size: 15px; font-weight: 500; color: var(--color-text-soft); }
.booking-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; font-weight: 500; color: var(--color-text); }
.booking-facts li { display: flex; gap: 10px; align-items: center; }
.booking-facts .icon { color: var(--color-text-soft); }
.booking-intro { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-text); }
.booking-steps { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-soft); }
.booking-narrow .booking-steps { margin: 0; }
.booking-steps [aria-current="step"] { color: var(--color-accent); font-weight: 600; }
.booking-heading { display: flex; flex-direction: column; gap: 4px; }
.booking-heading h4, .booking-calendar h4 { margin: 0; font-size: 20px; font-weight: 600; }
.booking-heading p { margin: 0; font-size: 14px; color: var(--color-text-soft); }
.booking-notice { margin: -8px 0 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-warning-bg); color: var(--color-warning); font-size: 14px; line-height: 1.5; }
.booking-split .field-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.consent-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--color-text-soft); }

.btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-round { border-radius: var(--radius-pill); }
.btn-accent-outline { border: 1px solid var(--color-accent); color: var(--color-accent); background: var(--color-white); }
.btn-accent-outline:hover { background: var(--color-accent-soft); }
.link-button {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--color-accent);
  font: 600 14px var(--font-sans);
  cursor: pointer;
}
.link-button-inline { min-height: 0; padding: 0; font-size: inherit; text-decoration: underline; }
.link-button:disabled { color: var(--color-text-soft); cursor: default; text-decoration: none; }

.person-chip { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-sand); }
.person-initials {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-text { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.person-name { font-size: 14px; font-weight: 600; }
.person-email { font-size: 13px; color: var(--color-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.month-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.month-label { min-width: 160px; text-align: center; font-size: 16px; font-weight: 500; }
.round-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-day-open);
  color: var(--color-accent);
  cursor: pointer;
}
.round-button:disabled { background: transparent; color: var(--color-disabled); cursor: default; }
.weekdays, .day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; text-align: center; }
.weekdays { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--color-text-soft); }
.day-grid { margin-top: -8px; }
.day {
  position: relative;
  width: 100%;
  max-width: 46px;
  height: 46px;
  margin: 0 auto;
  border: 0;
  border-radius: var(--radius-pill);
  font: 400 15px var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-day-closed);
  transition: background 0.15s;
}
.day-blank { visibility: hidden; }
.day-open { background: var(--color-day-open); color: var(--color-accent-ink); font-weight: 700; cursor: pointer; }
.day-open:hover { background: var(--color-day-open-hover); }
.day[aria-pressed="true"] { background: var(--color-accent); color: var(--color-white); font-weight: 700; }
.day-today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}
.day[aria-pressed="true"].day-today::after { background: var(--color-white); }

.tz-field label { font-weight: 600; }
.tz-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tz-select-wrap { position: relative; flex: 1 1 220px; min-width: 0; }
.tz-select-wrap .icon { position: absolute; left: 12px; top: 13px; pointer-events: none; color: var(--color-text-soft); }
.tz-select { padding-left: 38px; appearance: auto; }
.clock-toggle { display: inline-flex; border: 1px solid var(--color-input-border); border-radius: var(--radius-sm); overflow: hidden; }
.clock-toggle button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  font: 600 13px var(--font-sans);
  cursor: pointer;
  background: var(--color-white);
  color: var(--color-text);
}
.clock-toggle button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-white); }

.slots-heading { margin: 0; font-size: 16px; font-weight: 600; }
.slots-count { margin: 4px 0 12px; font-size: 13px; color: var(--color-text-soft); }
.slot-list { display: flex; flex-direction: column; gap: 10px; max-height: 452px; overflow-y: auto; padding: 2px; }
.slot {
  min-height: 52px;
  border: 1px solid var(--color-periwinkle);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-accent-ink);
  font: 600 15px var(--font-sans);
  cursor: pointer;
}
.slot:hover { background: var(--color-accent-soft); }
.slot-pending { display: flex; gap: 8px; }
.slot-chosen {
  flex: 1 1 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
}
.slot-next { flex: 1 1 0; min-height: 52px; border-radius: var(--radius-sm); }
.slots-empty {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 15px;
  line-height: 1.5;
  padding: 24px 0;
}

.panel-head-lg h3 { font-size: 28px; line-height: 1.2; }
.panel-head-lg p { font-size: 16px; }
.hold-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.5;
}
.hold-box .icon { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.label-strong { font-weight: 600; }
.code-input { max-width: 260px; min-height: 60px; font: 600 28px var(--font-mono); letter-spacing: 0.4em; text-align: center; }
.code-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hint-inline { font-size: 14px; color: var(--color-text-soft); }

.booked-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.booked-head h3 { margin: 0; font-size: 28px; font-weight: 600; }
.booked-head p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--color-text); }
.done-icon-lg { width: 56px; height: 56px; }
.done-icon.is-cancelled { background: var(--color-warning-bg); color: var(--color-warning); }
.booked-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}
.booked-name { font-size: 18px; font-weight: 600; color: var(--color-ink); }
.booked-line { display: flex; gap: 10px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.booked-line a { font-weight: 600; }
.booked-line .icon { flex-shrink: 0; color: var(--color-text-soft); }
.booked-line .icon-accent, .trial-box .icon-accent { color: var(--color-accent); }
.booked-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 12px; border-top: 1px solid var(--color-border); }
.booked-links a { font-size: 14px; font-weight: 600; }
.booked-spacer { flex-grow: 1; }
.booked-links { display: inline-flex; gap: 10px; white-space: nowrap; }
.cancel-box { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.cancel-box label { font-size: 14px; }
.cancel-actions { display: flex; gap: 12px; align-items: center; }
.trial-box {
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.trial-box .icon { flex-shrink: 0; margin-top: 2px; }
.trial-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.trial-text p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--color-text); }
.trial-text .box-title { color: var(--color-ink); }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-wrap: wrap; gap: 48px; }
.faq-title { flex: 1 1 300px; }
.faq-list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: var(--color-sand); border-radius: var(--radius-md); padding: 20px 24px; }
.faq-list summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.faq-list p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--color-text); }

/* ---------- Footer ---------- */

.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: 56px var(--gutter) 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; flex: 1 1 280px; }
.footer-brand img { height: 32px; width: auto; align-self: flex-start; }
.footer-brand p { margin: 0; font-size: 15px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.footer-links a { color: var(--color-white); text-decoration: none; }
.footer-links a:hover { color: var(--color-hero-note); }
.footer-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-footer-muted);
}

/* ---------- Responsive ---------- */

/* Very small phones: keep the trial button; "Sign in" stays in Get started and the footer. */
@media (max-width: 400px) {
  .nav-signin { display: none; }
}

/* Wide screens: the content column stays 1200px, so pin the hero image next to the text
   (50% - 20px = the column's left edge + the 560px text + a 20px gap) instead of the window edge. */
@media (min-width: 1700px) {
  .hero-visual { left: calc(50% - 20px); right: auto; width: 974px; }
}

@media (max-width: 960px) {
  .hero-visual { position: static; width: 100%; margin-top: 24px; }
  .hero-copy { max-width: 560px; }
  .hero-inner { min-height: 0; padding-bottom: 0; }
}

@media (max-width: 860px) {
  .hide-sm { display: none !important; }
}

@media (max-width: 600px) {
  :root { --section-pad: 72px; --gutter: 16px; }
  /* One header row on phones: the hero and the Get started section already offer "Book a demo". */
  .nav { flex-wrap: nowrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .nav-logo img { height: 24px; }
  .nav-actions { flex-wrap: nowrap; gap: 4px; }
  .nav-demo { display: none; }
  .nav-actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .section { scroll-margin-top: 60px; }
  .form-card { scroll-margin-top: 76px; }
  .overview { gap: 72px; }
  .demo-wrapper { padding: 8px; }
  .demo-frame { height: 38rem; max-height: none; }
  .booking-aside { border-right: 0; }
  .booking-slots { border-left: 0; }
  .timeline-step + .timeline-step { border-left: 0; border-top: 1px solid var(--color-border); }
}
