/*
================================================================================
SiriON Health - Brand & Interface Style System
File: styles.css
Project Root: /Users/aoufmohammed/SiriON Website/styles.css

Design Theme: Neo-Brutalist & Soft Card Hybrid
Tokens extracted directly from APP_DESIGN_LANGUAGE.json
WebGL 3D canvas and CSS device mockup fallbacks integrated
================================================================================
*/

/* 1. DESIGN TOKENS & SYSTEM VARIABLES */
:root {
  /* Colors */
  --primary: #7F89DF;
  --primary-dark: #5A63B8;
  --primary-light: #EEF0FF;
  --accent: #A78BFA;
  --on-primary: #FFFFFF;

  --ink: #12122A;
  --background: #F0F2FB;
  --surface: #FFFFFF;

  /* Status Colors */
  --green: #34D399;
  --yellow: #FBBF24;
  --red: #F87171;
  --orange: #F97316;

  /* Subtext & Separators */
  --sub-text: #999999;
  --sub-text-light: #AAAAAA;
  --sub-text-dark: #888888;
  --placeholder: #BBBBBB;
  --divider: #F0F0F0;

  /* Radius Scale */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Transition Durations */
  --t-press: 80ms;
  --t-hover: 150ms;
  --t-anim: 300ms;
}

/* 2. BASE RESET & SCAFFOLD */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--background);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--background);
  line-height: 1.6;
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Scrollbar customization matching brand */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border: 3px solid var(--background);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-dark);
}

/* 3. CORE HYBRID DESIGN COMPONENTS */

/* A. Soft Cards - For informational and explanatory surfaces */
.soft-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0px 8px 32px 0px rgba(127, 137, 223, 0.12);
  padding: 24px;
  transition: transform var(--t-hover) ease, box-shadow var(--t-hover) ease;
}

/* B. Neo-Brutalist Active Elements - Buttons, Active Cards, Selectors */
.nb-card {
  background-color: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0px 0px var(--ink);
  padding: 24px;
  transition: transform var(--t-press) ease, box-shadow var(--t-press) ease;
}

/* Tactile Active hover reveals */
.nb-card.clickable:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px var(--ink);
}

.nb-card.clickable:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px 0px var(--ink);
}

/* Neo-Brutalist Button System */
.nb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background-color: var(--primary);
  color: var(--on-primary);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 4px 4px 0px 0px var(--ink);
  cursor: pointer;
  transform: translate(0, 0);
  transition: transform var(--t-press) cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow var(--t-press) cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color var(--t-hover) ease;
  user-select: none;
}

.nb-button:hover {
  background-color: var(--primary-dark);
}

.nb-button:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px 0px var(--ink);
}

/* Button Variants */
.nb-button.btn-outline {
  background-color: var(--surface);
  color: var(--ink);
}

.nb-button.btn-outline:hover {
  background-color: var(--primary-light);
}

.nb-button[data-size="small"] {
  padding: 8px 16px;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0px 0px var(--ink);
}

.nb-button[data-size="small"]:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px 0px 0px var(--ink);
}

/* Branded Status Badges & Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blue-pill {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.green-pill {
  background-color: #D1FAE5;
  color: #059669;
}

.yellow-pill {
  background-color: #FEF3C7;
  color: #D97706;
}

.red-pill {
  background-color: #FEE2E2;
  color: #DC2626;
}

.purple-pill {
  background-color: #EDE9FE;
  color: #7C3AED;
}

.orange-pill {
  background-color: #FFEADB;
  color: var(--orange);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

.status-dot.pulsing {
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

/* 4. STICKY HEADER STYLING */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(240, 242, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  transition: all var(--t-hover) ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

/* Logo Branded Image + Text */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0px 0px var(--ink);
  object-fit: cover;
}

.logo-text {
  color: var(--ink);
}

.logo-sub {
  color: var(--primary);
  font-weight: 600;
}

/* Desktop Navigation */
.desktop-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.8;
  position: relative;
  padding: 6px 0;
  transition: opacity var(--t-hover) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--t-hover) ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--background);
  z-index: 999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: height 0.3s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
  height: calc(100vh - 72px);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  padding: 40px 24px;
}

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

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  display: block;
  padding: 10px 0;
  border-bottom: 2px solid var(--divider);
}

.mobile-cta-item {
  margin-top: 20px;
}

.mobile-cta {
  width: 100%;
  text-align: center;
}

/* 5. HERO SECTION STYLING */
.hero-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-tag {
  align-self: flex-start;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
}

.hero-title .accent-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--ink);
  opacity: 0.85;
  line-height: 1.6;
}

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

