:root {
  --color-primary: #2D6A6A;
  --color-primary-dark: #1F4F4F;
  --color-secondary: #F3EDE4;
  --color-accent: #C4795A;
  --color-accent-dark: #A86245;
  --color-highlight: #D4A24E;
  --color-text: #1C2826;
  --color-text-muted: #4F5C59;
  --color-white: #ffffff;
  --color-border: rgba(28, 40, 38, 0.12);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --space-xs: 0.375rem;
  --space-sm: 0.625rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.25rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.375rem;
  --shadow-sm: 0 0.125rem 0.5rem rgba(28, 40, 38, 0.06);
  --shadow-md: 0 0.375rem 1.25rem rgba(28, 40, 38, 0.1);
  --shadow-lg: 0 0.75rem 2rem rgba(28, 40, 38, 0.14);
  --transition: 0.28s ease;
  --header-height: 3.25rem;
  --max-width: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-secondary);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h2 {
  font-size: clamp(1.125rem, 3vw, 1.625rem);
}

h3 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

h4 {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  font-size: 0.875rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(243, 237, 228, 0.92);
  backdrop-filter: blur(0.625rem);
  border-bottom: 0.0625rem solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--space-md);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  flex-shrink: 0;
}

.logo-link:hover {
  color: var(--color-primary);
}

.logo-mark {
  width: clamp(1.75rem, 4vw, 2.125rem);
  height: clamp(1.75rem, 4vw, 2.125rem);
  position: relative;
  flex-shrink: 0;
}

.logo-mark-bar {
  position: absolute;
  bottom: 0.25rem;
  left: 0.1875rem;
  width: 0.4375rem;
  border-radius: 0.125rem;
  background: var(--color-accent);
  animation: charge-pulse 2.4s ease-in-out infinite;
}

.logo-mark-bar:nth-child(1) {
  height: 0.4375rem;
  animation-delay: 0s;
}

.logo-mark-bar:nth-child(2) {
  left: 0.6875rem;
  height: 0.6875rem;
  animation-delay: 0.3s;
}

.logo-mark-bar:nth-child(3) {
  left: 1.1875rem;
  height: 1rem;
  animation-delay: 0.6s;
}

.logo-mark-cap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.5625rem;
  height: 0.3125rem;
  border: 0.125rem solid var(--color-primary);
  border-bottom: none;
  border-radius: 0.125rem 0.125rem 0 0;
}

.logo-mark-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 78%;
  border: 0.125rem solid var(--color-primary);
  border-radius: 0.1875rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 2.5vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.nav-menu {
  margin-left: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-desktop a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
}

.nav-desktop a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  z-index: 1002;
}

.menu-toggle:hover {
  background: var(--color-primary-dark);
  color: var(--color-highlight);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(18rem, 85vw);
  height: 100vh;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl) var(--space-lg);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  z-index: 1001;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
  transform: translateY(0);
}

.menu-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}

.menu-close:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.mobile-menu nav ul {
  list-style: none;
  padding: 0;
  margin-top: var(--space-2xl);
}

.mobile-menu nav li {
  border-bottom: 0.0625rem solid var(--color-border);
}

.mobile-menu nav a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.mobile-menu nav a:hover {
  color: var(--color-primary);
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 40, 38, 0.4);
  z-index: 1000;
}

.menu-overlay.active {
  display: block;
}

