/* ASSUMPTION: Roomly 3D brand styles inherit native iOS Theme.swift dark-glass aesthetics */
:root {
  color-scheme: dark;
  --bg-space: #07090e;
  --bg-surface: #0e121b;
  --bg-elevated: #141a27;
  --card-bg: rgba(255, 255, 255, 0.038);
  --card-bg-hover: rgba(255, 255, 255, 0.065);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-active: rgba(56, 122, 255, 0.35);
  --line: rgba(255, 255, 255, 0.08);

  --text-primary: #f5f7fc;
  --text-secondary: #9da6b9;
  --text-muted: #5f687a;

  --accent-blue: #387aff;
  --accent-blue-soft: rgba(56, 122, 255, 0.15);
  --accent-purple: #af52de;
  --accent-green: #30d158;
  --accent-green-soft: rgba(48, 209, 88, 0.15);
  --accent-gradient: linear-gradient(135deg, #387aff 0%, #af52de 100%);
  --accent-gradient-text: linear-gradient(135deg, #5b95ff 0%, #d87bf8 100%);
  --mesh-glow: radial-gradient(circle, rgba(48, 209, 88, 0.25) 0%, rgba(7, 9, 14, 0) 70%);

  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Radial Glows in Background */
.ambient-glow-top {
  position: fixed;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 122, 255, 0.18) 0%, rgba(175, 82, 222, 0.08) 40%, rgba(7, 9, 14, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.ambient-glow-bottom {
  position: fixed;
  bottom: -300px;
  right: 10%;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.12) 0%, rgba(7, 9, 14, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--accent-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 16px;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

header,
main,
footer {
  max-width: 1120px;
  margin: auto;
  padding: 0 24px;
}

/* Navigation Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 2px 10px rgba(56, 122, 255, 0.25);
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover,
nav a[aria-current=page] {
  color: var(--text-primary);
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(56, 122, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.nav-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 122, 255, 0.45);
  opacity: 0.95;
}

/* Typography */
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(38px, 5.2vw, 56px);
  margin: 0 0 20px;
}

h1 em {
  font-style: normal;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 12px;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

.sub-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 28px;
}

/* Announcement Badge */
.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 122, 255, 0.08);
  border: 1px solid rgba(56, 122, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #7dadff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
}

.announcement-badge:hover {
  background: rgba(56, 122, 255, 0.14);
  transform: translateY(-1px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 580px;
}

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(56, 122, 255, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(56, 122, 255, 0.5);
  opacity: 0.96;
}

.btn-download-white {
  background: #ffffff;
  color: #07090e !important;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.btn-download-white:hover {
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.35);
}

.apple-logo {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Device Mockup Stage */
.device-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.phone-shell {
  width: 280px;
  border-radius: 48px;
  border: 7px solid #1f2736;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.phone-shell img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Telemetry Badge */
.telemetry-floating {
  position: absolute;
  right: -24px;
  bottom: 40px;
  background: rgba(14, 18, 27, 0.88);
  border: 1px solid var(--card-border-active);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.telemetry-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
}

.telemetry-label {
  color: var(--text-secondary);
}

.telemetry-val {
  font-weight: 600;
  color: var(--text-primary);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* Interactive Calculator / Estimator */
.section-calc {
  margin: 40px 0 72px;
}

.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 38px 40px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.calc-header {
  margin-bottom: 28px;
}

.calc-header h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.calc-header p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mode-toggle-group {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  width: fit-content;
}

.mode-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.mode-toggle-btn.active {
  background: var(--accent-blue-soft);
  color: #7dadff;
  border: 1px solid rgba(56, 122, 255, 0.3);
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-label-row label {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.slider-value-badge {
  font-size: 24px;
  color: #7dadff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 8px 0;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(56, 122, 255, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.1s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.preset-btn:hover,
.preset-btn.active {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  background: var(--accent-blue-soft);
}

/* Calculator Result Box */
.calc-result-box {
  background: rgba(14, 18, 27, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--line);
}

.result-row.total {
  border-bottom: none;
  padding-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.result-total-val {
  font-size: 28px;
  color: #7dadff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.compat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.compat-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 122, 255, 0.1);
  color: #8bb6ff;
  border: 1px solid rgba(56, 122, 255, 0.2);
}

.density-meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 16px;
  overflow: hidden;
}

.density-level {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  border-radius: 999px;
  width: 60%;
  transition: width 0.25s ease;
}

/* Features Grid */
.features-section {
  padding: 30px 0 64px;
}

.section-title {
  margin-bottom: 32px;
}

.section-title h2 {
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

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

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 122, 255, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.feature-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 600;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Visual Showcase Section */
.showcase-section {
  padding-bottom: 64px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

.showcase-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.showcase-card:hover {
  border-color: rgba(56, 122, 255, 0.3);
  transform: translateY(-2px);
}

.showcase-media {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  position: relative;
}

.showcase-media img,
.showcase-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.showcase-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Community & Feedback Section */
.feedback-section {
  padding-bottom: 64px;
}

.feedback-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 38px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 820px) {
  .feedback-card {
    grid-template-columns: 1fr;
  }
}

.feedback-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feedback-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.feedback-chip:hover {
  background: var(--accent-blue-soft);
  color: #7dadff;
  border-color: rgba(56, 122, 255, 0.35);
  transform: translateY(-1px);
}

.feedback-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.btn-feedback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-feedback:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.feedback-email-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.feedback-email-sub a {
  color: var(--text-secondary);
}

/* Bottom CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(56, 122, 255, 0.18) 0%, rgba(175, 82, 222, 0.15) 100%);
  border: 1px solid rgba(56, 122, 255, 0.3);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  margin-bottom: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cta-banner h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 28px;
}

/* Helper Links */
.links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

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

.link-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.link-panel:hover {
  background: var(--card-bg-hover);
  border-color: rgba(56, 122, 255, 0.3);
  transform: translateY(-2px);
}

.link-panel h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.link-panel p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Prose Styling for Support and Privacy Pages */
.prose {
  max-width: 820px;
  margin: 40px auto 64px;
}

.prose h1 {
  font-size: clamp(32px, 4.5vw, 44px);
  margin-bottom: 12px;
}

.prose .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.prose h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.prose p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: 18px;
}

.prose code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #7dadff;
}

.prose pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #d8e5ff;
}

/* Accordion FAQ Styling */
details {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 18px 22px;
  transition: all 0.15s ease;
}

details[open] {
  background: var(--card-bg-hover);
  border-color: rgba(56, 122, 255, 0.25);
}

summary {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-blue);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-copy {
    max-width: 100%;
    margin: 0 auto;
  }
  .cta-wrap {
    align-items: center;
  }
  .cta-actions {
    justify-content: center;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .mode-toggle-group {
    margin: 0 auto;
  }
}
