:root {
  --ink: #0d1b1e;
  --fog: #f4efe6;
  --sand: #f6e2c6;
  --sunset: #f77f5a;
  --teal: #1f7a7a;
  --teal-dark: #0f4c4c;
  --slate: #3f4b4f;
  --white: #ffffff;
  --shadow: 0 30px 60px rgba(13, 27, 30, 0.16);
  
  /* Typography System */
  --font-heading: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-medical: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  
  /* Font Size Hierarchy - Optimized for readability */
  --font-size-xs: 0.75rem;      /* 12px - labels, captions */
  --font-size-sm: 0.875rem;     /* 14px - small text, metadata */
  --font-size-base: 1rem;        /* 16px - body text */
  --font-size-lg: 1.125rem;      /* 18px - lead text */
  --font-size-xl: 1.25rem;       /* 20px - small headings */
  --font-size-2xl: 1.5rem;       /* 24px - section headings */
  --font-size-3xl: 1.875rem;     /* 30px - page headings */
  --font-size-4xl: 2.25rem;      /* 36px - hero headings */
  --font-size-5xl: 3rem;         /* 48px - display headings */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff7eb 0%, #f2efe8 45%, #edf2f0 100%);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--ink);
  margin-bottom: 0.5em;
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

/* Medical Terms - Professional serif font */
.medical-term,
.medical-content,
.question-stem,
.explanation,
.question-body p {
  font-family: var(--font-medical);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
}

/* Monospace for data/stats */
.stat,
.stat-value,
.data-value,
.metric-value,
.usage-value,
.score,
.percentage,
code,
pre,
.monospace {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.025em;
}

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

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

.muted {
  color: var(--slate);
  font-size: 0.92rem;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 27, 30, 0.08);
  z-index: 10;
}

/* Logged-in header - minimal header for authenticated users */
.logged-in-header {
  position: sticky;
  top: 0;
  background: rgba(244, 239, 230, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 27, 30, 0.08);
  z-index: 10;
}

.logged-in-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logged-in-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-heading);
}

.header-link {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.header-link:hover {
  color: var(--teal);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.announcement-bar {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.announcement-link {
  color: var(--sand);
  font-weight: 600;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 24px;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
}

.nav a {
  color: var(--slate);
}

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

.ghost-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--slate);
}

.btn {
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(31, 122, 122, 0.15);
}

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

.btn.tertiary {
  background: transparent;
  border: 1px solid rgba(13, 27, 30, 0.2);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 27, 30, 0.15);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(13, 27, 30, 0.2);
  border-radius: 999px;
  padding: 10px 12px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  padding: 90px 0 120px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 3vw + 1.6rem, 3.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
}

.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--slate);
  margin-bottom: 24px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.stat {
  font-family: var(--font-mono);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

.stat-label {
  display: block;
  color: var(--slate);
  font-size: 0.95rem;
}

.hero-carousel-wrapper {
  position: relative;
  z-index: 2;
}

.hero-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.hero-carousel::-webkit-scrollbar {
  display: none;
}

.hero-card {
  background: transparent;
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-radius: 24px;
  z-index: 0;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid rgba(13, 27, 30, 0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(13, 27, 30, 0.1);
}

.hero-nav-btn:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(31, 122, 122, 0.3);
}

.hero-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-nav-btn:disabled:hover {
  background: var(--white);
  color: inherit;
  border-color: rgba(13, 27, 30, 0.1);
}

.hero-nav-prev {
  left: -22px;
}

.hero-nav-next {
  right: -22px;
}

@media (max-width: 768px) {
  .hero-carousel-wrapper {
    padding: 0 40px;
  }
  
  .hero-nav-btn {
    width: 36px;
    height: 36px;
  }
  
  .hero-nav-prev {
    left: -10px;
  }
  
  .hero-nav-next {
    right: -10px;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  margin-bottom: 18px;
}

.chip {
  background: var(--sand);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card-list {
  list-style: none;
  margin: 16px 0 22px;
  color: var(--slate);
}

.card-list li + li {
  margin-top: 6px;
}

.card-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-addon {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-addon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 122, 122, 0.3);
}

.addon-badge-inline {
  display: inline-block;
  background: rgba(31, 122, 122, 0.1);
  color: var(--teal-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-left: 6px;
}

.card-features {
  font-size: 0.9rem;
  color: var(--slate);
  margin-top: 16px;
  margin-bottom: 20px;
  font-style: italic;
}

.hero-gradient {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(247, 127, 90, 0.35) 0%, rgba(246, 226, 198, 0) 70%);
  top: -120px;
  right: -100px;
  z-index: 1;
}

.strip {
  background: var(--ink);
  color: var(--white);
  padding: 50px 0;
}

.strip h2 {
  color: var(--white);
}

.strip-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
}

.pill.secondary {
  background: rgba(31, 122, 122, 0.16);
  color: var(--teal-dark);
}

.section {
  padding: 90px 0;
}

.section.alternate {
  background: var(--fog);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(2rem, 2vw + 1.2rem, 2.8rem);
}

.section-head p {
  color: var(--slate);
  max-width: 640px;
}

.adaptive-hero {
  padding: 70px 0 40px;
}

.adaptive-header {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.strategy-card {
  background: var(--white);
  padding: 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.strategy-type {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0 6px;
}

.strategy-note {
  margin-top: 12px;
  color: var(--slate);
  font-size: 0.95rem;
}

.metrics-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.metric-card {
  background: var(--white);
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(13, 27, 30, 0.08);
  font-family: var(--font-heading);
}

.metric-card p {
  font-size: 1.6rem;
  font-weight: 600;
}

.metric-card span {
  color: var(--slate);
  font-size: 0.9rem;
}

.adaptive-grid,
.visual-grid,
.insights-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--white);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(13, 27, 30, 0.08);
}

.bar-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.bar-list li {
  display: grid;
  gap: 8px;
}

.bar {
  background: rgba(13, 27, 30, 0.08);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--sunset));
}

