/* Updora. Tokens and rules follow brand/BRAND.md in the Matt-Hadley/updora repository. No web fonts: the page uses the visitor's own system type. */

:root {
  /* Brand */
  --graphite: #181C23;
  --graphite-raised: #222832;
  --slate: #2E3642;
  --slate-light: #3B4450;
  --copper: #DD6B3B;
  --copper-light: #F7B46C;
  --copper-ink: #A64B22;
  --hero: #F38A55;
  --hero-dark: #E9804B;
  --white: #FFFFFF;
  --ink-muted: #565E6B;
  --mist: #A9B0BB;
  --red: #C4281C;
  --red-dark: #FF6B5E;

  /* Roles (light) */
  --bg: var(--white);
  --surface: var(--white);
  --surface-bar: #F5F5F3;
  --text: var(--graphite);
  --muted: var(--ink-muted);
  --hair: #E5E4E1;
  --verified: var(--copper-ink);
  --refused: var(--red);
  --focus: var(--copper-ink);
  /* Copper is what you press: buttons on white and on graphite are copper with white text. On copper they turn graphite. */
  --action: #C2511F;
  --action-hover: #A64B22;
  --btn-bg: var(--action);
  --btn-text: #FFFFFF;
  --btn-hover: var(--action-hover);
  --shadow: 0 0 0 1px var(--hair), 0 28px 56px -28px rgba(24, 28, 35, .32);
  --header-bg: rgba(255, 255, 255, .88);
  --hero-bg: var(--hero);
  --hero-deep: #F08350;
  --hero-light: #F69660;
  --hero-grad: linear-gradient(to right, var(--hero-deep), var(--hero-light));
  /* The hero's slow drift: the same gradient, three times as wide, with a lighter glow that wanders across. */
  --hero-glow: #F9A872;
  /* The top of the page is lighter, so the copper icon in the header stands clear of it. The header runs top to mid, the hero mid to nothing. */
  --lift-top: rgba(255, 255, 255, .3);
  --lift-mid: rgba(255, 255, 255, .22);
  --lift-header: linear-gradient(to bottom, var(--lift-top), var(--lift-mid));
  --lift-hero: linear-gradient(to bottom, var(--lift-mid), rgba(255, 255, 255, 0) 420px);
  --hero-drift: linear-gradient(to right, var(--hero-deep), var(--hero-light) 30%, var(--hero-glow) 50%, var(--hero-light) 70%, var(--hero-deep));
  /* The funnel's hub: a lighter copper, so Updora's own copper icon stands out on it. */
  --hub-deep: #F6A170;
  --hub-light: #F9B58C;
  --funnel: #FCE9DF;
  --band: #FDF4EF;

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* The rise: the one angle in the brand. Copper edges climb left to right, like the icon's arrow. */
  --rise: 5deg;
  --rise-h: calc(100vw * tan(var(--rise)));
  /* Bands carry the rise in light mode only: on graphite the pale band was too faint to read as a block. */
  --band-rise: var(--rise-h);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--graphite);
    --surface: var(--graphite-raised);
    --surface-bar: #282E39;
    --text: #F2F1EE;
    --muted: var(--mist);
    --hair: #353C48;
    --verified: var(--copper-light);
    --refused: var(--red-dark);
    --focus: var(--copper-light);
    --btn-bg: var(--action);
    --btn-text: #FFFFFF;
    --btn-hover: var(--action-hover);
    --shadow: 0 0 0 1px var(--hair), 0 28px 56px -24px rgba(0, 0, 0, .6);
    --header-bg: rgba(24, 28, 35, .86);
    --hero-bg: var(--hero-dark);
    --hero-deep: #E67946;
    --hero-light: #ED8851;
    --hero-glow: #F0955E;
    --lift-top: rgba(255, 255, 255, .2);
    --lift-mid: rgba(255, 255, 255, .14);
    --hub-deep: #EE9466;
    --hub-light: #F2A275;
    --funnel: #2A2F38;
    --band: var(--graphite);
    --band-rise: 0px;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--graphite);
  --surface: var(--graphite-raised);
  --surface-bar: #282E39;
  --text: #F2F1EE;
  --muted: var(--mist);
  --hair: #353C48;
  --verified: var(--copper-light);
  --refused: var(--red-dark);
  --focus: var(--copper-light);
  --btn-bg: var(--action);
  --btn-text: #FFFFFF;
  --btn-hover: var(--action-hover);
  --shadow: 0 0 0 1px var(--hair), 0 28px 56px -24px rgba(0, 0, 0, .6);
  --header-bg: rgba(24, 28, 35, .86);
  --hero-bg: var(--hero-dark);
  --hero-deep: #E67946;
  --hero-light: #ED8851;
  --hero-glow: #F0955E;
  --lift-top: rgba(255, 255, 255, .2);
  --lift-mid: rgba(255, 255, 255, .14);
  --hub-deep: #EE9466;
  --hub-light: #F2A275;
  --funnel: #2A2F38;
  --band: var(--graphite);
  --band-rise: 0px;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-size: .8125rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 10px 14px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-text); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border: 0; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-text);
  font: 600 1.0625rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s var(--ease);
}
.btn:hover { background: var(--btn-hover); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .9375rem; }

