:root {
  --orange: #ffaa29;
  --orange-deep: #f28a00;
  --cyan: #009ec8;
  --ink: #1c1b19;
  --muted: #6d6963;
  --paper: #fffdf8;
  --canvas: #f6f3ec;
  --line: rgba(28, 27, 25, 0.12);
  --shadow: 0 22px 60px rgba(43, 35, 20, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 50% -10%, rgba(255, 170, 41, 0.26), transparent 38rem), var(--canvas); }
button, select { font: inherit; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand__icon {
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(242, 138, 0, 0.22);
}

.brand span { display: grid; gap: 1px; }
.brand strong { font-size: 16px; letter-spacing: -0.01em; }
.brand small { color: var(--muted); font-size: 12px; }

.language-picker select {
  min-height: 40px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.78);
  cursor: pointer;
}

.language-picker select:focus-visible,
.primary-action:focus-visible,
.text-button:focus-visible,
.install-help summary:focus-visible {
  outline: 3px solid rgba(0, 158, 200, 0.35);
  outline-offset: 3px;
}

.hero {
  max-width: 720px;
  margin: 72px auto 34px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #8b5700;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-deep);
  box-shadow: 0 0 0 5px rgba(255, 170, 41, 0.2);
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 8.8vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 610px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.65;
}

.notice {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.notice--error { color: #7a241e; background: #fff0ee; border: 1px solid #efc3bd; }

.downloads {
  display: grid;
  gap: 16px;
}

.platform-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.platform-card--android { border-top: 5px solid var(--orange); }
.platform-card--ios { border-top: 5px solid var(--ink); }

.platform-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.platform-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #3e2a00;
  background: var(--orange);
  font-size: 21px;
  font-weight: 850;
}

.platform-mark--ios { color: white; background: var(--ink); }
.platform-name { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.status-line { min-height: 20px; margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.status-line.is-ready { color: #177342; font-weight: 700; }
.status-line.is-waiting { color: #a05f00; font-weight: 700; }

.release-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.release-meta div { min-width: 0; padding: 12px 13px; background: var(--paper); }
.release-meta div:last-child { grid-column: 1 / -1; }
.release-meta dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.release-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }

.primary-action {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-radius: 15px;
  color: #2f2103;
  background: var(--orange);
  font-size: 16px;
  font-weight: 820;
  text-decoration: none;
  transition: transform 120ms ease, filter 160ms ease;
}

.primary-action:hover { filter: brightness(0.98); }
.primary-action:active { transform: scale(0.985); }
.primary-action--dark { color: white; background: var(--ink); }
.primary-action[aria-disabled="true"] { color: var(--muted); background: #ece8df; cursor: not-allowed; pointer-events: none; }

.checksum, .testflight-note {
  margin-top: 18px;
  padding: 15px;
  border-radius: 15px;
  background: rgba(0, 158, 200, 0.07);
}

.checksum__head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 800; }
.checksum code { display: block; margin-top: 8px; overflow-wrap: anywhere; color: #155a6d; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.5; }
.checksum p, .testflight-note p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.testflight-note strong { font-size: 13px; }

.text-button {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.install-help { margin-top: 18px; border-top: 1px solid var(--line); }
.install-help summary { padding: 16px 2px 0; font-size: 14px; font-weight: 780; cursor: pointer; }
.install-help ol, .install-help ul { margin: 13px 0 0; padding-left: 22px; color: var(--muted); font-size: 13px; line-height: 1.75; }

.privacy-note {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 17px;
  max-width: 720px;
  margin: 24px auto 0;
  padding: 16px 20px;
}

.privacy-note img { width: 84px; height: 84px; object-fit: contain; }
.privacy-note strong { font-size: 14px; }
.privacy-note p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (min-width: 760px) {
  .page-shell { padding-left: 32px; padding-right: 32px; }
  .topbar { padding-top: 8px; }
  .hero { margin-top: 94px; }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .platform-card { padding: 30px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f6f2ea;
    --muted: #aaa49b;
    --paper: #232220;
    --canvas: #161513;
    --line: rgba(255, 255, 255, 0.11);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  }
  body { background: radial-gradient(circle at 50% -10%, rgba(255, 170, 41, 0.16), transparent 38rem), var(--canvas); }
  .language-picker select, .platform-card { background: rgba(35, 34, 32, 0.94); }
  .eyebrow { color: #ffc369; }
  .platform-mark--ios { color: #1c1b19; background: #f6f2ea; }
  .primary-action--dark { color: #1c1b19; background: #f6f2ea; }
  .primary-action[aria-disabled="true"] { color: #817c74; background: #302e2b; }
  .checksum code { color: #7bd4eb; }
  .notice--error { color: #ffb7ae; background: #3a211f; border-color: #74423d; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
