/* ==========================================================================
   TENLY / ELECTRIC COZY - OFFICIAL DESIGN SYSTEM & TOKENS V1.0
   Specification: Tenly_Electric_Cozy_Brand_Color_Spec_v1.pdf
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ---------------- Master Brand Palette ---------------- */
  --tenly-plum: #3B2756;      /* Primary Anchor */
  --tenly-lilac: #B793FF;     /* Signature Personality */
  --tenly-coral: #FF8A5B;     /* Energy Accent */
  --tenly-cream: #FFF6ED;     /* Warm Canvas */
  --tenly-mist: #EEE7F6;      /* UI Support */
  --tenly-ink: #20172E;       /* High-contrast Text & Dark Foundation */
  --tenly-lime: #C9F36B;      /* Tiny Surprise / Delight */

  /* ---------------- Light Mode UI Roles ---------------- */
  --ui-canvas: #FFF6ED;
  --ui-surface: #FFFFFF;
  --ui-raised: #FFFDFC;
  --ui-soft: #EEE7F6;
  --ui-text: #20172E;
  --ui-text-muted: #665C70;
  --ui-border: #E3D8E9;

  /* ---------------- Light Actions ---------------- */
  --action-bg: #3B2756;
  --action-fg: #FFF6ED;
  --action-hover: #513575;
  --action-pressed: #2E1D45;

  --secondary-bg: #EEE7F6;
  --secondary-fg: #3B2756;
  --secondary-hover: #E2D6F1;
  --secondary-pressed: #D8C8E7;

  --accent-bg: #FF8A5B;
  --accent-fg: #20172E;       /* CRITICAL: Ink on Coral for 7.39:1 AA Pass; white fails at 2.17:1 */
  --accent-hover: #FF9E78;
  --accent-pressed: #EE754B;

  --destructive-bg: #B7374D;
  --destructive-fg: #FFF6ED;
  --destructive-hover: #9E2A40;
  --destructive-pressed: #842137;

  --focus-ring: #7542C7;

  /* ---------------- Status & Feedback ---------------- */
  --status-success: #059669;
  --status-success-bg: #E6F7F0;
  --status-warning: #D97706;
  --status-warning-bg: #FEF3C7;
  --status-error: #B7374D;
  --status-error-bg: #FEE2E2;
  --status-info: #4F46E5;
  --status-info-bg: #EEF2FF;

  /* ---------------- Gradients & Shadows ---------------- */
  --gradient-joyful: linear-gradient(135deg, #B793FF 0%, #FF8A5B 100%);
  --gradient-midnight: linear-gradient(135deg, #20172E 0%, #3B2756 100%);
  --gradient-plum-lilac: linear-gradient(135deg, #3B2756 0%, #7542C7 50%, #B793FF 100%);

  --shadow-sm: 0 2px 8px rgba(32, 23, 46, 0.04);
  --shadow-md: 0 10px 28px rgba(32, 23, 46, 0.08);
  --shadow-lg: 0 20px 48px rgba(32, 23, 46, 0.12);
  --shadow-glow: 0 12px 32px rgba(183, 147, 255, 0.28);

  /* ---------------- Typography & Metrics ---------------- */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 11px;          /* Master control radius per spec */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --transition-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
  --transition-base: 250ms cubic-bezier(0.2, 0, 0, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- Dark Mode Palette & Tokens ---------------- */
[data-theme="dark"] {
  --ui-canvas: #20172E;
  --ui-surface: #302240;
  --ui-raised: #3B2D50;
  --ui-soft: #49365F;
  --ui-text: #FFF6ED;
  --ui-text-muted: #C8BED7;
  --ui-border: #59486E;

  --action-bg: #B793FF;
  --action-fg: #20172E;
  --action-hover: #C6A7FF;
  --action-pressed: #A979F4;

  --secondary-bg: #3B2D50;
  --secondary-fg: #FFF6ED;
  --secondary-hover: #49365F;
  --secondary-pressed: #59486E;

  --accent-bg: #FF8A5B;
  --accent-fg: #20172E;
  --accent-hover: #FF9E78;
  --accent-pressed: #EE754B;

  --destructive-bg: #B7374D;
  --destructive-fg: #FFF6ED;
  --destructive-hover: #9E2A40;
  --destructive-pressed: #842137;

  --focus-ring: #C9F36B;

  --status-success: #34D399;
  --status-success-bg: rgba(5, 150, 105, 0.22);
  --status-warning: #FBBF24;
  --status-warning-bg: rgba(217, 119, 6, 0.22);
  --status-error: #F87171;
  --status-error-bg: rgba(183, 55, 77, 0.26);
  --status-info: #A5B4FC;
  --status-info-bg: rgba(79, 70, 229, 0.25);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 12px 36px rgba(183, 147, 255, 0.35);
}

/* ==========================================================================
   Base Styles & Normalization
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--ui-canvas);
  color: var(--ui-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ui-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  color: var(--ui-text-muted);
}

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

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

/* ==========================================================================
   Layout Containers & Grid
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
}

/* ==========================================================================
   Tactile Buttons & Interactive Controls (Page 8 & 12 Spec)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96); /* Exact scale(0.96) press feedback rule */
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.btn-primary {
  background-color: var(--action-bg);
  color: var(--action-fg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--action-hover);
}

.btn-primary:active {
  background-color: var(--action-pressed);
}

.btn-secondary {
  background-color: var(--secondary-bg);
  color: var(--secondary-fg);
  border: 1px solid var(--ui-border);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn-secondary:active {
  background-color: var(--secondary-pressed);
}

.btn-accent {
  background-color: var(--accent-bg);
  color: var(--accent-fg); /* Night Ink on Coral for 7.39:1 AA Pass */
  box-shadow: 0 4px 14px rgba(255, 138, 91, 0.3);
}

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

.btn-accent:active {
  background-color: var(--accent-pressed);
}

.btn-outline {
  background-color: transparent;
  color: var(--ui-text);
  border: 1.5px solid var(--ui-border);
}

.btn-outline:hover {
  background-color: var(--ui-soft);
  border-color: var(--ui-text);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16.5px;
  border-radius: 13px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 246, 237, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ui-border);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

[data-theme="dark"] .site-header {
  background-color: rgba(32, 23, 46, 0.88);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--ui-text);
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-midnight);
  color: var(--tenly-cream);
  border-radius: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(183, 147, 255, 0.3);
}

[data-theme="dark"] .brand-badge {
  background: var(--gradient-joyful);
  color: var(--tenly-ink);
}

/* Light / Dark Mode Brand Logo Switching */
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.brand-logo-light {
  display: block !important;
}

.brand-logo-dark {
  display: none !important;
}

[data-theme="dark"] .brand-logo-light {
  display: none !important;
}

[data-theme="dark"] .brand-logo-dark {
  display: block !important;
}

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

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ui-text-muted);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--ui-text);
  border-bottom-color: var(--tenly-lilac);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: var(--ui-soft);
  border: 1px solid var(--ui-border);
  color: var(--ui-text);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--ui-border);
}

