/* Page-wide defaults: reset, type, layout helpers, focus, and the shared
   pieces every section uses (eyebrow, buttons, store badges, the fold). */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-s);
  background: var(--teal); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.lede { margin-top: 14px; max-width: 36em; color: var(--ink-2); font-size: 1.125rem; }

/* Eyebrow: a small label with a folded amber corner in front of it. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--amber-ink); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; border-radius: 3px;
  background: linear-gradient(135deg, var(--amber) 0 50%, var(--k-cream) 50% 100%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 600 0.9375rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--quiet { color: var(--ink); }
.btn--quiet:hover { background: var(--cream-2); color: var(--ink); }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Official store badges. Apple's is an SVG, Google's a PNG with the same visual height. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-block; border-radius: 9px; line-height: 0; }
.badge img { height: 48px; width: auto; }
.badge--apple img { height: 48px; }
.badge--google img { height: 48px; }

/* The recurring paper fold: a folded top-right corner. Set --fold-bg to the
   colour behind the element so the cut corner blends in. */
.fold { position: relative; }
.fold::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: var(--fold-size, 24px); height: var(--fold-size, 24px);
  background: linear-gradient(225deg, var(--fold-bg, var(--cream)) 0 50%, var(--amber-soft) 50% 100%);
  border-bottom-left-radius: 5px;
  box-shadow: -1px 1px 3px rgba(30, 43, 41, 0.10);
}
