/* digid public site. One hand-written stylesheet for every public page, served from
   priv/static/site; no build step. Inter (already shipped in /fonts) is the only face on
   the page; the mono subset in /site/fonts is for real code blocks only.

   The look: a light grey page, flat white and lavender panels, light-weight type set large
   and tight, black pill buttons. The accent (ube) appears as large flat tints, navy slides,
   links and small tags; never on buttons and never as a gradient. No shadows, no borders
   on cards, no glow; 1px hairlines only divide text. The home page is a deck of slides. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal-260c81a4759baf163c025001c4f27872.woff2?vsn=d") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal-1ad231aac0a8a891b8374aa5526a5813.woff2?vsn=d") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "digid mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/site/fonts/jbmono-Regular-ec9bf4f2a646c51dbb6aecf39ae02790.woff2?vsn=d") format("woff2");
}
@font-face {
  font-family: "digid mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500 700;
  src: url("/site/fonts/jbmono-Medium-f52c853a5d25e2ff330fa29752723141.woff2?vsn=d") format("woff2");
}

/* ---------------------------------------------------------------- tokens */
:root {
  /* brand: the logo's fingerprint mark is #7379FD. Use it for the mark only. */
  --brand: #7379fd;

  /* accent: ube, for links, tags and tints */
  --ube: #3f48fd;
  --ube-hover: #7379fd;
  --ube-dark: #020cd0;
  --ube-50: #f4f5ff;
  --ube-100: #e9eaff;
  --ube-200: #d3d5ff;
  --ube-300: #b2b6fe;
  --navy: #010334;

  /* neutrals */
  --page: #f6f6f6;
  --card: #ffffff;
  --ink: #000000;
  --ink-2: #1e1e1e;
  --text: #2b2b2b;
  --muted: #5a5a5a;
  --muted-2: #787878;
  --hairline: #d4d4d4;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .7);
  --on-dark-rule: rgba(255, 255, 255, .2);

  /* type */
  --font: "Inter Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "digid mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-display: clamp(44px, 6.4vw, 84px);
  --fs-h2: clamp(36px, 4.9vw, 64px);
  --fs-h3: clamp(24px, 3vw, 42px);
  --fs-lead: clamp(18px, 1.6vw, 22px);

  /* layout */
  --container: 1184px;
  --gutter: 24px;
  --section: 128px;
  --nav-h: 64px;
  --r-tag: 8px;
  --r-card: 32px;
  --r-panel: 48px;
  --r-phone: 44px;
  --r-pill: 999px;

  color-scheme: light;
}
@media (max-width: 1024px) { :root { --section: 96px; } }
@media (max-width: 700px) { :root { --section: 64px; --gutter: 16px; } }

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ube); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font); font-weight: 300; text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.012em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.008em; }
h3 { font-size: var(--fs-h3); line-height: 1.04; letter-spacing: -0.006em; }
p { margin: 0; }
b, strong { font-weight: 500; }
code { font: 400 .9em/1 var(--mono); color: var(--ink); }
.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* language: both languages are in the page; the root class picks one */
html:not(.sw) [lang="sw"], html.sw [lang="en"] { display: none !important; }

