/* Pos-GPT marketing site — multi-color theme (v1 structure, 30 May 2026).
 *
 * Five-colour rotation:
 *   --c1-violet   #7c3aed   primary brand + violet section tint
 *   --c2-cyan     #0e7490   sea-cyan accent
 *   --c3-amber    #b45309   warm amber accent
 *   --c4-rose     #be185d   rose / pink accent
 *   --c5-emerald  #047857   emerald accent
 *
 *   --cta         #c2410c   warm orange-700 for buttons (passes WCAG AA on
 *                           white text — 5.0:1)
 *
 * Each feature card icon picks one of c1..c5 via :nth-child rotation, the
 * promo bar + brand mark + final-CTA strip use multi-stop gradients, and
 * the hero H1 "highlight" span is gradient text.
 *
 * Section backgrounds alternate between cream (--bg) and very pale tints
 * (--bg-violet / --bg-amber) so the page breathes from band to band.
 *
 * All colours chosen against pure-white text contrast ≥ 4.5:1 (AA), or
 * against --bg / --bg-soft for body text ≥ 7:1.
 */

:root {
  /* surfaces */
  --bg: #fafaf7;
  --bg-violet: #f5f3ff;
  --bg-amber: #fffbeb;
  --bg-soft: #f3f1ec;
  --ink: #0f172a;
  --ink-dim: #334155;
  --muted: #64748b;
  --hairline: #e2e8f0;
  --hairline-violet: #e9d5ff;

  /* multi-colour rotation (c1 now matches logo's central purple) */
  --c1-violet: #a855f7;
  --c1-violet-soft: #f3e8ff;
  --c2-cyan: #0e7490;
  --c2-cyan-soft: #cffafe;
  --c3-amber: #b45309;
  --c3-amber-soft: #fef3c7;
  --c4-rose: #be185d;
  --c4-rose-soft: #fce7f3;
  --c5-emerald: #047857;
  --c5-emerald-soft: #d1fae5;

  /* primary CTA — warm deep orange. White text on this = 5.0:1 (AA). */
  --cta: #c2410c;
  --cta-strong: #9a3412;
  --cta-soft: #ffedd5;

  /* danger — used very rarely (refund pill, comparison cross) */
  --danger: #b91c1c;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px -10px rgba(124, 58, 237, 0.18),
    0 8px 16px -8px rgba(15, 23, 42, 0.08);

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --tap: 44px;

  /* The colourful gradient used in the promo bar + step number + cta-strip.
     Matched to the official PosGPT logo (pink → purple → blue), with a
     final orange stop so the warm CTA still reads as belonging to the
     same family. Single token = change-in-one-place. */
  --grad-rainbow: linear-gradient(
    92deg,
    #ec4899 0%,
    #a855f7 35%,
    #6366f1 65%,
    #3b82f6 100%
  );
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.75rem); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.5vw + 0.8rem, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }

a {
  color: var(--c1-violet);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

a:hover, a:focus-visible {
  color: #5b21b6;
  text-decoration-thickness: 2px;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--c1-violet);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.brand, .nav-links a, .nav-cta, .menu-toggle, .mobile-drawer a,
.promo-cta, .btn, .footer-grid a, .col-links a, .footer-brand,
details.faq-item summary {
  text-decoration: none;
}
.footer-grid a:hover, .col-links a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ─── Promo bar (rainbow gradient) ──────────────────────────────── */
.promo-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--grad-rainbow);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
}

.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 56px 10px 16px;
  text-align: center;
  position: relative;
}
@media (min-width: 768px) { .promo-inner { padding: 12px 56px; } }

.promo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.promo-gift { font-size: 1.1rem; line-height: 1; }

.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.5);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.promo-cta {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.promo-dismiss {
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}
.promo-dismiss:hover, .promo-dismiss:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
}
.promo-bar.hidden { display: none; }

/* ─── Header / nav ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.promo-bar + .site-header { top: 0; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

/* Brand mark — used when only the icon is needed (e.g. legacy contexts).
   Square SVG variant. */
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.28));
  flex-shrink: 0;
  vertical-align: middle;
}

/* 2026-05-30 — fully-vector brand lockup. The icon is `logo.svg` (vector
   "p" with gradient + star); the wordmark is HTML text rendered with the
   page's loaded Inter webfont and CSS background-clip:text so the same
   pink → purple → blue gradient flows through the letters. Both pieces
   are vector / font, so the lockup is crisp at any pixel density. No
   raster PNG anywhere. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1;
}

.brand-mark-svg {
  height: 44px;
  width: 44px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.28));
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.045em;
  background: linear-gradient(92deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1;
}

.footer-brand .brand-mark-svg {
  height: 48px;
  width: 48px;
}

.footer-brand .brand-wordmark {
  font-size: 1.85rem;
}

/* Solid white-ish nav so the icon's gradient + drop-shadow pop. */
.site-header { background: rgba(255, 255, 255, 0.96); }