.hero-cta-primary {
  flex-grow: 0;
}

.hero-cta-secondary {
  flex-grow: 0;
}

.btn-icon {
  margin-left: 8px;
  transition: transform var(--t-press) ease;
}

.nb-button:hover .btn-icon {
  transform: translateX(4px);
}

/* Platform Availability Row styling */
.platform-availability-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.platform-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sub-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  background-color: var(--surface);
  border: 1.5px solid var(--divider);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.02);
}

.platform-item svg {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.platform-item-mac-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  -webkit-mask: url('assets/mac-finder.svg') no-repeat center / contain;
  mask: url('assets/mac-finder.svg') no-repeat center / contain;
}

/* 6. SIGNATURE DEVICE SHOWCASE (CSS Premium Mockup) */
.hero-device-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.device-reflection-area {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-showcase-wrapper {
  position: relative;
  width: 320px;
  height: 620px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  perspective: 1000px;
  /* Enable 3D space for tilt effect */
}

/* Base phone mockup style */
.phone-device {
  position: relative;
  width: 290px;
  height: 590px;
  background-color: #0b0b14;
  border-radius: 44px;
  border: 11px solid #1a1a24;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 20px 45px rgba(18, 18, 42, 0.25),
    inset 0 0 10px rgba(255, 255, 255, 0.1),
    inset 0 0 4px rgba(0, 0, 0, 0.8);
  transition: transform 0.1s ease-out, box-shadow var(--t-hover) ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Camera cutouts and notch styling */
.phone-camera-cutout {
  position: absolute;
  z-index: 10;
  background-color: #000000;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.15);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Side button general styling */
.phone-button-left,
.phone-button-right {
  position: absolute;
  background: linear-gradient(to bottom, #444, #222);
  border: 1px solid #111;
  z-index: 0;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1. Apple-style variant: Inspired by iPhone 16 Pro */
.phone-device.device-apple {
  border-radius: 46px;
  border-color: #1b1b22;
  box-shadow:
    0 0 0 2.5px #555562,
    /* Polished titanium look edge */
    0 25px 50px rgba(18, 18, 42, 0.3),
    inset 0 0 12px rgba(255, 255, 255, 0.15),
    inset 0 0 5px rgba(0, 0, 0, 0.9);
}

.phone-device.device-apple .phone-camera-cutout {
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 25px;
  border-radius: 13px;
}

/* Apple Buttons */
.phone-device.device-apple .phone-button-left.action-btn {
  left: -14px;
  top: 100px;
  width: 3px;
  height: 20px;
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.4);
}

.phone-device.device-apple .phone-button-left.volume-up {
  left: -14px;
  top: 136px;
  width: 3px;
  height: 44px;
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.4);
}

.phone-device.device-apple .phone-button-left.volume-down {
  left: -14px;
  top: 194px;
  width: 3px;
  height: 44px;
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.4);
}

.phone-device.device-apple .phone-button-right.power-btn {
  right: -14px;
  top: 150px;
  width: 3px;
  height: 68px;
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* 2. Android-style variant: Premium Android look */
.phone-device.device-android {
  border-radius: 38px;
  border-color: #13131a;
  box-shadow:
    0 0 0 2.5px #3a3a46,
    /* Dark aluminum edge */
    0 25px 50px rgba(18, 18, 42, 0.28),
    inset 0 0 8px rgba(255, 255, 255, 0.1),
    inset 0 0 4px rgba(0, 0, 0, 0.9);
}

.phone-device.device-android .phone-camera-cutout {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Android Buttons (All on the right side) */
.phone-device.device-android .phone-button-left {
  display: none;
}

.phone-device.device-android .phone-button-right.power-btn {
  right: -14px;
  top: 160px;
  width: 3px;
  height: 44px;
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Android Volume Rocker - simulated with a single long button */
.phone-device.device-android::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 96px;
  width: 3px;
  height: 52px;
  background: linear-gradient(to bottom, #444, #222);
  border: 1px solid #111;
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  z-index: 0;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Screen container */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
  z-index: 1;
  transition: border-radius 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.phone-device.device-apple .phone-screen {
  border-radius: 35px;
}

.phone-device.device-android .phone-screen {
  border-radius: 27px;
}

/* Screen glare & glass sheen overlays */
.phone-glare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(0, 0, 0, 0) 45.1%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 4;
}

.phone-sheen-overlay {
  position: absolute;
  top: -150%;
  left: -150%;
  width: 400%;
  height: 400%;
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 48%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(255, 255, 255, 0) 52%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 5;
  transition: none;
}

/* Trigger sheen sweep on mockup hover */
.phone-device:hover .phone-sheen-overlay {
  top: 150%;
  left: 150%;
  transition: top 1.2s cubic-bezier(0.1, 0.8, 0.3, 1), left 1.2s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* Screenshots image styling & transitions */
.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(0.97) translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  position: absolute;
  top: 0;
  left: 0;
}

.phone-screenshot.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  position: relative;
  z-index: 2;
}

/* Static Controls for screenshot rotation */
.model-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 320px;
  margin: 16px auto 0 auto;
  background-color: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: 3px 3px 0px var(--ink);
  z-index: 5;
}

.model-control-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 80ms ease, color var(--t-hover) ease;
}

.model-control-btn:hover {
  color: var(--primary-dark);
  transform: scale(1.1);
}

.model-control-btn:active {
  transform: scale(0.9);
}

.model-screen-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.model-screen-indicator .screen-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}

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

.dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--divider);
  border: none;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-hover) ease;
}

