/* ========================================
  Otian AI | Shared Styles
  css/styles.css
  ======================================== */

/* ========================================
   1. CSS Custom Properties
   ======================================== */
:root {
  /* Colors */
  --bg-primary: #FBF8F4;
  --bg-secondary: #F7EFE4;
  --bg-card: #FFFFFF;
  --accent: #E08A5B;
  --accent-hover: #CC7647;
  --accent-subtle: #FBE4D3;
  --text-primary: #4A423A;
  --text-secondary: #8C8177;
  --text-muted: #A09489;
  --border: #EFE4D6;
  --nav-glass: rgba(251, 248, 244, 0.82);
  --nav-glass-scrolled: rgba(251, 248, 244, 0.95);
  --surface-hover: rgba(74, 66, 58, 0.07);
  --surface-hover-strong: rgba(74, 66, 58, 0.12);
  --surface-soft: rgba(74, 66, 58, 0.025);
  --surface-soft-alt: rgba(74, 66, 58, 0.04);
  --surface-soft-strong: rgba(74, 66, 58, 0.08);
  --field-border: rgba(74, 66, 58, 0.18);
  --field-border-strong: rgba(74, 66, 58, 0.24);
  --panel-border-strong: rgba(74, 66, 58, 0.2);
  --dashed-border: rgba(74, 66, 58, 0.28);
  --line-soft: rgba(74, 66, 58, 0.16);
  --line-muted: rgba(74, 66, 58, 0.24);
  --overlay-bg: rgba(42, 37, 33, 0.18);
  --text-on-accent: #2A2521;
  --bg-wash-one: rgba(251, 228, 211, 0.42);
  --bg-wash-two: rgba(240, 184, 168, 0.24);

  /* Layout */
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --max-width: 1200px;
  --section-padding: 96px 24px;
  --nav-height: 72px;

  /* Shadows */
  --shadow-sm: 0 8px 22px rgba(74, 66, 58, 0.08);
  --shadow-md: 0 16px 36px rgba(74, 66, 58, 0.12);
  --shadow-lg: 0 28px 60px rgba(74, 66, 58, 0.18);
}

[data-theme="dark"] {
  --bg-primary: #2A2521;
  --bg-secondary: #332C26;
  --bg-card: #3A3229;
  --accent: #EDA277;
  --accent-hover: #F2B58F;
  --accent-subtle: #4A392C;
  --text-primary: #F5EFE6;
  --text-secondary: #B7AA9B;
  --text-muted: #9D8F82;
  --border: #4C4136;
  --nav-glass: rgba(42, 37, 33, 0.74);
  --nav-glass-scrolled: rgba(42, 37, 33, 0.94);
  --surface-hover: rgba(245, 239, 230, 0.06);
  --surface-hover-strong: rgba(245, 239, 230, 0.14);
  --surface-soft: rgba(245, 239, 230, 0.03);
  --surface-soft-alt: rgba(245, 239, 230, 0.05);
  --surface-soft-strong: rgba(245, 239, 230, 0.1);
  --field-border: rgba(245, 239, 230, 0.16);
  --field-border-strong: rgba(245, 239, 230, 0.24);
  --panel-border-strong: rgba(245, 239, 230, 0.2);
  --dashed-border: rgba(239, 199, 119, 0.4);
  --line-soft: rgba(245, 239, 230, 0.16);
  --line-muted: rgba(245, 239, 230, 0.28);
  --overlay-bg: rgba(14, 12, 10, 0.62);
  --text-on-accent: #2A2521;
  --bg-wash-one: rgba(76, 65, 54, 0.35);
  --bg-wash-two: rgba(239, 199, 119, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
}

/* ========================================
   2. Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: pageLoad 0.4s ease forwards;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    radial-gradient(circle at top left, var(--bg-wash-one) 0%, transparent 45%),
    radial-gradient(circle at 86% 10%, var(--bg-wash-two) 0%, transparent 38%);
  pointer-events: none;
  z-index: -1;
}

@keyframes pageLoad {
  to { opacity: 1; }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ========================================
   3. Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--text-secondary); line-height: 1.8; }

/* ========================================
   4. Layout Utilities
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.text-center { text-align: center; }

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Spacing utilities */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* ========================================
   5. Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--nav-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  transition: background var(--transition);
}

.nav.scrolled {
  background: var(--nav-glass-scrolled);
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
  margin-right: 0;
}

.nav-wordmark {
  height: 42px;
  width: auto;
}

