/* Japan 100 — japan100.app
   Shared styles for the landing page and legal pages.
   Brand: washi paper ground, sumi ink, vermilion hanko accent. */

:root {
  --washi: #f4eee2;
  --washi-deep: #ebe4d4;
  --surface: #fbf6ea;
  --cream: #fbf7ec;
  --ink: #232b45;
  --ink-60: rgba(35, 43, 69, 0.6);
  --ink-75: rgba(35, 43, 69, 0.75);
  --ink-14: rgba(35, 43, 69, 0.14);
  --vermilion: #ce3a24;
  --gold: #c99b45;
  --display: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --body: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--washi);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  padding: 28px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
}

.header-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  background: var(--vermilion);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}

.header-cta:hover {
  opacity: 0.85;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 96px 0 128px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

/* Scattered quest stickers behind the headline (theday.city-style field) */

.sticker-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sticker {
  position: absolute;
  width: 108px;
  padding: 12px 10px 8px;
  background: var(--cream);
  border: 1px solid var(--ink-14);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(35, 43, 69, 0.08);
  text-align: center;
  animation: bob 7s ease-in-out infinite;
}

.sticker img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.sticker figcaption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-60);
  margin-top: 4px;
  line-height: 1.3;
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* Positions & tilts — edges of the field, leaving the center readable */
.s1  { top: 6%;  left: 4%;   rotate: -7deg; }
.s2  { top: 40%; left: 2%;   rotate: 5deg;  animation-delay: -1.2s; }
.s3  { top: 74%; left: 7%;   rotate: -4deg; animation-delay: -2.4s; }
.s4  { top: 8%;  right: 5%;  rotate: 6deg;  animation-delay: -3.1s; }
.s5  { top: 42%; right: 2%;  rotate: -6deg; animation-delay: -4.3s; }
.s6  { top: 76%; right: 6%;  rotate: 4deg;  animation-delay: -5s; }
.s7  { top: 3%;  left: 26%;  rotate: 3deg;  animation-delay: -0.6s; }
.s8  { top: 3%;  right: 25%; rotate: -5deg; animation-delay: -1.8s; }
.s9  { top: 80%; left: 27%;  rotate: 6deg;  animation-delay: -2.9s; }
.s10 { top: 80%; right: 26%; rotate: -3deg; animation-delay: -3.7s; }
.s11 { top: 24%; left: 13%;  rotate: 8deg;  animation-delay: -4.6s; }
.s12 { top: 26%; right: 13%; rotate: -8deg; animation-delay: -5.6s; }

@media (max-width: 900px) {
  .s7, .s8, .s9, .s10, .s11, .s12 { display: none; }
  .sticker { width: 88px; }
  .sticker img { width: 58px; height: 58px; }
}

@media (max-width: 560px) {
  .s2, .s5 { display: none; }
  .hero { padding: 72px 0 140px; }
  /* Keep the bottom stickers in the corners, clear of the note text */
  .s3 { top: auto; bottom: 12px; left: 3%; }
  .s6 { top: auto; bottom: 12px; right: 3%; }
}

.hero .seal {
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
  display: block;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.hero h1 .accent {
  color: var(--vermilion);
}

.hero .sub {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 18px;
  color: var(--ink-75);
}

.hero .cta-row {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.appstore-badge {
  display: inline-block;
  height: 54px;
}

.appstore-badge img {
  height: 100%;
}

.hero .note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-60);
}

/* ── Sections ───────────────────────────────────────────────────────── */

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--ink-14);
  border-bottom: 1px solid var(--ink-14);
}

.section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  text-align: center;
  margin-bottom: 12px;
}

.section .lead {
  text-align: center;
  color: var(--ink-75);
  max-width: 620px;
  margin: 0 auto 48px;
}

.rule {
  width: 72px;
  height: 6px;
  border-radius: 3px;
  background: var(--vermilion);
  margin: 0 auto 28px;
}

/* How-it-works steps — pop cards with numbered badges and connectors */

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step-arrow {
    rotate: 90deg;
    justify-self: center;
  }
}

.step {
  position: relative;
  background: var(--washi);
  border: 1px solid var(--ink-14);
  border-radius: 20px;
  padding: 40px 24px 30px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(35, 43, 69, 0.1);
}

.step-num {
  position: absolute;
  top: -18px;
  left: 50%;
  translate: -50% 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vermilion);
  color: var(--cream);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(206, 58, 36, 0.35);
}

.step img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--display);
  font-size: 20px;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--ink-75);
}

.step-arrow {
  align-self: center;
  font-size: 26px;
  color: var(--vermilion);
  font-weight: 700;
}

/* Inside the app — phone screenshots + point list */

.peek-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .peek-grid {
    grid-template-columns: 1fr;
  }
}

.peek-phones {
  display: flex;
  justify-content: center;
  gap: 0;
}

.phone {
  width: 200px;
  border-radius: 34px;
  border: 6px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(35, 43, 69, 0.22);
}

.phone img {
  display: block;
  width: 100%;
}

.phone.tilt-l {
  rotate: -5deg;
  translate: 14px 12px;
  z-index: 1;
}

.phone.tilt-r {
  rotate: 4deg;
  translate: -14px -6px;
  z-index: 2;
}

@media (max-width: 480px) {
  .phone { width: 164px; }
}

.peek-points {
  list-style: none;
}

.peek-points li {
  font-size: 15.5px;
  color: var(--ink-75);
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-14);
}

.peek-points li:last-child {
  border-bottom: none;
}

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--vermilion);
  background: rgba(206, 58, 36, 0.09);
  border-radius: 999px;
  padding: 3px 10px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* Privacy banner */

.privacy-banner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.privacy-banner .hanko {
  width: 64px;
  margin-bottom: 18px;
}

.privacy-banner p {
  color: var(--ink-75);
  font-size: 16px;
}

.privacy-banner a {
  color: var(--vermilion);
  font-weight: 700;
}

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--ink-60);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--display);
  font-size: 21px;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-size: 15.5px;
  color: var(--ink-75);
  margin-bottom: 12px;
}

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

.legal .highlight {
  background: var(--cream);
  border: 1px solid var(--ink-14);
  border-left: 5px solid var(--vermilion);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
}

.legal .highlight p {
  margin: 0;
  color: var(--ink);
}

.legal a {
  color: var(--vermilion);
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--ink-14);
  padding: 40px 0 56px;
}

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

.site-footer .copyright {
  font-size: 13px;
  color: var(--ink-60);
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer a {
  font-size: 13px;
  color: var(--ink-75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--vermilion);
}