/* ---------------------------------------------------------------- type helpers */
.lead { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.3; font-weight: 300; color: var(--text); max-width: 34em; }
.tag { display: inline-block; padding: 4px 10px; border-radius: var(--r-tag); background: var(--ube-100); color: var(--ube-dark); font-size: 14px; line-height: 20px; font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

/* ---------------------------------------------------------------- buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 0; background: var(--ink); color: var(--on-dark); font: 500 16px/1 var(--font); white-space: nowrap; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.btn:hover { background: var(--ink-2); }
.btn-light { background: var(--card); color: var(--ink); }
.btn-light:hover { background: var(--ube-50); }
.link { display: inline-flex; align-items: center; gap: .3em; font-size: 16px; font-weight: 400; color: var(--ink); transition: color .15s ease; }
.link:hover { color: var(--ube); }
.link .chev { font-size: 1.15em; line-height: 1; transform: translateY(-.04em); }
.ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 40px; }
.on-dark .link { color: var(--on-dark); }
.on-dark .link:hover { color: var(--ube-300); }

/* ---------------------------------------------------------------- wordmark */
/* the brand logo, inlined from /site/img/brand/logo.svg: the mark keeps #7379FD (--brand)
   and the wordmark follows `color`, ink on light surfaces and white on navy */
.logo { display: inline-flex; align-items: center; flex: none; color: var(--ink); line-height: 0; }
.logo svg { display: block; height: 27px; width: auto; }
.foot .logo svg { height: 30px; }
.on-dark .logo, .slide-navy .logo { color: var(--on-dark); }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--page); padding-top: env(safe-area-inset-top, 0px); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ube); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-signin { font-size: 15px; color: var(--ink-2); }
.nav-signin:hover { color: var(--ube); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 15px; }
.lang { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .05); }
.lang a { display: inline-block; padding: 6px 9px; border-radius: var(--r-pill); color: var(--muted); font: 500 12px/1 var(--font); letter-spacing: .02em; }
.lang [aria-pressed="true"] { background: var(--card); color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 14px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .05); color: var(--ink); font: 500 14px/1 var(--font); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--on-dark); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; display: grid; gap: 2px; padding: 8px; border-radius: 20px; background: var(--card); z-index: 30; outline: 1px solid var(--hairline); }
.menu-panel a { padding: 11px 14px; border-radius: 12px; font-size: 15px; color: var(--ink-2); }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--ube-50); color: var(--ube-dark); }
@media (max-width: 960px) { .nav-links, .nav-signin { display: none; } .menu { display: block; } }
@media (max-width: 420px) { .nav .wrap { gap: 12px; } .nav-end { gap: 8px; } .nav .btn { padding: 0 14px; } .lang a { padding: 6px 7px; } .menu summary { padding: 10px 11px; } }

/* ---------------------------------------------------------------- inner pages
   Products, pricing, developers, security and about are decks built from the home page's
   slides (below). Contact, account deletion and the legal pages are plain prose pages. */
.tone { color: var(--ube); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split.middle { align-items: center; }
.split h2 { max-width: 10em; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.lead + .lead { margin-top: 16px; }
.note { margin-top: 40px; max-width: 44em; font-size: 15px; line-height: 24px; color: var(--muted); }
.on-dark .note { color: var(--on-dark-muted); }

/* hairline list: one line per fact, ruled above and below */
.hlist { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hairline); }
.hlist li { padding: 20px 0; border-top: 1px solid var(--hairline); font-size: 17px; line-height: 26px; color: var(--text); }
.hlist li b { color: var(--ink); }
.lead + .hlist, .lead + .acc { margin-top: 48px; }

/* hairline accordion: the key details */
.acc { border-bottom: 1px solid var(--hairline); }
.acc details { border-top: 1px solid var(--hairline); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font: 300 clamp(22px, 2.2vw, 28px)/1.2 var(--font); color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; flex: none; font-size: 30px; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc summary:hover { color: var(--ube); }
.acc .acc-body { padding: 0 0 28px; max-width: 40em; color: var(--muted); font-size: 17px; line-height: 26px; }
.acc .acc-body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }

/* photos: rounded tiles, no frame */
.photo { margin: 0; min-width: 0; }
.float { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--ube-50); }
.float img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* prices: separate cards whose rows line up across the set (subgrid): name, products inside,
   what it is for, the price, the terms. The recommended card is the one ube-tinted card. */