.nav-logo-divider {
  width: 2px;
  height: 30px;
  background: var(--text-primary);
  opacity: 0.5;
  margin: 0 8px 0 10px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.nav-logo-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-logo-title strong {
  font-weight: 800;
}

.nav-logo-subtitle {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}

@media (max-width: 480px) {
  .nav-logo-text {
    display: none;
  }
}

@media (max-width: 1100px) and (min-width: 1000px) {
  .nav-logo-divider,
  .nav-logo-text {
    display: none;
  }
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-more {
  position: relative;
}

.nav-more-toggle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-more-toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
}

.nav-more-toggle:hover,
.nav-more-toggle.active {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.nav-more.open .nav-more-toggle,
.nav-more:focus-within .nav-more-toggle {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.nav-more.open .nav-more-toggle::after,
.nav-more:focus-within .nav-more-toggle::after {
  transform: rotate(-135deg) translateY(-1px);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-more.open .nav-more-menu,
.nav-more:focus-within .nav-more-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-more-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition), background var(--transition);
}

.nav-more-menu a:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.nav-more-menu a.active {
  color: var(--accent);
}

.nav-cta {
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--field-border);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-hover-strong);
  transition: background var(--transition);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), background var(--transition);
}

.theme-toggle-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="dark"] .theme-toggle-track {
  background: var(--accent-subtle);
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(20px);
}