.notify { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 470px; }
.notify input[type="email"] {
  min-width: 0; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); color: var(--text);
  font: 400 1.0625rem var(--sans);
}
.notify input[type="email"]::placeholder { color: var(--muted); opacity: .85; }
.notify input[type="email"]:focus-visible { outline-offset: 0; border-color: transparent; }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-note { grid-column: 1 / -1; min-height: 1.4em; font-size: .9375rem; color: var(--muted); }
.form-note.ok { color: var(--text); }
.form-note.err { color: var(--refused); }
@media (max-width: 420px) { .notify { grid-template-columns: 1fr; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--hero-bg); background-image: var(--lift-header), var(--hero-grad); color: var(--graphite);
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.site-header.scrolled {
  background: var(--header-bg); background-image: none; color: var(--text);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.site-header:not(.scrolled) .nav-link { color: var(--graphite); }
.site-header:not(.scrolled) .btn { background: var(--graphite); color: #FFFFFF; }
.site-header:not(.scrolled) :focus-visible { outline-color: var(--graphite); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.lockup-mark { width: 30px; height: 30px; }
.lockup-word { width: 82px; height: 24px; transform: translateY(12%); } /* viewBox 320 × 94: Inter Display Bold, cap height ≈ 0.62 × the icon */
.lockup-small { gap: 8px; }
.lockup-small .lockup-mark { width: 22px; height: 22px; }
.lockup-small .lockup-word { width: 61px; height: 18px; }
nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--muted);
  font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.nav-link:hover { color: var(--text); }
nav .btn { margin-left: 10px; }
@media (max-width: 820px) { .nav-link { display: none; } }

/* Type scale */
.hero-title {
  font-size: clamp(3rem, 1.2rem + 5.4vw, 6rem);
  font-weight: 750; line-height: .94; letter-spacing: -.05em; text-wrap: balance;
}
/* The strapline's U is the icon's U-arrow, drawn over a real, invisible "U" so the text stays "Updates". */
.u-cap {
  display: inline-block; width: .74em; height: .85em; margin-right: -.03em; vertical-align: -.04em;
  color: transparent; background: var(--graphite);
  -webkit-mask: url("/assets/u-arrow.svg") left bottom / contain no-repeat; mask: url("/assets/u-arrow.svg") left bottom / contain no-repeat;
}
h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.125rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -.035em;
  text-wrap: balance;
}
h3 { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }

/* Hero */
.hero {
  padding: clamp(36px, 5vw, 72px) 0 calc(clamp(40px, 4vw, 64px) + var(--rise-h));
  background: var(--hero-bg); background-image: var(--lift-hero), var(--hero-grad); color: var(--graphite); overflow-x: clip;
  --focus: var(--graphite); --muted: #2B211C;
  /* bottom edge rises to the right */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--rise-h)), 0 100%);
}
/* The headline runs across the whole hero, so it holds two lines; the lede and the notes share the row beneath. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(40px, 6vw, 88px); align-items: start; grid-template-rows: auto auto auto auto 1fr; }
.hero-copy { display: contents; }
.hero-title { grid-column: 1 / -1; }
.hero-copy > :not(.hero-title) { grid-column: 1; }
.hero-grid > .notes { grid-column: 2; grid-row: 2 / -1; margin-top: 28px; }
.lede-more { margin-top: 16px; max-width: 32em; }
.lede { margin-top: 28px; max-width: 26em; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); line-height: 1.45; letter-spacing: -.01em; }
.hero .notify { margin-top: 32px; }
.facts { margin-top: 20px; font-size: .9375rem; color: var(--muted); }
.hero .notify input[type="email"] { border-color: transparent; background: #FFFFFF; color: var(--graphite); }
.hero .notify input[type="email"]::placeholder { color: #6A5F58; }
.hero .btn { background: var(--graphite); color: #FFFFFF; }
.hero .btn:hover { background: var(--slate); }
.hero .form-note.err { color: var(--graphite); font-weight: 600; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid > .notes { grid-column: 1; grid-row: auto; } }

/* The audience setting: a pop-up button inside the lede. Without JavaScript it is plain text. */
.setting-wrap { position: relative; display: inline-block; }
button.setting {
  display: inline-flex; align-items: baseline; gap: .22em;
  margin: 0 .05em; padding: 0 .28em 0 .32em; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .62); color: inherit; box-shadow: none;
  font: inherit; font-weight: 650; line-height: inherit; cursor: pointer; white-space: nowrap;
}
button.setting { position: relative; }
button.setting::after { content: ""; position: absolute; inset: -4px -2px; } /* 44 px tap area inside a line of text */
button.setting:hover { background: rgba(255, 255, 255, .85); }
button.setting:focus-visible { outline-offset: 2px; }
.setting-word { display: inline-block; }
.setting-word.in { animation: roll-in .4s var(--ease); }
@keyframes roll-in { from { transform: translateY(.5em); opacity: 0; } }
.setting-chevron { width: .62em; height: .62em; flex: none; align-self: center; color: currentColor; }
.setting-menu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 230px; margin: 0; padding: 6px; border-radius: 12px;
  background: #FFFFFF; color: var(--graphite); box-shadow: 0 0 0 1px rgba(24, 28, 35, .08), 0 24px 48px -16px rgba(60, 25, 10, .45);
  font-size: 1.0625rem; font-weight: 400; line-height: 1.3;
}
.setting-menu[hidden] { display: none; }
.setting-menu li {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 32px; border-radius: 8px;
  position: relative; cursor: pointer; color: var(--graphite);
}
.setting-menu li.active { background: #F5F5F3; }
.setting-menu li[aria-selected="true"]::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border: solid var(--copper-ink); border-width: 0 2px 2px 0; transform: rotate(40deg);
}

