@font-face {
  font-family: "Geist";
  src: url("./fonts/geist-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f5f4ef;
  --muted: #aeb9b7;
  --quiet: #7f8b8a;
  --bg: #101617;
  --panel: #172021;
  --panel-strong: #1d292a;
  --line: #344243;
  --accent: #a8cbc5;
  --accent-strong: #d8bd94;
  --accent-ink: #0d1717;
  --danger: #ffb7ad;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, rgba(168, 203, 197, 0.08), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
.button {
  min-height: 48px;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 23, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.language-link {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

main {
  overflow: hidden;
}

.intro {
  padding: 76px 0 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  font-weight: 710;
}

.intro-copy {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.calculator-wrap {
  padding: 34px 0 96px;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.calculator-form,
.calculator-results {
  padding: clamp(26px, 4vw, 48px);
}

.calculator-form {
  border-right: 1px solid var(--line);
}

.calculator h2 {
  margin-bottom: 12px;
  font-size: clamp(1.375rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.form-note,
.privacy-note,
.result-empty,
.result-date,
.result-detail,
.next-date {
  color: var(--muted);
}

.form-note {
  margin: 0 0 30px;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.field input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #11191a;
  color: var(--ink);
}

.field input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
}

.date-picker-button {
  justify-self: start;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.calculate-button,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.calculate-button {
  width: 100%;
  margin-top: 18px;
  padding: 13px 18px;
}

.calculate-button:hover,
.button-primary:hover {
  background: #c0ddd8;
}

.privacy-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 18px 0 0;
  font-size: 0.88rem;
}

.privacy-mark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.46rem;
  border-radius: 50%;
  background: var(--accent);
}

.form-error {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.calculator-results {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 26%, rgba(216, 189, 148, 0.13), transparent 18rem),
    var(--panel-strong);
}

.calculator-results::before,
.calculator-results::after {
  position: absolute;
  right: -70px;
  top: -88px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(168, 203, 197, 0.3);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.calculator-results::after {
  right: 24px;
  top: 7px;
  width: 130px;
  height: 130px;
  background: rgba(168, 203, 197, 0.08);
}

.result-empty,
.result-content {
  position: relative;
  z-index: 1;
}

.result-empty {
  max-width: 410px;
  margin: 0;
  font-size: 1.1rem;
}

.result-content[hidden],
.result-empty[hidden] {
  display: none;
}

.result-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.day-number {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.8rem, 11vw, 8.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 690;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.day-label {
  margin: 10px 0 18px;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 700;
}

.result-detail,
.result-date {
  margin: 5px 0;
}

.next-milestone {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.next-label {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 720;
}

.next-date {
  margin: 0;
  font-size: 0.94rem;
}

.content-section {
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.content-section h2 {
  max-width: 530px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-copy p:first-child {
  margin-top: 0;
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 6px 0 0;
}

.fact {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.fact dt {
  color: var(--quiet);
  font-size: 0.9rem;
}

.fact dd {
  margin: 0;
  color: var(--ink);
}

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.watch-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.watch-image img {
  display: block;
  width: 100%;
  height: auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-primary,
.button-secondary {
  padding: 12px 18px;
}

.button-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button-secondary:hover {
  border-color: var(--accent);
}

.prose {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 100px;
}

.prose h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.prose h2 {
  margin-top: 42px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong {
  color: var(--ink);
}

.effective-date {
  color: var(--quiet);
  font-size: 0.9rem;
}

.site-footer {
  padding: 34px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--quiet);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.disclaimer {
  max-width: 660px;
  margin: 28px 0 0;
}

.calculator-method {
  max-width: 800px;
  padding-bottom: 64px;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  z-index: 10;
  left: 20px;
  top: -100px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link:focus { top: 12px; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(221px, 330px);
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  padding: 70px 0 80px;
}

.product-hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.8rem);
  max-width: 700px;
}

.hero-screenshot {
  margin: 0;
  text-align: center;
}

.hero-screenshot img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.hero-screenshot figcaption,
.purchase-note,
.product-compatibility,
.screenshot-language {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.hero-screenshot figcaption { margin-top: 14px; }
.purchase-note { margin: 18px 0 0; }
.product-compatibility { margin: 12px 0 0; }

.feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 44px;
}

.feature-shot {
  margin: 0;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 221px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.feature-shot h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.feature-shot p { color: var(--muted); margin: 0; }
.screenshot-language { margin-top: 24px; }
.purchase-option { border-top: 1px solid var(--line); padding: 24px 0; }
.purchase-option h3 { font-size: 1.3rem; line-height: 1.4; margin-bottom: 12px; }
.purchase-option h3 span { display: block; color: var(--accent); }
.purchase-option p { color: var(--muted); }
.purchase-option ul { padding-left: 22px; }
.purchase-option li { margin: 10px 0; }

@media (max-width: 1050px) {
  .feature-shot { grid-template-columns: 1fr; }
  .feature-shot img { max-width: 221px; margin: auto; }
}

@media (max-width: 620px) {
  .product-hero { grid-template-columns: 1fr; padding: 42px 0 56px; gap: 36px; }
  .hero-screenshot img { max-width: 260px; }
  .feature-pair { grid-template-columns: 1fr; }
  .feature-shot { padding: 24px; }
}

.calculator-method h2 {
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.2;
}

.result-app-link {
  margin: 24px 0 0;
  font-size: 1rem;
}

.result-app-link a {
  width: 100%;
  text-align: center;
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .intro {
    padding-top: 54px;
  }

  .calculator,
  .section-grid,
  .watch-grid {
    grid-template-columns: 1fr;
  }

  .calculator-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .calculator-results {
    min-height: 390px;
  }

  .section-grid,
  .watch-grid {
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 66px;
  }

  .field-grid,
  .fact {
    grid-template-columns: 1fr;
  }

  .fact {
    gap: 7px;
  }

  .calculator {
    border-radius: 20px;
  }

  .calculator-form,
  .calculator-results {
    padding: 25px 20px;
  }

  .calculator-results {
    min-height: 360px;
  }

  .content-section {
    padding: 72px 0;
  }

  .footer-grid {
    display: grid;
  }
}

.download-nav .nav-links {
  order: 2;
  margin-left: auto;
}

.header-download {
  order: 3;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 1050px) {
  .download-nav { flex-wrap: wrap; gap: 8px 12px; padding-top: 12px; padding-bottom: 8px; }
  .download-nav .header-download { order: 2; margin-left: auto; }
  .download-nav .nav-links { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 4px 16px; }
  .download-nav .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 560px) {
  .download-nav .brand { gap: 8px; font-size: 1rem; }
  .download-nav .brand img { width: 32px; height: 32px; }
  .header-download { padding: 9px 12px; }
}

.intro.calculator-intro {
  padding: 26px 0 12px;
}

.calculator-intro .eyebrow {
  margin-bottom: 8px;
}

.calculator-intro h1 {
  margin-bottom: 10px;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.calculator-title-detail {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.calculator-intro .intro-copy {
  font-size: 1rem;
}

.calculator-intro + .calculator-wrap {
  padding-top: 12px;
}

.calculator-form .field-grid {
  margin-top: 20px;
}

.form-error:empty {
  display: none;
}

@media (max-width: 560px) {
  .intro.calculator-intro { padding-top: 18px; }
  .calculator-intro .eyebrow { display: none; }
  .calculator-form { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