.question-preview {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.question-preview li {
  background: var(--fog);
  padding: 12px;
  border-radius: 12px;
}

.question-preview p {
  margin-top: 8px;
}

.heatmap {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.heat {
  background: rgba(31, 122, 122, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.heat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 122, 122, 0.2), rgba(247, 127, 90, 0.25));
  width: var(--heat, 0%);
  z-index: 0;
}

.heat span,
.heat strong {
  position: relative;
  z-index: 1;
}

.trend-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.trend-item {
  display: grid;
  gap: 8px;
}

.streak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.streak-day {
  background: rgba(31, 122, 122, 0.12);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.streak-day::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(31, 122, 122, 0.2), rgba(247, 127, 90, 0.24));
  width: var(--heat, 0%);
  z-index: 0;
}

.streak-day span,
.streak-day strong {
  position: relative;
  z-index: 1;
}

.learning-path {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.path-overview ul {
  margin-top: 12px;
  padding-left: 18px;
}

.path-steps {
  display: grid;
  gap: 12px;
}

.path-step {
  display: grid;
  gap: 8px;
  background: var(--white);
  padding: 12px;
  border-radius: 12px;
}

.progress {
  background: rgba(13, 27, 30, 0.1);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--sunset));
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature {
  background: var(--white);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(13, 27, 30, 0.08);
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  background: var(--white);
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(13, 27, 30, 0.08);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--sunset);
  display: inline-block;
  margin-bottom: 10px;
}

/* Plan Comparison Table */
.plan-comparison-wrapper {
  margin: 48px 0;
  overflow-x: auto;
  font-family: var(--font-heading);
}

.plan-comparison-table {
  width: 100%;
  min-width: 800px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: var(--font-heading);
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-badge-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  height: 50px;
  position: relative;
  border-radius: 16px 16px 0 0;
  align-items: stretch;
}

.comparison-badge-row .comparison-feature-col {
  background: transparent;
  padding: 0;
  border: none;
}

.comparison-badge-row .comparison-plan-col {
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}

.comparison-badge-row .comparison-plan-col:first-of-type {
  border-left: none;
}

.comparison-badge-row .comparison-plan-col.best-value {
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: none;
  margin-left: -1px;
  margin-right: -1px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.comparison-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  border-radius: 0;
  align-items: stretch;
  font-family: var(--font-heading);
}

