*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
  color: #022C22;
  background: #ECFDF5;
  line-height: 1.5;
  min-width: 320px;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #064E3B;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 10px 14px;
  background: #fff;
  color: #064E3B;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.gw-head {
  background: #fff;
  border-bottom: 3px solid #064E3B;
}

.gw-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 448px;
  margin: 0 auto;
  padding: 12px 16px;
}

.gw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gw-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.gw-name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(0.95rem, 4vw, 1.05rem);
  letter-spacing: -0.02em;
}

.gw-age {
  margin: 0;
  flex-shrink: 0;
  padding: 3px 7px;
  background: #064E3B;
  color: #ECFDF5;
  font-size: 0.72rem;
  font-weight: 800;
}

.gw-intro {
  max-width: 448px;
  margin: 0 auto;
  padding: 20px 16px 8px;
}

.intro-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #047857;
}

.gw-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 5.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.intro-copy {
  margin: 0;
  color: #065F46;
  font-size: 0.95rem;
}

.gw-main {
  max-width: 448px;
  margin: 0 auto;
  padding: 12px 16px 48px;
}

.config,
.state-box {
  background: #fff;
  border: 1px solid #A7F3D0;
  padding: 16px 14px 18px;
}

.config-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.config-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #047857;
}

.amount-figure,
.amt-max,
.app-code {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.amount-figure,
.amt-max {
  font-size: clamp(1.15rem, 5.4vw, 1.85rem);
}

.range-module {
  position: relative;
  margin: 6px 0 10px;
  padding: 0 8px;
}

.track-visual {
  position: relative;
  height: 22px;
  pointer-events: none;
}

.track-line,
.track-fill {
  position: absolute;
  left: 0;
  top: 10px;
  height: 3px;
}

.track-line {
  right: 0;
  background: #D1FAE5;
}

.track-fill {
  width: 0;
  background: #10B981;
}

.dot {
  position: absolute;
  top: 7px;
  width: 9px;
  height: 9px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #A7F3D0;
  transform: translateX(-50%);
  pointer-events: none;
}

.dot.is-on {
  background: #064E3B;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: -18px 0 0;
  background: transparent;
  position: relative;
  z-index: 2;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: #064E3B;
  border: 2px solid #fff;
}

input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  background: #064E3B;
  transform: rotate(45deg);
}

.milestone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}

.mile {
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #A7F3D0;
  background: #ECFDF5;
  color: #022C22;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.mile.is-on {
  background: #064E3B;
  border-color: #064E3B;
  color: #fff;
}

.range-ends {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  font-size: clamp(0.68rem, 3vw, 0.8rem);
  color: #047857;
}

.range-ends .amt-max {
  font-size: inherit;
  font-weight: 700;
}

.term-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 18px 4px 6px;
}

.term-rail {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
  background: #10B981;
}

.term-point {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-width: 0;
  flex: 1 1 0;
}

.term-node {
  width: 16px;
  height: 16px;
  border: 2px solid #10B981;
  background: #fff;
}

.term-point.is-on .term-node {
  background: #064E3B;
  border-color: #064E3B;
}

.term-cap {
  font-size: 0.72rem;
  font-weight: 800;
}

.term-hint {
  margin: 4px 0 14px;
  font-weight: 700;
}

.config-note,
.result-note,
.state-sub,
.st-meta {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #065F46;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn-main {
  background: #064E3B;
  color: #fff;
}

.btn-ghost {
  margin-top: 10px;
  background: #fff;
  color: #064E3B;
  border: 1px solid #064E3B;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.skel-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.skel {
  display: block;
  height: 14px;
  background: linear-gradient(90deg, #ECFDF5 0%, #A7F3D0 50%, #ECFDF5 100%);
  background-size: 200% 100%;
  animation: skel 1.2s linear infinite;
}

.skel-wide { width: 100%; }
.skel-mid { width: 68%; }
.skel-code { width: 42%; height: 36px; }

@keyframes skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.state-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.status-tl {
  margin: 16px 0 12px;
  padding: 0;
  list-style: none;
}

.status-tl li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}

.status-tl li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: #A7F3D0;
}

.status-tl li.is-done::before,
.status-tl li.is-now::before {
  background: #10B981;
}

.st-dot {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 2px solid #A7F3D0;
  background: #fff;
}

.status-tl li.is-done .st-dot {
  background: #10B981;
  border-color: #10B981;
}

.status-tl li.is-now .st-dot {
  background: #064E3B;
  border-color: #064E3B;
}

.st-title {
  margin: 0 0 4px;
  font-weight: 800;
}

.app-code {
  font-size: clamp(1.8rem, 7.4vw, 2.4rem);
  letter-spacing: 0.14em;
  color: #064E3B;
}

.plus-grid {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.plus-grid article {
  background: #fff;
  border-left: 4px solid #10B981;
  padding: 14px 14px 16px;
}

.plus-grid span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #047857;
}

.plus-grid h3 {
  margin: 4px 0 6px;
  font-size: 1rem;
}

.plus-grid p {
  margin: 0;
  color: #065F46;
  font-size: 0.9rem;
}

.legend {
  margin-top: 32px;
}

.legend h2,
.faq-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  font-weight: 800;
}

.legend ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  background: #fff;
  padding: 10px 12px;
}

.legend strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #064E3B;
  color: #fff;
  font-size: 0.85rem;
}

.legend p {
  margin: 0;
  font-size: 0.92rem;
}

.faq-block {
  margin-top: 32px;
}

.faq-item {
  background: #fff;
  border-bottom: 1px solid #A7F3D0;
}

.faq-q {
  width: 100%;
  min-height: 54px;
  padding: 12px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 10px 14px;
  color: #065F46;
}

.faq-a p {
  margin: 0;
}

.faq-item.is-open .faq-a {
  display: block;
}

.gw-foot {
  background: #022C22;
  color: #A7F3D0;
  padding: 26px 16px 36px;
}

.foot-brand {
  margin: 0 0 10px;
  font-weight: 800;
  color: #ECFDF5;
}

.gw-foot p {
  margin: 0 0 8px;
  max-width: 62ch;
  font-size: 0.9rem;
}

.gw-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.gw-foot a {
  color: #ECFDF5;
}

.legal-page {
  background: #ECFDF5;
}

.legal-strip {
  background: #064E3B;
  color: #ECFDF5;
}

.legal-strip .gw-name {
  color: #ECFDF5;
}

.legal-strip .gw-age {
  background: #ECFDF5;
  color: #064E3B;
}

.legal-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 448px;
  margin: 0 auto;
  padding: 12px 16px;
}

.legal-sheet-wrap {
  max-width: 448px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.legal-sheet {
  background: #fff;
  padding: 22px 16px 30px;
  box-shadow: 0 10px 30px rgba(2, 44, 34, 0.06);
}

.legal-sheet .back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #047857;
  font-weight: 800;
  text-decoration: none;
}

.legal-sheet h1 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
}

.legal-sheet h2 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
}

.legal-sheet p,
.legal-sheet li {
  color: #065F46;
}

.legal-sheet ul {
  padding-left: 18px;
}

@media (min-width: 680px) {
  .plus-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .legend ol {
    grid-template-columns: repeat(3, 1fr);
  }

  .config,
  .state-box {
    padding: 20px 22px 22px;
  }

  .legal-sheet {
    padding: 32px 36px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skel {
    animation: none;
    background: #D1FAE5;
  }
}