.menu-toggle.hidden {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(22rem, 70vh, 36rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(243, 237, 228, 0.94) 0%, rgba(45, 106, 106, 0.82) 100%), url('../img/hero-bg.jpg') center / cover no-repeat;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-2xl) 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.hero-content p {
  font-size: clamp(0.875rem, 2vw, 1rem);
  max-width: 32rem;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.energy-figure {
  width: clamp(8rem, 30vw, 12rem);
  height: clamp(10rem, 35vw, 14rem);
  position: relative;
}

.energy-ring {
  position: absolute;
  border-radius: 50%;
  border: 0.125rem solid rgba(196, 121, 90, 0.4);
  animation: ring-expand 3s ease-in-out infinite;
}

.energy-ring:nth-child(1) {
  inset: 0;
  animation-delay: 0s;
}

.energy-ring:nth-child(2) {
  inset: 0.75rem;
  animation-delay: 0.5s;
}

.energy-ring:nth-child(3) {
  inset: 1.5rem;
  animation-delay: 1s;
}

.energy-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 6.5rem;
  background: var(--color-white);
  border: 0.1875rem solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.energy-core-cap {
  width: 1.75rem;
  height: 0.625rem;
  margin: -0.3125rem auto 0;
  background: var(--color-primary);
  border-radius: 0.25rem 0.25rem 0 0;
}

.energy-fill {
  position: absolute;
  bottom: 0.375rem;
  left: 0.375rem;
  right: 0.375rem;
  height: 0;
  background: linear-gradient(to top, var(--color-accent), var(--color-highlight));
  border-radius: 0.25rem;
  animation: fill-rise 3s ease-in-out infinite;
}

.energy-spark {
  position: absolute;
  font-size: 1.25rem;
  color: var(--color-highlight);
  animation: spark-float 2s ease-in-out infinite;
}

.energy-spark:nth-child(5) {
  top: 10%;
  right: 5%;
  animation-delay: 0.2s;
}

.energy-spark:nth-child(6) {
  bottom: 20%;
  left: 0;
  animation-delay: 0.8s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.5625rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 0.125rem solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  margin-top: var(--space-sm);
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-highlight);
  border-color: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-highlight);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: var(--color-highlight);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 0.0625rem solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-0.1875rem);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 106, 106, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
}

