:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --fg: #191510;
  --muted: #6b6356;
  --line: #e4dccd;
  --accent: #a8641f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191510;
    --fg: #f2eadc;
    --muted: #a99f8d;
    --line: #3a332a;
    --accent: #e0a060;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

main, header, footer { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header { display: flex; align-items: center; gap: 10px; padding-top: 20px; padding-bottom: 20px; }
header a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
header img { width: 32px; height: 32px; }

a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 24px 0 8px; }
h2 { font-size: 1.15rem; margin: 32px 0 8px; }
p, li { overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 0.9rem; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { width: 30%; font-weight: 600; }

/* Landing page: a dark hero over the page's own background. */
.landing { --mincho: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif; }
.landing header, .landing main, .landing footer { max-width: 1120px; }
.landing .ink { background: #191510; color: #f2eadc; }
.landing .ink a { color: #d6cbb6; }
.landing header { padding-top: 24px; padding-bottom: 24px; justify-content: space-between; }
.landing header nav { display: flex; gap: 24px; font-size: 0.9rem; }
.landing header nav a { font-weight: 400; }
.landing .ink header > a { color: #f2eadc; }

.hero { max-width: 1120px; margin: 0 auto; padding: 32px 16px 0; display: flex; gap: 48px; align-items: flex-end; }
.hero-copy { flex: 1; padding-bottom: 80px; }
.eyebrow { font-size: 0.85rem; letter-spacing: 0.2em; color: #e0a060; margin: 0; }
.hero h1 { font-family: var(--mincho); font-weight: 900; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.3; margin: 20px 0; }
.hero-copy > p:not(.eyebrow) { color: #d6cbb6; font-size: 1.1rem; max-width: 520px; margin: 0; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 12px; }
.landing .ink .store { display: block; line-height: 0; }
.store img { height: 48px; width: auto; }
/* Google's badge carries its own transparent padding; crop it so both badges stand the same height. */
.store.play { overflow: hidden; height: 48px; }
.store.play img { height: 62px; margin-top: -7px; }
.avail { font-size: 0.8rem; color: #9c907a; margin: 0; }

/* The drawn app screen, cropped at the bottom of the hero. */
.phone { width: 300px; height: 540px; overflow: hidden; flex-shrink: 0; padding: 10px 10px 0; background: #0f0d0a; border-radius: 44px 44px 0 0; }
.screen { height: 100%; background: #faf7f2; color: #191510; border-radius: 34px 34px 0 0; padding: 36px 20px 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.5; }
.screen-title { font-size: 18px; font-weight: 700; }
.screen-label { font-size: 12px; font-weight: 500; color: #6b6356; }
.screen-card { background: #fff; border: 1px solid #e4dccd; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.screen-row { display: flex; align-items: center; gap: 12px; }
.face { width: 64px; height: 40px; border-radius: 6px; background: #cd7f32; display: flex; align-items: center; }
.face::before { content: ""; flex: 1; height: 6px; background: #191510; }
.face.small { width: 40px; height: 25px; border-radius: 4px; }
.face.small::before { display: none; }
.pill { display: inline-block; font-size: 10px; font-weight: 700; color: #fff; background: #a8641f; padding: 1px 8px; border-radius: 99px; }
.rate { font-size: 36px; font-weight: 700; color: #8a5019; }
.chip { align-self: flex-start; font-size: 11px; color: #5c3a10; border: 1px solid #d9b98f; padding: 3px 10px; border-radius: 99px; }
.screen-list { background: #fff; border: 1px solid #e4dccd; border-radius: 18px; }
.screen-list .screen-row { padding: 12px 16px; }
.screen-list .screen-row + .screen-row { border-top: 1px solid #efe8dc; }
.screen-list span { flex: 1; }

.landing h2 { font-family: var(--mincho); font-weight: 700; line-height: 1.45; }
.intro { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 96px 0 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.feature { border-top: 1px solid var(--fg); padding-top: 20px; }
.feature .num { font-family: var(--mincho); font-size: 2rem; color: var(--accent); margin: 0; }
.feature h3 { font-size: 1.2rem; margin: 8px 0; }
.feature p { color: var(--muted); margin: 0; }
.trust { margin: 96px 0 0; padding: 40px 48px; background: color-mix(in srgb, var(--line) 60%, var(--bg)); border-radius: 24px; display: flex; gap: 48px; align-items: center; }
.trust h2 { font-size: 1.7rem; margin: 0; flex-shrink: 0; }
.trust p { margin: 0; color: var(--muted); }
.landing footer.ink { max-width: none; margin-top: 96px; border-top: 0; }
.landing footer.ink > * { max-width: 1088px; margin-left: auto; margin-right: auto; }
.landing footer.ink a, .landing footer.ink .muted { color: #9c907a; }

@media (max-width: 800px) {
  .hero { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero-copy { padding-bottom: 0; }
  .stores { justify-content: center; }
  .avail { text-align: center; }
  .phone { align-self: center; height: 440px; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro { margin-top: 64px; }
  .trust { flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 24px; margin-top: 64px; }
}

footer { margin-top: 64px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 0.9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