.plans { --n: 4; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px 12px; margin-top: 56px; }
.plans[data-n="1"] { --n: 1; } .plans[data-n="2"] { --n: 2; } .plans[data-n="3"] { --n: 3; } .plans[data-n="4"] { --n: 4; }
@media (max-width: 1100px) { .plans[data-n="4"] { --n: 2; } }
@media (max-width: 860px) { .plans[data-n="3"] { --n: 1; } }
.plan { position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; min-width: 0; padding: 32px clamp(24px, 2.2vw, 32px) 28px; border-radius: var(--r-card); background: var(--card); color: var(--ink-2); }
.plan.is-recommended { background: var(--ube-100); box-shadow: inset 0 0 0 1.5px var(--ube-300); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-size: clamp(24px, 2vw, 28px); line-height: 1.15; }
.plan .tag { position: absolute; top: -12px; left: clamp(24px, 2.2vw, 32px); background: var(--ink); color: var(--on-dark); font-size: 12px; line-height: 18px; padding: 3px 10px; border-radius: var(--r-pill); }
.plan-mods { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.plan-mods li { font-size: 13px; line-height: 18px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ube-50); color: var(--ube-dark); }
.plan.is-recommended .plan-mods li { background: var(--card); }
.plan .plan-text { margin-top: 16px; font-size: 15px; line-height: 23px; color: var(--muted); }
.plan-price { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.plan.is-recommended .plan-price { border-top-color: var(--ube-300); }
.plan-label { display: block; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.plan .amount { font-size: clamp(30px, 2.6vw, 36px); }
.plan .amount small { margin-top: 6px; }
.plan-per { margin-top: 16px; font-size: 15px; line-height: 21px; color: var(--ink); }
.plan-unit { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; line-height: 21px; color: var(--muted); }
.plan-save { white-space: nowrap; font-size: 12px; line-height: 18px; padding: 2px 9px; border-radius: var(--r-pill); background: var(--ube); color: var(--on-dark); }
.plan-terms { margin: 24px 0 0; display: grid; gap: 10px; align-content: start; }
.plan-terms div { display: flex; flex-direction: column; gap: 2px; }
.plan-terms dt { font-size: 13px; color: var(--muted); }
.plan-terms dd { margin: 0; font-size: 15px; line-height: 21px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Pricing by product: one row per product, both ways to pay. Hairlines only, no fills. */
.price-table-scroll { margin-top: 48px; overflow-x: auto; }
.price-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 17px; color: var(--ink-2); }
.price-table th, .price-table td { padding: 18px 16px; text-align: right; border-top: 1px solid var(--hairline); font-weight: 400; white-space: nowrap; }
.price-table thead th { padding-top: 0; border-top: 0; font-size: 14px; color: var(--muted); vertical-align: bottom; white-space: normal; }
.price-table th:first-child, .price-table td:first-child { text-align: left; padding-left: 0; }
.price-table th:last-child, .price-table td:last-child { padding-right: 0; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 1px solid var(--hairline); }
.price-table tbody th { font-size: 20px; font-weight: 300; color: var(--ink); }
.price-table tbody th small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.price-table td:nth-child(2) { color: var(--ink); font-size: 26px; font-weight: 300; }
.price-table td:nth-child(2) small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ube-dark); }
.price-table td:nth-child(5) { color: var(--muted); }
.plans-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.plans-note .link { font-size: 15px; }
@media (max-width: 600px) { .plans[data-n] { --n: 1; } .plan { grid-row: auto; grid-template-rows: none; } }
.amount { font: 300 clamp(24px, 2.6vw, 32px)/1.1 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.3; font-weight: 400; color: var(--muted); white-space: normal; }
.amount .cur { font-size: .5em; color: var(--muted); margin-right: .15em; }

@media (max-width: 860px) { .picker { grid-template-columns: minmax(0, 1fr); } .quote-panel { padding: 28px; } }

/* a plain white card beside words */
.box { padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r-card); background: var(--card); }
.box h3 { max-width: 14em; }
.box p { margin-top: 16px; color: var(--muted); max-width: 30em; }
.box .ctas { margin-top: 32px; }

