﻿:root {
  --bg-primary: #04060d;
  --bg-secondary: #0d1420;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --accent: #5dd0ff;
  --accent-strong: #3d7eff;
  --text: #f5f7ff;
  --muted: #b1b5c3;
  --success: #4ade80;
  --warning: #fbbf24;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #121b33, #050609 60%);
  color: var(--text);
  overflow-x: hidden;
}

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

a:hover,
a:focus {
  color: var(--accent);
}

.page-shell {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero {
  padding: 2.5rem 0 3rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  font-weight: 500;
}

.cta-link {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #030303;
  font-weight: 600;
}

/* Research section styles (used by new research card/chart) */
#research {
  padding: 1.5rem;
}
#research h2 {
  margin-top: 0;
}
.research-chart-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 1rem 0 1.2rem;
}
.research-takeaways {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--muted);
}

/* Resources section */
#resources {
  padding: 1.5rem;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.resource-card {
  background: #ffffff15;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.resource-card h3 {
  margin-top: 0;
}
.resource-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.resource-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------
   Header / Nav / Hero layout fixes for i18n
--------------------------------------------------- */
header, .header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  font-size: 0.95rem;
  min-width: 0;
}
.nav-links a {
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
}
.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.lang-switcher button {
  flex: 0 0 auto;
}
.hero {
  width: 100%;
  margin: 2rem 0;
  text-align: center;
  opacity: 1;
}
.hero .eyebrow,
.hero .hero-subtitle,
.hero .hero-description {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero .hero-subtitle {
  display: block;
  max-width: 780px;
}

.calculator-section input[type="number"],
.calculator-section select {
  background: #fff;
  color: var(--text, #0b1a33);
  border: 1px solid var(--border, #dfe4f3);
  border-radius: 0.9rem;
  padding: 0.65rem 0.9rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.calculator-section input[type="number"]:focus,
.calculator-section select:focus {
  outline: none;
  border-color: var(--primary, #2d7ff9);
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.18);
  background: #fff;
}

.calculator-section select {
  background-color: #fff;
  color: var(--text, #0b1a33);
}

.calculator-section input[type="range"] {
  accent-color: var(--primary, #2d7ff9);
  height: 6px;
  background: #e8edf9;
  border-radius: 999px;
  border: 1px solid var(--border, #dfe4f3);
}

.calculator-section input[type="range"]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--primary, #2d7ff9);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.calculator-section input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--primary, #2d7ff9);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 0.6rem 0 0.5rem;
  max-width: 18ch;
  font-weight: 600;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.35;
  margin: 0.4rem 0;
  max-width: 40rem;
  color: rgba(255,255,255,0.95);
  opacity: 1;
}
.hero p {
  text-align: center;
  max-width: 46rem;
  color: rgba(255,255,255,0.9);
  opacity: 1;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  .top-nav {
    flex-wrap: wrap;
  }
  .nav-links {
    font-size: 0.9rem;
    gap: 0.6rem;
    flex-wrap: wrap;
    width: 100%;
  }
  .lang-switcher {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  header, .header-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .lang-switcher {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .hero {
    margin: 1.5rem 0;
  }
  .hero-inner {
    padding: 0 1rem 2rem;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 6vw, 2.8rem);
    max-width: 22ch;
  }
  .hero h2 {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  }
}

@media (max-width: 768px) {
  .feature-strip {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .feature-strip li {
    padding: 0.45rem 0.8rem;
  }
}

.hero-body {
  margin-top: 1rem;
  display: block;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #020203;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-strong);
}

.trust-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.hero-card {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: rgba(12, 17, 34, 0.9);
  border: 1px solid var(--surface-strong);
  box-shadow: 0 25px 60px rgba(10, 15, 35, 0.5);
}

.card-title {
  font-weight: 600;
  margin-top: 0;
}

.hero-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.calculator {
  background: var(--bg-secondary);
  border-radius: 2rem;
  padding: 2.5rem;
  border: 1px solid var(--surface);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-heading h2 {
  margin: 0 0 0.5rem;
}

.section-actions {
  display: flex;
  gap: 0.75rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-panel {
  background: rgba(6, 10, 20, 0.9);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--surface);
}

.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--surface);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}

.pill.active {
  background: rgba(93, 208, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.product-spotlight {
  border-radius: 1.2rem;
  padding: 1.2rem;
  background: rgba(8, 13, 30, 0.85);
  border: 1px solid var(--surface-strong);
}

.product-spotlight ul {
  padding-left: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.product-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.form-panel {
  background: rgba(6, 10, 20, 0.95);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--surface);
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}

input,
select {
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--surface-strong);
  background: rgba(2, 3, 6, 0.7);
  color: var(--text);
  font-size: 1rem;
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.form-footnote {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.results-panel {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.metrics article {
  background: rgba(6, 10, 20, 0.9);
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--surface);
}

.metric-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0.2rem 0 0.4rem;
}

.metric-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.range-card,
.chart-card,
.schedule-card {
  border-radius: 1.2rem;
  padding: 1.5rem;
  border: 1px solid var(--surface);
  background: rgba(5, 9, 18, 0.92);
}

.range-card {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.range-values {
  display: flex;
  gap: 2rem;
}

.chart-card canvas {
  width: 100%;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.schedule-grid div {
  border-radius: 0.9rem;
  border: 1px dashed var(--surface-strong);
  padding: 0.75rem;
}

.adsense-slot {
  margin-top: 2rem;
  border: 2px dashed var(--warning);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--warning);
  background: rgba(251, 191, 36, 0.06);
  font-weight: 600;
}

.insights,
.faq {
  background: rgba(4, 6, 14, 0.85);
  border-radius: 2rem;
  padding: 2.5rem;
  border: 1px solid var(--surface);
}

.section-lede {
  color: var(--muted);
  max-width: 720px;
}

.insight-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.insight-grid article {
  background: rgba(7, 10, 18, 0.8);
  border-radius: 1.1rem;
  padding: 1.25rem;
  border: 1px solid var(--surface);
}

.insight-grid ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.seo-copy {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--surface);
  background: rgba(8, 10, 22, 0.8);
  color: var(--muted);
}

.seo-copy h3 {
  margin-top: 0;
  color: var(--text);
}

.faq details {
  border-radius: 1rem;
  border: 1px solid var(--surface);
  padding: 1rem 1.25rem;
  background: rgba(6, 9, 18, 0.8);
}

.faq details + details {
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  margin: 3rem 0 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--surface);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 960px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
    justify-content: flex-start;
  }
  .section-actions {
    width: 100%;
    justify-content: flex-start;
  }
  input,
  select {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 1.5rem;
  }
  .calculator,
  .insights,
  .faq {
    padding: 1.75rem;
  }
  .metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .nav-links a {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.6rem);
  }
  .hero h2 {
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  }
}

@media (min-width: 1024px) {
.calculator-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
}

.study-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 2.5rem;
}
.study-section .study-chart {
  background: #fff;
  border: 1px solid var(--border, #dfe4f3);
  border-radius: 1.2rem;
  padding: 1.25rem;
  box-shadow: 0 22px 50px rgba(11, 47, 106, 0.12);
}
.study-section .study-chart canvas {
  width: 100%;
  height: 340px;
}

.adsense-placeholder {
  border: 2px dashed var(--warning, #fbbf24);
  background: rgba(251, 191, 36, 0.08);
  color: #92400e;
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.adsense-top {
  margin-top: 1.25rem;
}
.adsense-mid {
  margin: 2rem 0;
}
.adsense-bottom {
  margin: 2rem 0 1.25rem;
}
