:root {
  --emerald-950: #063c32;
  --emerald-900: #064d3f;
  --emerald-800: #0a624d;
  --emerald-700: #14795d;
  --cream-50: #fffaf0;
  --cream-100: #f8efd9;
  --cream-200: #ecdfc1;
  --ink: #172b28;
  --ink-soft: #49625d;
  --gold: #ddaF42;
  --gold-soft: #f3d98a;
  --burgundy: #6c1f32;
  --burgundy-dark: #451a29;
  --sky: #9ed9e8;
  --rose: #edb1bf;
  --line: rgba(23, 43, 40, 0.16);
  --max-width: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

figure {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--cream-50);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(243, 217, 138, 0.2);
  background: rgba(6, 60, 50, 0.94);
  color: var(--cream-50);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream-50);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(243, 217, 138, 0.72);
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 250, 240, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-soft);
}

.nav-download {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 14px;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: var(--gold-soft) !important;
}

.hero {
  position: relative;
  height: calc(100svh - 128px);
  min-height: 650px;
  max-height: 900px;
  overflow: hidden;
  background: var(--emerald-900);
  color: var(--cream-50);
}

.hero::before,
.site-footer::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.14;
  background-image:
    radial-gradient(circle at 42px 0, transparent 39px, rgba(255, 240, 194, 0.7) 40px, rgba(255, 240, 194, 0.7) 42px, transparent 43px),
    radial-gradient(circle at 0 42px, transparent 39px, rgba(255, 240, 194, 0.58) 40px, rgba(255, 240, 194, 0.58) 42px, transparent 43px),
    radial-gradient(circle at 84px 42px, transparent 39px, rgba(255, 240, 194, 0.58) 40px, rgba(255, 240, 194, 0.58) 42px, transparent 43px);
  background-size: 84px 84px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max-width));
  height: 100%;
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(610px, 55%);
  padding-top: clamp(68px, 10vh, 118px);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(68px, 9vw, 112px);
  font-weight: 700;
  line-height: 0.92;
}

.hero-lead {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, 0.86);
  font-family: var(--serif);
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.12;
}

.hero-copy > p:not(.eyebrow):not(.hero-lead) {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255, 250, 240, 0.7);
  font-size: 17px;
}

.store-actions {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 10px;
}

.store-button {
  display: inline-flex;
  min-width: 178px;
  min-height: 54px;
  padding: 8px 15px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: 6px;
  background: var(--cream-50);
  color: var(--ink);
  text-decoration: none;
}

.store-button:hover,
.store-button:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.store-button .store-symbol {
  width: 24px;
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1.08;
}

.store-button small {
  color: var(--ink-soft);
  font-size: 10px;
}

.store-button strong {
  margin-top: 3px;
  font-size: 15px;
}

.hero-visual {
  position: absolute;
  top: 38px;
  right: -75px;
  bottom: -210px;
  left: 48%;
}

.hero-phone {
  position: absolute;
  bottom: 0;
  overflow: hidden;
  border: 4px solid rgba(243, 217, 138, 0.82);
  border-radius: 46px;
  background: #18100d;
  box-shadow: 0 22px 50px rgba(52, 12, 28, 0.32);
}

.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-phone.primary {
  z-index: 3;
  right: 26%;
  width: 334px;
  aspect-ratio: 1242 / 2688;
}

.hero-phone.left {
  z-index: 1;
  right: 62%;
  bottom: -70px;
  width: 268px;
  aspect-ratio: 1242 / 2688;
  opacity: 0.82;
}

.hero-phone.right {
  z-index: 2;
  right: -7%;
  bottom: -58px;
  width: 276px;
  aspect-ratio: 1242 / 2688;
  opacity: 0.9;
}

.promise-band {
  background: var(--cream-100);
}

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

.promise-intro {
  display: grid;
  padding: 84px 0 48px;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: end;
}

.section-kicker {
  margin: 0 0 13px;
  color: var(--emerald-700);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
}