/* products: the other two, as plain white cards */
.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.other { display: flex; flex-direction: column; min-height: 300px; padding: 40px; border-radius: var(--r-card); background: var(--card); color: var(--ink); transition: background-color .15s ease; }
.other:hover { background: var(--ube-50); }
.other h3 { margin-top: 24px; max-width: 12em; }
.other p { margin-top: 14px; max-width: 26em; color: var(--muted); }
.other .link { margin-top: auto; padding-top: 32px; }
.other:hover .link { color: var(--ube); }
@media (max-width: 760px) { .others { grid-template-columns: minmax(0, 1fr); } .other { min-height: 0; padding: 28px; } }

/* code: real code blocks only */
.code { min-width: 0; }
.code .k { color: var(--ube-dark); }
.code .s { color: var(--ink); }
.code .c { color: var(--muted-2); }
.code .n { color: var(--ube-dark); }

/* plain pages: legal, contact, account deletion */
.page-head { padding-top: 96px; }
.page-head h1 { max-width: 14em; }
.page-head .lead { max-width: 32em; }
@media (max-width: 700px) { .page-head { padding-top: 56px; } }
.draft { display: inline-block; margin-bottom: 24px; font-size: 13px; color: var(--muted-2); }
.prose { margin-top: 48px; max-width: 40em; color: var(--text); font-size: 17px; line-height: 28px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 56px; font-size: 28px; line-height: 1.15; }
.prose ul { margin-bottom: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--ube); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ube-dark); }