.theme-toggle-btn:active {
  transform: scale(0.94);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--ui-text);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(183, 147, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 138, 91, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--ui-soft);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tenly-plum);
  margin-bottom: 24px;
}

[data-theme="dark"] .hero-eyebrow {
  color: var(--tenly-lilac);
}

.hero-title {
  font-size: 54px;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-title span.highlight-lilac {
  color: #7542C7;
}

[data-theme="dark"] .hero-title span.highlight-lilac {
  color: var(--tenly-lilac);
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ui-text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ui-text-muted);
  padding-top: 18px;
  border-top: 1px dashed var(--ui-border);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tenly-lime);
}

/* ==========================================================================
   Interactive Hero Mockup (Matching Page 5 & 6 Spec)
   ========================================================================== */
.hero-mockup-card {
  background-color: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-mockup-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--ui-soft);
  border-bottom: 1px solid var(--ui-border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background-color: #FF5F56; }
.mockup-dot.yellow { background-color: #FFBD2E; }
.mockup-dot.green { background-color: #27C93F; }

.mockup-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--ui-canvas);
  color: var(--ui-text-muted);
}

.mockup-body {
  padding: 24px;
}

.mockup-welcome {
  margin-bottom: 20px;
}

.mockup-welcome h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.mockup-welcome p {
  font-size: 13.5px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.metric-box {
  background-color: var(--ui-raised);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ui-text-muted);
  margin-bottom: 6px;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ui-text);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--ui-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, #7542C7 0%, #B793FF 100%);
  border-radius: var(--radius-pill);
}

.metric-trend {
  font-size: 12px;
  font-weight: 700;
  color: var(--status-success);
}

