/* ═════════════════════════════════════════════════════════════════════
   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: #ffffff;
  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(--app-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.22);
  text-align: left;

  /* Insyde app design tokens — the mockup mirrors the live app's dark UI
     (default). Local custom properties only; the page theme is untouched. */
  --app-bg: #14161b;
  --app-fg: #f2f5f7;
  --app-muted: #8d99a5;
  --app-card: rgba(255, 255, 255, 0.05);
  --app-card-border: rgba(255, 255, 255, 0.10);
  --app-label: #94a0ac;
  --app-track: rgba(255, 255, 255, 0.10);
  --app-chip: rgba(255, 255, 255, 0.08);
  --app-gradient: linear-gradient(135deg, #2e2e2e 0%, #5c5c5c 100%);
  --app-btn: #e6e8eb;
  --app-btn-ink: #10151a;
  --app-success: #22c55e;
  --app-success-deep: #16a34a;
  --app-success-ink: #4ade80;
  --app-danger: #ef4444;
  --app-danger-deep: #dc2626;
  --app-popover: #1d2027;
  --app-font-display: "Funnel Display", "Host Grotesk", system-ui, sans-serif;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Light mode preview — the live app's light tokens (hero cards stay dark) */
.browser-frame.mockup-light {
  --app-bg: #eef1f4;
  --app-fg: #1d2329;
  --app-muted: #5c6873;
  --app-card: rgba(255, 255, 255, 0.72);
  --app-card-border: rgba(9, 9, 9, 0.10);
  --app-label: #5c6873;
  --app-track: rgba(9, 9, 9, 0.08);
  --app-chip: rgba(31, 31, 31, 0.06);
  --app-gradient: linear-gradient(135deg, #1f1f1f 0%, #4a4a4a 100%);
  --app-btn: #1f1f1f;
  --app-btn-ink: #ffffff;
  --app-success-ink: #16a34a;
  --app-popover: #ffffff;
  border-color: rgba(9, 9, 9, 0.12);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.10);
}

.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:
    radial-gradient(420px 240px at 88% -60px, rgba(20, 184, 166, 0.16), transparent 65%),
    radial-gradient(380px 220px at -40px 105%, rgba(15, 118, 110, 0.15), transparent 65%),
    var(--app-bg);
  color: var(--app-fg);
  transition: background 0.3s ease, color 0.3s ease;
}

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

.phone-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--app-btn);
  color: var(--app-btn-ink);
  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.25);
}

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

/* Header — logo + options button, like the app */
.app-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.phone-options-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: var(--app-fg);
  transition: background 0.2s ease;
}

.phone-options-btn span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.phone-options-btn:hover { background: var(--app-chip); }

.phone-options-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: var(--app-popover);
  border: 1px solid var(--app-card-border);
  border-radius: 16px;
  padding: 0.9rem;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 6;
}

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

.pop-user-name { font-size: 0.84rem; font-weight: 600; color: var(--app-fg); }
.pop-user-slug { font-size: 0.66rem; color: var(--app-muted); font-family: var(--font-mono, monospace); margin-top: 2px; }
.pop-divider { border: none; height: 1px; background: var(--app-card-border); margin: 0.65rem 0; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.pop-row-label { font-size: 0.74rem; font-weight: 600; color: var(--app-fg); }
.pop-row-sub { font-size: 0.62rem; color: var(--app-muted); margin-top: 1px; }

.pop-switch {
  position: relative;
  flex: none;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: var(--app-success);
  display: inline-block;
}

.pop-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 17px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pop-seg {
  display: flex;
  gap: 2px;
  background: var(--app-chip);
  border-radius: 8px;
  padding: 2px;
}

.pop-seg button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  color: var(--app-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pop-seg button.is-on {
  background: var(--app-bg);
  color: var(--app-fg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.pop-logout {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: #f87171;
  cursor: pointer;
}

/* Greeting — the app renders it in a bold serif */
.phone-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--app-fg);
}

.phone-date {
  font-size: 0.82rem;
  color: var(--app-muted);
  margin-top: 0.35rem;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  align-items: stretch;
}

.phone-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Check-in card — the whole card is the press-and-hold button:
   at rest it's a glass panel with a mint bottom glow; holding fills it
   bottom-up with the success gradient, exactly like the app */
.phone-hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 252px;
  border: 1px solid var(--app-card-border);
  border-radius: 24px;
  padding: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow: inset 0 -36px 48px rgba(92, 250, 173, 0.07);
}

/* Checked in — the card echoes the app's success state */
.phone-hero-card.is-checked-in {
  border-color: rgba(74, 222, 128, 0.6);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.25);
}

.hero-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1rem;
}

.hero-card-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--app-label);
  transition: color 0.15s ease;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-btn);
  opacity: 0.5;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.phone-hero-card.is-checked-in .hero-status-dot {
  background: var(--app-success);
  opacity: 1;
  animation: statusPulse 2s ease-out infinite;
}

@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.phone-toggle-segment {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  display: flex;
  width: fit-content;
  gap: 2px;
  background: var(--app-chip);
  padding: 2px;
  border-radius: 999px;
}