.theme-toggle--drawer {
  width: 100%;
  justify-content: space-between;
  margin: 12px 0 4px;
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 999;
  padding: calc(var(--nav-height) + 16px) 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer a,
.nav-drawer-flyout a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

.nav-drawer a:hover,
.nav-drawer-flyout a:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.nav-drawer a.active,
.nav-drawer-flyout a.active {
  color: var(--accent);
}

.nav-drawer-cat {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-drawer-cat:hover,
.nav-drawer-cat:focus-visible {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.nav-drawer-cat.active {
  color: var(--accent);
}

.nav-drawer-cat.open {
  color: var(--text-primary);
  background: var(--surface-hover-strong);
}

.nav-drawer-cat::after {
  content: '';
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(135deg);
  transition: transform var(--transition);
}

/* External flyout: pops out to the left of the drawer, attached to it */
.nav-drawer-flyout {
  position: fixed;
  top: 0;
  right: 220px;
  width: 160px;
  height: 100%;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  z-index: 998;
  padding: calc(var(--nav-height) + 16px) 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.nav-drawer-flyout.open {
  visibility: visible;
  transform: translateX(0);
}

.nav-drawer-flyout-links {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer-flyout-links.is-active {
  display: flex;
}

.nav-drawer-back {
  display: flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  padding: 8px 2px 14px;
  margin-bottom: 10px;
  border-radius: 0;
  min-height: 36px;
  transition: color var(--transition), border-color var(--transition);
}

.nav-drawer-back:hover,
.nav-drawer-back:focus-visible {
  color: var(--accent);
  background: none;
  border-color: var(--field-border-strong);
}

.nav-drawer-back-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transform: rotate(180deg);
  transition: transform var(--transition);
}

.nav-drawer-back:hover .nav-drawer-back-icon {
  transform: rotate(180deg) translateX(-2px);
}

.nav-drawer a.nav-drawer-cta {
  margin-top: 12px;
  text-align: center;
  justify-content: center;
  color: var(--text-on-accent);
}

/* ========================================
   6. Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(224, 138, 91, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--field-border);
}

.btn-secondary:hover {
  border-color: var(--field-border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
}

/* ========================================
   7. Footer
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 52px;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-logo img {
  height: auto;
  width: 150px;
  display: block;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col-title {
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-nav-links a:hover {
  color: var(--text-primary);
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-col .footer-contact-email {
  margin-bottom: 0;
}

.footer-contact-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-contact-email:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: center;
    position: relative;
  }

  .footer-legal-links {
    position: absolute;
    right: 0;
  }
}

/* ========================================
   8. Hero, Home
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 56px) 24px 96px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 50% 30%, rgba(224, 138, 91, 0.13) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-content {
  max-width: 620px;
}

.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.screenshot-gallery.hero-gallery {
  width: 550px;
  height: 560px;
  max-width: 100%;
}

.hero-gallery .screenshot-gallery-track {
  gap: 32px;
}

.hero-visual-img {
  width: auto;
  height: 100%;
  max-width: none;
  display: block;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.175rem;
  margin-bottom: 44px;
  max-width: 560px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   9. Page Hero (inner pages)
   ======================================== */
.page-hero {
  padding: calc(var(--nav-height) + 72px) 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.page-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
}

/* ========================================
   10. Proof Bar
   ======================================== */
.proof-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.proof-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.proof-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.proof-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-card);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.proof-chip-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========================================
   11. Feature Cards Grid
   ======================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

/* feature-card hover: pointer devices only, see section 26 */

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
}

/* ========================================
   12. Use Cases Grid
   ======================================== */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.use-case-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.use-case-item:hover {
  background: var(--accent-subtle);
}

.use-case-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.use-case-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.use-case-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.use-case-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.use-case-detail {
  font-weight: 400;
  color: var(--text-secondary);
}

/* ========================================
   13. Steps Teaser (Home)
   ======================================== */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(16.666% + 28px);
  right: calc(16.666% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
}

.step-item {
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.875rem;
}

/* ========================================
   14. CTA Banner
   ======================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(224, 138, 91, 0.07) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 72px 48px;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 14px;
}

.cta-banner p {
  margin-bottom: 36px;
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner p:last-of-type {
  margin-bottom: 36px;
}

.cta-banner .btn {
  margin-top: 0;
}

/* ========================================
   15. Timeline (How It Works)
   ======================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 0 32px;
  align-items: start;
  margin-bottom: 52px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-side {
  padding-top: 12px;
}

.timeline-side.left {
  text-align: right;
}

.timeline-side.right {
  text-align: left;
}

.timeline-side.empty {
  visibility: hidden;
}

.timeline-dot {
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  justify-self: center;
}

.timeline-side h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.timeline-side p {
  font-size: 0.9rem;
}

/* ========================================
   16. Two-Column Layout
   ======================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.two-col-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.two-col-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 24px;
}

.two-col-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.two-col-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.two-col-card-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23E08A5B' stroke-width='1.5'/%3E%3Cpath d='M6.5 10.5l2.5 2.5 4.5-5' stroke='%23E08A5B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   17. Accordion (FAQ)
   ======================================== */
.accordion {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.accordion-item.open {
  border-color: rgba(224, 138, 91, 0.3);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: inherit;
  line-height: 1.5;
  min-height: 44px;
  transition: background var(--transition);
  gap: 16px;
}

.accordion-trigger:hover {
  background: var(--surface-soft);
}

.accordion-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body-inner {
  padding: 14px 28px 24px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.85;
}

/* ========================================
   18. Form Base
   ======================================== */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* Make legend behave like a normal block element across all browsers */
fieldset legend {
  float: left;
  width: 100%;
}

fieldset legend + * {
  clear: left;
}

.form-group {
  margin-bottom: 24px;
}

/* Card treatment for questionnaire form groups only */
.form-container .form-group {
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color var(--transition);
}

.form-container .form-group.error-flash {
  border-color: rgba(224, 138, 91, 0.75);
  box-shadow: 0 0 0 3px rgba(224, 138, 91, 0.16);
  animation: errorFlashPulse 1.2s ease-out;
}

@keyframes errorFlashPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 138, 91, 0.38);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(224, 138, 91, 0);
  }
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.required-star {
  color: var(--accent);
  margin-left: 3px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 138, 91, 0.14);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input.field-error,
.form-textarea.field-error {
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

.form-error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 500;
}

.form-error-msg.visible {
  display: block;
}

/* Radio & Checkbox groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin: 0 -10px;
  transition: background var(--transition);
}

.radio-option:hover,
.checkbox-option:hover {
  background: var(--surface-soft-alt);
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  background: var(--accent-subtle);
}

/* Custom radio button */
.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--field-border-strong);
  background: var(--bg-secondary);
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.radio-option input[type="radio"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg-card);
}

.radio-option input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Custom checkbox */
.checkbox-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--field-border-strong);
  background: var(--bg-secondary);
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.checkbox-option input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

.checkbox-option input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.radio-option span,
.checkbox-option span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================
   19. Multi-Step Form (Questionnaire)
   ======================================== */