.activity-feed {
  background-color: var(--ui-raised);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.activity-header span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ui-text);
}

.badge-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background-color: var(--ui-soft);
  color: var(--ui-text-muted);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background-color: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.activity-icon-sq {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon-sq.coral {
  background-color: var(--tenly-coral);
  color: var(--tenly-ink);
}

.activity-icon-sq.lilac {
  background-color: var(--tenly-lilac);
  color: var(--tenly-ink);
}

.activity-icon-sq.lime {
  background-color: var(--tenly-lime);
  color: var(--tenly-ink);
}

.activity-details {
  display: flex;
  flex-direction: column;
}

.activity-title {
  font-weight: 600;
  color: var(--ui-text);
  font-size: 12.5px;
}

.activity-sub {
  font-size: 11px;
  color: var(--ui-text-muted);
}

.mockup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background-color: var(--ui-surface);
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tenly-plum);
  margin-bottom: 12px;
}

[data-theme="dark"] .section-tag {
  color: var(--tenly-lilac);
}

.section-title {
  font-size: 38px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 17px;
  color: var(--ui-text-muted);
  line-height: 1.6;
}

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

.bento-card {
  background-color: var(--ui-raised);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--tenly-lilac);
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

.bento-card.highlight {
  background: linear-gradient(145deg, var(--ui-raised) 0%, var(--ui-soft) 100%);
  border: 1.5px solid var(--tenly-lilac);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.card-icon.plum {
  background-color: var(--tenly-plum);
  color: var(--tenly-cream);
}

.card-icon.lilac {
  background-color: var(--tenly-lilac);
  color: var(--tenly-ink);
}

.card-icon.coral {
  background-color: var(--tenly-coral);
  color: var(--tenly-ink);
}

.card-icon.lime {
  background-color: var(--tenly-lime);
  color: var(--tenly-ink);
}

.card-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 15px;
  color: var(--ui-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-pills {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--ui-soft);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
}

/* ==========================================================================
   Apple-Design Double-Bezel Mascot Storytelling & 6-Feature Grid
   ========================================================================== */
.story-hero-banner {
  background: rgba(183, 147, 255, 0.08);
  border: 1.5px solid rgba(183, 147, 255, 0.25);
  border-radius: 36px;
  padding: 8px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-lg), 0 0 32px rgba(183, 147, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

[data-theme="dark"] .story-hero-banner {
  background: rgba(183, 147, 255, 0.12);
  border-color: rgba(183, 147, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(183, 147, 255, 0.18);
}

.story-hero-inner {
  background: var(--ui-surface);
  border-radius: 28px;
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .story-hero-inner {
  background: #251B35;
}

.story-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 138, 91, 0.16);
  color: #E66A35;
  margin-bottom: 18px;
}

[data-theme="dark"] .story-tag {
  background: rgba(255, 138, 91, 0.22);
  color: var(--tenly-coral);
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ui-text);
  margin-bottom: 16px;
}

.story-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ui-text-muted);
  margin-bottom: 24px;
}

.story-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ui-text);
}

.story-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-proof-item span.check {
  color: var(--tenly-lime);
  background: rgba(201, 243, 107, 0.25);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

[data-theme="light"] .story-proof-item span.check {
  color: #2D6A12;
  background: rgba(201, 243, 107, 0.4);
}

.story-mascot-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.story-mascot-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 91, 0.3) 0%, rgba(183, 147, 255, 0.2) 50%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
}

.story-mascot-img {
  max-width: 310px;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(32, 23, 46, 0.35));
}

/* 6-Feature Bento Grid with Double-Bezel Hardware Architecture */
.mascot-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mascot-bezel-card {
  background: var(--ui-soft);
  border: 1px solid var(--ui-border);
  border-radius: 30px;
  padding: 6px;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.4s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.mascot-bezel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(183, 147, 255, 0.15);
  border-color: var(--tenly-lilac);
}

.mascot-bezel-card:active {
  transform: scale(0.98);
}

