/* Glimmr's site: the app's own colours (GlimmrKit Colors.swift) and fonts, dark only. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/NunitoSans.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0E0F10;
  --sheet: #17181A;
  --raised: #202124;
  --hairline: #2A2C2F;
  --text: #EEF1E8;
  --text-secondary: #A5A7AA;
  --gold: #EAAE4D;
  --gold-light: #F7D79A;
  /* The lights' colours, centre to edge (Colors.swift, GlowColor). */
  --gold-center: #FFF8E4; --gold-middle: #F7D184; --gold-edge: #EAAE4D;
  --coral-center: #FFF1EA; --coral-middle: #FFC4AE; --coral-edge: #FF9E7A;
  --lavender-center: #FFFFFF; --lavender-middle: #DDD3FF; --lavender-edge: #B9A6FF;
  --sky-center: #F0F8FF; --sky-middle: #B9DDFF; --sky-edge: #7FC2FF;
  --teal-center: #F1FFFB; --teal-middle: #BDF1E4; --teal-edge: #8FE3D0;
  --ink-on-gold: #241600;
  /* Every other band of the page, a step up from the night. */
  --band: #131415;
}

* { box-sizing: border-box; }
html { background: var(--night); overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.page { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 28px;
  color: var(--gold);
}
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 34px; height: 34px; border-radius: 8px; }
header.top nav { display: flex; align-items: center; }
nav a { color: var(--text-secondary); margin-left: 20px; font-size: 16px; }
.button {
  display: inline-flex; align-items: center; padding: 10px 22px; border-radius: 999px;
  background: var(--gold); color: var(--ink-on-gold); font-weight: 800;
}
nav a.button { color: var(--ink-on-gold); margin-left: 24px; }
.button:hover { background: var(--gold-light); text-decoration: none; }

h1, h2, h3 { font-family: "Fredoka", sans-serif; font-weight: 600; line-height: 1.15; }

/* The hero: words on the left, the iPhone and Watch on the right, over a soft gold glow. */
.hero {
  display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(44px, 6vw, 72px); margin: 0 0 20px; }
.hero h1 span { color: var(--gold); }
.lede { color: var(--text-secondary); font-size: 21px; max-width: 540px; margin: 0; }
.download { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
/* Apple's badge ships at 40pt tall in its own SVG; 50px keeps its clear space. */
.store-badge { display: inline-flex; }
.store-badge img { height: 50px; width: auto; }
.note { color: var(--text-secondary); font-size: 17px; }
.hero-image {
  width: 100%; height: auto;
  background: radial-gradient(closest-side, rgba(234, 174, 77, 0.16), transparent);
}

/* Bands: each section runs edge to edge with a hairline above it, every other one a
   step lighter, while its content stays in the page's column. */
.band { position: relative; isolation: isolate; padding: 80px 0; }
.band::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw);
  border-top: 1px solid var(--hairline);
}
.band:nth-of-type(even)::before { background: var(--band); }
.band > :last-child { margin-bottom: 0; }
.band.hero { padding: 32px 0 72px; }
.band.hero::before { border-top: 0; }

h2 span { display: block; color: var(--text); font-family: "Nunito Sans", sans-serif; font-weight: 800; font-size: 0.6em; margin-top: 6px; }
.points { list-style: none; padding: 0; margin: 20px 0 0; }
.points li { position: relative; padding-left: 26px; margin: 10px 0; color: var(--text-secondary); font-size: 17px; }

/* Every bullet is a small light, drawn as the app draws one: a soft blob, lit off centre
   with the three-stop gradient reaching past its edge (1.3x), inside a faint halo. The
   colours take turns like a field's collections, and the shapes vary like seeded lights. */
.points li, .plan li, .trust li { --c: var(--gold-center); --m: var(--gold-middle); --e: var(--gold-edge); list-style: none; position: relative; }
.plan ul, .trust ul { padding-left: 0; }
.plan li { padding-left: 20px; }
.trust li { padding-left: 26px; }
.points li::before, .plan li::before, .trust li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px;
  border-radius: 54% 46% 52% 48% / 47% 55% 45% 53%;
  background: radial-gradient(circle 6.5px at 40% 38%, var(--c) 0%, var(--m) 44%, var(--e) 100%);
  box-shadow: 0 0 6px color-mix(in srgb, var(--e) 60%, transparent), 0 0 16px color-mix(in srgb, var(--e) 28%, transparent);
}
.plan li::before { left: 2px; top: 0.4em; width: 9px; height: 9px; }
li:nth-child(5n+2) { --c: var(--coral-center); --m: var(--coral-middle); --e: var(--coral-edge); }
li:nth-child(5n+3) { --c: var(--lavender-center); --m: var(--lavender-middle); --e: var(--lavender-edge); }
li:nth-child(5n+4) { --c: var(--sky-center); --m: var(--sky-middle); --e: var(--sky-edge); }
li:nth-child(5n+5) { --c: var(--teal-center); --m: var(--teal-middle); --e: var(--teal-edge); }
li:nth-child(even)::before { border-radius: 48% 52% 45% 55% / 55% 46% 54% 45%; }
li:nth-child(3n)::before { border-radius: 51% 49% 57% 43% / 50% 44% 56% 50%; }