.section-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.promise-grid {
  display: grid;
  padding: 0 0 84px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.promise-item {
  padding: 32px 32px 0 0;
}

.promise-item + .promise-item {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.promise-number {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
}

.promise-item h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.promise-item p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-band {
  position: relative;
  overflow: hidden;
  background: var(--cream-50);
}

.feature-band.alt {
  background: #dceef1;
}

.feature-layout {
  display: grid;
  min-height: 760px;
  padding: 98px 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 90px;
  align-items: center;
}

.feature-layout.reverse {
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
}

.feature-layout.reverse .feature-copy-block {
  order: 2;
}

.feature-copy-block h2,
.tournament-copy h2,
.yakuman-copy h2,
.cta-band h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
}

.feature-copy-block > p:not(.section-kicker),
.tournament-copy > p:not(.section-kicker),
.yakuman-copy > p:not(.section-kicker) {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.detail-list {
  display: grid;
  margin: 34px 0 0;
  padding: 0;
  gap: 17px;
  list-style: none;
}

.detail-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.detail-list li::before {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  content: "";
  background: var(--gold);
}

.detail-list strong,
.detail-list span {
  display: block;
}

.detail-list span {
  color: var(--ink-soft);
  font-size: 15px;
}

.screen-stage {
  position: relative;
  min-height: 620px;
}

.screen-stage::before {
  position: absolute;
  inset: 12% 3% 4% 14%;
  content: "";
  background: var(--rose);
}

.screen-stage.sky::before {
  background: var(--sky);
}

.screen-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(390px, 72%);
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 4px solid var(--burgundy-dark);
  border-radius: 42px;
  background: #170f0c;
  box-shadow: 18px 22px 0 rgba(108, 31, 50, 0.18);
}

.yakuman-band {
  position: relative;
  overflow: hidden;
  background: var(--burgundy);
  color: var(--cream-50);
}

.yakuman-band::after {
  position: absolute;
  top: -240px;
  right: -230px;
  width: 660px;
  height: 660px;
  content: "";
  border: 2px solid rgba(255, 211, 107, 0.28);
  transform: rotate(45deg);
}

.yakuman-layout {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 820px;
  padding: 96px 0;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.yakuman-copy .section-kicker {
  color: var(--gold-soft);
}

.yakuman-copy > p:not(.section-kicker) {
  color: rgba(255, 250, 240, 0.78);
}

.yakuman-copy .detail-list span {
  color: rgba(255, 250, 240, 0.7);
}

.yakuman-screen {
  width: min(430px, 84%);
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid var(--gold);
  border-radius: 42px;
  background: #170f0c;
  box-shadow: 18px 20px 0 rgba(255, 211, 107, 0.12);
}

.tournament-band {
  overflow: hidden;
  background: #e9dff4;
}

.tournament-copy {
  max-width: 760px;
  padding: 92px 0 42px;
}

.tournament-screens {
  display: grid;
  min-height: 700px;
  padding-bottom: 90px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px;
  align-items: end;
}

.tournament-screen {
  position: relative;
  display: flex;
  min-height: 610px;
  align-items: flex-end;
  justify-content: center;
  background: var(--sky);
}

.tournament-screen:nth-child(2) {
  background: var(--rose);
}

.tournament-screen img {
  width: min(355px, 78%);
  border: 4px solid var(--burgundy-dark);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
}

.records-band {
  background: var(--cream-100);
}

.cta-band {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: var(--emerald-900);
  color: var(--cream-50);
  text-align: center;
}

.cta-band p {
  max-width: 640px;
  margin: 22px auto 0;
  color: rgba(255, 250, 240, 0.76);
  font-size: 19px;
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--emerald-950);
  color: rgba(255, 250, 240, 0.74);
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  padding: 62px 0 38px;
  grid-template-columns: 1.2fr repeat(2, 0.7fr);
  gap: 60px;
}

.footer-brand p {
  max-width: 380px;
  margin: 15px 0 0;
}

.footer-column h3 {
  margin: 0 0 13px;
  color: var(--gold-soft);
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  width: fit-content;
  color: rgba(255, 250, 240, 0.74);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cream-50);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  padding: 22px 0 30px;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 250, 240, 0.14);
  font-size: 13px;
}

