html,
body {
  min-height: 100%;
  margin: 0;
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-weight: 900;
}

.site-brand img {
  flex: 0 0 auto;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(91, 62, 37, 0.13);
}

.site-menu {
  position: relative;
  flex: 0 0 auto;
}

.site-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  list-style: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(91, 62, 37, 0.08);
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu summary:focus-visible {
  outline: 3px solid rgba(184, 93, 66, 0.3);
  outline-offset: 3px;
}

.site-menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.site-menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-menu[open] .site-menu-icon span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.site-menu[open] .site-menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-menu[open] .site-menu-icon span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 230px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 55px rgba(91, 62, 37, 0.16);
}

.site-menu-panel a {
  padding: 12px 14px;
  border-radius: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-menu-panel a:hover,
.site-menu-panel a:focus-visible {
  background: #fff4e6;
  outline: none;
}

.site-menu-panel a[aria-current="page"] {
  background: #f7e7d8;
  color: var(--accent);
}

@media (max-width: 480px) {
  .site-brand span {
    max-width: 180px;
    font-size: 14px;
    line-height: 1.35;
  }
}

.landing-page {
  --ink: #332820;
  --muted: #75675d;
  --cream: #fff9ee;
  --paper: rgba(255, 255, 255, 0.88);
  --line: #ead9c4;
  --accent: #b85d42;
  min-height: 100svh;
  padding: 48px 20px 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 207, 162, 0.44), transparent 30%),
    radial-gradient(circle at 100% 22%, rgba(255, 226, 174, 0.58), transparent 34%),
    var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

.landing-shell { width: min(1120px, 100%); margin: 0 auto; }

.landing-page .site-nav {
  margin-bottom: 56px;
}

.landing-footer a {
  color: inherit;
  text-decoration-color: rgba(51, 40, 32, 0.25);
  text-underline-offset: 4px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: 560px;
}

.landing-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.landing-hero h1 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: clamp(46px, 5.8vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.landing-hero h1 span {
  white-space: nowrap;
}

.landing-catch {
  margin: 24px 0 0;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.45;
}

.landing-lead {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.landing-cta-row { display: flex; align-items: center; gap: 16px; margin-top: 28px; }

.app-store-badge { display: inline-block; line-height: 0; }
.app-store-badge img { display: block; width: 163px; height: auto; }
.app-store-badge--compact img { width: 136px; }
.landing-cta-note { color: var(--muted); font-size: 13px; font-weight: 700; }

.landing-hero-art {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 44% 56% 48% 52% / 46% 40% 60% 54%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 220, 176, 0.7));
  box-shadow: 0 28px 80px rgba(91, 62, 37, 0.13);
}

.landing-hero-art img {
  width: min(100%, 560px);
  height: auto;
  transform: translateY(3%);
  filter: drop-shadow(0 18px 24px rgba(75, 49, 28, 0.17));
}

.landing-section { padding-top: clamp(88px, 12vw, 144px); text-align: center; }

.landing-section h2,
.landing-final-cta h2 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.landing-intro > p:last-of-type {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
  text-align: left;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(91, 62, 37, 0.08);
}

.feature-card > span { display: block; margin-bottom: 18px; font-size: 30px; }
.feature-card h3 { margin: 0; font-size: 19px; }
.feature-card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 2vw, 20px);
  margin-top: 40px;
}

.screenshot-card {
  padding: clamp(8px, 1.5vw, 14px);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.74);
}

.screenshot-card img { display: block; width: 100%; height: auto; border-radius: clamp(17px, 3vw, 28px); }

.landing-final-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: clamp(88px, 12vw, 144px);
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 65px rgba(91, 62, 37, 0.1);
}

.landing-final-cta > img { object-fit: contain; }
.landing-final-cta h2 { font-size: clamp(27px, 4vw, 42px); }
.landing-final-cta p:not(.landing-eyebrow) { margin: 10px 0 0; color: var(--muted); }

