/* Apps for Us. Layout: a deep aubergine band for the umbrella brand, each app
   bringing its own colour; content in one readable column, cards in a grid. */
@font-face { font-family: 'Bagel Fat One'; src: url('/fonts/bagel-fat-one-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-400.woff') format('woff'); font-weight: 300 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-700.woff') format('woff'); font-weight: 600 800; font-display: swap; }

:root {
  --bg: #FFF4DC;
  --surface: #FFFFFF;
  --ink: #22163D;
  --quiet: #5E5470;
  --line: #EBD9B6;
  --band: #22163D;
  --band-ink: #FFF4DC;
  --sun: #FFC93C;
  --tomato: #D23A24;
  --tomato-tile: #F2452E;
  --button: #C9341F;
  --on-button: #FFFFFF;
  --display: 'Bagel Fat One', 'Instrument Sans', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1230; --surface: #261C42; --ink: #FFF4DC; --quiet: #B8AECB; --line: #3A2F58;
    --band: #120B24; --band-ink: #FFF4DC; --button: #FF7A5C; --on-button: #22163D; --tomato: #E0402A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1230; --surface: #261C42; --ink: #FFF4DC; --quiet: #B8AECB; --line: #3A2F58;
  --band: #120B24; --band-ink: #FFF4DC; --button: #FF7A5C; --on-button: #22163D; --tomato: #E0402A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow > * { max-width: 680px; }

/* Top bar */
.top { background: var(--band); color: var(--band-ink); }
.top .wrap { padding-block: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; line-height: 1; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; padding: 10px 2px; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Hero */
.hero { background: var(--band); color: var(--band-ink); border-radius: 0 0 36px 36px; }
.hero .wrap { padding-block: 40px 64px; display: grid; gap: 20px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-synthesis: none; font-size: clamp(48px, 11vw, 104px); line-height: 0.95; letter-spacing: -1px; text-wrap: balance; }
.hero h1 .dot { color: var(--sun); }
.hero .lede { margin: 0; font-size: clamp(19px, 2.6vw, 24px); line-height: 1.4; max-width: 30ch; }
.hero .sub { margin: 0; color: var(--band-ink); opacity: 0.85; max-width: 52ch; }

/* Sections */
section.block { padding-block: 56px 8px; }
h2 { margin: 0 0 18px; font-size: 26px; line-height: 1.2; text-wrap: balance; }
.section-lede { margin: -8px 0 24px; color: var(--quiet); max-width: 60ch; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.app-card { background: var(--tomato-tile); color: #FFFFFF; border-radius: 28px; padding: 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.app-card .head { display: flex; align-items: center; gap: 16px; }
.app-card .head img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 20px rgba(34, 22, 61, 0.25); }
.app-card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-synthesis: none; font-size: 40px; line-height: 1; color: var(--sun); }
.app-card .what { margin: 0; font-size: 18px; line-height: 1.45; }
.app-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 24px; font-weight: 700; text-decoration: none; }
.btn-light { background: #FFFFFF; color: #A12716; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.7); color: #FFFFFF; }
.btn-main { background: var(--button); color: var(--on-button); }
.soon { border: 2px dashed var(--line); background: transparent; color: var(--quiet); border-radius: 28px; padding: 24px; display: grid; gap: 8px; align-content: center; min-height: 220px; }
.soon h3 { margin: 0; color: var(--ink); font-size: 20px; }
.soon p { margin: 0; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.principles h3 { margin: 0 0 6px; font-size: 19px; }
.principles p { margin: 0; color: var(--quiet); }
.principles .mark { display: inline-block; width: 12px; height: 12px; border-radius: 6px; background: var(--sun); margin-bottom: 12px; box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.25); }

/* Catch Up page */
.app-hero { background: var(--tomato); color: #FFFFFF; border-radius: 0 0 36px 36px; }
.app-hero .wrap { padding-block: 36px 56px; display: grid; gap: 18px; }
.app-hero .head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.app-hero .head img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 10px 24px rgba(34, 22, 61, 0.3); }
.app-hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-synthesis: none; font-size: clamp(48px, 10vw, 88px); line-height: 0.95; color: var(--sun); }
.app-hero .by { display: block; margin-top: 6px; font-size: 16px; font-weight: 700; color: #FFFFFF; }
.app-hero .lede { margin: 0; font-size: clamp(19px, 2.6vw, 24px); line-height: 1.4; max-width: 32ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 26px; line-height: 44px; text-align: center; width: 44px; height: 44px; border-radius: 22px; background: var(--sun); color: #22163D; }
.steps h3 { margin: 4px 0 2px; font-size: 18px; }
.steps p { margin: 0; color: var(--quiet); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 28px; margin: 0; }
.facts div { border-top: 2px solid var(--line); padding-top: 12px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 4px 0 0; color: var(--quiet); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* Footer */
footer { margin-top: 72px; border-top: 1px solid var(--line); }
footer .wrap { padding-block: 28px 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--quiet); font-size: 15px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.contact-email { user-select: all; font-weight: 700; color: var(--ink); }
.cta.spaced { margin-top: 28px; }