.seg-btn {
  width: 44px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--app-muted);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.seg-btn svg { width: 12px; height: 12px; }
.seg-btn:hover { color: var(--app-fg); }

.seg-btn.active-seg {
  background: var(--app-btn);
  color: var(--app-btn-ink);
}

.hero-mid {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--app-fg);
  opacity: 0.92;
}

.hero-time-big {
  font-family: var(--app-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: inherit;
  font-variant-numeric: tabular-nums;
  display: block;
}

.hero-hold-hint {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--app-muted);
}

/* Streak — gradient brand card with the white blur orb, like the app */
.streak-card {
  position: relative;
  overflow: hidden;
  background: var(--app-gradient);
  border-radius: 24px;
  padding: 1rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.streak-card::after {
  content: '';
  position: absolute;
  top: -2.2rem;
  right: -2rem;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(18px);
  pointer-events: none;
}

.streak-lbl {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.8);
}

.streak-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-top: 0.55rem;
}

.streak-fire { font-size: 2.2rem; line-height: 1; margin-right: 0.5rem; }

.streak-num {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.streak-suffix {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 1px;
}

.streak-badge {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  align-self: flex-start;
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}

.ov-stat-card {
  background: var(--app-card);
  border: 1px solid var(--app-card-border);
  border-radius: 24px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.phone-card-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--app-label);
}

.ov-val {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--app-fg);
  font-variant-numeric: tabular-nums;
}

.ov-foot-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 1rem;
}

.ov-foot {
  font-size: 0.66rem;
  color: var(--app-muted);
  line-height: 1.35;
}

.ontime-badge {
  flex: none;
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: var(--app-success-ink);
}

.score-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--app-track);
  overflow: hidden;
  margin-top: 0.75rem;
}

.score-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--app-gradient);
}

.info-i {
  cursor: help;
  border-bottom: 1px dotted var(--app-label);
  letter-spacing: 0;
}

/* Who's in today — glass roster card */
.whos-in-card {
  background: var(--app-card);
  border: 1px solid var(--app-card-border);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.whos-in-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
}

.wi-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-success);
}

.wi-dot.wi-remote { background: #38bdf8; }
.wi-dot.wi-leave { background: #f59e0b; }

.wi-name { font-weight: 600; color: var(--app-fg); }

.wi-status {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--app-muted);
}

.phone-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--app-card);
  border: 1px solid var(--app-card-border);
  border-radius: 999px;
  padding: 0.65rem 0.5rem;
  margin-top: 0.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--app-muted);
  padding: 0.2rem 0.5rem;
}

.nav-item svg { width: 14px; height: 14px; }

.nav-item.is-active { color: var(--app-fg); }

.nav-item.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.42rem;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--app-gradient);
}

/* Small screens — the mockup reflows instead of squeezing:
   check-in card takes the full width, streak + avg pair beneath it */
@media (max-width: 560px) {
  .hero-mockup-wrap { margin-top: 4rem; }
  .insyde-app-container { padding: 1rem; }
  .app-card-phone { gap: 0.9rem; }
  .phone-title { font-size: 1.5rem; }
  .phone-grid { gap: 0.6rem; }
  .phone-grid-hero { grid-template-columns: minmax(0, 1fr); }
  .phone-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .phone-hero-card { min-height: 230px; }
  .streak-card, .ov-stat-card, .whos-in-card { padding: 0.85rem 0.9rem; }
  .streak-value { margin-top: 0.35rem; }
  .streak-fire { font-size: 1.6rem; }
  .streak-num { font-size: 1.9rem; }
  .streak-suffix { font-size: 1.05rem; }
  .streak-badge { margin-top: 0.55rem; }
  .ov-val { font-size: 1.45rem; }
  .phone-card-lbl { font-size: 0.56rem; }
  .ov-foot { font-size: 0.6rem; }
  .ov-foot-row { flex-wrap: wrap; }
  .whos-in-row { font-size: 0.74rem; }
  .wi-status { font-size: 0.62rem; }
  .phone-bottom-nav { padding: 0.55rem 0.4rem; }
  .nav-item { font-size: 0.66rem; gap: 0.3rem; }
  .nav-item svg { width: 12px; height: 12px; }
}

/* Very narrow phones — stack the stat pairs too */
@media (max-width: 400px) {
  .phone-grid, .phone-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .ov-val { font-size: 1.3rem; }
  .nav-item { font-size: 0; gap: 0; }
  .nav-item svg { width: 16px; height: 16px; }
  .nav-item.is-active::after { width: 18px; }
}

/* ══════════════════ FEATURE GRID ══════════════════ */
.features-grid {
  display: grid;
  /* minmax(0,1fr) — plain 1fr lets one column's min-content crush the other on mobile */
  grid-template-columns: repeat(2, minmax(0, 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: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .wide-card {
    grid-column: auto;
  }
  .feature-card {
    padding: 1.7rem 1.4rem;
  }
  .split-card-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }
  .radar-info-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .boundary-clock {
    font-size: 1.8rem;
  }
  .privacy-row {
    font-size: 0.74rem;
  }
}

.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: "\2212";
}

.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); }