.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--c1-violet); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--cta);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 14px -4px rgba(194, 65, 12, 0.45);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--cta-strong);
  box-shadow: 0 10px 20px -4px rgba(194, 65, 12, 0.55);
}
.nav-cta:active { transform: scale(0.98); }

.menu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
.mobile-drawer.open { display: block; }
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 16px;
}
.mobile-drawer a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

/* ─── Sections + grids ─────────────────────────────────────────── */
/* 2026-05-30 — section padding halved per Vishnu: 64/96 → 32/48. Cuts
   the gap above every H2 (features, how, use cases, comparison, pricing,
   FAQ, about) by 50% top + bottom. */
section { padding: 32px 0; }
@media (min-width: 768px) { section { padding: 48px 0; } }

/* The final CTA section (containing the .cta-strip) hugs the section
   above it — Vishnu wants 75% off the space above "Ready to switch
   your POS?". `:has()` is widely supported (Chrome 105+, Safari 15.4+,
   Firefox 121+); older browsers fall back to the default section padding,
   which is still fine. */
section:has(> .container > .cta-strip) {
  padding-top: 8px;
  padding-bottom: 32px;
}
@media (min-width: 768px) {
  section:has(> .container > .cta-strip) {
    padding-top: 12px;
    padding-bottom: 48px;
  }
}

/* Alternating tints for that "colourful but calm" rhythm. */
#features { background: var(--bg-violet); }
#compare  { background: var(--bg-amber); }
#faq      { background: var(--bg-violet); }

.section-title { text-align: center; margin-bottom: 14px; }
.section-subtitle {
  text-align: center;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 48px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--ink-dim); font-size: 0.97rem; }

/* 5-colour rotation across the 8 feature cards. */
.grid-4 .card:nth-child(5n+1) .card-icon { background: var(--c1-violet-soft);   color: var(--c1-violet); }
.grid-4 .card:nth-child(5n+2) .card-icon { background: var(--c2-cyan-soft);     color: var(--c2-cyan); }
.grid-4 .card:nth-child(5n+3) .card-icon { background: var(--c3-amber-soft);    color: var(--c3-amber); }
.grid-4 .card:nth-child(5n+4) .card-icon { background: var(--c4-rose-soft);     color: var(--c4-rose); }
.grid-4 .card:nth-child(5n+5) .card-icon { background: var(--c5-emerald-soft);  color: var(--c5-emerald); }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(194, 65, 12, 0.45);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--cta-strong);
  box-shadow: 0 10px 22px -4px rgba(194, 65, 12, 0.55);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--bg-violet);
  border-color: var(--hairline-violet);
}

/* Eye-catching gradient — used for "Book a demo" so it's distinct from
   the orange "Start free trial" CTA. Sits one tier of commitment below
   the trial (browse vs. sign up). */
.btn-accent {
  background: linear-gradient(92deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 18px -4px rgba(168, 85, 247, 0.5);
  position: relative;
  overflow: hidden;
}
.btn-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.btn-accent:hover::before,
.btn-accent:focus-visible::before { transform: translateX(100%); }
.btn-accent:hover, .btn-accent:focus-visible {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 24px -4px rgba(168, 85, 247, 0.6);
}

.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }

/* ─── Hero ─────────────────────────────────────────────────────── */
/* 2026-05-30 — top padding halved per Vishnu: there was empty space
   between the bottom of the nav and the eyebrow pill ("60-day free
   trial · 20% off forever this May 2026"). Bottom stays unchanged. */
