:root {
  --bg: #f5edda;
  --card: #ffffff;
  --ink: #262f26;
  --subtext: rgba(38, 47, 38, 0.6);
  --green: #388a5e;
  --green-soft: #ddecdf;
  --blue: #3a6bcc;
  --blue-soft: #e0e7f8;
  --yellow: #f5c74d;
  --yellow-soft: #fbf0d4;
  --red: #d95447;
  --orange: #ed9942;
  --board: #3a805a;
  --shadow: rgba(38, 47, 38, 0.1);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 237, 218, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 47, 38, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
}

.brand .logo-mark {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-weight: 700;
  font-size: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--subtext);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(56, 138, 94, 0.28);
}

/* ---------- Logo mark (matches AppLogoMark in the app) ---------- */

.logo-mark {
  position: relative;
  border-radius: 24%;
  background: var(--green);
}

.logo-mark .disc {
  position: absolute;
  border-radius: 50%;
  width: 42%;
  height: 42%;
}

.logo-mark .disc.black {
  background: var(--ink);
  top: 18%;
  right: 12%;
}

.logo-mark .disc.white {
  background: #fff;
  bottom: 18%;
  left: 12%;
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-decoration .circle {
  position: absolute;
  border-radius: 50%;
}

.hero-decoration .c1 {
  width: 320px;
  height: 320px;
  background: var(--green);
  opacity: 0.14;
  top: -140px;
  left: -120px;
}

.hero-decoration .c2 {
  width: 220px;
  height: 220px;
  background: var(--yellow);
  opacity: 0.24;
  top: -60px;
  right: -60px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.3;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero p.lead {
  font-size: 17px;
  color: var(--subtext);
  margin: 0 0 30px;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(38, 47, 38, 0.22);
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge .label small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.store-badge .label strong {
  display: block;
  font-size: 16px;
}

.hero-note {
  font-size: 13px;
  color: var(--subtext);
  font-weight: 600;
}

/* ---------- Phone mockups ---------- */

.phone-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}

.phone {
  width: 220px;
  border-radius: 34px;
  background: var(--card);
  box-shadow: 0 30px 60px rgba(38, 47, 38, 0.22);
  padding: 10px;
  border: 1px solid rgba(38, 47, 38, 0.06);
}

.phone .screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  padding: 18px 14px 16px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.phone.phone-front {
  transform: rotate(-6deg);
}

.phone.phone-back {
  position: absolute;
  width: 190px;
  transform: rotate(10deg) translate(78px, 34px);
  opacity: 0.94;
  z-index: -1;
}

.mock-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--subtext);
  margin-bottom: 12px;
  text-align: center;
}

.mock-logo {
  width: 46px;
  height: 46px;
  margin: 4px auto 10px;
}

.mock-title {
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 3px;
}

.mock-rule {
  width: 22px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.mock-btn {
  border-radius: 13px;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 11px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-btn.green {
  background: var(--green);
}

.mock-btn.blue {
  background: var(--blue);
}

.mock-btn .ico {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.mock-tiles {
  margin-top: auto;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.mock-tile {
  width: 34px;
  height: 30px;
  border-radius: 9px;
  background: var(--card);
  box-shadow: 0 4px 10px var(--shadow);
}

.mock-board {
  background: var(--board);
  border-radius: 16px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  margin-top: 10px;
}

.mock-cell {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  position: relative;
}

.mock-cell .disc {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
}

.mock-cell .disc.b {
  background: var(--ink);
}

.mock-cell .disc.w {
  background: #fff;
}

.mock-cell .hint {
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: var(--yellow);
}

.mock-score {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.mock-score .pill {
  flex: 1;
  background: var(--card);
  border-radius: 9px;
  padding: 6px 8px;
  box-shadow: 0 4px 10px var(--shadow);
}

.mock-score .pill .label {
  font-size: 8px;
  font-weight: 800;
  color: var(--subtext);
}

.mock-score .pill .value {
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Sections ---------- */

section {
  padding: 68px 0;
}

#download {
  padding-top: 24px;
  padding-bottom: 24px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--subtext);
  font-size: 15px;
  margin: 0;
}

/* Feature cards */

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

.feature-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: 0 14px 30px var(--shadow);
  position: relative;
}

.feature-card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  position: relative;
  margin-bottom: 18px;
}

.feature-card .icon-badge .mini-disc {
  position: absolute;
  border-radius: 50%;
  width: 19px;
  height: 19px;
}

.feature-card .icon-badge .mini-disc.black {
  background: var(--ink);
  top: 7px;
  right: 6px;
}

.feature-card .icon-badge .mini-disc.white {
  background: #fff;
  bottom: 7px;
  left: 6px;
}

.feature-card .icon-badge .silhouette {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  color: #fff;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--subtext);
  margin: 0;
}

/* How to play steps */

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

.step-card {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: 0 14px 30px var(--shadow);
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--subtext);
  margin: 0;
}

/* CTA band */

.cta-band {
  background: var(--board);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
  max-width: calc(var(--max-width) - 48px);
  margin-inline: auto;
}

.cta-band h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 26px;
  font-size: 15px;
}

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

.cta-band .store-badge {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 44px 0 34px;
  border-top: 1px solid rgba(38, 47, 38, 0.08);
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a {
  text-decoration: none;
  color: var(--subtext);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 12px;
  color: var(--subtext);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ---------- Simple content pages (privacy / support) ---------- */

.page-hero {
  padding: 56px 0 20px;
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
}

.page-hero p {
  color: var(--subtext);
  margin: 0;
  font-size: 14px;
}

.content-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 34px 36px;
  box-shadow: 0 14px 30px var(--shadow);
  margin-bottom: 60px;
}

.content-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 30px 0 12px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  font-size: 14.5px;
  color: var(--subtext);
}

.content-card ul {
  padding-left: 20px;
  margin: 10px 0;
}

.content-card a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.lead {
    max-width: none;
    margin-inline: auto;
  }

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

  .phone-stage {
    min-height: 380px;
    margin-top: 20px;
  }

  .phone.phone-back {
    display: none;
  }

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

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 40px 24px;
    margin: 0 16px;
  }

  .content-card {
    padding: 26px 22px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