.progress-wrap {
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.progress-wrap-inner {
  max-width: 760px;
  margin: 0 auto;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-step-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-step-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.progress-track {
  height: 4px;
  background: var(--surface-hover-strong);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* Form step wrapper */
.form-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-heading {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-subheading {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Navigation between steps */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.step-nav-left {
  flex: 1;
}

.step-nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Inline note box */
.inline-note {
  background: var(--accent-subtle);
  border: 1px solid rgba(224, 138, 91, 0.18);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Fieldset option groups, add spacing after legend */
fieldset .radio-group,
fieldset .checkbox-group {
  margin-top: 8px;
}

/* Welcome content block (Section 2 of intake form) */
.welcome-content {
  margin-bottom: 40px;
}

.welcome-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.welcome-content h3:first-child {
  margin-top: 0;
}

.welcome-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.welcome-content ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.welcome-content li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

/* Rating scale (1-10) */
.rating-scale {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.rating-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.rating-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rating-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.rating-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.rating-option span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}

.rating-option input[type="radio"]:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.rating-option input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Conditional sub-field */
.conditional-field {
  display: none;
  margin-top: 12px;
  padding-left: 30px;
}

.conditional-field.visible {
  display: block;
}

/* Thank-you screen */
.thankyou-screen {
  display: none;
  text-align: center;
  padding: 80px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.thankyou-screen.visible {
  display: block;
}

.thankyou-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--accent);
}

.thankyou-screen h2 {
  margin-bottom: 16px;
}

.thankyou-screen p {
  font-size: 1.0625rem;
  margin-bottom: 40px;
}

/* ========================================
   20. Pricing Page
   ======================================== */
.pricing-why {
  max-width: 720px;
  margin: 0 auto;
}

.pricing-why p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.included-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.included-icon svg {
  width: 18px;
  height: 18px;
}

.included-item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-cta-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ========================================
   21. About Page
   ======================================== */
.story-text {
  padding-top: 10px;
  max-width: 680px;
  margin: 0 auto 56px;
}

.story-text p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.resource-link:hover {
  color: var(--text-primary);
  border-color: rgba(224, 138, 91, 0.45);
  background: var(--accent-subtle);
  transform: translateY(-1px);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 680px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

/* team-card hover: pointer devices only, see section 26 */

.team-avatar {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(224, 138, 91, 0.6) 0%, var(--bg-card) 100%);
  border: 5px solid rgba(224, 138, 91, 0.3);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.team-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.team-avatar-photo-wrap {
  width: 150px;
  height: 150px;
}

.team-card h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.team-card p {
  font-size: 0.875rem;
  line-height: 1.75;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}

/* value-card hover: pointer devices only, see section 26 */

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.value-icon svg {
  width: 26px;
  height: 26px;
}

.value-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.875rem;
}

/* ========================================
   22. Contact Page
   ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-subtle);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-photo {
  width: 150px;
  height: 150px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
}

.contact-info-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-info-label {
  font-size: 0.7375rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.contact-info-value {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-info-subvalue {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.contact-info-value a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.contact-info-value a:hover {
  color: var(--accent);
}

.contact-response-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

.availability-card {
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.availability-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cf-cream {
  flood-color: var(--bg-card);
}

.cf-soft-strong {
  flood-color: rgba(140, 129, 119, 0.08);
}

.availability-widget {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
  height: 700px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--surface-hover-strong);
}

.availability-widget iframe {
  display: block;
  width: 100%;
  height: 100% !important;
  border: 0;
  background: var(--surface-soft);
  filter: url(#calendarCreamTintSoft);
}

html[data-theme="dark"] .availability-widget iframe {
  filter: invert(1) hue-rotate(180deg);
}

.availability-widget::-webkit-scrollbar {
  width: 10px;
}

.availability-widget::-webkit-scrollbar-track {
  background: var(--surface-hover-strong);
}

.availability-widget::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.availability-fallback {
  margin-top: 10px;
  font-size: 0.8125rem;
}

.availability-fallback a {
  color: var(--accent);
  text-decoration: underline;
}

.contact-form-heading {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.confirmation-message {
  display: none;
  text-align: center;
  padding: 32px 0;
}

.confirmation-message.visible {
  display: block;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
}

.confirm-icon svg {
  width: 28px;
  height: 28px;
}

.confirmation-message h3 {
  margin-bottom: 10px;
}

.confirmation-message p {
  font-size: 0.9375rem;
}

/* ========================================
   23. Architecture Diagram (How It Works)
   ======================================== */

/* 5-column grid: panel | flow | hardware | flow | panel */
.arch-diagram {
  display: grid;
  grid-template-columns: 1fr 68px 1.5fr 68px 1fr;
  align-items: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

/* Diagram section: darker background so panels stand out */
.arch-section {
  background: var(--bg-primary);
}

/* Demo video */
.page-hero--with-video {
  text-align: left;
}

.page-hero-inner--with-video {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}

.page-hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-hero-text h1,
.page-hero-text p {
  margin: 0;
}

.demo-video-wrap {
  display: flex;
  justify-content: center;
}

.demo-video {
  max-width: 280px;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .page-hero-inner--with-video {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .demo-video {
    max-width: 220px;
  }
}

/* Panels */
.arch-panel {
  background: var(--bg-card);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

.arch-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--surface-soft-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.arch-panel-icon svg {
  width: 26px;
  height: 26px;
}

.arch-panel-icon--accent {
  background: var(--accent-subtle);
  border-color: rgba(224, 138, 91, 0.3);
  color: var(--accent);
}

.arch-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.arch-panel-title--accent {
  color: var(--accent);
}

.arch-panel-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Pills (WhatsApp, Claude, etc.) */
.arch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 4px;
}

.arch-pill {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-hover);
  border-radius: 100px;
  padding: 3px 10px;
}

.arch-pill--dim {
  color: var(--text-muted);
  background: var(--surface-soft);
}

/* Apps list */
.arch-apps-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.arch-apps-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--surface-soft-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: left;
}

.arch-app-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

/* Hardware container (Mac Mini dashed box) */
.arch-hardware {
  border: 1.5px dashed var(--dashed-border);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: var(--surface-soft-alt);
  position: relative;
}

.arch-hardware-label {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius);
}

.arch-apple-icon {
  font-size: 15px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.arch-panel--agent {
  border-color: rgba(224, 138, 91, 0.22);
  background: rgba(224, 138, 91, 0.03);
  width: 100%;
}

.arch-panel--model {
  width: 100%;
  background: var(--surface-soft);
}

/* Internal flow: OpenClaw <-> AI Model (vertical) */
.arch-internal-flow {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 0 12px 0;
  width: 100%;
  justify-content: center;
}

.arch-internal-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.arch-internal-tracks {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 32px;
}

/* Flow connectors (horizontal, between main panels) */
.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
}

.arch-flow-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.arch-flow--accent .arch-flow-label {
  color: rgba(224, 138, 91, 0.65);
}

/* Arrow tracks (horizontal lines with arrowheads) */
.arch-flow-track {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

/* .arch-flow-track--rev: arrowhead is first in DOM, line second — no flex reversal needed */

.arch-flow-line {
  flex: 1;
  height: 1.5px;
  background: var(--line-soft);
}

.arch-flow--accent .arch-flow-line {
  background: rgba(224, 138, 91, 0.35);
}

/* Vertical lines (inside hardware container) */
.arch-flow-line--v {
  flex: none;
  width: 1.5px;
  height: 100%;
  background: var(--line-soft);
}

.arch-flow-head {
  width: 7px;
  height: 10px;
  color: var(--line-muted);
  flex-shrink: 0;
}

.arch-flow--accent .arch-flow-head {
  color: rgba(224, 138, 91, 0.5);
}

/* Vertical arrow tracks (inside arch-internal-tracks) */
.arch-flow-track--down,
.arch-flow-track--up {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 0;
}

.arch-flow-track--down .arch-flow-head,
.arch-flow-track--up .arch-flow-head {
  width: 10px;
  height: 7px;
  color: var(--line-muted);
}

/* Mobile: vertical stack */
@media (max-width: 1000px) {
  .arch-diagram {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .arch-hardware {
    width: 100%;
  }

  .arch-flow {
    flex-direction: row;
    width: 100%;
    padding: 12px 16px;
    justify-content: center;
    gap: 8px;
  }

  .internal-flow {
    flex-direction: column;
    gap: 12px;
  }

  /* Only outer connector tracks go vertical on mobile — internal --down/--up tracks stay as-is */
  .arch-flow .arch-flow-track {
    flex-direction: column;
    width: auto;
    height: 40px;
  }

  .arch-flow .arch-flow-line {
    flex: 1;
    width: 1.5px;
    height: auto;
  }

  /* Rotate outer connector arrowheads for vertical flow on mobile */
  .arch-flow-head {
    width: 10px;
    height: 7px;
  }

  .arch-flow .arch-flow-track:not(.arch-flow-track--rev) .arch-flow-head {
    transform: rotate(90deg); /* ► → ▼ */
  }

  .arch-flow .arch-flow-track--rev .arch-flow-head {
    transform: rotate(90deg); /* ◄ → ▲ */
  }

  .arch-flow--accent .arch-flow-line {
    background: rgba(224, 138, 91, 0.35);
  }
}

/* Logo grids inside arch panels */
.arch-logo-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.arch-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.arch-logo-item img,
.arch-logo-item svg,
.arch-logo-item i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--field-border);
  background: var(--surface-hover);
  overflow: hidden;
  flex-shrink: 0;
}

.arch-logo-item img {
  object-fit: contain;
}

/* Font Awesome icon sizing inside logo boxes */
.arch-logo-item i {
  font-size: 20px;
  line-height: 38px;
  text-align: center;
}

.arch-logo-item span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* App list icons */
.arch-apps-list img,
.arch-apps-list li svg,
.arch-apps-list li i {
  width: 18px;
  font-size: 13px;
  text-align: center;
  flex-shrink: 0;
}

.arch-apps-list img {
  object-fit: contain;
  height: 18px;
  border-radius: 4px;
}

/* ========================================
   24.5 Glossary (AI Explained)
   ======================================== */
.resource-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(224, 138, 91, 0.16), transparent 44%),
    radial-gradient(circle at 80% 28%, rgba(224, 138, 91, 0.12), transparent 36%);
}

.glossary-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.glossary-toolbar {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.glossary-toolbar h2 {
  margin-bottom: 6px;
}

.glossary-toolbar p {
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.az-jump-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.az-letter {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: color var(--transition), border-color var(--transition);
}

.az-letter:hover {
  color: var(--text-primary);
  border-color: rgba(224, 138, 91, 0.4);
}

.az-letter.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.glossary-side {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.glossary-side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.glossary-side-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.glossary-side-card p {
  font-size: 0.875rem;
  margin-bottom: 14px;
  line-height: 1.7;
}

.start-here-list,
.big-picture-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.start-here-pill,
.big-picture-link {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.start-here-pill:hover,
.big-picture-link:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.glossary-entries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.glossary-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 18px);
  transition: border-color var(--transition);
}

.glossary-entry.open {
  border-color: rgba(224, 138, 91, 0.35);
}

.glossary-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
}

.glossary-plus {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1;
  transition: transform var(--transition), color var(--transition);
}

.glossary-entry.open .glossary-plus {
  transform: rotate(45deg);
  color: var(--accent);
}

.glossary-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.glossary-body p {
  padding: 0 22px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.glossary-body p:first-child {
  padding-top: 0;
}

.glossary-body p:last-child {
  padding-bottom: 20px;
}

.glossary-entry-redirect {
  padding: 18px 22px;
}

.glossary-entry-redirect h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.glossary-entry-redirect p {
  font-size: 0.875rem;
}

.glossary-entry-redirect a {
  color: var(--accent);
}

/* ========================================
   24.6 Blog
   ======================================== */
.blog-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(240, 184, 168, 0.18), transparent 42%),
    radial-gradient(circle at 84% 18%, rgba(140, 129, 119, 0.16), transparent 34%);
}

.blog-layout {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.blog-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.blog-toolbar h2 {
  margin-bottom: 6px;
}

.blog-toolbar p {
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.resource-filter-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-filter {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 11px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.resource-filter:hover,
.resource-filter.is-active {
  color: var(--text-primary);
  border-color: rgba(224, 138, 91, 0.4);
  background: var(--accent-subtle);
}

.resource-featured,
.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.blog-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resource-featured {
  padding: 22px;
  border-color: rgba(224, 138, 91, 0.35);
}

.resource-featured-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.resource-featured h3 {
  margin-bottom: 10px;
}

.resource-featured p {
  margin-bottom: 12px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resource-card {
  padding: 18px;
}

.resource-card-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.resource-card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.resource-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-featured h3 a:hover,
.resource-card h3 a:hover {
  color: var(--accent);
}

.resource-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.resource-read-more:hover {
  color: var(--accent-hover);
}

/* ========================================
   Article Page
   ======================================== */
.article-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-byline strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.article-body {
  padding-top: 10px;
  max-width: 680px;
  margin: 0 auto;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 1.375rem;
  margin-top: 48px;
  margin-bottom: 18px;
}

.article-body h3 {
  font-size: 1.125rem;
  margin-top: 32px;
  margin-bottom: 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 10px;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
}

.article-pullquote {
  margin: 36px 0;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.article-cta {
  margin-top: 56px;
}

.breadcrumb-bar {
  display: none;
}

@media (min-width: 768px) {
  .breadcrumb-bar {
    display: block;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 2;
  }

  .breadcrumb-bar-inner {
    padding: 9px 24px;
  }

  .breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    opacity: 0.4;
    margin-right: 6px;
  }

  .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
  }

  .breadcrumb-item a:hover {
    color: var(--text-primary);
  }

  .breadcrumb-item--current {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 420px;
  }
}

.resource-tag {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.73rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.resource-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========================================
   24. Fade-up Animation (IntersectionObserver)
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ========================================
   25. Responsive, max-width 1024px
   ======================================== */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .glossary-layout {
    grid-template-columns: 1fr;
  }

  .glossary-side {
    position: static;
  }
}

/* ========================================
   26. Responsive, max-width 1000px
   ======================================== */
@media (max-width: 1000px) {
  :root {
    --section-padding: 64px 20px;
  }

  /* Nav */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .theme-toggle {
    padding: 8px;
  }

  .theme-toggle-label {
    display: none;
  }

  .theme-toggle--drawer {
    padding: 10px 12px;
  }

  .theme-toggle--drawer .theme-toggle-label {
    display: inline;
  }

  /* Hero */
  .hero p {
    font-size: 1.05rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .screenshot-gallery.hero-gallery {
    width: 450px;
    height: 380px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* Grids */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-row::before {
    display: none;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .included-grid {
    grid-template-columns: 1fr;
  }

  .resource-links {
    gap: 8px;
  }

  .resource-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  /* Timeline mobile: single column */
  .timeline::before {
    left: 27px;
    transform: none;
  }

  .timeline-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }

  .timeline-side.empty {
    display: none;
  }

  .timeline-dot {
    flex-shrink: 0;
    order: 1;
    width: 48px;
    height: 48px;
    font-size: 0.8125rem;
  }

  .timeline-side:not(.empty) {
    order: 2;
    flex: 1;
    text-align: left !important;
  }

  /* proof bar */
  .proof-bar-inner {
    flex-direction: column;
    gap: 14px;
  }

  /* Form */
  .contact-form-card {
    padding: 28px 20px;
  }

  .availability-widget {
    height: 760px;
  }

  .two-col-card {
    padding: 24px;
  }
}

@media (max-width: 1000px) {
  .use-cases-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .proof-chips {
    flex-direction: column;
    width: 100%;
  }

  .proof-chip {
    justify-content: center;
  }

  .form-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Rating scale: tighter on small screens */
  .rating-scale {
    gap: 8px;
  }

  .rating-options {
    gap: 4px;
  }

  .rating-option span {
    width: 34px;
    height: 34px;
    font-size: 0.8125rem;
  }

  .rating-label {
    font-size: 0.75rem;
  }
}

/* ========================================
   27. Touch / Pointer Interaction
   Hover transforms only on true pointer
   devices (mouse). Touch screens use
   :active states for tap feedback instead.
   ======================================== */
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .rating-option:hover span {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--accent-subtle);
  }
}

/* Tap feedback for touch devices */
@media (hover: none) {
  .feature-card:active {
    transform: scale(0.98);
  }

  .team-card:active,
  .value-card:active {
    border-color: rgba(224, 138, 91, 0.3);
  }

  .rating-option:active span {
    border-color: var(--accent);
    background: var(--accent-subtle);
  }

  .checkbox-option:active input[type="checkbox"],
  .radio-option:active input[type="radio"] {
    border-color: var(--accent);
  }
}

/* ========================================
   28. Success Stories Accordion
   ======================================== */
.success-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.success-item.open {
  border-color: rgba(224, 138, 91, 0.35);
  box-shadow: 0 4px 16px rgba(224, 138, 91, 0.1);
}

.success-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  transition: background var(--transition);
  gap: 16px;
}

.success-trigger:hover {
  background: var(--surface-soft);
}

.success-trigger-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.success-trigger h3 {
  font-size: 1.0625rem;
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.success-brief {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.success-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.success-item.open .success-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.success-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.success-body-inner {
  padding: 0 28px 24px;
}

.success-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
}

.success-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin: 0;
}

.success-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.success-graphic {
  margin-top: 4px;
}

.success-graphic img {
  display: block;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.graphic-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
}


/* ========================================
   29. Calendar Booking Section (Questionnaire)
   ======================================== */
.booking-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 700px;
}

.booking-section h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  margin-top: 0;
}

.booking-section > p {
  font-size: 1rem;
  margin-bottom: 28px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.booking-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.booking-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.booking-container iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  filter: url(#calendarCreamTint);
}

html[data-theme="dark"] .booking-container iframe {
  filter: invert(1) hue-rotate(180deg);
}

.booking-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.booking-note a {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition);
}

.booking-note a:hover {
  color: var(--accent-hover);
}

/* ========================================
   29b. Responsive Booking Section
   ======================================== */
@media (max-width: 1000px) {
  .booking-section {
    margin-top: 40px;
    padding-top: 32px;
  }

  .booking-section h3 {
    font-size: 1.125rem;
  }

  .booking-container {
    padding: 16px;
  }

  .booking-container iframe {
    height: 500px;
  }
}

/* ========================================
   28b. Responsive Accordion
   ======================================== */
@media (max-width: 1000px) {
  .success-trigger {
    padding: 20px 20px;
  }

  .success-trigger-text {
    gap: 4px;
  }

  .success-trigger h3 {
    font-size: 1rem;
  }

  .success-brief {
    font-size: 0.8125rem;
  }
}

/* ========================================
   30. Equipment Checklist
   ======================================== */
.checklist-progress-section {
  padding: 32px 24px 0;
}

.checklist-progress {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.checklist-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.checklist-progress-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.checklist-reset-btn {
  appearance: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition);
}

.checklist-reset-btn:hover {
  color: var(--accent);
}

.checklist-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.checklist-group-heading {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.checklist-item:hover {
  border-color: var(--panel-border-strong);
}

.checklist-item:has(.checklist-checkbox:checked) {
  background: var(--accent-subtle);
  border-color: rgba(224, 138, 91, 0.3);
}

.checklist-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 5px;
  border: 1.5px solid var(--field-border-strong);
  background: var(--bg-secondary);
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.checklist-checkbox:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

.checklist-checkbox:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checklist-item-content {
  flex: 1;
  min-width: 0;
}

.checklist-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.checklist-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}

.checklist-item:has(.checklist-checkbox:checked) .checklist-item-title {
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
}

.checklist-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.4;
}

.checklist-badge-required {
  background: var(--accent-subtle);
  color: var(--accent-hover);
}

.checklist-badge-optional {
  background: var(--surface-soft-strong);
  color: var(--text-secondary);
}

.checklist-item-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.checklist-item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checklist-item-links .resource-link {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.8125rem;
}

/* ========================================
   31. Cost & Why (Home)
   ======================================== */
.cost-why-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cost-why-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 14px;
  margin-top: 24px;
}