.comparison-feature-col {
  padding: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

.comparison-plan-col {
  padding: 24px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.comparison-header .comparison-plan-col.best-value {
  background: rgba(255, 255, 255, 0.15);
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  border-top: none;
  margin-left: -1px;
  margin-right: -1px;
  z-index: 1;
}

.best-badge {
  background: var(--sunset);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(247, 127, 90, 0.4);
  white-space: nowrap;
  z-index: 10;
  line-height: 1.2;
  font-family: var(--font-heading);
  margin: 0 auto;
  display: block;
  width: fit-content;
}

.plan-header {
  position: relative;
  width: 100%;
}

.plan-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  margin-top: 0;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: var(--line-height-tight);
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  line-height: var(--line-height-tight);
}

.plan-price span {
  font-size: 0.5em;
  font-weight: 400;
  opacity: 0.9;
}

.plan-duration {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  line-height: var(--line-height-normal);
}

.plan-effective {
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
  font-family: var(--font-heading);
  line-height: var(--line-height-normal);
}

.comparison-body {
  display: grid;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(13, 27, 30, 0.08);
  transition: background 0.2s ease;
  align-items: stretch;
  min-height: 60px;
}

.comparison-row:hover {
  background: rgba(31, 122, 122, 0.04);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row .comparison-feature-col {
  background: var(--fog);
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(13, 27, 30, 0.08);
}

.comparison-row .comparison-plan-col {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  text-align: center;
  font-weight: 400;
}

.comparison-row .comparison-plan-col.best-value {
  background: rgba(31, 122, 122, 0.06);
  font-weight: 600;
  color: var(--teal-dark);
  border-left: 2px solid rgba(31, 122, 122, 0.2);
  border-right: 2px solid rgba(31, 122, 122, 0.2);
  margin-left: -1px;
  margin-right: -1px;
  font-family: var(--font-body);
}

.comparison-row.actions-row {
  padding: 24px;
  background: var(--fog);
}

.comparison-row.actions-row .comparison-plan-col {
  padding: 0;
}

.comparison-row.actions-row .comparison-plan-col.best-value {
  background: transparent;
  border-left: none;
  border-right: none;
  margin-left: 0;
  margin-right: 0;
}

.comparison-row.actions-row .comparison-feature-col {
  background: transparent;
}

.comparison-row.actions-row .btn {
  box-shadow: 0 1px 4px rgba(13, 27, 30, 0.1);
}

.comparison-row.actions-row .btn.primary {
  box-shadow: 0 1px 4px rgba(31, 122, 122, 0.2);
}

.comparison-row.actions-row .btn:hover {
  box-shadow: 0 2px 6px rgba(13, 27, 30, 0.12);
  transform: translateY(0);
}

.comparison-row.actions-row .btn.primary:hover {
  box-shadow: 0 2px 6px rgba(31, 122, 122, 0.25);
}

@media (max-width: 1024px) {
  .plan-comparison-table {
    display: none;
  }
  
  .plan-grid {
    display: grid;
  }
}

@media (min-width: 1025px) {
  .plan-grid {
    display: none;
  }
}

.plan-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan {
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(13, 27, 30, 0.08);
}

.plan.highlight {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow);
}

/* Add-ons Section */
.addons-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 32px;
}

.addon-card {
  position: relative;
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  border: 2px solid rgba(13, 27, 30, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.addon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--teal);
}

.addon-card.highlight {
  border-color: var(--sunset);
  border-width: 3px;
  background: linear-gradient(135deg, rgba(247, 127, 90, 0.05) 0%, rgba(31, 122, 122, 0.05) 100%);
}

.addon-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--sunset);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.addon-icon {
  font-size: 3em;
  margin-bottom: 16px;
  text-align: center;
}

.addon-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--ink);
  text-align: center;
}

.addon-description {
  color: var(--slate);
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.6;
}

.addon-pricing {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--fog);
  border-radius: 12px;
}

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(13, 27, 30, 0.1);
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-item.featured {
  background: rgba(31, 122, 122, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 8px;
  border-bottom: none;
}

.pricing-name {
  font-weight: 600;
  color: var(--ink);
}

.pricing-value {
  color: var(--slate);
  font-size: 0.95rem;
}

.addon-card .btn {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.addons-note {
  margin-top: 32px;
  padding: 20px;
  background: rgba(31, 122, 122, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--teal);
}

.addons-note p {
  color: var(--slate);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .addons-grid {
    grid-template-columns: 1fr;
  }
}

.price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 12px 0 16px;
}

.price span {
  display: block;
  font-size: 0.9rem;
  color: var(--slate);
}

.plan ul {
  list-style: none;
  margin-bottom: 18px;
  color: var(--slate);
}

.plan li + li {
  margin-top: 6px;
}

.notice {
  margin: 20px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: var(--font-heading);
}

.notice.success {
  background: rgba(31, 122, 122, 0.12);
  color: var(--teal-dark);
}

.notice.error {
  background: rgba(247, 127, 90, 0.15);
  color: #b3482f;
}

.faq-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq {
  background: var(--white);
  padding: 22px;
  border-radius: 18px;
}

/* FAQ Page Accordion Styles */
.faq-category {
  margin-bottom: 50px;
}

.faq-category h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--font-heading);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: var(--white);
  border: 1px solid rgba(13, 27, 30, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-accordion-item:hover {
  box-shadow: 0 2px 8px rgba(13, 27, 30, 0.08);
}

.faq-accordion-item.is-open {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(31, 122, 122, 0.15);
}

.faq-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.faq-accordion-header:hover {
  color: var(--teal-dark);
}

.faq-accordion-header span {
  flex: 1;
  padding-right: 16px;
}

.accordion-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--teal);
}

