/* Mountoon — night for the child's world, cream for the grown-up's. System fonts only: no third-party requests. */
:root {
  --night: #16183A; --night-2: #1E2047; --indigo: #2B2D5C; --dusk: #4A4E8C; --lav: #C7C9E8;
  --cream: #FFF6E9; --paper: #FFFFFF; --line: #EADFCB; --gold: #F5C97B; --peach: #F2A48F;
  --ink: #2B2D5C; --muted: #6A678C;
  --display: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --ui: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 500 17px/1.6 var(--ui); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }  /* height: auto so the width/height attributes only reserve space */
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(22, 24, 58, .82); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(199, 201, 232, .12); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.wordmark { font: 800 14px/1 var(--ui); letter-spacing: .34em; color: var(--gold); text-decoration: none; }
.nav nav { display: flex; gap: 22px; font: 700 14px/1 var(--ui); }
.nav nav a { color: var(--lav); text-decoration: none; padding-block: 8px; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--cream); }

/* Hero */
.hero { background: var(--night); color: var(--cream); text-align: center; overflow: hidden; }  /* flat night: the artwork carries its own gradient, so there is no seam */
.hero .wrap { padding-block: 84px 0; }
.eyebrow { font: 800 13px/1 var(--ui); letter-spacing: .3em; color: var(--gold); margin: 0 0 18px; text-transform: uppercase; }
.hero h1 { font: 600 clamp(40px, 7.4vw, 84px)/1.02 var(--display); letter-spacing: -.015em; margin: 0 auto; max-width: 13ch; text-wrap: balance; }
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--lav); max-width: 34em; margin: 22px auto 0; text-wrap: balance; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-art { margin-top: 8px; width: 100%; max-width: 1400px; margin-inline: auto; }
.hero-art img { width: 100%; height: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 800 16px/1 var(--ui); padding: 16px 24px; border-radius: 99px; text-decoration: none; border: 0; }
.btn.gold { background: var(--gold); color: var(--indigo); }
.btn.gold:hover { filter: brightness(1.06); }
.btn.ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(199, 201, 232, .45); }
.btn.soon { background: rgba(255, 246, 233, .1); color: var(--lav); cursor: default; }
.btn.soon.on-cream { background: #F3E6D0; color: var(--muted); }

/* Sections */
section { padding-block: 88px; }
.kicker { font: 800 13px/1 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: #A8492F; margin: 0 0 14px; }
h2 { font: 600 clamp(30px, 4.6vw, 52px)/1.06 var(--display); letter-spacing: -.01em; margin: 0; max-width: 18ch; text-wrap: balance; }
.sub { color: var(--muted); font-size: 19px; max-width: 38em; margin: 16px 0 0; }
.dark { background: var(--night); color: var(--cream); }
.dark .kicker { color: var(--gold); } .dark .sub { color: var(--lav); }

/* App Store–style product card */
.product { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.product img.icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 18px 40px rgba(43, 45, 92, .28); }
.product h3 { font: 600 clamp(28px, 4vw, 40px)/1.1 var(--display); margin: 0; }
.product p { margin: 6px 0 16px; color: var(--muted); font-size: 18px; }
.product .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.text-link { font-weight: 800; color: #4A3F8C; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.ribbon { display: flex; gap: 0; margin-top: 34px; border-block: 1px solid var(--line); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ribbon div { flex: 1 0 auto; min-width: 118px; padding: 16px 20px; text-align: center; border-left: 1px solid var(--line); }
.ribbon div:first-child { border-left: 0; }
.ribbon dt { font: 800 11px/1 var(--ui); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.ribbon dd { margin: 8px 0 0; font: 600 22px/1.1 var(--display); color: var(--ink); white-space: nowrap; }
.ribbon small { display: block; margin-top: 4px; font: 600 12px/1.2 var(--ui); color: var(--muted); }

/* Screenshot gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 24px 18px; margin-inline: -24px; -webkit-overflow-scrolling: touch; }
.gallery img { flex: 0 0 auto; height: min(62vh, 560px); width: auto; border-radius: 30px; scroll-snap-align: center; box-shadow: 0 14px 34px rgba(43, 45, 92, .22); }

/* Three beats */
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.beat { background: rgba(255, 246, 233, .06); border: 1px solid rgba(199, 201, 232, .16); border-radius: 28px; padding: 28px; }
.beat b { display: block; font: 600 56px/1 var(--display); color: var(--gold); }
.beat h3 { font: 600 24px/1.2 var(--display); margin: 14px 0 8px; }
.beat p { margin: 0; color: var(--lav); }

/* Friends: portrait beside the lore, so a card is about as tall as its text */
.friends { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.friend { display: grid; grid-template-columns: 148px 1fr; gap: 20px; align-items: start; padding: 18px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); }
.friend img { width: 100%; height: auto; aspect-ratio: 7 / 8; object-fit: cover; border-radius: 20px; }
.friend h3 { font: 600 26px/1.1 var(--display); margin: 4px 0 0; }
.friend h3 span { font: 800 11px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.friend p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.friend p.traits { margin-top: 6px; color: #A8563F; font-weight: 700; font-size: 14px; }
.friend dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.friend dt { font: 800 11px/1.7 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.friend dd { margin: 0; color: var(--ink); }
.friend dd a { color: #4A3F8C; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid rgba(199, 201, 232, .18); }
.promises div { padding: 28px 28px 28px 0; border-bottom: 1px solid rgba(199, 201, 232, .18); }
.promises div:nth-child(even) { padding-left: 28px; border-left: 1px solid rgba(199, 201, 232, .18); }
.promises h3 { font: 600 clamp(24px, 3vw, 32px)/1.15 var(--display); margin: 0 0 8px; }
.promises p { margin: 0; color: var(--lav); }

/* Story list + FAQ + note */
.stories { margin-top: 36px; border-top: 1px solid var(--line); }
.stories li { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stories { padding: 0; }
.stories strong { font: 600 22px/1.2 var(--display); }
.stories span { color: var(--muted); font-size: 15px; grid-column: 1; }
.stories em { font: 800 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: #2F7A55; align-self: center; grid-row: 1 / span 2; grid-column: 2; }
.stories em.more { color: var(--muted); }
.note { max-width: 40em; font: 500 clamp(20px, 2.4vw, 26px)/1.5 var(--display); margin: 24px 0 0; }
.note + p { color: var(--muted); margin-top: 18px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font: 600 21px/1.3 var(--display); }
details p { margin: 10px 0 0; color: var(--muted); max-width: 44em; }

/* Plain pages (privacy, support) keep their simple structure */
header:not(.nav):not(.hero) { background: linear-gradient(180deg, var(--night), var(--night-2) 60%, #34376E); color: var(--cream); padding: 64px 24px 72px; text-align: center; }
header .brand { font: 800 14px/1 var(--ui); letter-spacing: .32em; color: var(--gold); }
header .brand a { color: inherit; text-decoration: none; }
header h1 { font: 600 clamp(34px, 5vw, 48px)/1.1 var(--display); margin: .4em 0 .2em; }
header p { color: var(--lav); margin: 0 auto; max-width: 34em; }
header a { color: var(--gold); }
main { max-width: 760px; margin: 0 auto; padding: 44px 24px 80px; }
main h2 { font-size: 26px; max-width: none; margin: 2em 0 .4em; }
main a { color: #4A3F8C; }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 24px; padding: 20px 24px; margin: 16px 0; }
ul { padding-left: 1.2em; } li { margin: .35em 0; }
footer { background: var(--night); color: var(--lav); font-size: 14px; padding: 44px 24px 56px; text-align: center; }
footer a { color: var(--cream); margin: 0 10px; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .wordmark { display: block; margin-bottom: 18px; }

@media (max-width: 820px) {
  section { padding-block: 64px; }
  .hero .wrap { padding-top: 60px; }
  .beats { grid-template-columns: 1fr 1fr; }
  .friends { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .promises div, .promises div:nth-child(even) { padding: 24px 0; border-left: 0; }
}
@media (max-width: 560px) {
  .product { grid-template-columns: 1fr; }
  .product img.icon { width: 104px; height: 104px; border-radius: 24px; }
  .beats { grid-template-columns: 1fr; }
  /* Phone: portrait beside the name, lore at full width underneath */
  .friend { grid-template-columns: 84px 1fr; gap: 0 14px; padding: 16px; border-radius: 24px; }
  .friend > div { display: contents; }
  .friend img { grid-row: 1 / span 2; border-radius: 16px; }
  .friend h3 { align-self: end; margin: 0; font-size: 24px; }
  .friend p.traits { align-self: start; }
  .friend p:not(.traits), .friend dl { grid-column: 1 / -1; }
  .friend p:not(.traits) { margin-top: 14px; }
  .nav .wrap { flex-wrap: nowrap; }
  .wordmark { letter-spacing: .2em; font-size: 13px; }
  .nav nav { gap: 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
