:root {
  --bg: #fcfcfb;
  --line: #d9dee3;
  --text: #2d4155;
  --text-soft: #6c7886;
  --text-faint: #96a1ad;
  --accent: var(--page-accent, #f3a364);
  --max: 1100px;
  --font-ui: "Kosugi Maru", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell,
.site-header,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand span,
.top-link {
  color: var(--text-soft);
}

.brand span {
  font-size: 0.84rem;
}

.page-frame {
  padding-bottom: 56px;
}

.top-link,
.store-button,
.stack-links a,
.mini-card,
.inline-link {
  transition: color 0.18s ease;
}

.top-link:hover,
.store-button:hover,
.stack-links a:hover,
.mini-card:hover,
.inline-link:hover {
  color: var(--text);
}

.app-hero,
.policy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px;
  align-items: start;
  padding-top: 56px;
}

.policy-hero {
  grid-template-columns: 1fr;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-hero h1,
.policy-hero h1,
.content-card h2 {
  margin: 0;
  color: var(--text);
}

.app-hero h1,
.policy-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.28;
  letter-spacing: 0.06em;
  text-wrap: balance;
}

.hero-tagline {
  margin: 18px 0 0;
  color: var(--accent);
  font-size: 1rem;
}

.hero-description,
.content-card p,
.bullet-list li,
.mini-card span {
  color: var(--text-soft);
  line-height: 1.95;
}

.hero-description {
  margin-top: 18px;
  max-width: 32rem;
}

.hero-meta,
.hero-actions,
.stack-links,
.mini-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.hero-meta {
  margin-top: 18px;
}

.hero-meta span {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.hero-actions {
  margin-top: 26px;
}

.app-hero__visual {
  padding-top: 22px;
}

.icon-stack {
  width: 132px;
  height: 132px;
  margin-left: auto;
}

.icon-stack img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: #fff;
}

.content-grid,
.policy-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-top: 52px;
}

.policy-layout {
  grid-template-columns: 1fr;
  gap: 28px;
}

.content-grid--wide {
  padding-top: 28px;
}

.content-card {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.content-card h2 {
  font-size: 1.6rem;
  line-height: 1.4;
  text-wrap: balance;
}

.content-card p {
  margin: 16px 0 0;
  max-width: 60ch;
}

.bullet-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.bullet-list li + li {
  margin-top: 10px;
}

.store-button,
.stack-links a,
.mini-card,
.inline-link,
.top-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}

.store-button,
.stack-links a,
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
}

.store-button::after,
.stack-links a::after,
.inline-link::after,
.top-link::after {
  content: "→";
  font-size: 0.92em;
}

.store-button--apple {
  color: var(--accent);
}

.store-button--play {
  color: #68bdb0;
}

.store-button--ghost {
  color: var(--text-soft);
}

.stack-links,
.mini-card-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.mini-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.mini-card img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.mini-card strong,
.mini-card span {
  display: block;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 48px 0 16px;
  margin-top: 88px;
  color: var(--text-faint);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .app-hero,
  .content-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .app-hero {
    gap: 24px;
  }

  .app-hero__visual {
    padding-top: 0;
  }

  .icon-stack {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    gap: 10px 18px;
  }

  .app-hero h1,
  .policy-hero h1 {
    letter-spacing: 0.04em;
  }
}