.card p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split-section img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.feature-list li i {
  color: var(--color-accent);
  margin-top: 0.1875rem;
  flex-shrink: 0;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.timeline-item {
  display: flex;
  gap: var(--space-md);
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border-left: 0.25rem solid var(--color-highlight);
  box-shadow: var(--shadow-sm);
}

.timeline-time {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  min-width: 3.5rem;
}

.timeline-item h4 {
  margin-bottom: var(--space-xs);
}

.timeline-item p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.stat-box {
  text-align: center;
  padding: var(--space-lg);
  background: linear-gradient(145deg, var(--color-white), rgba(196, 121, 90, 0.08));
  border-radius: var(--radius-lg);
  border: 0.0625rem solid var(--color-border);
}

.stat-box i {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.stat-box h3 {
  font-size: clamp(1rem, 3vw, 1.375rem);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.stat-box p {
  font-size: 0.75rem;
  margin-bottom: 0;
}

.disclaimer-box {
  background: rgba(212, 162, 78, 0.15);
  border: 0.0625rem solid rgba(212, 162, 78, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.disclaimer-box h3 {
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.disclaimer-box p {
  font-size: 0.8125rem;
  margin-bottom: var(--space-sm);
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.reader-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.reader-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 0.0625rem solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.reader-card blockquote {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.6;
}

.reader-card cite {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

.reader-card cite span {
  display: block;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-white);
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.cta-band .btn {
  margin-top: var(--space-md);
}

.cta-band .btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta-band .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.page-hero {
  background: linear-gradient(160deg, var(--color-secondary) 0%, rgba(45, 106, 106, 0.12) 100%);
  padding: var(--space-xl) 0;
  border-bottom: 0.0625rem solid var(--color-border);
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
}

.page-hero p {
  font-size: 0.875rem;
  max-width: 36rem;
}

.habit-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.habit-step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 50%;
}

.habit-step h4 {
  margin-bottom: var(--space-xs);
}

.habit-step p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.resource-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.resource-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 0.0625rem solid var(--color-border);
  transition: border-color var(--transition);
}

.resource-item:hover {
  border-color: var(--color-accent);
}

.resource-item i {
  font-size: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.resource-item h4 {
  margin-bottom: var(--space-xs);
}

.resource-item p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.contact-info-panel {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.contact-info-panel h2 {
  margin-bottom: var(--space-lg);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: flex-start;
}

.contact-detail i {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 106, 106, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-detail h4 {
  margin-bottom: var(--space-xs);
  font-size: 0.8125rem;
}

.contact-detail p {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border-top: 0.25rem solid var(--color-accent);
}

.contact-form-wrap h2 {
  margin-bottom: var(--space-lg);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-error {
  display: block;
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: var(--space-xs);
  min-height: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-bottom: 0;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-md);
}

.map-wrap iframe {
  width: 100%;
  height: 22rem;
  border: 0;
  display: block;
}

.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links h4 {
  color: var(--color-white);
  font-size: 0.8125rem;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a:hover {
  color: var(--color-highlight);
}

.footer-contact p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.legal-page {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.legal-content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  max-width: 52rem;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(1.25rem, 3.5vw, 1.625rem);
  margin-bottom: var(--space-sm);
}

.legal-content .legal-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 0.0625rem solid var(--color-border);
}

.legal-content h2 {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  margin: var(--space-xl) 0 var(--space-md);
}

.legal-content h3 {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content p,
.legal-content li {
  font-size: 0.8125rem;
}

.legal-content ul {
  margin-bottom: var(--space-md);
}

.table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.legal-content th,
.legal-content td {
  padding: var(--space-sm) var(--space-md);
  border: 0.0625rem solid var(--color-border);
  text-align: left;
}

.legal-content th {
  background: var(--color-secondary);
  font-weight: 600;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.home-button:hover {
  background: var(--color-primary-dark);
  color: var(--color-highlight);
}

.center-page {
  min-height: calc(100vh - var(--header-height) - 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.center-page .container {
  max-width: 36rem;
}

.center-page h1 {
  margin-bottom: var(--space-md);
}

.center-page p {
  margin-bottom: var(--space-md);
  max-width: none;
}

.status-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.error-code {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  line-height: 1;
}

.cookie-save-btn {
  margin-top: var(--space-md);
}

.text-center-block {
  text-align: center;
  margin-top: var(--space-xl);
}

.site-footer .logo-link {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.site-footer .logo-text {
  color: var(--color-white);
}

.center-page .btn {
  margin-top: var(--space-md);
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -0.25rem 1.5rem rgba(28, 40, 38, 0.15);
  padding: var(--space-md);
  z-index: 2000;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-inner p {
  font-size: 0.8125rem;
  margin-bottom: var(--space-md);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cookie-actions .btn {
  margin-top: 0;
  font-size: 0.75rem;
  padding: 0.4375rem 0.875rem;
}

.cookie-settings-panel {
  display: none;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 0.0625rem solid var(--color-border);
}

.cookie-settings-panel.visible {
  display: block;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 0.0625rem solid var(--color-border);
}

.cookie-category label {
  font-size: 0.8125rem;
  font-weight: 500;
}

.cookie-category span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
}

.toggle-switch {
  position: relative;
  width: 2.5rem;
  height: 1.375rem;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: 1rem;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(1.125rem);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.privacy-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 40, 38, 0.5);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.privacy-popup.visible {
  display: flex;
}

.privacy-popup-content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 28rem;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.privacy-popup-content h3 {
  margin-bottom: var(--space-md);
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
}

.privacy-popup-content p {
  font-size: 0.8125rem;
  margin-bottom: var(--space-md);
}

.privacy-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.privacy-popup-actions .btn {
  margin-top: 0;
  font-size: 0.75rem;
}

@keyframes charge-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes ring-expand {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes fill-rise {
  0%, 100% { height: 25%; }
  50% { height: 85%; }
}

@keyframes spark-float {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-0.5rem); opacity: 1; }
}

@media (min-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .reader-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-desktop {
    display: block;
    margin-left: auto;
  }

  .menu-toggle {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .split-section {
    grid-template-columns: 1fr 1fr;
  }

  .split-section.reverse {
    direction: rtl;
  }

  .split-section.reverse > * {
    direction: ltr;
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .habit-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .habit-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 319px) {
  html {
    font-size: 93.75%;
  }

  .container {
    padding: 0 var(--space-sm);
  }
}
