:root {
  --primary: #0e7a5f;
  --primary-dark: #075845;
  --primary-soft: #e9fff8;
  --accent: #f6b743;
  --ink: #17211f;
  --muted: #66756f;
  --line: #dce8e4;
  --surface: #ffffff;
  --soft: #f5faf8;
  --danger: #a64040;
  --shadow: 0 24px 70px rgba(12, 80, 62, 0.15);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input {
  font: inherit;
}

.container {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 16px;
  z-index: 999;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 232, 228, 0.8);
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 22px rgba(14, 122, 95, 0.2);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #31443f;
  font-weight: 650;
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 10px;
  transition: 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section-pad {
  padding: 96px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(246, 183, 67, 0.18), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(14, 122, 95, 0.16), transparent 34%),
    linear-gradient(180deg, #f7fffc, #ffffff 60%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  background: rgba(14, 122, 95, 0.06);
  right: -160px;
  bottom: -160px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  max-width: 820px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 850;
  border: 1px solid var(--primary);
  box-shadow: 0 16px 30px rgba(14, 122, 95, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 20px 38px rgba(14, 122, 95, 0.28);
}

.btn-outline {
  color: var(--primary-dark);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.btn-outline.light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.btn.full {
  width: 100%;
}

.mini-disclosure {
  margin-top: 26px;
  max-width: 690px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #4b5f59;
  background: rgba(255, 255, 255, 0.72);
}

.phone-wrap {
  display: grid;
  place-items: center;
}

.phone {
  width: min(380px, 100%);
  min-height: 660px;
  padding: 32px 22px 24px;
  border: 12px solid #15221e;
  border-radius: 44px;
  background:
    linear-gradient(180deg, #f1fff9, #fff),
    #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(246, 183, 67, 0.2);
  top: 40px;
  right: -70px;
}

.phone-notch {
  position: absolute;
  width: 108px;
  height: 26px;
  border-radius: 0 0 18px 18px;
  background: #15221e;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.app-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 35px rgba(17, 33, 29, 0.08);
}

.primary-card {
  margin-top: 34px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: 0;
}

.primary-card span,
.primary-card small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.primary-card strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 2.25rem;
  letter-spacing: -0.06em;
}

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

.stats-grid div {
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

.stats-grid span,
.stats-grid strong {
  display: block;
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.stats-grid strong {
  margin-top: 6px;
  font-size: 1.35rem;
}

.list-card div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #3f5550;
  font-weight: 700;
}

.list-card div + div {
  border-top: 1px solid var(--line);
}

.list-card span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.phone-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: #2c2109;
  font-weight: 900;
  cursor: default;
  position: relative;
  z-index: 1;
}

.stats-strip {
  background: var(--primary-dark);
  color: #fff;
}

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

.stats-strip-grid div {
  padding: 28px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-strip-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-strip span,
.stats-strip strong {
  display: block;
}

.stats-strip span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stats-strip strong {
  margin-top: 8px;
  font-size: 1.25rem;
}

.section-title {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 46px;
}

.section-title.left {
  margin-inline: 0;
  text-align: left;
}

.section-title p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.feature-card,
.terms-card,
.example-card,
.notice-card,
.calculator-card,
.timeline-item,
.learning-card,
.learning-panel,
.policy-box,
.split-card,
.faq-list,
.cta-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(15, 70, 58, 0.08);
}

.feature-card {
  padding: 28px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border-radius: 18px;
  margin-bottom: 20px;
  font-size: 1.55rem;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.soft-bg {
  background: var(--soft);
}

.terms-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.terms-card {
  overflow: hidden;
}

.terms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.terms-row + .terms-row {
  border-top: 1px solid var(--line);
}

.terms-row span {
  color: var(--muted);
  font-weight: 700;
}

.terms-row strong {
  text-align: right;
}

.example-wrap {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 24px;
  margin-top: 34px;
}

.example-card,
.notice-card {
  padding: 28px;
}

.example-card p,
.notice-card p {
  color: var(--muted);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.example-grid div,
.result-card div {
  background: var(--soft);
  border-radius: 18px;
  padding: 18px;
}

.example-grid span,
.result-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.example-grid strong,
.result-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

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

.calculator-card {
  padding: 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fbfefd;
  color: var(--ink);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 122, 95, 0.12);
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.result-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.result-card.invalid {
  border: 1px solid rgba(166, 64, 64, 0.3);
  background: #fff8f8;
  border-radius: 18px;
  padding: 12px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.timeline-item {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.timeline-item span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  margin-bottom: 18px;
}

.timeline-item p {
  color: var(--muted);
  margin: 0;
}

.learning-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.learning-card,
.learning-panel,
.policy-box {
  padding: 32px;
}

.learning-card p,
.policy-box p {
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-weight: 750;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
}

.learning-panel {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  display: grid;
  gap: 14px;
}

.lesson-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 18px;
  font-weight: 850;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.split-card {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
}

.split-card p {
  color: var(--muted);
  max-width: 780px;
  margin-bottom: 0;
}

.contact-card {
  min-width: 280px;
  padding: 22px;
  border-radius: 22px;
  background: var(--primary-soft);
  border: 1px solid #cbeee3;
}

.contact-card strong,
.contact-card a,
.contact-card small {
  display: block;
}

.contact-card a {
  color: var(--primary-dark);
  font-weight: 900;
  margin: 8px 0;
}

.contact-card small {
  color: var(--muted);
}

.faq-list {
  overflow: hidden;
}

.faq-list details {
  padding: 0 26px;
}

.faq-list details + details {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  padding: 22px 0;
  cursor: pointer;
  font-weight: 900;
  list-style-position: outside;
}

.faq-list p {
  color: var(--muted);
  padding-bottom: 22px;
  margin-bottom: 0;
}

.cta-section {
  background: #fff;
}

.cta-card {
  padding: 56px 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 12% 30%, rgba(246, 183, 67, 0.35), transparent 34%),
    linear-gradient(145deg, var(--primary), var(--primary-dark));
  border: 0;
}

.cta-card .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.cta-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
  margin-inline: auto;
}

.site-footer {
  background: #0d1714;
  color: #fff;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.8fr;
  gap: 34px;
}

.footer-brand .brand-icon {
  box-shadow: none;
}

.footer-grid p,
.footer-grid a,
.footer-grid span,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid p {
  max-width: 440px;
}

.footer-grid h3 {
  color: #fff;
  font-size: 1rem;
}

.footer-grid a,
.footer-grid span:not(.brand-icon) {
  display: block;
  margin-top: 10px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 34px rgba(14, 122, 95, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }

@media (max-width: 1040px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 14px;
  }

  .nav-links .btn {
    margin-top: 8px;
  }

  .hero-grid,
  .terms-grid,
  .calculator-grid,
  .learning-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-text,
  .mini-disclosure {
    margin-inline: auto;
  }

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

  .section-title.left {
    text-align: center;
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .example-grid,
  .result-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section-pad {
    padding: 68px 0;
  }

  .navbar {
    min-height: 68px;
  }

  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.3rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .phone {
    min-height: auto;
    border-width: 9px;
    border-radius: 34px;
  }

  .stats-strip-grid,
  .feature-grid,
  .timeline,
  .example-wrap,
  .example-grid,
  .result-card,
  .footer-grid,
  .split-card {
    grid-template-columns: 1fr;
  }

  .stats-strip-grid div,
  .stats-strip-grid div:last-child {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .terms-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .terms-row strong {
    text-align: left;
  }

  .contact-card {
    min-width: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