.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.landing-apple-credit { max-width: 440px; margin-left: auto; text-align: right; font-size: 10px; line-height: 1.5; }

@media (max-width: 800px) {
  .landing-page { padding-top: 24px; }
  .landing-page .site-nav { margin-bottom: 42px; }
  .landing-hero { grid-template-columns: 1fr; min-height: 0; }
  .landing-hero-copy { text-align: center; }
  .landing-hero h1 { margin-inline: auto; }
  .landing-lead { margin-inline: auto; }
  .landing-cta-row { justify-content: center; }
  .landing-hero-art { width: min(520px, 92%); min-height: 390px; margin: 12px auto 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { text-align: center; }
  .screenshot-grid {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 4px 20px 34px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    text-align: left;
  }
  .screenshot-card { scroll-snap-align: center; }
  .landing-final-cta { grid-template-columns: auto 1fr; }
  .landing-final-cta .app-store-badge { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 540px) {
  .landing-hero h1 { font-size: clamp(34px, 10.5vw, 64px); }
  .landing-cta-row { flex-direction: column; }
  .landing-hero-art { min-height: 300px; }
  .landing-final-cta { grid-template-columns: 1fr; text-align: center; }
  .landing-final-cta > img { margin: 0 auto; }
  .landing-footer { flex-direction: column; align-items: stretch; }
}

.legal-page {
  --ink: #332820;
  --muted: #75675d;
  --cream: #fff9ee;
  --paper: rgba(255, 255, 255, 0.88);
  --line: #ead9c4;
  --accent: #b85d42;
  min-height: 100svh;
  padding: 48px 20px 64px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 207, 162, 0.44), transparent 30%),
    radial-gradient(circle at 100% 22%, rgba(255, 226, 174, 0.58), transparent 34%),
    var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

.legal-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.legal-page .site-nav {
  margin-bottom: 42px;
}

.legal-card a {
  color: inherit;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.legal-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.legal-card {
  margin-top: 18px;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(91, 62, 37, 0.08);
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.legal-card h3 {
  margin: 26px 0 8px;
  font-size: 16px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.legal-card p {
  margin: 8px 0 0;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 1.35em;
}

.support-email {
  display: inline-flex;
  margin-top: 17px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.privacy-contact .support-email {
  margin-block: 17px;
}

.privacy-contact .support-email + p {
  margin-top: 0;
}

.legal-note {
  padding-top: 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 560px) {
  .legal-page {
    padding-top: 24px;
  }

  .legal-page .site-nav {
    margin-bottom: 34px;
  }
}

.not-found-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(91, 62, 37, 0.08);
}
.not-found-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  aspect-ratio: 1;
  border-radius: 44% 56% 48% 52% / 46% 40% 60% 54%;
  background: linear-gradient(145deg, #fff9ee, #ffdfb9);
}
.not-found-number {
  position: absolute;
  top: 4%;
  z-index: -1;
  color: #bb704e;
  font-size: clamp(84px, 12vw, 156px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
}
.not-found-art img {
  display: block;
  width: 90%;
  height: auto;
  margin-top: 16%;
  filter: drop-shadow(0 14px 18px rgba(75, 49, 28, 0.13));
}
.not-found-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.45;
  letter-spacing: -0.04em;
}
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.not-found-home {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.not-found-support { color: var(--ink); font-size: 14px; text-underline-offset: 5px; }
.not-found-actions a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.not-found-home:hover { background: #594337; }
@media (max-width: 700px) {
  .not-found-card { grid-template-columns: minmax(0, 1fr); gap: 26px; border-radius: 24px; }
  .not-found-art { width: min(300px, 100%); margin-inline: auto; }
  .not-found-number { font-size: clamp(84px, 23vw, 110px); }
  .not-found-copy { text-align: center; }
  .not-found-actions { justify-content: center; }
  .not-found-copy .legal-lead { font-size: 14px; }
}