.dot-indicator.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

/* Ambient depth shadow glow */
.device-ambient-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 137, 223, 0.15) 0%, rgba(240, 242, 251, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* 7. ABOUT SECTION STYLING (Outpatient Clinic focus) */
.positioning-section {
  padding: 100px 24px;
  background-color: var(--surface);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-tag-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  opacity: 0.75;
}

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

.position-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  border-radius: 12px;
  color: var(--primary-dark);
}

.stroke-primary {
  color: var(--primary-dark);
}

.card-title-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.card-body-text {
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.8;
  line-height: 1.6;
}

/* 8. FEATURES SECTION STYLING */
.features-section {
  padding: 100px 24px;
  background-color: var(--background);
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.feature-badge {
  align-self: flex-start;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.feature-desc {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
}

.feature-card.highlight-feature {
  grid-column: span 2;
  background-color: var(--primary-light);
}

/* Inline Sync flow diagram inside Card */
.sync-status-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: auto;
  width: 100%;
  box-shadow: 2px 2px 0px var(--ink);
}

.sync-stage {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stage-dot.green {
  background-color: var(--green);
}

.stage-dot.orange {
  background-color: var(--orange);
}

.stage-dot.blue {
  background-color: var(--primary);
}

.sync-arrow {
  display: flex;
  align-items: center;
  color: var(--ink);
  opacity: 0.4;
}

/* 9. SCENARIOS SECTION STYLING (In Practice Grid Layout) */
.scenarios-section {
  padding: 100px 24px;
  background-color: var(--surface);
  border-top: 1px solid var(--divider);
}

.in-practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.practice-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 32px;
  background-color: var(--surface);
}

.practice-icon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: var(--primary);
}

.practice-icon-header svg {
  width: 32px;
  height: 32px;
}

.practice-step-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  opacity: 0.15;
}

.practice-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.practice-desc {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* 10. AUDIENCE SECTION STYLING */
.audience-section {
  padding: 100px 24px;
  background-color: var(--background);
  border-bottom: 1px solid var(--divider);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.audience-type {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.audience-desc {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
}

.not-for-card {
  border-left: 4px solid var(--red);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.not-for-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.warning-tag {
  align-self: flex-start;
}

.not-for-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.not-for-body {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* 11. HOW IT WORKS SECTION (Sync flow) */
.how-works-section {
  padding: 100px 24px;
  background-color: var(--surface);
}

.sync-diagram-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  background-color: var(--background);
  padding: 40px;
}

.diagram-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0px 4px 16px rgba(127, 137, 223, 0.05);
  position: relative;
}

.step-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.step-detail {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.5;
}

.tech-tag {
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 4px;
}

.diagram-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.6;
}

/* 12. FAQ ACCORDION PANEL STYLING */
.faq-section {
  padding: 100px 24px;
  background-color: var(--background);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  padding: 0;
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background-color var(--t-hover) ease;
}

.faq-toggle:hover {
  background-color: var(--primary-light);
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.faq-arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform var(--t-anim) ease;
}

.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-anim) cubic-bezier(0, 1, 0, 1);
}

.faq-answer-pane.open {
  max-height: 500px;
  transition: max-height var(--t-anim) cubic-bezier(1, 0, 1, 0);
}

.faq-answer-text {
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.6;
  border-top: 1px solid var(--divider);
}

/* 13. PRODUCT AVAILABILITY SECTION STYLING */
.waitlist-section {
  padding: 100px 24px;
  background-color: var(--surface);
}

.waitlist-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px;
  background-color: var(--background);
}

.waitlist-content-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.waitlist-tag {
  align-self: flex-start;
}

.waitlist-heading {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
}