.cost-why-table td {
  width: 50%;
  vertical-align: top;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-right: 20px;
}

.cost-why-table-point {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--text-primary);
}

.cost-why-table-point::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23E08A5B' stroke-width='1.5'/%3E%3Cpath d='M6.5 10.5l2.5 2.5 4.5-5' stroke='%23E08A5B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.cost-why-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screenshot-gallery {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.screenshot-gallery-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  height: 100%;
  gap: 16px;
  animation: screenshot-gallery-scroll 8s linear infinite;
  animation-play-state: paused;
}

.screenshot-gallery-track.is-ready {
  animation-play-state: running;
}

.screenshot-gallery-item {
  flex-shrink: 0;
  height: 100%;
}

.screenshot-gallery:hover .screenshot-gallery-track {
  animation-play-state: paused;
}

@keyframes screenshot-gallery-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-gallery-track {
    animation: none;
  }
}

.cost-why-screenshot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.cost-why-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.cost-why-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ========================================
   32. Price Cards (Home)
   ======================================== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.price-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.price-card-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.price-card-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ========================================
   33. Before / After (Home)
   ======================================== */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.before-after-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-card);
}

.before-after-card.is-after {
  border-color: rgba(224, 138, 91, 0.45);
  background: var(--accent-subtle);
}

.before-after-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.before-after-card.is-after .before-after-label {
  color: var(--accent);
}