.legal-hero {
  position: relative;
  padding: 86px 0 72px;
  overflow: hidden;
  background: var(--burgundy);
  color: var(--cream-50);
}

.legal-hero.terms {
  background: var(--emerald-800);
}

.legal-hero h1 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 86px);
  line-height: 1;
}

.legal-hero p {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 18px;
}

.legal-layout {
  display: grid;
  padding: 72px 0 100px;
  grid-template-columns: 230px minmax(0, 780px);
  gap: 80px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 7px;
  border-top: 3px solid var(--gold);
  padding-top: 18px;
}

.legal-toc strong {
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
}

.legal-toc a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--burgundy);
}

.legal-content {
  min-width: 0;
}

.legal-content .updated {
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: 14px;
}

.legal-content section {
  padding: 0 0 28px;
  scroll-margin-top: 100px;
}

.legal-content h2 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.2;
}

.legal-content h3 {
  margin: 22px 0 7px;
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: #3f5752;
  font-size: 16px;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0;
  padding-left: 22px;
}

.legal-content a {
  color: var(--emerald-700);
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 900px) {
  .nav-links a:not(.nav-download) {
    display: none;
  }

  .hero-copy {
    width: 62%;
  }

  .hero-visual {
    left: 40%;
  }

  .hero-phone.left,
  .hero-phone.right {
    opacity: 0.46;
  }

  .promise-intro,
  .feature-layout,
  .feature-layout.reverse,
  .yakuman-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .feature-layout.reverse .feature-copy-block {
    order: 0;
  }

  .feature-layout,
  .yakuman-layout {
    gap: 44px;
  }

  .screen-stage {
    min-height: 680px;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(calc(100% - 28px), var(--max-width));
    min-height: 64px;
  }

  .brand span {
    font-size: 18px;
  }

  .nav-download {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 12px !important;
  }

  .hero {
    height: calc(100svh - 112px);
    min-height: 650px;
    max-height: 790px;
  }

  .hero-inner,
  .section-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero-copy {
    width: 100%;
    padding-top: 46px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(58px, 19vw, 82px);
  }

  .hero-lead {
    margin-right: auto;
    margin-left: auto;
    font-size: 26px;
  }

  .hero-copy > p:not(.eyebrow):not(.hero-lead) {
    margin-right: auto;
    margin-left: auto;
    font-size: 15px;
  }

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

  .store-button {
    min-width: 150px;
    min-height: 48px;
    padding: 7px 10px;
  }

  .hero-visual {
    top: 355px;
    right: 0;
    bottom: -180px;
    left: 0;
  }

  .hero-phone.primary {
    right: 50%;
    width: 262px;
    transform: translateX(50%);
  }

  .hero-phone.left,
  .hero-phone.right {
    display: none;
  }

  .promise-intro {
    padding: 66px 0 34px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .promise-grid {
    padding-bottom: 60px;
    grid-template-columns: 1fr;
  }

  .promise-item,
  .promise-item + .promise-item {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-layout,
  .yakuman-layout {
    min-height: 0;
    padding: 72px 0;
  }

  .screen-stage {
    min-height: 600px;
  }

  .screen-frame,
  .yakuman-screen {
    width: min(330px, 88%);
  }

  .tournament-copy {
    padding-top: 72px;
  }

  .tournament-screens {
    min-height: 0;
    padding-bottom: 70px;
    grid-template-columns: 1fr;
  }

  .tournament-screen {
    min-height: 570px;
  }

  .tournament-screen img {
    width: min(315px, 84%);
  }

  .footer-grid {
    padding-top: 52px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .legal-hero {
    padding: 66px 0 56px;
  }

  .legal-layout {
    padding: 50px 0 76px;
    gap: 48px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
