:root {
  color-scheme: light;
  --ink: #153f35;
  --ink-dark: #0d2a23;
  --paper: #faf8f2;
  --card: #ffffff;
  --line: #d5ded6;
  --muted: #51645c;
  --tint: #e8efe7;
  --sage: #e0ebd1;
  --jade: #527a59;
  --jade-soft: #edf4ec;
  --orange: #c4633d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #ad721d;
  outline-offset: 4px;
}

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

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, serif;
  font-size: 24px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: block;
}

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

nav a[aria-current=page] {
  font-weight: 700;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}

.lang-toggle:hover {
  background: var(--tint);
  color: var(--ink);
  border-color: var(--jade);
}

.nav-download {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  transition: opacity .15s ease;
}

.nav-download:hover {
  opacity: .9;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--ink);
}

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

h1 em {
  font-style: normal;
  color: var(--jade);
}

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

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

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

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

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

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

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

.ph-badge {
  display: inline-flex;
  align-items: center;
  transition: transform .15s ease, opacity .15s ease;
}

.ph-badge:hover {
  transform: translateY(-2px);
  opacity: .95;
}

.ph-badge img {
  height: 52px;
  width: auto;
  display: block;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(21, 63, 53, .18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(21, 63, 53, .28);
  opacity: .96;
}

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

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

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

.phone-shell {
  width: 270px;
  border-radius: 46px;
  border: 7px solid #1a2c24;
  background: #fdfcf9;
  box-shadow: 0 24px 50px rgba(21, 63, 53, 0.16), 0 4px 12px rgba(21, 63, 53, 0.05);
  overflow: hidden;
  position: relative;
}

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

.watch-floating {
  position: absolute;
  right: -16px;
  bottom: 30px;
  width: 154px;
  border-radius: 36px;
  border: 5px solid #121c17;
  background: #000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.watch-floating:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.4);
}

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

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

.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px 40px;
  box-shadow: 0 4px 24px rgba(21, 63, 53, 0.04);
}

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

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

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

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

.calc-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.slider-value-badge {
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--jade);
  font-weight: 600;
}

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

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--jade);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(82, 122, 89, 0.35);
  border: 2px solid #ffffff;
  transition: transform .1s ease;
}

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

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

.preset-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}

.preset-btn:hover {
  border-color: var(--jade);
  color: var(--ink);
  background: var(--tint);
}

/* Live Result Display */
.calc-result-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

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

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

.result-total-val {
  font-family: Georgia, serif;
  font-size: 30px;
  color: var(--ink);
  font-weight: 600;
}

.beaker-meter {
  height: 10px;
  background: var(--tint);
  border-radius: 999px;
  margin-top: 16px;
  overflow: hidden;
}

.beaker-level {
  height: 100%;
  background: linear-gradient(90deg, var(--jade), #6ba373);
  border-radius: 999px;
  width: 50%;
  transition: width .25s ease;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  transition: transform .15s ease, background .15s ease;
}

.announcement-badge:hover {
  background: #dfe9de;
  transform: translateY(-1px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(82, 122, 89, 0.2);
  display: inline-block;
}

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

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

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

.section-title p {
  color: var(--muted);
  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);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21, 63, 53, 0.06);
}

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

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

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

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

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

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

.showcase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-card-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(21, 63, 53, 0.06);
}

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

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

/* Feedback Section */
.feedback-section {
  padding: 10px 0 54px;
}

.feedback-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 4px 20px rgba(21, 63, 53, 0.04);
  position: relative;
  overflow: hidden;
}

.feedback-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--jade);
}

.feedback-content {
  flex: 1;
  max-width: 620px;
}

.feedback-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
}

.feedback-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 20px;
}

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

.feedback-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: all .15s ease;
}

.feedback-chip:hover {
  background: var(--tint);
  border-color: var(--jade);
  color: var(--ink-dark);
  transform: translateY(-1px);
}

.feedback-chip svg {
  color: var(--jade);
}

.feedback-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.btn-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper) !important;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(21, 63, 53, 0.15);
  transition: all .15s ease;
  width: 100%;
}

.btn-feedback:hover {
  background: var(--ink-dark);
  box-shadow: 0 6px 20px rgba(21, 63, 53, 0.22);
  transform: translateY(-1px);
}

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

.feedback-email-sub a {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 860px) {
  .feedback-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
  .feedback-action {
    width: 100%;
    align-items: flex-start;
  }
  .btn-feedback {
    width: 100%;
  }
}

/* Bottom CTA Banner */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 56px 36px;
  text-align: center;
  margin: 32px 0 64px;
  box-shadow: 0 12px 36px rgba(21, 63, 53, 0.16);
}

.cta-banner h2 {
  color: var(--paper);
  font-size: clamp(30px, 4.5vw, 44px);
  margin: 0 0 14px;
}

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

.btn-download-white {
  background: var(--paper);
  color: var(--ink) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.btn-download-white:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Links & Help */
.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
}

.link-panel {
  border-top: 2px solid var(--ink);
  padding: 24px 0;
  text-decoration: none;
}

.link-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.link-panel p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Support & Privacy prose */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 32px;
  margin: 30px 0 44px;
  max-width: 780px;
  border-radius: 6px;
}

.contact p {
  margin: 0;
}

.contact a {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: 26px;
  margin-top: 36px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin: 8px 0;
}

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  max-width: 780px;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
}

details p {
  margin: 16px 0 0;
  color: var(--muted);
}

.meta {
  font-size: 14px;
  color: var(--muted);
}

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

footer a {
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px;
  background: white;
}

.skip:focus {
  top: 8px;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 36px;
    padding-bottom: 44px;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .cta-wrap {
    align-items: center;
  }

  .cta-actions {
    justify-content: center;
  }

  .device-stage {
    order: -1;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  header,
  main,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    font-size: 19px;
    gap: 8px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
  }

  .nav-link-sub {
    display: none !important;
  }

  .lang-toggle {
    padding: 4px 8px;
    font-size: 11px;
  }

  .nav-download-desktop {
    display: none !important;
  }

  h1 {
    font-size: clamp(25px, 6.8vw, 32px);
    line-height: 1.2;
    margin: 0 0 16px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .sub-lead {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .device-stage {
    max-width: 260px;
    margin: 0 auto;
  }

  .phone-shell {
    width: 190px;
    border-radius: 34px;
    border-width: 5px;
  }

  .watch-floating {
    width: 98px;
    border-radius: 22px;
    border-width: 3.5px;
    right: 0px;
    bottom: 12px;
  }

  .calc-card {
    padding: 20px 16px;
  }

  .calc-header h2 {
    font-size: 22px;
  }

  .slider-presets {
    gap: 6px;
  }

  .preset-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .links {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
  }

  .cta-banner {
    padding: 36px 16px;
  }
}
