/* All pages. Rules under .promo are for the promotional page (index.html); the rest is shared with the
   support, privacy and accessibility pages. The accent is the app's AccentColor. */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --rule: #e5e5ea;
  --accent: #0a6685;
  --accent-soft: #e0f1f6;
  --code: #f0f0f3;
  --sky: #61cced;
  --hero-top: #0a3a4b;
  --hero-bottom: #02141b;
  --shadow: drop-shadow(0 18px 30px rgba(2, 20, 27, .22)) drop-shadow(0 6px 10px rgba(2, 20, 27, .14));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --rule: #38383a;
    --accent: #61cced;
    --accent-soft: #0a222b;
    --code: #2c2c2e;
    --hero-top: #072733;
    --hero-bottom: #010a0e;
    --shadow: drop-shadow(0 18px 30px rgba(0, 0, 0, .8)) drop-shadow(0 0 1px rgba(255, 255, 255, .3));
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 48rem; }

/* Header */
header.top { position: absolute; inset: 0 0 auto; z-index: 2; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { font-weight: 600; color: #fff; display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand:hover { text-decoration: none; }
nav.links { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
nav.links a { color: rgba(255, 255, 255, .8); }
nav.links a:hover { color: #fff; text-decoration: none; }
nav.links a[aria-current="page"] { color: #fff; font-weight: 600; }

/* Hero */
.hero {
  background: radial-gradient(50rem 24rem at 50% -8rem, rgba(97, 204, 237, .28), transparent 70%),
              linear-gradient(var(--hero-top), var(--hero-bottom));
  color: #fff;
  padding: 7rem 0 3rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 .8rem; hyphens: manual; }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: rgba(255, 255, 255, .8); margin: 0; max-width: 40rem; }
.meta { color: rgba(255, 255, 255, .65); margin: 0; font-size: .95rem; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: block; padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; font-size: .9rem; }
.toc a:hover { background: rgba(255, 255, 255, .2); text-decoration: none; }

/* Content of the support, privacy and accessibility pages */
main { padding: 2rem 1rem 1rem; }
.note { background: var(--accent-soft); border-radius: 16px; padding: 1.1rem 1.4rem; margin: 0 0 1.25rem; }
section { background: var(--card); border-radius: 18px; padding: 1.75rem 1.75rem 1rem; margin: 0 0 1.25rem; scroll-margin-top: 1rem; }
h2 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 .8rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .45rem; }
details { border-top: 1px solid var(--rule); padding: .9rem 0; }
details:first-of-type { border-top: 0; padding-top: 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.25rem; line-height: 1.25; }
details[open] summary::after { content: "−"; }
details[open] summary { margin-bottom: .6rem; }
details > :last-child { margin-bottom: 0; }
details p, details li { color: var(--muted); }

/* Contact band */
section.contact {
  background: linear-gradient(var(--hero-top), var(--hero-bottom));
  color: #fff; text-align: center; padding: 2.75rem 1.5rem 2rem; margin-top: 2rem;
}
section.contact p { color: rgba(255, 255, 255, .8); max-width: 34rem; margin-left: auto; margin-right: auto; }
.button { display: inline-block; background: var(--sky); color: #000; padding: .75rem 1.4rem; border-radius: 12px; font-weight: 600; overflow-wrap: anywhere; }
.button:hover { text-decoration: none; opacity: .92; }

footer { color: var(--muted); font-size: .85rem; padding: 1.5rem 0 3rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer nav.lang { flex-basis: 100%; }
footer nav.lang a[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* Promotional page */
.promo main { padding: 0; }
.promo section { background: none; border-radius: 0; padding: 4.5rem 0; margin: 0; }
.promo .hero {
  background: radial-gradient(60rem 30rem at 50% -6rem, rgba(97, 204, 237, .30), transparent 70%),
              linear-gradient(var(--hero-top), var(--hero-bottom));
  text-align: center; padding: 7.5rem 0 4rem;
}
.promo .hero .icon { display: block; width: 96px; height: 96px; margin: 0 auto 1.25rem; border-radius: 22px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
.promo .hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); line-height: 1.06; margin: 0 auto .9rem; max-width: 18ch; }
.promo .hero .lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); max-width: 39rem; margin: 0 auto 2rem; }
.promo .meta { margin: 1.1rem 0 0; font-size: .9rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
/* Matches the App Store badge beside it: black, grey #a6a6a6 rim, 54px high */
.button.ghost { background: #000; color: #fff; box-shadow: inset 0 0 0 1.35px #a6a6a6; border-radius: 10px; height: 54px; padding: 0 1.4rem; display: inline-flex; align-items: center; }
/* Apple's badge, unmodified; at least 40px high with clear space of a quarter of its height */
.store-badge { display: inline-block; padding: 14px 0; line-height: 0; }
.store-badge img { display: block; }

.strip { background: var(--card); border-bottom: 1px solid var(--rule); }
.strip ul { list-style: none; margin: 0 auto; padding: 1.4rem 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 68rem; text-align: center; font-size: .95rem; color: var(--muted); }
.strip li { margin: 0; }
.strip, .shot figcaption, .lead { hyphens: manual; }
.strip strong { display: block; color: var(--fg); font-size: 1.05rem; }

.promo h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 1rem; text-align: center; }
.promo section > .wrap > p { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 3rem; }
.promo section > .wrap > p.more { margin: 2rem auto 0; }
.promo section > .wrap > p.eyebrow { color: var(--accent); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 auto .5rem; }
.promo section.band { background: var(--card); }
.promo section.privacy > .wrap > p { margin-bottom: 1rem; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
.shot { margin: 0; text-align: center; }
.shot picture { display: block; }
.shot img { display: block; margin: 0 auto; border-radius: 26px; filter: var(--shadow); }
.shot figcaption { margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }
.shot figcaption strong { display: block; color: var(--fg); font-size: 1.05rem; }
button.zoom { border-radius: 26px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid li { background: var(--card); border-radius: 16px; padding: 1.4rem; margin: 0; }
.band .grid li { background: var(--bg); }
.grid h3 { margin: 0 0 .3rem; }
.grid p { margin: 0; color: var(--muted); font-size: .95rem; }

.promo section.faq { max-width: 48rem; margin: 0 auto; padding: 4.5rem 1rem; }
.promo .faq h2 { margin-bottom: 1.5rem; }
.promo details { background: var(--card); border: 0; border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: .6rem; }
.promo .faq p.more { text-align: center; margin: 1.5rem 0 0; }

.promo section.closing { background: linear-gradient(var(--hero-top), var(--hero-bottom)); color: #fff; text-align: center; padding: 4.5rem 1rem; }
.promo .closing h2 { margin-bottom: .6rem; }
.promo .closing > p { color: rgba(255, 255, 255, .78); margin: 0 auto 1.75rem; max-width: 34rem; }
.promo footer { padding-top: 2rem; }

@media (max-width: 860px) {
  nav.links .hide-small { display: none; }
  .shots, .grid, .grid.four, .strip ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hero, .promo .hero { padding-top: 6rem; }
  nav.links { gap: 1rem; }
  section { padding: 1.35rem 1.15rem .6rem; }
  .grid, .grid.four { grid-template-columns: 1fr; }
  .shots { gap: 1.5rem .75rem; }
}