/* Show the family or the organisation version of a section, as the setting chooses. */
html[data-group="family"] [data-for="org"],
html[data-group="org"] [data-for="family"] { display: none; }

/* The hero's copper drifts slowly from side to side. The header over it drifts in step, so the two stay one surface. */
@media (prefers-reduced-motion: no-preference) {
  .hero, .site-header { background-size: 100% 100%, 300% 100%; animation: drift 24s ease-in-out infinite alternate; }
  .site-header:not(.scrolled) { background-image: var(--lift-header), var(--hero-drift); }
  .hero { background-image: var(--lift-hero), var(--hero-drift); }
  /* The header keeps drifting while it is white, so it is still in step when it turns copper again. */
}
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 100% 0; } }

/* As people scroll, the hero's edge rises from level to 5° while it comes into view: progress, literally. Static at 5° without support or with reduced motion. */
/* The timeline is the next section entering view, i.e. the hero's bottom edge coming up the screen, so the tilt is seen on any device. */
@supports (animation-timeline: view()) and (timeline-scope: --a) {
  @media (prefers-reduced-motion: no-preference) {
    body { timeline-scope: --hero-edge; }
    #why { view-timeline: --hero-edge block; }
    .hero { animation: rise-up linear both, drift 24s ease-in-out infinite alternate; animation-timeline: --hero-edge, auto; animation-range: entry 0% entry 45%, normal; }
  }
}
@keyframes rise-up { from { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }

/* The hero image: Updora's notifications, as polite as the real ones. */
.notes { display: grid; gap: 10px; justify-items: end; margin: 0; }
.note {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px;
  width: min(100%, 480px); padding: 18px 20px; border-radius: 22px;
  background: rgba(255, 255, 255, .94); color: var(--graphite);
  box-shadow: 0 30px 60px -30px rgba(80, 30, 10, .55), 0 0 0 .5px rgba(24, 28, 35, .08);
  font-size: 1.0625rem; line-height: 1.35;
}
.note-icon { width: 44px; height: 44px; }
.note-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.note-head time { color: #565E6B; font-size: .9375rem; white-space: nowrap; }
.note p + p { margin-top: 2px; color: #565E6B; }
/* The prompts Updora never shows: faded, and crossed out one by one. */
.nags-caption, .nags { width: min(94%, 452px); }
.nags-caption { font-weight: 600; color: var(--graphite); }
.nags-caption:first-child { width: min(100%, 480px); }
.note + .nags-caption { margin-top: 12px; }
.nags { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nag {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: 16px; background: rgba(255, 255, 255, .28);
  color: var(--graphite); font-size: .9375rem; line-height: 1.3;
}
.nag-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(24, 28, 35, .16); }
.nag s {
  text-decoration: line-through 2px var(--graphite); text-decoration-skip-ink: none;
  animation: strike .4s var(--ease) both;
}
.nag strong { font-weight: 650; margin-right: 4px; }
.nag:nth-child(1) s { animation-delay: 1.3s; }
.nag:nth-child(2) s { animation-delay: 1.6s; }
.nag:nth-child(3) s { animation-delay: 1.9s; }
@keyframes strike { from { text-decoration-color: transparent; } }

/* The one load moment: the notification slides in from the right, as macOS does it. */
.note-now { animation: slide-in .6s var(--ease) .5s both; }
.note-now.again { animation: slide-in .45s var(--ease) both; }
@keyframes slide-in { from { transform: translateX(32px); opacity: 0; } }
@media (max-width: 900px) { .notes { justify-items: stretch; } .note, .nags-caption, .nags { width: 100%; } }

/* Checks, as used in the refusal example. Copper ticks mean verified. */
.checks { margin-top: 14px; }
.check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--hair); font-size: .9375rem;
}
.check .value { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.check .mark { position: relative; width: 16px; height: 16px; align-self: center; }
.check .mark::before {
  content: ""; position: absolute; left: 2px; top: 1px; width: 6px; height: 11px;
  border: solid var(--verified); border-width: 0 2.25px 2.25px 0; transform: rotate(40deg) translate(2px, -1px);
}
.check.failed { color: var(--refused); }
.check.failed .mark::before,
.check.failed .mark::after {
  border: 0; width: 14px; height: 2.25px; left: 1px; top: 7px; background: var(--refused); transform: rotate(45deg);
}
.check.failed .mark::after { content: ""; position: absolute; transform: rotate(-45deg); }
.check.failed .value { color: var(--refused); grid-column: 2 / -1; text-align: left; }

/* Sections: claim on the left, evidence on the right. */
.section { padding: clamp(64px, 7vw, 104px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.claim { position: sticky; top: 104px; }
.claim p { margin-top: 18px; max-width: 32em; color: var(--muted); }
.claim p + p { margin-top: 12px; }
/* A heading that would take three lines in 5/12 gets half the width instead. */
.split.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split.wide { grid-template-columns: 1fr; } .claim { position: static; } }

/* Stack: the claim above, its evidence across the whole grid. Used between claim-and-evidence sections so neighbours differ. */
.stack .claim { position: static; max-width: 46em; }
.stack > :not(.claim) { margin-top: clamp(32px, 5vw, 56px); }
.stack .ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(32px, 6vw, 96px); }
.stack .ways > div { grid-template-columns: 1fr; padding: 0; }
.stack .evidence-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.stack .evidence-2 .refusal { margin-top: 0; }
/* The five checks in a row: a sequence read left to right. */
.stack .steps-brief { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.stack .steps-brief li, .stack .steps-brief li:first-child { padding: 40px 0 0; }
.stack .steps-brief li::before, .stack .steps-brief li:first-child::before { top: 0; }
/* Prices as figures: each plan's price at section-heading size. */
.stack .prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stack .prices > div, .stack .prices > div:first-child { display: flex; flex-direction: column; gap: 6px; padding: 0; }
.stack .prices .amount { order: -1; text-align: left; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.125rem); line-height: 1.04; }
.stack .prices .amount small { display: block; margin-top: 4px; }
@media (max-width: 900px) {
  .stack .evidence-2 { grid-template-columns: 1fr; }
  .stack .steps-brief { grid-template-columns: 1fr; gap: 0; }
  .stack .steps-brief li, .stack .steps-brief li:first-child { padding: 10px 0 10px 38px; }
  .stack .steps-brief li::before, .stack .steps-brief li:first-child::before { top: 8px; }
  .stack .prices { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) { .stack .ways { grid-template-columns: 1fr; } }
/* On a phone each plan is one row again, name left and price right, so the name never reads as a label above the price. */
@media (max-width: 480px) {
  .stack .prices { grid-template-columns: 1fr; gap: 20px; }
  .stack .prices > div, .stack .prices > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; }
  .stack .prices .amount { order: 0; text-align: right; font-size: 1.75rem; }
}

/* Why: where apps come from, poured through a funnel into Updora, and the Updora window. */
.why { border-top: 0; }
.why-head { max-width: 40em; }
.why-head p { margin-top: 18px; color: var(--muted); }
.flow { display: grid; justify-items: center; margin: clamp(32px, 5vw, 64px) 0 0; }
/* The funnel: a wide mouth holding the sources, tapering to a neck that drains into the hub. */
.funnel {
  --taper: 120px; width: 100%; padding: 22px 22px var(--taper); background: var(--funnel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 56% 100%, 44% 100%, 0 calc(100% - 120px));
}
.sources { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.source { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--surface); }
.source strong { font-weight: 650; line-height: 1.25; font-size: .9375rem; }
.src-apps { display: flex; margin-top: auto; padding-top: 10px; }
.src-apps img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(24, 28, 35, .18)); }
.src-apps img + img { margin-left: 6px; }
.src-icon { width: 30px; height: 30px; margin-bottom: 6px; padding: 5px; border-radius: 8px; background: var(--funnel); color: var(--text); }
.source .today { font-size: .9375rem; color: var(--muted); }
.hub {
  position: relative; z-index: 1; display: inline-grid; grid-template-columns: 40px auto; gap: 12px; align-items: center; margin-top: -2px;
  padding: 12px 22px 12px 12px; border-radius: 18px; background: var(--hub-deep); background-image: linear-gradient(to right, var(--hub-deep), var(--hub-light)); color: var(--graphite);
}
.hub strong { display: block; font-weight: 700; }
.hub span { display: block; font-size: .9375rem; color: #2B211C; }

/* The Updora window, as the app shows it. Groups and wording follow the product spec. */
.window { position: relative; width: min(100%, 760px); margin-top: 36px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; font-size: .9375rem; }
.window::before { content: ""; position: absolute; left: 50%; top: -36px; width: 2px; height: 36px; margin-left: -1px; background: var(--hero-bg); }
.window-bar { position: relative; display: flex; gap: 8px; align-items: center; height: 38px; padding: 0 14px; background: var(--surface-bar); border-bottom: 1px solid var(--hair); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--hair); }
.window-bar span { position: absolute; left: 0; right: 0; text-align: center; font-weight: 600; font-size: .9375rem; color: var(--muted); }
.window-tabs { display: flex; justify-content: center; gap: 4px; padding: 10px 14px 0; }
.window-tabs b { padding: 5px 14px; border-radius: 7px; font-weight: 500; font-size: .9375rem; color: var(--muted); }
.window-tabs b.on { background: var(--surface-bar); color: var(--text); box-shadow: 0 0 0 1px var(--hair); }
.window-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 12px 18px 4px; padding: 12px 14px; border-radius: 10px; background: var(--surface-bar); }
.window-status strong { font-weight: 650; }
.window-status span:last-child { font-size: .9375rem; color: var(--muted); }
.tick { display: inline-block; width: 6px; height: 11px; border: solid var(--verified); border-width: 0 2.25px 2.25px 0; transform: rotate(40deg) translateY(-2px); }
.group { margin: 14px 18px 2px; font-size: .9375rem; font-weight: 650; color: var(--muted); }
.window ul { margin: 0 10px; padding: 0; list-style: none; }
.window ul:last-child { margin-bottom: 12px; }
.app-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 0 12px; align-items: center; padding: 7px 8px; border-radius: 8px; }
.app-row + .app-row { border-top: 1px solid var(--hair); border-radius: 0; }
.app-tile { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; }
.app-tile img { width: 28px; height: 28px; object-fit: contain; }
.app-name { font-weight: 600; }
.app-ver { grid-column: 2; font-size: .8125rem; color: var(--muted); }
.app-status { grid-column: 3; grid-row: 1 / span 2; text-align: right; font-size: .9375rem; color: var(--muted); }
.app-row.wait .app-status { color: var(--text); }
@media (max-width: 760px) {
  .funnel { --taper: 84px; padding: 16px 16px 84px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 84px), 60% 100%, 40% 100%, 0 calc(100% - 84px)); }
  .sources { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 8px; }
  .source { padding: 10px 12px; }
  .source:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hub { grid-template-columns: 32px auto; padding: 10px 16px 10px 10px; }
  .hub svg { width: 32px; height: 32px; }
}

