/* ═════════════════════════════════════════════════════════════════════
   INSYDE HRMS V6 — EDITORIAL LIGHT DESIGN SYSTEM
   Featuring Crimson Pro typography, official Mint/Cyan branding & live app UI
═════════════════════════════════════════════════════════════════════ */

:root {
  --bg:           #fcfcfd;
  --bg-2:         #f8fafc;
  --bg-3:         #f1f5f9;
  --bg-card:      #ffffff;
  --border:       rgba(0, 0, 0, 0.07);
  --border-med:   rgba(0, 0, 0, 0.12);
  --border-hi:    rgba(0, 0, 0, 0.18);

  /* Typography */
  --font-serif:   'Crimson Pro', Georgia, serif;
  --font-grotesk: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Fira Code', monospace;

  /* Ink / Text Colors */
  --ink:          #0f172a;
  --ink-muted:    #475569;
  --ink-dim:      #64748b;
  --ink-xdim:     #94a3b8;

  /* Brand Accents */
  --primary:      #0d9488;
  --primary-mint: #2dd4bf;
  --primary-cyan: #06b6d4;
  --primary-dim:  rgba(13, 148, 136, 0.08);
  --primary-bd:   rgba(13, 148, 136, 0.22);
  --primary-glow: rgba(45, 212, 191, 0.25);

  --green:        #22c55e;
  --green-btn:    #52d874;
  --green-dim:    rgba(34, 197, 94, 0.08);
  --green-bd:     rgba(34, 197, 94, 0.22);

  --amber:        #d97706;
  --amber-dim:    rgba(217, 119, 6, 0.08);
  --amber-bd:     rgba(217, 119, 6, 0.22);

  --rose:         #e11d48;
  --rose-dim:     rgba(225, 29, 72, 0.08);
  --rose-bd:      rgba(225, 29, 72, 0.22);

  --radius-lg:    24px;
  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg:           #07070a;
  --bg-2:         #0d0d12;
  --bg-3:         #111118;
  --bg-card:      rgba(14, 14, 20, 0.92);
  --border:       rgba(255, 255, 255, 0.07);
  --border-med:   rgba(255, 255, 255, 0.12);
  --border-hi:    rgba(255, 255, 255, 0.20);

  --ink:          #f1f1f5;
  --ink-muted:    #9ca3af;
  --ink-dim:      #64748b;
  --ink-xdim:     #3f3f46;

  --primary:      #2dd4bf;
  --primary-dim:  rgba(45, 212, 191, 0.12);
  --primary-bd:   rgba(45, 212, 191, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body.insyde-body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-grotesk);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ══════════════════ AMBIENT VOLUMETRIC GLOWS ══════════════════ */
.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(140px);
  transform: translateZ(0);
  will-change: transform;
}
.amb-1 {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -200px;
  background: rgba(45, 212, 191, 0.07);
}
.amb-2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -150px;
  background: rgba(6, 182, 212, 0.05);
}
.amb-3 {
  width: 500px;
  height: 500px;
  top: 40%;
  left: 45%;
  background: rgba(34, 197, 94, 0.03);
}