.waitlist-subheading {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.6;
}

.waitlist-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.bullet-icon {
  display: flex;
  align-items: center;
  color: var(--green);
}

/* Availability Card Info Pane overrides */
.waitlist-form-container {
  background-color: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 4px 4px 0px var(--ink);
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.availability-info-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.availability-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.availability-desc {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}

.availability-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  border-top: 2px solid var(--divider);
  padding-top: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 12px;
}

.detail-label {
  color: var(--sub-text-dark);
}

.detail-value {
  color: var(--ink);
  text-align: right;
}

.inquiry-link {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

/* Spinner */
.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--on-primary);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 14. FOOTER STYLING */
.site-footer {
  background-color: var(--ink);
  color: var(--surface);
  padding: 80px 24px 40px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-branding {
  margin-bottom: 48px;
  max-width: 400px;
}

.footer-branding .logo-wrapper {
  color: var(--surface);
  margin-bottom: 16px;
}

.footer-branding .logo-img {
  border-color: var(--surface);
  box-shadow: 2px 2px 0px 0px var(--surface);
}

.footer-branding .logo-sub {
  color: var(--accent);
}

.footer-brand-desc {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.footer-link {
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity var(--t-hover) ease, color var(--t-hover) ease;
}

.footer-link:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-static-info {
  font-size: 0.9rem;
  opacity: 0.65;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  opacity: 0.55;
  line-height: 1.5;
}

.footer-company-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.footer-company-link:hover {
  color: var(--surface);
}

/* 15. RESPONSIVE DESIGN - MEDIA QUERIES */

/* Breakpoint Medium (Tablets) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }

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

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

  .feature-card.highlight-feature {
    grid-column: span 2;
  }

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

  .sync-diagram-wrapper {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .diagram-arrow {
    transform: rotate(90deg);
  }

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

/* Breakpoint Small (Mobile Landscape) */
@media (max-width: 899px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-device-showcase {
    order: 2;
  }

  .hero-content {
    order: 1;
    align-items: center;
    text-align: center;
  }

  .hero-tag {
    align-self: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .platform-availability-row {
    align-items: center;
  }

  .platform-icons {
    justify-content: center;
  }

  .in-practice-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-card-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }

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

  .platform-item {
    padding: 6px 12px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .platform-item svg,
  .platform-item-mac-icon {
    width: 16px;
    height: 16px;
  }
}

/* Breakpoint Compact (Phones < 600px) */
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta-wrapper {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .device-showcase-wrapper {
    width: 280px;
    height: 540px;
  }

  .phone-device {
    width: 250px;
    height: 510px;
    border-radius: 36px;
    border-width: 9px;
  }

  .phone-device.device-apple {
    border-radius: 38px;
  }

  .phone-device.device-android {
    border-radius: 32px;
  }

  .phone-device.device-apple .phone-screen {
    border-radius: 30px;
  }

  .phone-device.device-android .phone-screen {
    border-radius: 23px;
  }

  .phone-device.device-apple .phone-camera-cutout {
    width: 80px;
    height: 20px;
    border-radius: 10px;
    top: 10px;
  }

  .model-controls {
    width: 280px;
  }

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

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

  .feature-card.highlight-feature {
    grid-column: span 1;
  }

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

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

  .waitlist-form-container {
    padding: 20px;
  }
}

/* Policy pages */
.policy-page {
  background: var(--background);
}

.policy-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.policy-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.policy-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
}

.policy-subtitle {
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.78;
  max-width: 60ch;
}

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

.policy-meta div,
.policy-toc,
.policy-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(127, 137, 223, 0.12);
}

.policy-meta div {
  padding: 16px;
  border: 1px solid var(--divider);
}

.policy-meta span {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sub-text-dark);
  margin-bottom: 6px;
}

.policy-meta strong {
  font-size: 1rem;
  color: var(--ink);
}

.policy-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--divider);
}

.policy-toc h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.policy-toc a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--divider);
  color: var(--ink);
  opacity: 0.8;
  font-weight: 700;
}

.policy-toc a:hover {
  color: var(--primary-dark);
  opacity: 1;
}

.policy-content {
  padding: 32px;
  border: 1px solid var(--divider);
}

.policy-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.policy-content p,
.policy-content li {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.9;
}

.policy-content ul,
.policy-content ol {
  margin: 0 0 16px 22px;
}

.policy-content li {
  margin-bottom: 8px;
}

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

  .policy-toc {
    position: static;
  }

  .policy-meta {
    grid-template-columns: 1fr;
  }
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  background: var(--surface);
  border: 1.5px solid var(--ink);
}