.mascot-bezel-inner {
  background: var(--ui-surface);
  border-radius: 24px;
  padding: 26px 22px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .mascot-bezel-inner {
  background: #251B35;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.mascot-stage {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(183, 147, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
}

[data-theme="dark"] .mascot-stage {
  background: radial-gradient(circle at center, rgba(183, 147, 255, 0.18) 0%, rgba(32, 23, 46, 0) 70%);
}

.mascot-render-img {
  max-height: 185px;
  max-width: 90%;
  width: auto;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  filter: drop-shadow(0 10px 18px rgba(32, 23, 46, 0.25));
}

.mascot-bezel-card:hover .mascot-render-img {
  transform: scale(1.08) translateY(-4px);
}

.mascot-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.mascot-card-badge.lilac {
  background: rgba(183, 147, 255, 0.2);
  color: #6C35C7;
}

[data-theme="dark"] .mascot-card-badge.lilac {
  color: var(--tenly-lilac);
}

.mascot-card-badge.coral {
  background: rgba(255, 138, 91, 0.2);
  color: #D35400;
}

[data-theme="dark"] .mascot-card-badge.coral {
  color: var(--tenly-coral);
}

.mascot-card-badge.lime {
  background: rgba(201, 243, 107, 0.25);
  color: #2D6A12;
}

[data-theme="dark"] .mascot-card-badge.lime {
  color: var(--tenly-lime);
}

.mascot-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ui-text);
  margin-bottom: 10px;
}

.mascot-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ui-text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.mascot-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.mascot-card-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--ui-soft);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
}

@media (max-width: 960px) {
  .story-hero-inner {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    text-align: center;
  }
  .story-tag {
    align-self: center;
    margin: 0 auto 16px;
  }
  .story-proof-row {
    justify-content: center;
  }
  .mascot-feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* ==========================================================================
   Role Tabs (PG Owners / Residents / Admins)
   ========================================================================== */
.role-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  background-color: var(--ui-soft);
  color: var(--ui-text-muted);
  border: 1px solid var(--ui-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--ui-text);
}

.tab-btn.active {
  background-color: var(--action-bg);
  color: var(--action-fg);
  border-color: var(--action-bg);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.role-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--tenly-lime);
  color: var(--tenly-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 14.5px;
}

/* ==========================================================================
   Interactive ROI & Revenue Calculator
   ========================================================================== */
.calc-card {
  background-color: var(--ui-surface);
  border: 1.5px solid var(--ui-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 980px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-label {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ui-text);
}

.slider-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  color: #7542C7;
}

[data-theme="dark"] .slider-value {
  color: var(--tenly-lilac);
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--ui-soft);
  outline: none;
  -webkit-appearance: none;
  accent-color: #7542C7;
}

.calc-results-box {
  background: var(--gradient-midnight);
  color: var(--tenly-cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(183, 147, 255, 0.25);
}

[data-theme="dark"] .calc-results-box {
  background: #3B2D50;
  border-color: var(--tenly-lilac);
}

.calc-res-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 246, 237, 0.15);
}

.calc-res-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.calc-res-label {
  font-size: 12.5px;
  color: var(--tenly-mist);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-res-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--tenly-cream);
}

.calc-res-val.highlight {
  color: var(--tenly-lime);
}

/* ==========================================================================
   The Tenly Independent Group Model (vs Lease vs Franchise)
   ========================================================================== */