/* ══════════════════ TYPOGRAPHY & HIGHLIGHTS ══════════════════ */
.serif-title {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.serif-highlight {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .serif-highlight {
  background: linear-gradient(135deg, #5eead4 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-container {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0;
}

.bg-subtle {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.centered {
  text-align: center;
}

.section-title-wrap {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.tag-primary {
  background: var(--primary-dim);
  border: 1px solid var(--primary-bd);
  color: var(--primary);
}

.tag-green {
  background: var(--green-dim);
  border: 1px solid var(--green-bd);
  color: var(--green);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: var(--ink);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  text-wrap: balance;
}

.section-title,
.hero-title,
.hero-sub,
.pillar-title,
.pillar-desc,
.feat-title,
.feat-body,
.cta-title,
.cta-sub {
  text-wrap: balance;
}

/* ══════════════════ ORIGIN STORY / OPEN DOCUMENT TYPEWRITER ══════════════════
   Full-viewport pinned section: the document sheet is held in place while
   the visitor scrolls, typing out the note character-by-character into
   an open document canvas with an active typewriter caret.
   Progressive enhancement: without JS or with prefers-reduced-motion,
   the full document is displayed statically without scroll locking. */
.origin-scroll-section {
  position: relative;
  z-index: 2;
  height: 380vh;
}

.origin-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1.5rem;
}

.origin-scroll-section.static-mode {
  height: auto;
  padding: 5rem 0;
}

.origin-scroll-section.static-mode .origin-scroll-sticky {
  position: static;
  height: auto;
  overflow: visible;
  padding: 0 1.5rem;
}

.origin-doc-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* Document Frame (Card / Window) */
.origin-doc-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 20px 45px -10px rgba(15, 23, 42, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .origin-doc-frame {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 24px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Document Window Header */
.origin-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-grotesk);
}

.origin-doc-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.doc-dot.dot-close { background: #ff5f56; border: 1px solid rgba(0,0,0,0.1); }
.doc-dot.dot-min   { background: #ffbd2e; border: 1px solid rgba(0,0,0,0.1); }
.doc-dot.dot-max   { background: #27c93f; border: 1px solid rgba(0,0,0,0.1); }

.origin-doc-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-dim);
  background: var(--bg-card);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

.doc-tab-icon {
  font-size: 0.85rem;
}

.origin-doc-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--ink-xdim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.doc-status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 6px var(--primary-mint);
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Document Paper Sheet Body */
.origin-doc-sheet {
  padding: 2.5rem 3rem 3rem;
  position: relative;
  background: var(--bg-card);
}

.origin-doc-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.doc-meta-sep {
  color: var(--border-med);
}

.origin-doc-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 1.85rem;
}

.origin-fragments {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.origin-line {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.1vw, 1.48rem);
  font-weight: 400;
  color: var(--ink-dim);
  line-height: 1.45;
  margin: 0;
  position: relative;
}

.origin-line strong {
  color: var(--primary);
  font-weight: 600;
}

.origin-line.origin-resolution {
  color: var(--ink);
  font-weight: 500;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-med);
  margin-top: 0.4rem;
}

/* Typewriter Character Rendering */
.tw-char {
  display: inline;
}

.origin-scroll-section.js-armed .tw-char {
  opacity: 0;
}

.origin-scroll-section.js-armed .tw-char.tw-typed {
  opacity: 1;
}

/* Typewriter Caret / Cursor */
.tw-caret {
  display: inline-block;
  width: 2.5px;
  height: 1.15em;
  background-color: var(--primary);
  vertical-align: -0.15em;
  margin-left: 2px;
  margin-right: 1px;
  border-radius: 1px;
  animation: twBlink 0.8s infinite;
  box-shadow: 0 0 6px var(--primary-glow);
  position: relative;
  z-index: 2;
}

.origin-doc-frame.is-scrolling .tw-caret {
  animation: none;
  opacity: 1 !important;
}

@keyframes twBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Static Mode / Fallback for Reduced Motion or No JS */
.origin-scroll-section.static-mode .tw-char,
.origin-scroll-section:not(.js-armed) .tw-char {
  opacity: 1 !important;
}

.origin-scroll-section.static-mode .tw-caret,
.origin-scroll-section:not(.js-armed) .tw-caret {
  display: none !important;
}

@media (max-width: 768px) {
  .origin-scroll-section {
    height: 330vh;
  }
  .origin-scroll-sticky {
    padding: calc(64px + 1rem) 1rem 1.5rem;
  }
  .origin-doc-sheet {
    padding: 1.6rem 1.35rem 1.85rem;
  }
  .origin-doc-header {
    padding: 0.65rem 0.85rem;
  }
  .origin-doc-tab {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .origin-doc-status {
    display: none;
  }
  .origin-doc-meta {
    font-size: 0.65rem;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
  }
  .origin-doc-title {
    font-size: clamp(1.35rem, 4.6vw, 1.75rem);
    margin-bottom: 1.15rem;
  }
  .origin-line {
    font-size: clamp(1rem, 3.5vw, 1.18rem);
    line-height: 1.42;
  }
  .origin-fragments {
    gap: 0.75rem;
  }
}

/* ══════════════════ BUTTONS ══════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  font-family: var(--font-grotesk);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-med);
  color: var(--ink-muted);
}
.btn-ghost:hover {
  border-color: var(--border-hi);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}

.btn-primary {
  background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 100%);
  color: #07070a;
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.btn-outline-dark:hover {
  border-color: var(--border-hi);
  background: var(--bg-2);
}

.btn-large {
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
  margin-top: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  background: var(--bg-3);
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: inline-block; }

[data-theme="dark"] .theme-icon-sun { display: inline-block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* ══════════════════ TOP NAVIGATION ══════════════════ */
nav.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(252, 252, 253, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  transition: background 0.3s ease;
}

[data-theme="dark"] nav.topnav {
  background: rgba(7, 7, 10, 0.85);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-logo-sub {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: var(--primary-dim);
  border: 1px solid var(--primary-bd);
  color: var(--primary);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger — hidden by default, only shown under the nav breakpoint below.
   Same open/close cross-morph as the main TalkXO site's .nav-toggle. */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-med);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.nav-hamburger span,
.nav-hamburger span::before,
.nav-hamburger span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-hamburger span { position: relative; }
.nav-hamburger span::before,
.nav-hamburger span::after { content: ""; position: absolute; left: 0; }
.nav-hamburger span::before { top: -5px; }
.nav-hamburger span::after { top: 5px; }
.nav-hamburger.is-open span { background: transparent; }
.nav-hamburger.is-open span::before { transform: rotate(45deg) translate(3.5px, 3.5px); }
.nav-hamburger.is-open span::after { transform: rotate(-45deg) translate(3.5px, -3.5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem 1rem;
  background: var(--bg-card);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-xs);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.mobile-menu a:hover { background: rgba(0, 0, 0, 0.04); color: var(--ink); }
.mobile-menu.is-open { display: flex; }

@media (max-width: 860px) {
  .nav-links, .nav-cta-group { display: none; }
  .nav-hamburger { display: flex; }
}

/* ══════════════════ HERO SECTION & TYPOGRAPHY SCALE ══════════════════ */
.hero {
  position: relative;
  z-index: 1;
  padding: 150px 2rem 150px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Hero Focal Icon Animation */
.hero-icon-focal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  position: relative;
}

.hero-focal-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.28), 0 2px 6px rgba(0, 0, 0, 0.08);
  animation: hero-float 4s ease-in-out infinite alternate;
  display: block;
}

@keyframes hero-float {
  0% { transform: translateY(0px) scale(1); filter: drop-shadow(0 4px 12px rgba(45, 212, 191, 0.2)); }
  100% { transform: translateY(-6px) scale(1.03); filter: drop-shadow(0 12px 28px rgba(45, 212, 191, 0.4)); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 600px;
  margin: 0 auto 2.2rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.hero-note {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
/* ══════════════════ HERO APP MOCKUP (INSYDE PHONE APP) ══════════════════ */
.hero-mockup-wrap {
  position: relative;
  z-index: 1;
  max-width: 490px;
  margin: 7.5rem auto 0;
}

.hero-mockup-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.22) 0%, rgba(34, 197, 94, 0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Photographic backdrop card behind the app mockup — echoes the brand's
   own mint/cyan ambient glow so it reads as intentional, not a random photo */
.hero-mockup-backdrop {
  position: absolute;
  top: -80px;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 90vw);
  border-radius: 40px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  z-index: 0;
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.18);
  cursor: default;
}

.hero-mockup-backdrop img {
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  margin-top: -30px;
  margin-left: -30px;
  object-fit: cover;
  display: block;
  filter: url(#heroRipple);
  transition: filter 0.4s ease;
}

.hero-mockup-backdrop.is-rippling img {
  filter: url(#heroRipple) saturate(1.15);
}

.hero-mockup-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.35) 100%);
}

[data-theme="dark"] .hero-mockup-backdrop::after {
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.35) 0%, rgba(7, 7, 10, 0.15) 45%, rgba(7, 7, 10, 0.45) 100%);
}

.browser-frame {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: left;
}

.tl-row { display: flex; gap: 6px; }
.tl { width: 10px; height: 10px; border-radius: 50%; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }

.insyde-app-container {
  padding: 1.5rem;
  background: var(--bg-card);
}

.app-card-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.phone-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.4rem 0.6rem;
  border-radius: 7px;
  max-width: 180px;
  text-align: center;
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.phone-tooltip.is-open {
  opacity: 1;
  transform: translateY(0);
}

.app-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.phone-actions {
  display: flex;
  gap: 0.6rem;
}

.phone-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.85rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.phone-icon-btn:hover { background: var(--bg-3); }
.phone-icon-btn:active { transform: scale(0.92); }

.phone-notif-wrap { position: relative; }

.phone-notif-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}

.phone-notif-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Scoped "mini dark mode" for the hero mockup only — flips the app
   preview's own CSS custom properties without touching the page theme,
   as a live demo of the product's real theme toggle. */
.browser-frame.mockup-dark {
  --bg:           #07070a;
  --bg-2:         #0d0d12;
  --bg-3:         #111118;
  --bg-card:      rgba(14, 14, 20, 0.92);
  --border:       rgba(255, 255, 255, 0.07);
  --border-med:   rgba(255, 255, 255, 0.12);
  --border-hi:    rgba(255, 255, 255, 0.20);
  --ink:          #f1f1f5;
  --ink-muted:    #9ca3af;
  --ink-dim:      #64748b;
  --ink-xdim:     #3f3f46;
  --primary:      #2dd4bf;
  --primary-dim:  rgba(45, 212, 191, 0.12);
  --primary-bd:   rgba(45, 212, 191, 0.28);
  transition: background 0.3s ease;
}

.phone-greeting-section {
  margin-top: 0.25rem;
}

.phone-title {
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.phone-date {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-top: 0.2rem;
}

.phone-action-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-toggle-segment {
  display: flex;
  background: var(--bg-3);
  padding: 3px;
  border-radius: 8px;
  gap: 4px;
  width: 190px;
}

.seg-btn {
  flex: 1;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-dim);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.seg-btn.active-seg {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.phone-checkin-btn {
  position: relative;
  overflow: hidden;
  background: #2e8054;
  color: #ffffff;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(82, 216, 116, 0.25);
  transition: transform 0.15s ease, background 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.phone-checkin-btn:hover { transform: translateY(-1px); }
.phone-checkin-btn:active { transform: translateY(0) scale(0.98); }

/* Fill sweeps left-to-right underneath the label while the button is held */
.checkin-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: #52d874;
  z-index: 0;
}

.checkin-btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@keyframes checkinBurst {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.phone-checkin-btn.is-bursting { animation: checkinBurst 0.45s ease; }

.phone-checkin-btn.is-checked-in {
  background: var(--bg-3);
  color: var(--ink-dim);
  box-shadow: none;
  cursor: default;
}
.phone-checkin-btn.is-checked-in .checkin-fill { background: var(--bg-3); }
.phone-checkin-btn.is-checked-in:hover { transform: none; }

.btn-arrow { font-size: 1.1rem; }

.phone-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.phone-section-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.presence-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.presence-icon { font-size: 1.1rem; }
.presence-tag { font-size: 0.65rem; font-weight: 700; color: var(--primary); }
.presence-names { font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-top: 1px; }

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.ov-stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.ov-icon { font-size: 0.85rem; color: var(--primary); }
.ov-val { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0.1rem 0; font-family: var(--font-display); }
.ov-lbl { font-size: 0.65rem; color: var(--ink-dim); }

.info-i {
  cursor: help;
  border-bottom: 1px dotted var(--ink-xdim);
}

.phone-calendar-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.cal-month-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.cal-view-toggle {
  display: flex;
  background: var(--bg-3);
  padding: 2px;
  border-radius: 6px;
  gap: 2px;
}

.cv-pill {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--ink-dim);
  font-weight: 600;
}
.cv-pill.active-cv { background: var(--bg-card); color: var(--ink); }

.calendar-grid-widget {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
}

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}

.cal-cells-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  height: 24px;
  border-radius: 5px;
  background: var(--bg-3);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.cal-cell:hover { transform: scale(1.12); filter: brightness(1.08); }

.cal-cell.office   { background: var(--primary-dim); border: 1px solid var(--primary-bd); }
.cal-cell.remote   { background: rgba(124, 58, 237, 0.12); border: 1px solid rgba(124, 58, 237, 0.28); }
.cal-cell.leave    { background: var(--amber-dim); border: 1px solid var(--amber-bd); }
.cal-cell.weekend  { background: var(--bg-3); opacity: 0.55; }
.cal-cell.no-data  { background: transparent; border: 1px dashed var(--border-med); }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: 0.62rem;
  color: var(--ink-dim);
}

.leg-item { display: flex; align-items: center; gap: 0.3rem; }
.leg-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-office  { background: var(--primary); }
.dot-remote  { background: #7c3aed; }
.dot-leave   { background: var(--amber); }
.dot-nodata  { background: #e2e8f0; border: 1px solid #cbd5e1; }
.dot-weekend { background: #94a3b8; }

/* ══════════════════ FEATURE GRID ══════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-med);
}

.wide-card { grid-column: span 2; }

.feat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.35rem;
}

.box-primary { background: var(--primary-dim); border: 1px solid var(--primary-bd); }
.box-mint    { background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.28); }
.box-green   { background: var(--green-dim); border: 1px solid var(--green-bd); }
.box-amber   { background: var(--amber-dim); border: 1px solid var(--amber-bd); }
.box-rose    { background: var(--rose-dim); border: 1px solid var(--rose-bd); }
.box-cyan    { background: rgba(6, 182, 212, 0.10); border: 1px solid rgba(6, 182, 212, 0.28); }
.box-violet  { background: rgba(124, 58, 237, 0.10); border: 1px solid rgba(124, 58, 237, 0.28); }

.feat-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.feat-body {
  font-size: 0.96rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.ftag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.ftag-primary { background: var(--primary-dim); color: var(--primary); border: 1px solid var(--primary-bd); }
.ftag-dark    { background: var(--bg-3); color: var(--ink); border: 1px solid var(--border); }
.ftag-green   { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-bd); }
.ftag-amber   { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber-bd); }

/* Radar Mockup inside Feature 1 */
.radar-mockup {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.radar-circle-wrap {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.18);
}
.ring-1 { width: 60px; height: 60px; }
.ring-2 { width: 110px; height: 110px; }
.ring-3 { width: 150px; height: 150px; border-style: dashed; border-color: rgba(13, 148, 136, 0.3); }

.radar-sweep {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(13, 148, 136, 0.3) 0deg, transparent 60deg, transparent 360deg);
  animation: radar-spin 4s linear infinite;
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-office-pin { font-size: 1.3rem; z-index: 2; }

.radar-user-dot {
  position: absolute;
  top: 42%;
  left: 56%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  z-index: 3;
}

.user-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.radar-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.radar-info-title { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.radar-info-sub { font-size: 0.68rem; color: var(--ink-dim); }

.radar-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-bd);
}

/* AI Chat Mockup */
.chat-mockup {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.chat-mockup-header {
  background: var(--bg-3);
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.chat-model-select {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.model-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.chat-status-pill {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: var(--primary);
  background: var(--primary-dim);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.chat-mockup-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.chat-msg { display: flex; gap: 0.65rem; }

.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.av-user { background: var(--bg-3); color: var(--ink); border: 1px solid var(--border); }
.av-ai   { background: var(--primary-dim); color: var(--primary); border: 1px solid var(--primary-bd); }

.chat-bubble {
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.bubble-user {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink);
}

.bubble-ai {
  background: var(--primary-dim);
  border: 1px solid var(--primary-bd);
  color: var(--ink);
}

.ai-source-ref {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--primary);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

/* Basecamp Wide Mockup */
.split-card-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.basecamp-mockup-frame {
  background: #fbfbfb;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  color: #1a1a24;
  overflow: hidden;
}

.bc-header-bar {
  background: #f1f3f5;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid #e5e7eb;
}

.bc-campfire-icon { font-size: 1.1rem; }
.bc-title { font-size: 0.8rem; font-weight: 700; color: #111827; }
.bc-time { font-size: 0.62rem; color: #6b7280; }

.bc-bot-pill {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #e0e7ff;
  color: #4338ca;
}

.bc-message-content { padding: 1.1rem; }
.bc-summary-headline { font-size: 0.84rem; font-weight: 700; color: #1f2937; margin-bottom: 0.85rem; }

.bc-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.bc-chip {
  padding: 0.6rem;
  border-radius: 6px;
  text-align: center;
  border: 1px solid transparent;
}

.chip-office { background: #ecfeff; border-color: #a5f3fc; color: #0891b2; }
.chip-remote { background: #f5f3ff; border-color: #ddd6fe; color: #7c3aed; }
.chip-leave  { background: #fffbeb; border-color: #fde68a; color: #d97706; }

.chip-num { font-size: 1.25rem; font-weight: 800; line-height: 1; }
.chip-label { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; margin-top: 0.2rem; }

.bc-footer-note {
  font-size: 0.74rem;
  color: #4b5563;
  line-height: 1.45;
  background: #f9fafb;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
}

/* Feature 4 & 5 Mockups */
.boundary-mockup {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.boundary-clock {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.boundary-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid var(--amber-bd);
  margin-bottom: 0.5rem;
}

.boundary-sub { font-size: 0.72rem; color: var(--ink-dim); }

.privacy-mockup {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
}

.priv-icon { font-size: 0.85rem; }
.priv-text { flex: 1; color: var(--ink-muted); }
.priv-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

/* ══════════════════ TEAM TABS SECTION ══════════════════ */
.team-tabs {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.team-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-grotesk);
}

.team-tab:hover {
  border-color: var(--border-med);
  color: var(--ink);
}

.team-tab.active-tab {
  background: var(--primary-dim);
  border-color: var(--primary-bd);
  color: var(--primary);
}

.team-panel { display: none; }

.team-panel.active-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.panel-name {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.panel-desc {
  font-size: 1.02rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.panel-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.panel-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.bullet-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--primary-dim);
  border: 1px solid var(--primary-bd);
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.panel-quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
}

.quote-text {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  font-style: normal;
  margin-bottom: 0.5rem;
}

.quote-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-dim);
}

.roadmap-banner {
  background: var(--amber-dim);
  border: 1px solid var(--amber-bd);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.75rem;
}

.roadmap-banner-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.roadmap-banner-text {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.panel-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
}

.preview-bar {
  background: var(--bg-2);
  padding: 0.65rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.preview-title { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.preview-body { padding: 1.25rem; }

.preview-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.pstat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem;
  text-align: center;
}

.ps-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.ps-lbl {
  font-size: 0.6rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.mini-roster {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
}

.m-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green   { background: var(--green); }
.dot-primary { background: var(--primary); }
.dot-dark    { background: var(--ink); }

.m-tag {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--ink-dim);
}

/* ══════════════════ HOW IT WORKS ══════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.how-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-med);
}

.how-num-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 2px solid var(--primary-bd);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
}

.how-step-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.how-step-body {
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ══════════════════ PRICING ══════════════════ */
.pricing-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.pricing-card .btn-full { margin-top: auto; }

.featured-pricing-card {
  border-color: var(--primary-bd);
  background: linear-gradient(165deg, rgba(45, 212, 191, 0.05) 0%, var(--bg-card) 45%);
}

.pricing-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #2dd4bf, #06b6d4);
  color: #07070a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 0 var(--radius) 0 8px;
  letter-spacing: 0.05em;
}

.pricing-plan-name {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.pricing-price sup { font-size: 1.2rem; vertical-align: super; }
.pricing-period { font-size: 0.85rem; color: var(--ink-dim); font-weight: 400; font-family: var(--font-grotesk); }

.pricing-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.pricing-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.pricing-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.pricing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.p-check { color: var(--primary); font-weight: 700; margin-top: 1px; flex: none; }
/* the label text needs its own flex item (not raw text nodes as siblings of
   .p-check) so a bold lead-in + trailing parenthetical wraps as one run
   instead of splitting into two independently-wrapping columns */
.pricing-feature-list li > span:last-child { flex: 1; min-width: 0; }

/* ══════════════════ FINAL CTA ══════════════════ */
.final-cta-section {
  position: relative;
  z-index: 1;
  padding: 7.5rem 2rem;
  text-align: center;
  overflow: hidden;
}

.cta-ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  background: rgba(45, 212, 191, 0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-box-card,
.cta-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 2rem 1rem;
}

.cta-brand-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.cta-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(45, 212, 191, 0.35);
  display: block;
}

.cta-title {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--ink);
}

.cta-sub {
  font-size: 1.08rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

/* ══════════════════ FOOTER (MODERN BALANCED GRID) ══════════════════ */
.insyde-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 4.5rem 2rem 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: block;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0.85rem 0 0;
}

.footer-col-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.footer-list a {
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-list a:hover {
  color: var(--teal);
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.84rem;
  color: var(--ink-dim);
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-actions a,
.footer-bottom-actions a:visited {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bottom-actions a:hover {
  color: var(--ink);
}

.footer-theme-link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--ink-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-theme-link:hover {
  color: var(--ink);
}

.footer-theme-link .theme-icon-sun { display: none; }
.footer-theme-link .theme-icon-moon { display: inline-block; }

[data-theme="dark"] .footer-theme-link .theme-icon-sun { display: inline-block; }
[data-theme="dark"] .footer-theme-link .theme-icon-moon { display: none; }

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ══════════════════ FAQ (HARMONIZED WIDTH & CLEAN CARDS) ══════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 860px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: var(--border-med);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--teal);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "2";
}

.faq-item p {
  margin-top: 0.95rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ══════════════════ FORM (book-demo.html) ══════════════════ */
.demo-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

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

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--primary); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-med);
  background: var(--bg);
  font-family: var(--font-grotesk);
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-xdim); }

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

.hp-field { position: absolute; opacity: 0; height: 0; width: 0; pointer-events: none; }

.form-note { font-size: 0.8rem; color: var(--ink-dim); margin-top: 0.9rem; }

.form-success, .form-error {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
  display: none;
}
.form-success { background: var(--green-dim); border: 1px solid var(--green-bd); color: var(--green); }
.form-error { background: var(--rose-dim); border: 1px solid var(--rose-bd); color: var(--rose); }
