:root {
  --navy: #0b1f4a;
  --teal: #2ee6c7;
  --teal-deep: #0f766e;
  --ink: #0f172a;
  --muted: #3d4a5c;
  --paper: #f6f6f6;
  --card: #ffffff;
  --line: #e4e0d8;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after { box-sizing: border-box; }

body.home {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f6f6f6;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: var(--wrap);
  margin: 0 auto;
  padding: 0.85rem 0;
}

.brand img { height: 34px; width: auto; }
.nav-place {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

.pill:hover { background: #16336e; }

.hero {
  width: var(--wrap);
  margin: 0 auto;
  padding: 3.2rem 0 1rem;
}

.kicker {
  color: var(--teal-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--navy);
}

.tagline {
  margin-top: 0.55rem;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--navy);
}

.lede {
  max-width: 40rem;
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.4;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}

.facts li {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.facts strong { display: block; color: var(--navy); font-size: 1rem; }
.facts span { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.92rem; }

.stage {
  margin-top: 2.2rem;
  background: linear-gradient(160deg, #e7f6f1 0%, #e4ebf6 55%, #f3efe6 100%);
  border-radius: 28px;
  padding: 1.1rem 1.1rem 0.9rem;
  box-shadow: 0 24px 60px rgba(11, 31, 74, 0.12);
}

.stage img,
.frame img {
  width: 100%;
  border-radius: 16px;
}

.stage figcaption,
.frame figcaption {
  padding: 0.75rem 0.35rem 0.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.story {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 2.5rem;
  width: var(--wrap);
  margin: 2.5rem auto 0;
  align-items: start;
}

.rail {
  position: sticky;
  top: 4.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.4rem;
}

.rail a {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.4rem 0;
  color: #8b93a1;
  font-weight: 600;
  font-size: 0.95rem;
}

.rail a span {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
}

.rail a.on { color: var(--navy); }
.rail a.on span { color: var(--teal-deep); }

.chapters { min-width: 0; }

.chapter {
  min-width: 0;
  padding: 3.2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.chapter h2 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--navy);
}

.claim {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.body {
  max-width: 42rem;
  margin-top: 0.8rem;
  color: var(--muted);
}

.market { position: relative; margin-top: 1.4rem; min-width: 0; }

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.carousel-nav button {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--navy);
}

.carousel {
  display: flex;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.3rem;
}

.carousel::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.slide img { height: 180px; width: 100%; object-fit: cover; }
.slide div { padding: 0.75rem 0.85rem 0.95rem; }
.slide h3 { font-size: 0.98rem; font-weight: 700; }
.slide p { margin-top: 0.2rem; color: var(--muted); font-size: 0.86rem; }

.frame {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.7rem 0.7rem 0.55rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.points article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
}

.points h3 { font-size: 1rem; color: var(--navy); }
.points p { margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; }

.when {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.when div {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 1rem 1rem 1.05rem;
}

.when strong { display: block; font-size: 1.05rem; }
.when span { display: block; margin-top: 0.25rem; color: #d5deee; font-size: 0.9rem; }

.close {
  width: var(--wrap);
  margin: 1rem auto 0;
  scroll-margin-top: 5rem;
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.close h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.close > p {
  max-width: 36rem;
  margin: 0.7rem auto 0;
  color: #d5deee;
}

#join {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.3rem;
}

#join input[type="email"] {
  width: min(340px, 100%);
  border: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1rem;
}

#join input[aria-invalid="true"] { outline: 2px solid #fbbf24; }

#join .pill { background: var(--teal); color: var(--navy); }
#join .pill:hover { background: #5ef0d6; }

.note {
  min-height: 1.3em;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--teal);
}

.note.bad { color: #fde68a; }

#join button:disabled { opacity: 0.7; }

.fine { margin-top: 0.45rem; font-size: 0.88rem; color: #b7c3da; }
.fine a { color: #fff; font-weight: 700; text-decoration: underline; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: var(--wrap);
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot img { height: 26px; width: auto; }
.foot a { color: var(--teal-deep); font-weight: 700; }

@media (max-width: 860px) {
  .facts,
  .points,
  .when { grid-template-columns: 1fr; }

  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .rail {
    min-width: 0;
    top: 3.6rem;
    flex-direction: row;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.45rem 0 0.7rem;
    background: #f6f6f6;
    z-index: 25;
  }

  .rail::-webkit-scrollbar { display: none; }
  .rail a { white-space: nowrap; padding: 0.35rem 0.55rem; }

  .chapter { padding-top: 2.2rem; }
  .slide { flex-basis: 78vw; }
  .nav-place { display: none; }
  #join { flex-direction: column; align-items: stretch; }
  #join input[type="email"] { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero { padding-top: 1.6rem; }
  .hero h1 { font-size: 3.3rem; }
  .stage { border-radius: 20px; padding: 0.6rem 0.6rem 0.45rem; }
  .close { border-radius: 20px; padding: 2rem 1rem; }
}
