:root {
  --navy: #14338c;
  --navy-dark: #0d2360;
  --accent: #e8332e;
  --bg: #f4f6fb;
  --text: #1c2433;
  --muted: #5b6577;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.landing { max-width: 720px; margin: 0 auto; padding: 0 20px 64px; }

/* hero */
.hero { text-align: center; padding: 56px 16px 40px; }
.hero__eyebrow { color: var(--navy); font-weight: 700; letter-spacing: .1em; }
.hero__title {
  font-size: clamp(34px, 9vw, 56px);
  color: var(--navy);
  font-weight: 800;
  margin: 8px 0 20px;
  border-bottom: 3px solid var(--navy);
  display: inline-block;
  padding-bottom: 14px;
}
.hero__lead { color: var(--muted); font-size: 15px; }

/* cards */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  margin: 18px 0;
  box-shadow: 0 6px 24px rgba(20, 51, 140, .08);
}
.card__title {
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 5px solid var(--navy);
}
.card__desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.card__note { color: var(--muted); font-size: 12px; margin-top: 16px; }

/* steps */
.steps { list-style: none; margin-bottom: 24px; }
.steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed #e0e4ee; font-size: 15px;
}
.steps li:last-child { border-bottom: none; }
.steps__num {
  flex: 0 0 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 14px;
}

/* buttons */
.btn {
  display: block; text-align: center; text-decoration: none;
  padding: 16px; border-radius: 12px; font-weight: 700; font-size: 16px;
  transition: transform .1s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 6px 16px rgba(20, 51, 140, .35);
}
.btn--ghost {
  background: #fff; color: var(--navy);
  border: 2px solid var(--navy); margin-top: 12px;
}

/* target */
.target {
  width: 100%; max-width: 320px; display: block; margin: 0 auto;
  border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* features */
.features {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px;
}
@media (min-width: 600px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: #fff; border-radius: 12px; padding: 18px;
  box-shadow: 0 4px 16px rgba(20, 51, 140, .06);
}
.feature h3 { color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 40px; }

/* ---------- AR experience page ---------- */
.ar-ui {
  position: fixed; inset: 0; pointer-events: none; z-index: 10;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ar-top {
  pointer-events: auto;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
  color: #fff;
}
.ar-top a { color: #fff; text-decoration: none; font-size: 14px; }
.ar-top .ar-logo { font-weight: 800; letter-spacing: .05em; }

.ar-hint {
  align-self: center; margin-bottom: auto; margin-top: 24vh;
  background: rgba(0,0,0,.6); color: #fff; padding: 12px 20px;
  border-radius: 999px; font-size: 14px; transition: opacity .4s ease;
}
.ar-hint.hidden { opacity: 0; }

.ar-bottom { pointer-events: auto; padding: 20px 16px 32px; }
.ar-draw-btn {
  display: block; width: 100%; max-width: 360px; margin: 0 auto;
  padding: 18px; border: none; border-radius: 14px;
  background: var(--accent); color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(232, 51, 46, .45); cursor: pointer;
}
.ar-draw-btn:disabled { background: #999; box-shadow: none; opacity: .7; }
.ar-draw-btn:active:not(:disabled) { transform: scale(.98); }

/* result overlay */
.result {
  position: fixed; inset: 0; z-index: 20; display: none;
  place-items: center; background: rgba(13, 35, 96, .82);
  backdrop-filter: blur(4px); padding: 24px;
}
.result.show { display: grid; }
.result__card {
  background: #fff; border-radius: 20px; padding: 36px 28px; text-align: center;
  max-width: 340px; width: 100%; animation: pop .35s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result__label { color: var(--muted); font-size: 14px; letter-spacing: .2em; }
.result__fortune { font-size: 52px; font-weight: 900; color: var(--accent); margin: 8px 0 4px; }
.result__msg { color: var(--text); font-size: 15px; margin: 12px 0 24px; }
.result__again {
  border: none; background: var(--navy); color: #fff; font-weight: 700;
  padding: 14px 28px; border-radius: 10px; font-size: 15px; cursor: pointer;
}