/* The day: a real sequence, so it carries times. */
.day li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; }
.day li:first-child { padding-top: 4px; }
.day time { padding-top: 3px; color: var(--muted); }
.day p { margin-top: 4px; color: var(--muted); }

/* A macOS-style alert, as Updora shows it. */
.alert {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  max-width: 520px; margin-top: 16px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); font-size: .9375rem; line-height: 1.35;
}
.alert strong { display: block; font-weight: 650; }
.alert span { color: var(--muted); }
.alert-buttons { display: flex; gap: 6px; }
.alert-buttons b { padding: 5px 10px; border-radius: 7px; background: var(--surface-bar); box-shadow: 0 0 0 1px var(--hair); color: var(--text); font-weight: 500; white-space: nowrap; }
.alert-buttons b.default { background: var(--btn-bg); color: var(--btn-text); box-shadow: none; }
.alert-cloud { grid-template-columns: 32px minmax(0, 1fr); margin-top: 28px; }
@media (max-width: 560px) { .alert { grid-template-columns: 32px minmax(0, 1fr); } .alert-buttons { grid-column: 2; } }

/* Verification steps: a genuine sequence, so numbered. */
.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 12px 0 12px 44px; }
.steps li:first-child { padding-top: 4px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 12px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--verified); color: var(--verified);
  font: 650 .9375rem/1 var(--sans);
}
.steps li:first-child::before { top: 4px; }
.steps p { margin-top: 2px; color: var(--muted); }
.refusal { margin-top: 32px; padding: 18px 26px 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.refusal-app { margin-top: 6px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
.refusal-app .mono { margin-left: 8px; color: var(--muted); font-weight: 400; }
.refusal-foot { margin: 0 -26px; padding: 14px 26px 16px; border-top: 1px solid var(--hair); background: var(--surface-bar); font-size: .9375rem; color: var(--muted); }
.refusal figcaption { font-size: .9375rem; color: var(--muted); }

/* What Cloud receives, and what it never does. */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ledger h3 { padding-bottom: 8px; }
.ledger li { padding: 6px 0; }
.ledger .never li { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--muted); }
@media (max-width: 560px) { .ledger { grid-template-columns: 1fr; } }

/* Definition rows: MDM routes and Cloud features. */
.ways > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 24px; padding: 12px 0; }
.ways > div:first-child { padding-top: 4px; }
.ways dt { font-weight: 650; }
.ways dd { color: var(--muted); }
@media (max-width: 560px) { .ways > div { grid-template-columns: 1fr; } }
.status {
  display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 6px;
  background: var(--surface-bar); color: var(--text);
  font-size: .9375rem; font-weight: 600;
}
.note .status { display: block; width: fit-content; margin: 4px 0 6px; }
.status[hidden] { display: none; }