.faq-accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-accordion-item.is-open .faq-accordion-content {
  max-height: 2000px;
  padding: 0 24px 24px;
}

.faq-accordion-content p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--slate);
}

.faq-accordion-content p:last-child {
  margin-bottom: 0;
}

.faq-accordion-content ul {
  margin: 12px 0 12px 20px;
  padding-left: 0;
}

.faq-accordion-content li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--slate);
}

.faq-accordion-content a {
  color: var(--teal);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.faq-accordion-content a:hover {
  color: var(--teal-dark);
}

.faq-support {
  margin-top: 60px;
  padding: 40px;
  background: var(--fog);
  border-radius: 18px;
  text-align: center;
}

.faq-support h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.faq-support p {
  color: var(--slate);
  margin-bottom: 24px;
}

.faq-support-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .faq-accordion-header {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .faq-accordion-content {
    padding: 0 20px;
  }
  
  .faq-accordion-item.is-open .faq-accordion-content {
    padding: 0 20px 20px;
  }
  
  .faq-support {
    padding: 30px 20px;
  }
  
  .faq-support-actions {
    flex-direction: column;
  }
  
  .faq-support-actions .btn {
    width: 100%;
  }
}

/* FAQ Carousel Styles */
.faq-carousel-wrapper {
  position: relative;
  margin: 40px 0;
  padding: 0 50px;
}

.faq-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.faq-carousel::-webkit-scrollbar {
  display: none;
}

.faq-card {
  background: var(--white);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(13, 27, 30, 0.08);
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 27, 30, 0.12);
}

.faq-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.4;
}

.faq-card p {
  color: var(--slate);
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.6;
}

.faq-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  margin-top: auto;
}

.faq-link:hover {
  color: var(--teal-dark);
}

.faq-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid rgba(13, 27, 30, 0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(13, 27, 30, 0.1);
}

.faq-nav-btn:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(31, 122, 122, 0.3);
}

.faq-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.faq-nav-prev {
  left: 0;
}

.faq-nav-next {
  right: 0;
}

.faq-view-all {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .faq-carousel-wrapper {
    padding: 0 40px;
  }
  
  .faq-card {
    min-width: 260px;
  }
  
  .faq-nav-btn {
    width: 36px;
    height: 36px;
  }
  
  .faq-nav-prev {
    left: -10px;
  }
  
  .faq-nav-next {
    right: -10px;
  }
}

.cta {
  padding: 90px 0;
  background: linear-gradient(135deg, rgba(31, 122, 122, 0.12), rgba(247, 127, 90, 0.18));
}

.cta-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.cta-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1 1 200px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(13, 27, 30, 0.2);
  font-family: var(--font-heading);
}

.saved-tests {
  display: grid;
  gap: 18px;
}

.saved-test-card {
  background: var(--white);
  padding: 18px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 10px 20px rgba(13, 27, 30, 0.08);
}

.saved-test-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

.status-pill.in-progress {
  background: rgba(247, 127, 90, 0.15);
  color: #b3482f;
}

.status-pill.complete {
  background: rgba(31, 122, 122, 0.15);
  color: var(--teal-dark);
}

.usage-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.usage-card {
  background: var(--white);
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(13, 27, 30, 0.08);
}

.usage-bar {
  height: 8px;
  background: rgba(13, 27, 30, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}

.usage-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--sunset));
}

.usage-note {
  color: var(--slate);
  font-size: 0.9rem;
}

.billing-filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 16px 0 24px;
  font-family: var(--font-heading);
}

.billing-filters label {
  display: block;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 6px;
}

.billing-filters select,
.billing-filters input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(13, 27, 30, 0.2);
  font-family: var(--font-heading);
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-heading);
}

.billing-table th,
.billing-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(13, 27, 30, 0.08);
}

.billing-table th {
  color: var(--slate);
  font-weight: 600;
}