.model-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.model-card {
  background-color: var(--ui-surface);
  border: 1.5px solid var(--ui-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.model-card.featured {
  border: 2px solid var(--tenly-lilac);
  background: linear-gradient(180deg, rgba(183, 147, 255, 0.09) 0%, var(--ui-surface) 100%);
  box-shadow: var(--shadow-lg), 0 0 28px rgba(183, 147, 255, 0.22);
}

[data-theme="dark"] .model-card.featured {
  background: linear-gradient(180deg, rgba(183, 147, 255, 0.16) 0%, #291D3C 100%);
  border-color: var(--tenly-lilac);
}

.model-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.model-badge.badge-danger {
  background: rgba(255, 107, 107, 0.15);
  color: #D32F2F;
}

[data-theme="dark"] .model-badge.badge-danger {
  color: #FF8080;
}

.model-badge.badge-warning {
  background: rgba(255, 179, 71, 0.15);
  color: #E67E22;
}

[data-theme="dark"] .model-badge.badge-warning {
  color: #FFB347;
}

.model-badge.badge-success {
  background: rgba(201, 243, 107, 0.28);
  color: #24570E;
}

[data-theme="dark"] .model-badge.badge-success {
  background: rgba(201, 243, 107, 0.22);
  color: var(--tenly-lime);
}

.model-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ui-text);
}

.model-subtitle {
  font-size: 13.5px;
  color: var(--ui-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.model-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.model-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ui-text);
}

.model-icon-bad {
  color: #D32F2F;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.model-icon-good {
  color: #2E7D32;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

[data-theme="dark"] .model-icon-good {
  color: var(--tenly-lime);
}

@media (max-width: 900px) {
  .model-comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Google Play Store & Mobile App Banner
   ========================================================================== */
.app-banner {
  background: linear-gradient(135deg, var(--tenly-plum) 0%, #20172E 100%);
  color: var(--tenly-cream);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(183, 147, 255, 0.25);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.app-banner h2 {
  color: var(--tenly-cream);
  font-size: 36px;
  margin-bottom: 16px;
}

.app-banner p {
  color: var(--tenly-mist);
  font-size: 16.5px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.play-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.play-badge-btn:hover {
  transform: translateY(-2px);
  border-color: var(--tenly-lilac);
}

.play-badge-btn:active {
  transform: scale(0.96);
}

.badge-text small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #A0AEC0;
}

.badge-text strong {
  font-size: 16px;
  font-weight: 700;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-card {
  background-color: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition-fast);
}

.faq-card:hover {
  border-color: var(--tenly-lilac);
}

.faq-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-card p {
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--ui-surface);
  border-top: 1px solid var(--ui-border);
  padding: 64px 0 32px;
  color: var(--ui-text-muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ui-text);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--ui-text);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--ui-border);
  font-size: 13px;
}

/* ==========================================================================
   Legal Document Styles (Privacy, Terms, Data Deletion)
   ========================================================================== */
.legal-page {
  padding: 60px 0 100px;
}

.legal-card {
  background-color: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-header {
  border-bottom: 1px solid var(--ui-border);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.legal-header h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: var(--ui-text-muted);
}

.legal-body h2 {
  font-size: 24px;
  margin: 36px 0 14px;
  color: var(--ui-text);
}

.legal-body h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: var(--ui-text);
}

.legal-body p, .legal-body li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ui-text-muted);
  margin-bottom: 16px;
}

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

.legal-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th, .legal-table td {
  padding: 12px 16px;
  border: 1px solid var(--ui-border);
  text-align: left;
}

.legal-table th {
  background-color: var(--ui-soft);
  color: var(--ui-text);
  font-weight: 700;
}

.legal-alert {
  background-color: var(--ui-soft);
  border-left: 4px solid var(--tenly-lilac);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

/* ==========================================================================
   Form Controls (Data Deletion Form)
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background-color: var(--ui-surface);
  border: 1.5px solid var(--ui-border);
  color: var(--ui-text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--tenly-lilac);
  box-shadow: 0 0 0 3px rgba(183, 147, 255, 0.25);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-span-2 {
    grid-column: span 1;
  }
  .role-split {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .app-banner {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .section-title {
    font-size: 30px;
  }
  .legal-card {
    padding: 24px 20px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Ambient Mascots & Parallax Depth Layer (design-taste-frontend)
   ========================================================================== */
.ambient-mascot {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  z-index: 1;
  transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1);
}

.ambient-mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(59, 39, 86, 0.14));
  transform-origin: center bottom;
}

[data-theme="dark"] .ambient-mascot img {
  filter: drop-shadow(0 18px 45px rgba(183, 147, 255, 0.22));
}

/* Ambient Float Micro-motion */
@keyframes ambientFloatA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.2deg); }
}

@keyframes ambientFloatB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}

/* Specific Section Anchors */
.hero-ambient-mascot {
  right: -36px;
  bottom: -40px;
  width: 180px;
  z-index: 4;
  animation: ambientFloatA 7s ease-in-out infinite;
}

.cozy-ambient-mascot {
  position: absolute;
  left: 24px;
  bottom: -20px;
  width: 140px;
  opacity: 0.95;
  z-index: 2;
  animation: ambientFloatB 8s ease-in-out infinite -2s;
}

.solutions-ambient-mascot {
  right: -20px;
  top: 60px;
  width: 170px;
  opacity: 0.9;
  z-index: 1;
  animation: ambientFloatA 8.5s ease-in-out infinite -4s;
}

.model-ambient-mascot {
  right: -30px;
  top: -40px;
  width: 175px;
  z-index: 3;
  animation: ambientFloatB 9s ease-in-out infinite -1s;
}