.hero {
  padding: 28px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

@media (min-width: 768px) { .hero { padding: 48px 0 80px; } }

/* Demo page only — tighten vertical rhythm (the hero sub-line has no bullets
   after it). Scoped via :has()/#schedule so the shared landing page is
   untouched. ~Half of the first pass per Vishnu. */
.hero:has(.demo-hero) { padding-bottom: 16px; }
@media (min-width: 768px) { .hero:has(.demo-hero) { padding-bottom: 26px; } }
/* gap above "Pick a time." — schedule section top padding (32/48 → 16/24) */
#schedule { padding-top: 16px; }
@media (min-width: 768px) { #schedule { padding-top: 24px; } }
/* gap below the "Pick a time." subtitle → calendar (48 → 24) */
#schedule .section-subtitle { margin-bottom: 24px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 56px; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c1-violet);
  background: var(--c1-violet-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid var(--hairline-violet);
}

.hero h1 { margin-bottom: 18px; }
.hero h1 .highlight {
  /* Matches the PosGPT brand gradient (pink → purple → blue). */
  background: linear-gradient(120deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-dim);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--ink-dim);
  align-items: center;
}
.hero-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-item svg { width: 16px; height: 16px; color: var(--c5-emerald); }

.hero-visual {
  position: relative;
  /* Matches the 1440 × 900 (16:10) screenshot capture so the full app
     UI fits with no cropping. */
  aspect-ratio: 1440 / 900;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Sliding screenshot carousel — single position; auto-slides left every
   4 s. The track translateX(-N * 100%) drops the next slide into view. */
.hero-slider {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  position: relative;
  margin: 0;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  /* `contain` instead of `cover` so the FULL screenshot is shown — no
     cropping. Letterbox (if any) blends with the slide's white bg. */
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

.hero-slide-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot:hover { background: rgba(255, 255, 255, 0.9); }

.hero-dot[aria-current='true'] {
  background: linear-gradient(90deg, #ec4899, #3b82f6);
  width: 32px;
}

.hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Legacy CSS mock POS — no longer used on the homepage (replaced by the
   carousel above), kept here for back-compat in case any future page
   reuses the class. */
.mock-pos {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 100px 1fr 130px;
  gap: 8px;
  padding: 14px;
  background: var(--bg);
}
.mock-col {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.mock-pill {
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 500;
}
.mock-pill.active {
  background: var(--c1-violet);
  color: #fff;
  border-color: var(--c1-violet);
}
.mock-pill:nth-child(2) { color: var(--c2-cyan);    border-color: var(--c2-cyan-soft); background: var(--c2-cyan-soft); }
.mock-pill:nth-child(3) { color: var(--c3-amber);   border-color: var(--c3-amber-soft); background: var(--c3-amber-soft); }
.mock-pill:nth-child(4) { color: var(--c4-rose);    border-color: var(--c4-rose-soft); background: var(--c4-rose-soft); }

.mock-tile {
  font-size: 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
}
.mock-tile strong { font-weight: 600; }
.mock-tile span { color: var(--muted); font-size: 10px; }

.mock-line {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--hairline);
}
.mock-total {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--c1-violet);
}

/* ─── How it works ─────────────────────────────────────────────── */
.steps { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--grad-rainbow);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
}

.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-dim); font-size: 0.97rem; }

/* ─── Comparison ──────────────────────────────────────────────── */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.compare th { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; background: var(--bg); }
.compare th.us { color: var(--c1-violet); }
.compare tr:last-child td { border-bottom: 0; }
.compare td.center { text-align: center; }
.compare .tick { color: var(--c5-emerald); font-weight: 700; font-size: 1.1rem; }
.compare .cross { color: var(--danger); font-weight: 600; }
.compare .small { font-size: 0.85rem; color: var(--muted); }

/* ─── Pricing card (gradient top stripe) ──────────────────────── */
.price-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 40px;
  background: #fff;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 5px;
  background: var(--grad-rainbow);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.price-card .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c1-violet);
}

.price-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cta-strong);
  background: var(--cta-soft);
  border: 1px solid #fed7aa;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 16px 0 4px;
}

.price-card .amount {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  margin: 14px 0 4px;
  line-height: 1;
}

.price-was {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 500;
  margin-right: 10px;
  font-family: var(--font-serif);
}

.price-card .per {
  color: var(--ink-dim);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.price-code-box {
  margin: -8px 0 26px;
  padding: 16px 18px;
  border: 1px dashed var(--cta);
  border-radius: var(--radius-md);
  background: var(--cta-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.price-code-box strong {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--cta-strong);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.price-card li {
  display: flex;
  gap: 10px;
  font-size: 0.97rem;
  line-height: 1.4;
}
.price-card li svg { flex-shrink: 0; margin-top: 3px; color: var(--c5-emerald); }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

details.faq-item {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 0;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
details.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-violet);
}

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c1-violet);
}
details.faq-item[open] summary::after { content: '−'; }

details.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* ─── Final CTA strip (gradient) ──────────────────────────────── */
.cta-strip {
  background: var(--grad-rainbow);
  color: #fff;
  border-radius: var(--radius-xl);
  /* 2026-05-30 — vertical padding halved + h2/p margin tightened so the
     "Start free trial" button has 50% less space around it. */
  padding: 32px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
}
.cta-strip > * { position: relative; }