/* One band per screen, the screenshot alternating sides. */
.feature { display: grid; grid-template-columns: minmax(0, 412px) 1fr; gap: 64px; align-items: center; }
.feature:nth-of-type(odd) { grid-template-columns: 1fr minmax(0, 412px); }
.feature:nth-of-type(odd) img { order: 2; }
.feature img { width: 100%; height: auto; justify-self: center; }
.feature h2, .watch h2 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 16px; color: var(--gold); }
.feature p { color: var(--text-secondary); font-size: 19px; max-width: 520px; margin: 0; }
.feature-text { max-width: 560px; }

/* Free and Pro, side by side beside the Pro screen. */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.plan { background: var(--sheet); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px 22px; }
.plan.pro { border-color: rgba(234, 174, 77, 0.45); }
.plan h3 { margin: 0 0 8px; font-size: 20px; color: var(--text); }
.plan.pro h3 { color: var(--gold); }
.feature .plan-note { font-size: 15px; margin: 0 0 4px; }
.plan ul { margin: 0; }
.plan li { color: var(--text-secondary); font-size: 15px; margin: 6px 0; line-height: 1.4; }

/* The Watch: three screens in a row under a centred heading. */
.watch { text-align: center; }
.watch-lede { color: var(--text-secondary); font-size: 19px; max-width: 640px; margin: 0 auto; }
.watch-shots { display: flex; justify-content: center; gap: 24px; margin: 40px 0 8px; }
.watch-shots figure { margin: 0; flex: 0 1 270px; }
.watch-shots img { width: 100%; height: auto; }
.watch-shots figcaption { color: var(--text); font-weight: 700; margin-top: 4px; }
.watch-points { display: inline-block; text-align: left; max-width: 640px; }

@media (max-width: 800px) {
  .band { padding: 56px 0; }
  /* On a phone the words split around the picture: the heading and its text first,
     then the screen, then the rest. The text blocks dissolve into the grid so each
     piece can take its own place. */
  .hero, .feature, .feature:nth-of-type(odd) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-text, .feature-text { display: contents; }
  .hero { text-align: center; }
  .hero h1, .feature h2 { order: 1; margin: 0; }
  .hero-live, .hero > .hero-image { order: 2; }
  .lede { order: 3; margin: 0 auto; }
  .download { order: 4; justify-content: center; margin-top: 0; }
  .hero-image { max-width: 420px; margin: 0 auto; }
  .feature h2, .feature-text > p { text-align: center; }
  .feature-text > p { order: 2; margin: 0 auto; }
  .feature img, .feature:nth-of-type(odd) img { order: 3; max-width: 340px; }
  .feature .points { order: 4; margin: 0 auto; max-width: 520px; }
  .plans { order: 5; grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .watch-shots { flex-direction: column; align-items: center; }
  .watch-shots figure { flex-basis: auto; width: min(270px, 80%); }
  header.top nav a:not(.button) { display: none; }
}

.trust-card { max-width: 760px; margin: 0 auto; background: var(--sheet); border: 1px solid var(--hairline); border-radius: 22px; padding: 28px 32px; }
.trust-card > :last-child { margin-bottom: 0; }
.trust h2 { margin-top: 0; text-align: center; }
.trust li { color: var(--text-secondary); margin: 6px 0; }
.trust li strong { color: var(--text); }

.doc { max-width: 760px; margin: 0 auto; }
.doc .band { padding: 36px 0; }
.doc .band:first-child { padding-top: 16px; }
.doc h1 { font-size: 44px; margin: 0 0 4px; }
.doc .updated { color: var(--text-secondary); margin-top: 0; }
.doc h2 { font-size: 26px; margin: 0 0 8px; color: var(--gold); }
.doc p, .doc li { color: var(--text-secondary); }
.doc strong { color: var(--text); }
.short { background: var(--sheet); border: 1px solid var(--hairline); border-radius: 18px; padding: 8px 24px; }

footer { position: relative; padding: 28px 0 48px; color: var(--text-secondary); font-size: 15px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
footer::before { content: ""; position: absolute; top: 0; height: 1px; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--hairline); }
footer nav a { margin-left: 0; margin-right: 18px; }