.app-ambient-mascot {
  right: 20px;
  bottom: -30px;
  width: 165px;
  z-index: 3;
  animation: ambientFloatA 7.5s ease-in-out infinite -3s;
}

.compliance-ambient-mascot {
  left: -20px;
  bottom: -35px;
  width: 165px;
  z-index: 1;
  animation: ambientFloatB 8s ease-in-out infinite -5s;
}

/* Atmospheric Glow Discs behind Ambients */
.ambient-halo {
  position: absolute;
  inset: 15% 15% 15% 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 147, 255, 0.22) 0%, rgba(255, 138, 91, 0.08) 50%, transparent 75%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

[data-theme="dark"] .ambient-halo {
  background: radial-gradient(circle, rgba(183, 147, 255, 0.28) 0%, rgba(201, 243, 107, 0.08) 50%, transparent 75%);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
  .hero-ambient-mascot {
    right: -10px;
    bottom: -30px;
    width: 130px;
  }
  .solutions-ambient-mascot {
    display: none;
  }
  .model-ambient-mascot {
    right: 0px;
    top: -20px;
    width: 130px;
  }
  .app-ambient-mascot {
    right: 10px;
    bottom: -20px;
    width: 125px;
  }
  .compliance-ambient-mascot {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-ambient-mascot {
    width: 110px;
    right: -5px;
    bottom: -20px;
  }
  .cozy-ambient-mascot {
    width: 100px;
    left: 10px;
    bottom: -15px;
  }
  .model-ambient-mascot {
    display: none;
  }
  .app-ambient-mascot {
    display: none;
  }
}

/* Strict Reduced-Motion Guardrail (Section 6.B) */
@media (prefers-reduced-motion: reduce) {
  .ambient-mascot,
  .hero-ambient-mascot,
  .cozy-ambient-mascot,
  .solutions-ambient-mascot,
  .model-ambient-mascot,
  .app-ambient-mascot,
  .compliance-ambient-mascot {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   AWWWARDS + PINTEREST EDITORIAL HOSPITALITY STYLES (No-SaaS Collective)
   ========================================================================== */

/* 1. Fluid Native Scroll (Zero-Hijack, 100% Butter-Smooth) */
html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}
body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* 2. Micro-Noise Subtle Texture Overlay (Anti-Digital Flatness) */
.bg-noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
[data-theme="dark"] .bg-noise-overlay {
  opacity: 0.038;
}

/* 3. Editorial Hospitality Hero */
.hero-hospitality {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 90px);
  overflow: hidden;
}
.hero-hospitality-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 992px) {
  .hero-hospitality-grid {
    grid-template-columns: 1fr;
  }
}
.hero-art-frame {
  position: relative;
}
.hero-photo-wrapper {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(32, 23, 46, 0.18);
  border: 1px solid var(--ui-border);
  aspect-ratio: 4 / 3.4;
  background: var(--ui-soft);
  position: relative;
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-photo-wrapper:hover .hero-photo-img {
  transform: scale(1.03);
}
.hero-mascot-breakout {
  position: absolute;
  bottom: -45px;
  left: -45px;
  width: 280px;
  z-index: 3;
  filter: drop-shadow(0 20px 32px rgba(32, 23, 46, 0.4));
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero-mascot-breakout {
    width: 200px;
    bottom: -25px;
    left: -15px;
  }
}
.hero-tag-pill {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  background: rgba(32, 23, 46, 0.75);
  backdrop-filter: blur(12px);
  color: #FFF6ED;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 4. The Manifesto Section */
.manifesto-section {
  padding: clamp(70px, 9vw, 130px) 0;
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-raised);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}
@media (max-width: 900px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
  }
}
.manifesto-big-quote {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ui-text);
}
.manifesto-body-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ui-text-muted);
}