.billing-links a {
  margin-right: 10px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.billing-links a:hover {
  text-decoration: underline;
}

.usage-history {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.usage-table {
  background: var(--white);
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(13, 27, 30, 0.06);
  margin-bottom: 18px;
}

.usage-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.usage-table th,
.usage-table td {
  text-align: left;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(13, 27, 30, 0.08);
}

.usage-table th {
  color: var(--slate);
  font-weight: 600;
}

.usage-section {
  padding: 40px 0;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-newsletter {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h4 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1em;
  font-family: var(--font-heading);
}

.newsletter-form-inline {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.newsletter-form-inline input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.9em;
  font-family: var(--font-heading);
}

.newsletter-form-inline input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form-inline input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form-inline .btn {
  white-space: nowrap;
  padding: 10px 20px;
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.footer-socials a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 30px;
}

.footer-brand p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
  font-family: var(--font-heading);
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-support {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 30px;
}

.support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.support-icon {
  font-size: 1.2em;
  line-height: 1;
}

@media (max-width: 900px) {
  .footer-support {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
  }
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

.footer-meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-meta-right {
  margin-left: auto;
}

@media (max-width: 768px) {
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .footer-meta-right {
    margin-left: 0;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  max-width: 320px;
  z-index: 20;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-heading);
}

[data-cookie-banner].is-hidden {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Content Pages Styles */
.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.5em;
  color: var(--ink);
}

.content-section h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.2em;
  color: var(--ink);
}

.content-section p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.content-section ul,
.content-section ol {
  margin: 15px 0 15px 30px;
  line-height: 1.8;
}

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

.content-section a {
  color: var(--teal);
  text-decoration: underline;
}

.content-section a:hover {
  color: var(--teal-dark);
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-methods {
  margin: 30px 0;
}

.contact-method {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(13, 27, 30, 0.1);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method h3 {
  margin-bottom: 8px;
  font-size: 1.1em;
  color: var(--ink);
}

.contact-method p {
  margin: 5px 0;
}

.contact-method small {
  display: block;
  color: var(--slate);
  font-size: 0.9em;
  margin-top: 5px;
}

.contact-hours {
  margin-top: 30px;
  padding: 20px;
  background: var(--fog);
  border-radius: 12px;
}

.contact-hours h3 {
  margin-bottom: 10px;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact-form {
  margin-top: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(13, 27, 30, 0.2);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1em;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Auth Pages Styles */
.auth-container {
  max-width: 480px;
  margin: 60px auto;
  padding: 40px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-container h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: 8px;
  text-align: center;
}

.auth-container > p {
  text-align: center;
  color: var(--slate);
  margin-bottom: 32px;
}

.auth-form {
  margin-top: 32px;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--slate);
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--teal);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Alert Styles */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.alert-error {
  background: rgba(247, 127, 90, 0.15);
  color: #b3482f;
  border: 1px solid rgba(247, 127, 90, 0.3);
}

.alert-success {
  background: rgba(31, 122, 122, 0.15);
  color: var(--teal-dark);
  border: 1px solid rgba(31, 122, 122, 0.3);
}

.alert-warning {
  background: rgba(246, 226, 198, 0.8);
  color: var(--ink);
  border: 1px solid rgba(246, 226, 198, 1);
}

.alert a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* Password Validation Styles */
.password-requirements {
  margin-top: 12px;
  padding: 12px;
  background: rgba(31, 122, 122, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(31, 122, 122, 0.1);
}

.password-requirements-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.password-requirements-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.password-requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--slate);
  transition: color 0.2s ease;
}

.password-requirement .requirement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.password-requirement.requirement-met {
  color: var(--teal-dark);
}

.password-requirement.requirement-met .requirement-icon {
  color: var(--teal);
}

.password-requirement.requirement-unmet .requirement-icon {
  color: var(--slate);
}

.password-requirement .requirement-text {
  line-height: 1.4;
}

/* Password input states */
input[type="password"].password-validating {
  border-color: var(--teal);
}

input[type="password"].password-valid {
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%231f7a7a' d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

input[type="password"].password-invalid {
  border-color: var(--sunset);
}

input[type="password"].caps-lock-active {
  border-color: rgba(247, 127, 90, 0.5);
}

/* Caps lock warning */
.caps-lock-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(247, 127, 90, 0.1);
  border: 1px solid rgba(247, 127, 90, 0.3);
  border-radius: 6px;
  font-size: 0.875rem;
  color: #b3482f;
  font-family: var(--font-heading);
}

.caps-lock-warning .warning-icon {
  font-size: 1rem;
  font-weight: 600;
}

/* Password match indicators */
input[type="password"].password-match {
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%231f7a7a' d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

input[type="password"].password-mismatch {
  border-color: var(--sunset);
}

.password-match-message {
  margin-top: 6px;
  font-size: 0.875rem;
  font-family: var(--font-heading);
  padding: 6px 0;
}

.password-match-message.password-match-success {
  color: var(--teal-dark);
}

.password-match-message.password-match-error {
  color: #b3482f;
}

/* Loading button state */
.btn.loading {
  position: relative;
  cursor: wait;
  opacity: 0.7;
}

.btn.loading .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

.btn.loading .button-text {
  vertical-align: middle;
}

/* Form error announcements (screen reader only) */
.error-announcement-region {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Accessibility improvements */
input[aria-invalid="true"] {
  border-color: var(--sunset);
}

input[aria-invalid="true"]:focus {
  outline: 2px solid rgba(247, 127, 90, 0.3);
  outline-offset: 2px;
}

/* Google Sign-In Button - Google's Recommended Design */
.btn.btn-google,
a.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 24px !important;
  background: #ffffff !important;
  color: #3c4043 !important;
  border: 1px solid #dadce0 !important;
  border-radius: 4px !important;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
  text-decoration: none;
  cursor: pointer;
}

.btn.btn-google:hover,
a.btn-google:hover {
  background: #ffffff !important;
  border-color: #dadce0 !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15) !important;
  transform: none !important;
}

.btn.btn-google:active,
a.btn-google:active {
  background: #f8f9fa !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15) !important;
}

.btn.btn-google svg,
a.btn-google svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Auth Divider */
.auth-divider {
  margin: 24px 0;
  text-align: center;
  position: relative;
}

.auth-divider:first-of-type {
  margin-top: 0;
}

.auth-divider span {
  display: inline-block;
  padding: 0 16px;
  background: var(--white);
  color: var(--slate);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(13, 27, 30, 0.1);
  z-index: 0;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 72px;
    right: 20px;
    background: var(--white);
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 12px;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .ghost-link {
    display: none;
  }

  .announcement-content {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .auth-container {
    margin: 40px auto;
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 70px 0 90px;
  }

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

  .cta-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* PWA Install Button Styles */
.pwa-install-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  padding: 12px 20px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s;
}

.pwa-install-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.pwa-install-btn:active {
  transform: translateY(0);
}

.pwa-update-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* PWA mode styles */
body.pwa-mode {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Mobile Optimization - Touch Targets */
@media (max-width: 768px) {
  /* Ensure all interactive elements are touch-friendly (min 44x44px) */
  .btn,
  button,
  a.btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    touch-action: manipulation;
  }

  /* Improve form inputs for mobile */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
    padding: 12px 14px;
    touch-action: manipulation;
  }

  /* Better spacing for mobile */
  .container {
    padding: 0 16px;
  }

  /* Improve table readability on mobile */
  table {
    font-size: 14px;
  }

  /* Better card spacing */
  .dashboard-card,
  .admin-card {
    padding: 20px 16px;
    margin-bottom: 16px;
  }

  /* Improve navigation touch targets */
  .nav a,
  .sidebar-nav-item {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
  }

  /* Better button spacing */
  .dashboard-actions,
  .admin-page-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .dashboard-actions .btn,
  .admin-page-actions .btn {
    width: 100%;
  }
}

/* Touch-optimized interactions */
@media (hover: none) and (pointer: coarse) {
  /* Mobile/touch device optimizations */
  * {
    -webkit-tap-highlight-color: rgba(31, 122, 122, 0.2);
  }

  /* Larger hit areas for touch */
  .btn,
  button,
  a.btn {
    padding: 14px 24px;
  }

  /* Prevent text selection on buttons */
  .btn,
  button {
    user-select: none;
    -webkit-user-select: none;
  }

  /* Better focus states for touch */
  .btn:active,
  button:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }

  /* Improve scrolling */
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* PWA specific styles */
@media (display-mode: standalone) {
  /* Styles when running as PWA */
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ============================================
   Notification Toast Styles
   ============================================ */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 27, 30, 0.2);
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.notification-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast-text {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--ink);
  margin-bottom: 4px;
}

.toast-message {
  font-size: var(--font-size-sm);
  color: var(--slate);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--slate);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toast-close:hover {
  background: var(--mist);
  color: var(--ink);
}

@media (max-width: 768px) {
  .notification-toast {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }

  .notification-toast.show {
    transform: translateY(0);
  }
}