.cta-strip h2 { color: #fff; margin-bottom: 7px; }
.cta-strip p {
  max-width: 560px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
}

.cta-strip .btn-primary {
  background: #fff;
  color: var(--c1-violet);
  border: 0;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.15);
}
.cta-strip .btn-primary:hover { background: var(--bg-violet); color: #5b21b6; }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.78);
  /* 2026-05-30 — padding halved per Vishnu (was 56 / 36 / 64). */
  padding: 28px 0 18px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  font-size: 0.95rem;
}
.footer-grid a:hover { color: #fff; }
.footer-grid .col-links { display: flex; flex-direction: column; gap: 0; }

.footer-bio {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 10px;
}
.footer-brand { color: #fff; }
/* Footer brand-mark inherits the same SVG; no extra styling needed. */

.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ─── /book-demo page ─────────────────────────────────────────── */
.demo-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.demo-hero .hero-eyebrow { margin: 0 auto 22px; }

.demo-hero h1 { margin-bottom: 22px; }

.demo-hero .hero-sub {
  margin: 0 auto 16px;
  max-width: 640px;
}

.demo-bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  text-align: left;
  max-width: 600px;
}

.demo-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--ink-dim);
  line-height: 1.5;
}

.demo-bullets li svg {
  width: 20px;
  height: 20px;
  color: var(--c5-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.demo-bullets li strong { color: var(--ink); }

/* Cal.com embed mount + fallback */
.demo-embed-wrap {
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 520px;
}

.demo-embed {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-fallback {
  padding: 40px 32px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.demo-fallback h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.demo-fallback p {
  color: var(--ink-dim);
  margin-bottom: 24px;
}

.demo-fallback code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.88em;
}

.demo-fallback-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.demo-fallback-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 0 !important;
}

/* When Cal.com mounts its iframe inside #cal-embed, give it room. */
.demo-embed iframe {
  width: 100%;
  min-height: 660px;
  border: 0;
  display: block;
}

/* Self-contained booking calendar (no Cal.com / no backend).
   The visitor picks a date + time + types name/email, the form
   handoffs via mailto: with a fully-formed message body so the
   booking lands at support@posgpt.uk immediately. */
.cal-widget {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

@media (min-width: 768px) {
  .cal-widget { padding: 32px; }
}

.cal-widget-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}

.cal-widget-head h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0 0 4px;
}
.cal-widget-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

.cal-widget-tz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-dim);
  background: var(--bg-violet);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline-violet);
}
.cal-widget-tz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c5-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

.cal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cal-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; }
}

.cal-dates,
.cal-times {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 220px;
}

.cal-dates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-content: start;
}

.cal-date {
  appearance: none;
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  line-height: 1.1;
  transition: border-color 0.15s ease, background 0.15s ease,
    color 0.15s ease, transform 0.05s ease;
}
.cal-date small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cal-date:hover {
  border-color: var(--c1-violet);
  background: var(--bg-violet);
}
.cal-date[aria-pressed='true'] {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 70%, #3b82f6 130%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 14px -4px rgba(168, 85, 247, 0.45);
}
.cal-date[aria-pressed='true'] small { color: rgba(255, 255, 255, 0.85); }
.cal-date:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: start;
}
.cal-times-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  margin: 0;
  padding: 30px 12px;
}

.cal-time {
  appearance: none;
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.cal-time:hover {
  border-color: var(--c1-violet);
  background: var(--bg-violet);
}
.cal-time[aria-pressed='true'] {
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 70%, #3b82f6 130%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 14px -4px rgba(168, 85, 247, 0.45);
}

.cal-form {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cal-form { grid-template-columns: 1fr 1fr; }
  .cal-field-wide,
  .cal-summary,
  .cal-submit,
  .cal-altrow { grid-column: 1 / -1; }
}

.cal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.cal-field span {
  font-weight: 600;
  color: var(--ink);
}
.cal-field input,
.cal-field textarea {
  font: inherit;
  color: var(--ink);
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.cal-field input:focus,
.cal-field textarea:focus {
  border-color: var(--c1-violet);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}
.cal-field textarea { resize: vertical; min-height: 64px; }

.cal-summary {
  background: var(--bg-soft);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.cal-summary strong { color: var(--ink); }

.cal-submit { width: 100%; }
.cal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.cal-altrow {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ─── Legal pages ─────────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; font-size: 1rem; line-height: 1.7; }
.legal h1 { font-size: clamp(2rem, 3vw + 1rem, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; font-size: 0.9rem; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink); }
.legal ul, .legal ol { padding-left: 24px; margin: 12px 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; }

/* ─── Skip link + reduced motion ──────────────────────────────── */
.skip-link {
  position: absolute;
  left: -1000px;
  top: 0;
  background: var(--c1-violet);
  color: #fff;
  padding: 12px 16px;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