.before-after-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.before-after-item {
  display: flex;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.before-after-time {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 68px;
}

@media (max-width: 1000px) {
  .cost-why-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cost-why-visual {
    order: -1;
  }

  .screenshot-gallery {
    height: 280px;
  }

  .cost-why-table,
  .cost-why-table tbody,
  .cost-why-table tr,
  .cost-why-table td {
    display: block;
    width: 100%;
  }

  .cost-why-table tr {
    margin-bottom: 14px;
  }

  .cost-why-table td {
    padding-right: 0;
  }

  .cost-why-table-point {
    margin-bottom: 4px;
  }

  .checklist-item {
    padding: 16px;
    gap: 12px;
  }

  .checklist-progress-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .price-grid,
  .before-after-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   34. Skills Marketplace Page
   ======================================== */
.marketplace-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent-hover);
  margin-bottom: 16px;
}

.marketplace-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.marketplace-category-count {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.marketplace-split-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -8px;
}

.marketplace-text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}

.marketplace-text-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.marketplace-search-bar {
  position: relative;
  max-width: 480px;
  margin: 0 auto 24px;
}

.marketplace-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.marketplace-search-input {
  width: 100%;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px 12px 44px;
  transition: border-color var(--transition);
}

.marketplace-search-input::placeholder {
  color: var(--text-muted);
}

.marketplace-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.marketplace-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.marketplace-filter-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.marketplace-filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.marketplace-filter-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.marketplace-category-grid [hidden] {
  display: none;
}

.marketplace-filter-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 32px 0 0;
}