/* 5. The 6 Living Truths (Asymmetric Editorial Spreads) */
.truth-spread {
  padding: clamp(70px, 9vw, 120px) 0;
}
.truth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  margin-bottom: clamp(80px, 10vw, 130px);
}
.truth-row.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
.truth-row.reverse > * {
  direction: ltr;
}
@media (max-width: 900px) {
  .truth-row, .truth-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
    margin-bottom: 70px;
  }
}
.truth-visual {
  position: relative;
  border-radius: 28px;
}
.truth-photo {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ui-border);
  display: block;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  background: var(--ui-soft);
}
.truth-mascot-cutout {
  position: absolute;
  width: 230px;
  bottom: -30px;
  right: -30px;
  z-index: 3;
  filter: drop-shadow(0 20px 30px rgba(32, 23, 46, 0.38));
  pointer-events: none;
}
.truth-row.reverse .truth-mascot-cutout {
  right: auto;
  left: -30px;
}
@media (max-width: 768px) {
  .truth-mascot-cutout {
    width: 170px;
    bottom: -15px;
    right: -10px;
  }
  .truth-row.reverse .truth-mascot-cutout {
    left: -10px;
  }
}
.truth-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.truth-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tenly-lilac);
  text-transform: uppercase;
}
.truth-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ui-text);
}
.truth-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ui-text-muted);
  max-width: 54ch;
}
.truth-amenity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.truth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--ui-soft);
  color: var(--ui-text);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--ui-border);
}

/* 6. The Climax Banner: Sleep Like Cozy */
.climax-sleep-banner {
  border-radius: 36px;
  background: var(--gradient-midnight);
  color: #FFF6ED;
  padding: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(32, 23, 46, 0.45);
  border: 1px solid rgba(183, 147, 255, 0.3);
  margin-bottom: clamp(70px, 8vw, 120px);
}
.climax-sleep-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .climax-sleep-grid {
    grid-template-columns: 1fr;
  }
}
.climax-mascot-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.climax-mascot-img {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.55));
}

/* 7. Room Sharing Tiers */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 992px) {
  .rooms-grid {
    grid-template-columns: 1fr;
  }
}
.room-card {
  border-radius: 26px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.room-card:hover {
  transform: translateY(-5px);
  border-color: var(--tenly-lilac);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(183, 147, 255, 0.15);
}
.room-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ui-soft);
  color: var(--tenly-plum);
  margin-bottom: 16px;
  align-self: flex-start;
}
[data-theme="dark"] .room-badge {
  background: rgba(183, 147, 255, 0.15);
  color: var(--tenly-lilac);
}

.editorial-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--tenly-plum);
  text-transform: uppercase;
  margin-bottom: 16px;
}
[data-theme="dark"] .editorial-eyebrow {
  color: var(--tenly-lilac);
}

.room-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tenly-plum);
  color: #FFF6ED;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(59, 39, 86, 0.25);
  white-space: nowrap;
}
[data-theme="dark"] .room-popular-badge {
  background: var(--tenly-lilac);
  color: #20172E;
}

.room-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ui-text-muted);
  padding: 0;
  margin: 0;
}
.room-feature-list li {
  position: relative;
  padding-left: 18px;
}
.room-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tenly-plum);
  opacity: 0.7;
}
[data-theme="dark"] .room-feature-list li::before {
  background: var(--tenly-lilac);
  opacity: 0.9;
}

.room-price {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--ui-text);
  margin: 12px 0 6px;
}
.room-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ui-text-muted);
}

/* 8. High-Conversion Hero Action Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--action-bg);
  color: var(--action-fg) !important;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(59, 39, 86, 0.25), 0 0 0 1px rgba(183, 147, 255, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
}
[data-theme="dark"] .btn-primary-hero {
  box-shadow: 0 10px 28px rgba(183, 147, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.btn-primary-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px rgba(183, 147, 255, 0.4);
}
.btn-primary-hero:active {
  transform: scale(0.98);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: var(--ui-text) !important;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ui-border);
  transition: all 0.25s ease;
}
.btn-secondary-hero:hover {
  background: var(--ui-soft);
  border-color: var(--tenly-lilac);
  transform: translateY(-2px);
}
.btn-secondary-hero:active {
  transform: scale(0.98);
}

/* 9. Objection Handling FAQ Accordion */
.faq-section {
  padding: clamp(70px, 8vw, 120px) 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 40px auto 0;
}
.faq-item {
  border-radius: 20px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.faq-item:hover {
  border-color: var(--tenly-lilac);
  box-shadow: var(--shadow-sm);
}
.faq-question-btn {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ui-text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--tenly-lilac);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 28px;
  color: var(--ui-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.faq-item.is-open .faq-answer {
  max-height: 250px;
  padding: 0 28px 24px;
}

/* 10. Interactive Accessibility & Anchor Navigation Offset */
section[id], section, .climax-sleep-banner {
  scroll-margin-top: 96px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--tenly-lilac) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(183, 147, 255, 0.25) !important;
}

/* 11. Comprehensive Reduced-Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}



