:root {
  color-scheme: light;
  --ink: #18211e;
  --muted: #66706c;
  --accent: #185d50;
  --paper: #fafbf8;
  --line: rgba(24, 33, 30, 0.11);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
}

.nav {
  width: min(calc(100% - 40px), var(--content));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

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

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a,
.footer-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

/* One-screen homepage */
.home-page {
  min-height: 100svh;
}

.simple-hero {
  width: min(calc(100% - 40px), var(--content));
  min-height: calc(100svh - 78px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
}

.simple-copy {
  padding: 44px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.simple-copy h1,
.legal-hero h1 {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.06em;
}

.simple-copy h1 {
  max-width: 600px;
  font-size: clamp(4rem, 7.5vw, 7rem);
  line-height: 0.91;
  text-wrap: balance;
}

.intro {
  max-width: 550px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.62;
}

.app-store-button {
  width: fit-content;
  min-height: 58px;
  margin-top: 30px;
  padding: 8px 18px 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #000;
  border-radius: 13px;
  color: white;
  background: #050505;
  text-decoration: none;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-store-button:hover,
.app-store-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.17);
}

.apple-mark {
  font-size: 2.05rem;
  line-height: 1;
}

.app-store-button span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-store-button small {
  font-size: 0.67rem;
  line-height: 1.05;
}

.app-store-button strong {
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.simple-art {
  min-height: 0;
  height: 100%;
  max-height: calc(100svh - 156px);
  display: grid;
  place-items: center;
}

.showcase {
  width: min(calc(100% - 40px), var(--content));
  margin: 110px auto 140px;
}

.showcase-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.showcase-heading h2 {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.showcase-heading > p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
}

.showcase-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1284 / 2778;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(24, 33, 30, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(26, 37, 33, 0.1);
}

.showcase-item h3 {
  margin: 24px 0 8px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.showcase-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.58;
}

.simple-art img {
  width: min(82%, 520px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transform: translateY(-28px);
  filter: drop-shadow(0 28px 28px rgba(35, 56, 47, 0.1));
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* Legal pages */
.legal-hero {
  width: min(calc(100% - 40px), 820px);
  margin: 72px auto 62px;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(3.25rem, 7vw, 5.5rem);
  line-height: 0.96;
}

.legal-hero > p:not(.eyebrow) {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.updated {
  display: inline-block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.legal-layout {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto 110px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 58px;
}

.legal-toc {
  position: sticky;
  top: 28px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--ink);
}

.legal-card section + section {
  margin-top: 46px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 15px;
  scroll-margin-top: 26px;
  font-family: ui-rounded, "SF Pro Rounded", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.legal-card h3 {
  margin: 26px 0 9px;
  font-size: 1rem;
}

.legal-card p,
.legal-card li {
  color: #52605b;
  line-height: 1.72;
}

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

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 2px solid var(--ink);
  background: rgba(24, 33, 30, 0.035);
}

.notice p {
  margin: 0;
}

@media (max-width: 800px) {
  .simple-hero {
    grid-template-columns: 1fr 0.82fr;
    gap: 14px;
  }

  .simple-copy h1 {
    font-size: clamp(3.6rem, 11vw, 5.3rem);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 60px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 16px;
  }

  .legal-toc strong {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .nav {
    min-height: 68px;
  }

  .simple-hero {
    padding: 16px 0 24px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .simple-copy {
    padding: 24px 0 0;
  }

  .simple-copy h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .intro {
    margin-right: auto;
    margin-left: auto;
  }

  .app-store-button {
    margin-right: auto;
    margin-left: auto;
  }

  .simple-art {
    height: min(41svh, 390px);
    order: -1;
  }

  .simple-art img {
    width: min(68vw, 300px);
    transform: translateY(-14px);
  }

  .showcase {
    margin-top: 90px;
    margin-bottom: 100px;
  }

  .showcase-heading {
    margin-bottom: 38px;
    text-align: center;
  }

  .showcase-grid {
    width: calc(100vw - 20px);
    margin-left: calc((100% - 100vw) / 2 + 10px);
    padding: 0 10px 20px;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .showcase-grid::-webkit-scrollbar {
    display: none;
  }

  .showcase-item {
    width: min(74vw, 310px);
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .footer-inner {
    min-height: 82px;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
  }

  .footer-links {
    gap: 18px;
  }

  .legal-hero {
    margin-top: 48px;
  }
}

@media (max-height: 680px) and (min-width: 621px) {
  .simple-copy h1 {
    font-size: clamp(3.8rem, 7vw, 5.5rem);
  }

  .intro {
    margin-top: 18px;
  }

  .app-store-button {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