/* contact form and flash */
.contact h1 { max-width: 9em; }
.contact .link { margin-top: 32px; }
.contact .flash { margin: 0 0 16px; }
.flash { margin-top: 24px; max-width: 40em; padding: 14px 18px; border-radius: 16px; background: var(--ube-100); color: var(--ink); font-size: 15px; }
.flash.error { background: #fdecea; color: #8a1c12; }
.form { display: grid; gap: 20px; padding: 40px; border-radius: var(--r-card); background: var(--card); }
.form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; padding: 13px 16px; border-radius: 12px; border: 0; background: var(--page); color: var(--ink); font: 400 16px/1.4 var(--font); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ube); outline-offset: 0; }
.form .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 600px) { .form { padding: 24px; } .form .two { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- the home deck
   Each .slide fills the screen below the nav and makes one point. Snapping is
   `proximity`, so a tall slide never traps the reader; on short or narrow screens the
   slides are ordinary sections. */
html:has(.slides) { scroll-snap-type: y proximity; }
.slide { scroll-margin-top: 0; position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; padding-block: 64px; }
.slide > .wrap { width: 100%; }
@media (max-width: 760px), (max-height: 560px) {
  html:has(.slides) { scroll-snap-type: none; }
  .slide { min-height: 0; padding-block: var(--section); }
}

/* 1. hero: centred words over three phones that rise from the bottom edge; the slide
   clips them, and the full recordings follow on the next three slides */
.slide-hero { height: calc(100svh - var(--nav-h)); justify-content: flex-start; text-align: center; padding-block: 72px 0; overflow: hidden; }
.slide-hero h1 { max-width: 13em; margin-inline: auto; }
.slide-hero .lead { margin-inline: auto; max-width: 30em; }
.slide-hero .ctas { justify-content: center; }
.phones { display: flex; justify-content: center; align-items: flex-start; margin-top: 64px; }
.phones .phone { --phone-w: clamp(200px, 19vw, 272px); margin-inline: calc(var(--phone-w) * -.06); }
.phones .phone.side { width: calc(var(--phone-w) * .88); margin-top: calc(var(--phone-w) * .14); }
.phones .phone:not(.side) { position: relative; z-index: 1; }
@media (max-width: 760px), (max-height: 560px) {
  .slide-hero { height: auto; padding-block: 48px 56px; overflow: visible; }
  .phones { margin-top: 48px; }
  .phones .phone { --phone-w: min(34vw, 210px); }
}

/* 2-4. a product slide: a large flat panel, words on one side, a phone on the other */
.slide-panel { padding: 24px var(--gutter); }
.panel { width: 100%; min-height: calc(100svh - var(--nav-h) - 48px); border-radius: var(--r-panel); display: flex; align-items: center; padding: 64px 0; }
.panel > .wrap { width: 100%; }
.panel-ube { background: var(--ube-100); }
.panel-white { background: var(--card); }
.panel-ube .tag { background: var(--card); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 128px); align-items: center; padding-inline: clamp(0px, 3vw, 48px); }
.feature.mirror { grid-template-columns: auto minmax(0, 1fr); }
.feature.mirror .phone { order: -1; }
.feature h1, .feature h2 { margin-top: 20px; max-width: 11em; }
.feature .ctas .link { margin-top: 0; }
.feature .lead { max-width: 26em; }
.feature .link { margin-top: 40px; }
.feature .phone { --phone-w: clamp(220px, calc((100svh - var(--nav-h) - 48px - 128px) * .4615), 300px); }
@media (max-width: 860px) {
  .feature, .feature.mirror { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .feature .phone, .feature.mirror .phone { order: 2; justify-self: center; --phone-w: min(68vw, 280px); }
}
@media (max-width: 760px), (max-height: 560px) {
  .slide-panel { padding-block: 8px; }
  .panel { min-height: 0; border-radius: var(--r-card); padding: 56px 0; }
}

/* 5 and 9. navy slides */
.slide-navy { background: var(--navy); color: var(--on-dark); }
.slide-navy h2 { color: var(--on-dark); }
.slide-navy .lead { color: var(--on-dark-muted); }
.outcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.outcome h2 { max-width: 10em; }
.docsheet { border-radius: var(--r-card); background: rgba(255, 255, 255, .06); padding: 32px 36px; }
.docsheet .name { font-size: 15px; color: var(--ube-300); }
.docsheet dl { margin: 20px 0 0; }
.docsheet dl > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--on-dark-rule); }
.docsheet dt { color: var(--on-dark); }
.docsheet dd { margin: 0; color: var(--on-dark-muted); }
@media (max-width: 860px) { .outcome { grid-template-columns: minmax(0, 1fr); } .docsheet { padding: 24px; } .docsheet dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* 6. privacy: one statement over a three-column feature row */
.slide-plain h1, .slide-plain h2 { max-width: 13em; }
.feature-pad { padding-inline: clamp(0px, 3vw, 48px); }
.feature-pad h2 { max-width: 14em; }
.link.inline { margin-left: 10px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 80px; }
.col { border-top: 1px solid var(--hairline); padding-top: 24px; }
.col h3 { font-size: 19px; line-height: 1.3; font-weight: 400; letter-spacing: 0; }
.col p { margin-top: 10px; color: var(--muted); max-width: 22em; }
.slide-plain .wrap > .link { margin-top: 56px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols + .note { margin-top: 48px; }
@media (max-width: 960px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 760px) { .cols { grid-template-columns: minmax(0, 1fr); margin-top: 48px; } }
.on-dark .col { border-top-color: var(--on-dark-rule); }
.on-dark .col h3 { color: var(--on-dark); }
.on-dark .col p { color: var(--on-dark-muted); }

/* "How it works": the same row, numbered */
.howto { list-style: none; padding: 0; margin-bottom: 0; counter-reset: how; }
.howto .col { counter-increment: how; }
.howto .col::before { content: counter(how); display: block; margin-bottom: 40px; font: 300 clamp(48px, 5vw, 72px)/1 var(--font); color: var(--ube); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .howto .col::before { margin-bottom: 20px; } }

/* a statement on a tinted panel: the opening slide of pages without a phone */
.statement { text-align: center; padding-inline: clamp(0px, 3vw, 48px); }
.statement h1 { max-width: 13em; margin: 20px auto 0; }
.statement .lead { margin-inline: auto; max-width: 32em; }
.statement .ctas { justify-content: center; }
.panel-ube .statement .link:hover { color: var(--ube-dark); }

/* 7. developers: words and platform tags beside one code block */
.devs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.devs h1 { max-width: 10em; }
.devs h2 { max-width: 9em; }
.devs > div > .link { margin-top: 40px; }
.devs .hlist { margin-top: 32px; }
.devs .hlist li { padding: 14px 0; font-size: 16px; line-height: 24px; }
.devs .note { margin-top: 24px; }
.codecard { min-width: 0; }
.codecard .file { margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.codecard pre { margin: 0; overflow-x: auto; font: 400 14px/1.75 var(--mono); color: var(--ink-2); }
.codecard pre { padding: 32px; border-radius: var(--r-card); background: var(--card); }
@media (max-width: 700px) { .codecard pre { padding: 20px; font-size: 12.5px; } }
.on-dark .codecard .file { color: var(--on-dark-muted); }
.on-dark .codecard pre { background: rgba(255, 255, 255, .06); color: var(--on-dark-muted); }
.on-dark .code .k, .on-dark .code .n { color: var(--ube-300); }
.on-dark .code .s { color: var(--on-dark); }
.on-dark .hlist { border-bottom-color: var(--on-dark-rule); }
.on-dark .hlist li { border-top-color: var(--on-dark-rule); color: var(--on-dark-muted); }
.on-dark .hlist li b { color: var(--on-dark); font-weight: 400; }
@media (max-width: 960px) { .devs { grid-template-columns: minmax(0, 1fr); } }

/* 8. made for Tanzania: one photograph, one line on a plain card */
.slide-photo { padding: 0; justify-content: flex-end; overflow: hidden; background: var(--navy); }
.slide-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 35%; }
.slide-photo .wrap { position: relative; z-index: 1; padding-block: 96px 48px; }
.photo-card { max-width: 600px; padding: 40px 44px; border-radius: var(--r-card); background: var(--card); }
.photo-card h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.photo-card .where { margin-top: 16px; font-size: 15px; color: var(--muted); }
.photo-card.end { margin-left: auto; }
@media (max-width: 760px), (max-height: 560px) { .slide-photo { min-height: 78svh; } .slide-photo .wrap { padding-block: 64px 16px; } .photo-card { padding: 28px; } }

/* 9. the final call: a lavender card on navy */
.slide-cta { padding: 24px var(--gutter); }
.cta-card { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; border-radius: var(--r-panel); background: var(--ube-300); color: var(--ink); text-align: center; padding: clamp(64px, 10vw, 128px) 32px; }
.cta-card h2 { color: var(--ink); margin-inline: auto; }
.cta-card .lead { margin-inline: auto; color: var(--ink-2); max-width: 26em; }
.cta-card .ctas { justify-content: center; }
.cta-card .link { color: var(--ink); }
.cta-card .link:hover { color: var(--ube-dark); }
.slide-cta.slide-navy { display: flex; align-items: center; }

/* ---------------------------------------------------------------- the phone and its demo */
.phone { --phone-w: 280px; width: var(--phone-w); aspect-ratio: 9 / 19.5; flex: none; padding: 6px; border-radius: var(--r-phone); background: var(--ink-2); }
.phone .screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--r-phone) - 6px); background: var(--ube-50); }
.panel-ube .phone .screen { background: var(--card); }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.phone .placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; padding: 16px; }
.phone .placeholder .step { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.phone .placeholder .name { font-size: clamp(13px, calc(var(--phone-w) * .075), 22px); line-height: 1.2; font-weight: 300; color: var(--ink); }
.phones .side .placeholder .name { font-size: clamp(11px, calc(var(--phone-w) * .065), 20px); }
.phones .phone { border-radius: calc(var(--phone-w) * .155); }
.phones .phone .screen { border-radius: calc(var(--phone-w) * .155 - 6px); }

/* ---------------------------------------------------------------- the slide indicator */
.pager { position: fixed; right: 20px; top: 50%; z-index: 15; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.pager ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pager button { display: block; width: 20px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.pager button::before { content: ""; display: block; width: 6px; height: 6px; margin: 4px auto; border-radius: 50%; background: currentColor; opacity: .35; }
.pager button[aria-current="true"]::before { opacity: 1; background: var(--ink); }
.pager.on-dark { color: var(--on-dark-muted); }
.pager.on-dark button::before, .pager.on-dark button[aria-current="true"]::before { background: var(--on-dark); }
@media (max-width: 1100px), (max-height: 560px) { .pager { display: none; } }

/* ---------------------------------------------------------------- developer docs
   /docs: a sidebar grouped by section, one reading column, an "On this page" list on wide
   screens and prev/next at the foot. The same tokens as the rest of the site: light headings,
   flat white code panels, ube for links and the current page. Below 960px the sidebar
   becomes a collapsible menu above the title; below 1200px the page list is dropped. */
.docs { display: grid; grid-template-columns: 232px minmax(0, 1fr) 196px; gap: 56px; align-items: start; padding-top: 56px; }
.docs-side { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100svh - var(--nav-h) - 48px); overflow-y: auto; padding-bottom: 24px; scrollbar-width: thin; }
.docs-group + .docs-group { margin-top: 28px; }
.docs-group h2 { margin: 0 0 8px; padding-left: 12px; font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.docs-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-group a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; border-radius: 10px; font-size: 15px; line-height: 20px; color: var(--ink-2); transition: background-color .15s ease, color .15s ease; }
.docs-group a:hover { color: var(--ube); }
.docs-group a[aria-current="page"] { background: var(--ube-100); color: var(--ube-dark); }
.docs-lock { flex: none; padding: 1px 7px; border-radius: var(--r-tag); background: rgba(0, 0, 0, .05); font-size: 11px; line-height: 16px; color: var(--muted); }
.docs-menu { display: none; margin-bottom: 32px; border-radius: 20px; background: var(--card); }
.docs-menu summary { list-style: none; cursor: pointer; padding: 14px 20px; font-size: 15px; color: var(--ink); }
.docs-menu summary::-webkit-details-marker { display: none; }
.docs-menu summary::after { content: "+"; float: right; color: var(--muted); }
.docs-menu[open] summary::after { content: "\2013"; }
.docs-menu nav { padding: 4px 8px 20px; }

.docs-main { min-width: 0; max-width: 46em; }
.docs-main h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; max-width: 14em; }
.docs-lead { margin-top: 20px; max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; font-weight: 300; color: var(--text); }

.docs-body { margin-top: 48px; color: var(--text); font-size: 17px; line-height: 28px; }
.docs-body > * + * { margin-top: 18px; }
.docs-body h2 { margin-top: 64px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
.docs-body h3 { margin-top: 40px; font-size: 21px; line-height: 1.3; font-weight: 400; letter-spacing: 0; }
.docs-body h2 + *, .docs-body h3 + * { margin-top: 14px; }
.docs-body h2, .docs-body h3 { position: relative; }
.docs-body .anchor { margin-left: .35em; color: var(--muted-2); opacity: 0; text-decoration: none; transition: opacity .15s ease; }
.docs-body .anchor::before { content: "#"; }
.docs-body h2:hover .anchor, .docs-body h3:hover .anchor, .docs-body .anchor:focus-visible { opacity: 1; }
.docs-body .anchor:hover { color: var(--ube); }
.docs-body a:not(.anchor) { color: var(--ube); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.docs-body a:not(.anchor):hover { color: var(--ube-dark); }
.docs-body ul, .docs-body ol { padding-left: 1.3em; }
.docs-body li + li { margin-top: 6px; }
.docs-body li > ul, .docs-body li > ol { margin-top: 6px; }
.docs-body strong { color: var(--ink); }
.docs-body li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.3em; }
.docs-body li > input[type="checkbox"] { margin: 0 .5em 0 0; accent-color: var(--ube); vertical-align: -2px; }
.docs-body :not(pre) > code { padding: .12em .36em; border-radius: 6px; background: var(--ube-50); font-size: .86em; line-height: 1; overflow-wrap: anywhere; }
.docs-body blockquote { margin-inline: 0; padding: 18px 22px; border-radius: 16px; background: var(--ube-100); color: var(--ink-2); }
.docs-body blockquote > * + * { margin-top: 10px; }
.docs-body hr { border: 0; border-top: 1px solid var(--hairline); margin-block: 40px; }

.docs-code { position: relative; }
.docs-code pre { margin: 0; padding: 22px 24px; border-radius: 20px; background: var(--card); overflow-x: auto; font: 400 14px/1.7 var(--mono); color: var(--ink-2); tab-size: 2; }
.docs-code pre code { font: inherit; color: inherit; }
.docs-code .k { color: var(--ube-dark); }
.docs-code .s { color: #0f6a4b; }
.docs-code .c { color: var(--muted-2); }
.docs-code .n { color: var(--ube); }
.docs-copy { position: absolute; top: 10px; right: 10px; padding: 6px 12px; border: 0; border-radius: var(--r-pill); background: var(--page); color: var(--ink-2); font: 500 12px/1 var(--font); cursor: pointer; opacity: 0; transition: opacity .15s ease, background-color .15s ease; }
.docs-code:hover .docs-copy, .docs-copy:focus-visible, .docs-copy.done { opacity: 1; }
.docs-copy:hover { background: var(--ube-100); }
@media (hover: none) { .docs-copy { opacity: 1; } }

.docs-table { overflow-x: auto; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.docs-table th, .docs-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); }
.docs-table thead th { border-top: 0; padding-top: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.docs-table tbody tr:last-child td { border-bottom: 1px solid var(--hairline); }
.docs-table td:first-child code { white-space: nowrap; }

.docs-gate { margin-top: 48px; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-card); background: var(--ube-100); }
.docs-gate h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.docs-gate p { margin-top: 14px; max-width: 32em; color: var(--ink-2); }
.docs-gate .ctas { margin-top: 28px; }

.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 80px; }
.docs-pager a { display: grid; gap: 4px; padding: 20px 24px; border-radius: 20px; background: var(--card); color: var(--ink); transition: background-color .15s ease; }
.docs-pager a:hover { background: var(--ube-50); }
.docs-pager a.next { grid-column: 2; text-align: right; }
.docs-pager-dir { font-size: 13px; color: var(--muted); }
.docs-pager-title { font-size: 17px; line-height: 1.3; }

.docs-toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: 14px; line-height: 20px; }
.docs-toc h2 { margin-bottom: 10px; font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.docs-toc ul { list-style: none; margin: 0; padding: 0 0 0 12px; display: grid; gap: 8px; border-left: 1px solid var(--hairline); }
.docs-toc a { color: var(--muted); }
.docs-toc a:hover { color: var(--ube); }

@media (max-width: 1200px) { .docs { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; } .docs-toc { display: none; } }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .docs-side { display: none; }
  .docs-menu { display: block; }
}
@media (max-width: 600px) {
  .docs-code pre { padding: 18px; font-size: 12.5px; border-radius: 16px; }
  .docs-pager { grid-template-columns: minmax(0, 1fr); }
  .docs-pager a.next { grid-column: auto; }
}

/* ---------------------------------------------------------------- footer */
footer { color: var(--muted); font-size: 15px; }
footer .wrap { padding-block: 0 40px; }
.foot { border-top: 1px solid var(--hairline); padding-top: 64px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
main + footer .foot { margin-top: var(--section); }
.foot .about p { margin-top: 14px; max-width: 22em; }
.foot h4 { margin: 0 0 14px; font-size: 15px; line-height: 1.3; font-weight: 400; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a:hover { color: var(--ube); }
.legal { margin-top: 64px; display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .about { grid-column: 1 / -1; } }
main:has(.slides) + footer .foot { margin-top: 96px; }

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

/* /try without its demo bundle */
.demo-offline { padding: clamp(32px, 5vw, 64px); border-radius: var(--r-panel); background: var(--ube-50); }
.demo-offline h2 { font-size: var(--fs-h3); }
.demo-offline .lead { margin-top: 16px; max-width: 38em; }
.demo-offline .ctas { margin-top: 32px; }