/* Prices: a plain list, with the catch printed. */
.prices > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; align-items: baseline;
  padding: 14px 0;
}
.prices > div:first-child { padding-top: 4px; }
.prices dt { font-weight: 650; }
.prices .amount { font-size: 1.75rem; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: right; }
.prices .amount small { font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.prices .note-line { grid-column: 1 / -1; color: var(--muted); }
.promises { margin-top: 32px; max-width: 60ch; }
.promises li + li { margin-top: 8px; }
.fine { margin-top: 16px; max-width: 60ch; font-size: .9375rem; color: var(--muted); }

/* Final call: the page closes on the hero's copper. */
.final {
  background: var(--hero-bg); background-image: var(--hero-grad); color: var(--graphite); border-top: 0; --focus: var(--graphite); --muted: #2B211C;
  padding-top: calc(clamp(40px, 4vw, 64px) + var(--rise-h));
  padding-bottom: calc(clamp(40px, 4vw, 64px) + var(--rise-h));
  /* a rising band: top and bottom edges climb to the right, parallel to the hero's */
  clip-path: polygon(0 var(--rise-h), 100% 0, 100% calc(100% - var(--rise-h)), 0 100%);
}
/* The sign-up fills its band: the form on the left, the one fact that matters on the right. */
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.final-figure { font-size: clamp(3rem, 1.2rem + 5.4vw, 6rem); font-weight: 750; line-height: .94; letter-spacing: -.05em; }
main:has(.page-hero) .final-figure { font-size: clamp(2.5rem, 1.3rem + 4vw, 4.75rem); }
.final-fact p + p { margin-top: 16px; max-width: 26em; }
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; } }
.final h2 { max-width: 14em; }
.final .notify { max-width: none; margin-top: 28px; }
.final .notify input[type="email"], .final .btn { min-height: 56px; }
.final .notify input[type="email"] { border-color: transparent; background: #FFFFFF; color: var(--graphite); }
.final .btn { background: var(--graphite); color: #FFFFFF; }
.final .btn:hover { background: var(--slate); }
.final .form-note.err { color: var(--graphite); font-weight: 600; }
.site-footer { border-top: 0; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-inner .lockup { margin-right: auto; }

/* 404 */
.page-404 { min-height: 70vh; display: grid; align-content: center; border-top: 0; }
.page-404 h1 { margin-top: 28px; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.page-404 p { margin-top: 16px; color: var(--muted); max-width: 30em; }
.page-404 .btn { margin-top: 28px; }


@media (max-width: 480px) {
  .check { grid-template-columns: 22px minmax(0, 1fr); }
  .check .value { grid-column: 2; text-align: left; }
}

/* Bands: alternate sections sit on a pale copper tint, with the rise on both edges, so each section reads as its own block. */
.band {
  background: var(--band); border-top: 0;
  padding-top: calc(clamp(40px, 4vw, 64px) + var(--band-rise)); padding-bottom: calc(clamp(40px, 4vw, 64px) + var(--band-rise));
  clip-path: polygon(0 var(--band-rise), 100% 0, 100% calc(100% - var(--band-rise)), 0 100%);
}
.band + .section, .section + .band { border-top: 0; }
.band .alert, .band .note { background: var(--surface); }
@media (max-width: 600px) { .band { padding-top: calc(40px + var(--band-rise)); padding-bottom: calc(40px + var(--band-rise)); } }

/* Inner pages: a shorter copper hero with the page's title, then sections as on the home page. */
.page-hero { padding-top: clamp(28px, 3.5vw, 48px); padding-bottom: calc(clamp(32px, 4vw, 56px) + var(--rise-h)); }
.page-title { font-size: clamp(2.5rem, 1.3rem + 4vw, 4.75rem); font-weight: 750; line-height: .98; letter-spacing: -.045em; max-width: 14em; text-wrap: balance; }
.page-hero .lede { max-width: 36em; }
.section.first { border-top: 0; }
.nav-link[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-header:not(.scrolled) .nav-link[aria-current="page"] { color: var(--graphite); }

/* "More" links: plain words, underlined, saying where they go. */
.more { font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.more { text-decoration-color: var(--action); }
.more:hover { text-decoration-color: currentColor; }

/* Home: privacy and prices side by side, in brief. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.pair p { margin-top: 16px; color: var(--muted); max-width: 32em; }
.pair p:has(.more) { color: var(--text); }
.mini-prices { margin-top: 18px; }
.mini-prices > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.mini-prices dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.org-teaser { max-width: 34em; }
.org-teaser + p { margin-top: 16px; }
.steps-brief li { padding-top: 14px; padding-bottom: 14px; }
.steps-brief li::before { top: 12px; }
.steps-brief li:first-child::before { top: 0; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Footer links */
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }

/* The funnel in motion: as it scrolls into view, updates drop from each source down the neck into Updora,
   then the window's rows settle in. Scroll-driven, so it plays as you read and never loops. */
.drops { position: absolute; inset: 0; pointer-events: none; }
.drop { position: absolute; top: 0; left: var(--x); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--hero); opacity: 0; }
.funnel { position: relative; }
.drops-4 .drop:nth-child(1) { --x: 12.5%; } .drops-4 .drop:nth-child(2) { --x: 37.5%; } .drops-4 .drop:nth-child(3) { --x: 62.5%; } .drops-4 .drop:nth-child(4) { --x: 87.5%; }
.drops-5 .drop:nth-child(1) { --x: 10%; } .drops-5 .drop:nth-child(2) { --x: 30%; } .drops-5 .drop:nth-child(3) { --x: 50%; } .drops-5 .drop:nth-child(4) { --x: 70%; } .drops-5 .drop:nth-child(5) { --x: 90%; }
@media (max-width: 760px) {
  .drops .drop:nth-child(odd) { --x: 25%; } .drops .drop:nth-child(even) { --x: 75%; } .drops-5 .drop:nth-child(5) { --x: 50%; }
}
/* Pours continuously while the funnel is on screen (main.js adds .pouring); still under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .funnel.pouring .drop { animation: pour 2.8s cubic-bezier(.45, 0, .55, 1) infinite; }
  .funnel.pouring .drop:nth-child(2) { animation-delay: .55s; }
  .funnel.pouring .drop:nth-child(3) { animation-delay: 1.1s; }
  .funnel.pouring .drop:nth-child(4) { animation-delay: 1.65s; }
  .funnel.pouring .drop:nth-child(5) { animation-delay: 2.2s; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .window { view-timeline: --window block; }
    .app-row { animation: settle linear both; animation-timeline: --window; animation-range: entry 30% entry 90%; }
  }
}
@keyframes pour {
  0% { top: calc(100% - var(--taper) - 6px); left: var(--x); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: calc(100% - 4px); left: 50%; opacity: 0; }
}
@keyframes settle { from { opacity: 0; transform: translateY(6px); } }

/* Phones: the same content in about two thirds of the scroll. */
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .final { padding-top: calc(40px + var(--rise-h)); padding-bottom: calc(40px + var(--rise-h)); }
  .hero { padding-bottom: calc(56px + var(--rise-h)); }
  h2 { font-size: 1.75rem; }
  .claim p { margin-top: 12px; }
  .split { gap: 24px; }
  .day li, .day li:first-child { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
  .day p, .steps p, .ways dd { font-size: .9375rem; }
  .alert { margin-top: 10px; }
  .steps li { padding: 12px 0 12px 38px; }
  .steps li::before { top: 12px; width: 24px; height: 24px; }
  .refusal { margin-top: 20px; }
  .ledger { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ledger h3 { font-size: .9375rem; }
  .ledger li { padding: 4px 0; font-size: .9375rem; }
  .ways > div { padding: 12px 0; }
  .prices > div { padding: 12px 0; }
  .prices dt { font-size: 1rem; }
  .prices .note-line { font-size: .9375rem; }
  .promises { margin-top: 16px; font-size: .9375rem; }
  .why-head p { margin-top: 12px; }
  .steps p { display: none; }
  .steps li { padding: 10px 0 10px 38px; }
  .steps li::before { top: 8px; }
  .app-row.phone-hide { display: none; }
  .group { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
