/* Hallmark · checked: 2026-11-01 · genre: editorial (inferred)
 * built: the project · redesign: full, led by tasteskill v2 (direction: The product performs, seed 1555565096)
 * palette: Three stones with the logo's own blue as the one accent · hero: Ledge (/, /apps/*) · nav: wordmark and two links · footer: a board of tiles
 * v2.0.0 */
/* Hallmark · waive 77 · the maker's letter and the contact form keep a 600px reading column, the taste direction's letter blueprint */
/* Hallmark · waive 59 · the facts strip sits 4px under each app page hero on purpose, as one board with it */
/* Hallmark · dismissed 76 · the file renders cannot reach /assets/shots/ by an absolute path; the served pages load every screenshot */

/* X Apps: shared styles for every page.
   One ground (stone), one ink (charcoal), one accent (the logo's blue, on actions only).
   Surfaces are told apart by tone, never by lines or shadows; lines live only in form fields and inside
   pieces of app interface (elements marked data-ui). Corners are square, buttons included. */

:root {
  --bg: #EEECEA;          /* page */
  --surface: #E4E1DD;     /* panels, the lighter half of a split */
  --band: #CDC3B6;        /* the one darker band */
  --paper: #F5F5F4;       /* fields and the brightest surface */
  --ink: #2B2A29;
  --muted: #625E5A;
  --field-edge: #8A857F;
  --accent: #2340B0;      /* the blue tile of the X Apps logo */
  --accent-ink: #FCFCFB;
  --accent-deep: #1A3190;
  --live: #2F6B3A;
  --beta: #8F5500;
  --soon: #625E5A;
  --status-ink: #FCFCFB;
  --danger: #A8261B;
  --warn-bg: #F3E6C4; --warn-ink: #4A3700;
  --ok-bg: #DCE9DD;
  --shadow: rgba(30, 28, 26, .22);
  --scrim: rgba(30, 28, 26, .5);
  --white: #FCFCFB;
  --ui-ink: #1E1D1C;      /* text inside interface fragments */
  --ui-line: #D6D1CA;     /* control borders inside interface fragments */

  --f-text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* five sizes */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1.2rem + 5.2vw, 6rem);

  --gutter: clamp(20px, 3vw, 40px);
  --max: 1360px;
  --section: clamp(96px, 12vw, 200px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --press: 140ms;
  --hover: 200ms;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 16px; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--f-text); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
p, li { text-wrap: pretty; }
p { margin: 0; }
b, strong { font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(720px + 2 * var(--gutter)); }
.lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.02em; }
.small { font-size: var(--step-small); color: var(--muted); line-height: 1.5; max-width: 72ch; }
.display { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.05em; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark rect { fill: var(--ink); }
.logo-mark .tile-accent { fill: var(--accent); }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step-small); padding: 10px 12px; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 var(--step-small)/1 var(--f-text); letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform var(--press) var(--ease-out), background-color var(--hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--quiet { background: var(--paper); color: var(--ink); }
.btn--ghost { background: var(--surface); color: var(--ink); }   /* the quieter button inside pop-ups, which sit on paper */
.btn--lg { min-height: 52px; padding: 0 28px; font-size: var(--step-body); }
.btn:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-deep); }
  .btn--quiet:hover { background: var(--white); }
  .btn--ghost:hover { background: var(--band); }
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; font-size: var(--step-small); font-weight: 600; color: var(--status-ink); background: var(--soon); letter-spacing: 0; }
.status--live { background: var(--live); }
.status--beta { background: var(--beta); }
.app-icon { display: inline-block; width: 48px; height: 48px; flex: none; }
.app-icon svg { width: 100%; height: 100%; display: block; }

/* ---------- Homepage hero: a line of type and the product doing its job ---------- */
.hero { min-height: min(720px, calc(78svh - 70px)); display: flex; }
.hero-text { width: 100%; max-width: var(--max); margin-inline: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; padding: 48px var(--gutter) clamp(24px, 4vw, 56px); }
.hero-text h1 { font-size: clamp(2.125rem, 0.4rem + 8.6vw, 9.5rem); line-height: 0.9; letter-spacing: -0.05em; }
@media (min-width: 861px) { .hero-text h1 [data-line] { white-space: nowrap; } }
.hero-text .lead { max-width: 34ch; }

.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }


/* ---------- Sections ---------- */
.band { padding-block: var(--section) 0; }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.band-head p { max-width: 36ch; }

/* The apps, set like a departures board */
.board { display: grid; gap: 4px; }
.row { background: var(--surface); }
.row summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2.4fr) auto; align-items: center; gap: 24px;
  min-height: 84px; padding: 14px 20px;
  transition: background-color var(--hover) ease;
}
.row summary::-webkit-details-marker { display: none; }
.row-name { display: flex; align-items: center; gap: 16px; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.row-name .app-icon { width: 44px; height: 44px; }
.row-job { font-weight: 600; }
.row-on { color: var(--muted); }
.row[open] { background: var(--accent); color: var(--accent-ink); }
.row[open] .row-name, .row[open] .row-on { color: var(--accent-ink); }
.row-detail { display: grid; grid-template-columns: minmax(0, 8fr) auto; align-items: end; gap: 20px 40px; padding: 4px 20px 28px calc(20px + 44px + 16px); }
.row:not([open]) .row-detail { display: none; }
.row-detail p { max-width: 58ch; }
.row-detail .actions { grid-column: 1; }
.row-detail .btn { background: var(--paper); color: var(--ink); }
.row-detail .btn--quiet { background: var(--accent-deep); color: var(--accent-ink); }
.row-detail .dl-stat { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.row[open] .dl-num, .row[open] .dl-label { color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .row:not([open]) summary:hover { background: var(--band); }
  .row-detail .btn:hover { background: var(--white); }
  .row-detail .btn--quiet:hover { background: var(--ink); }
}

/* What they look like: one row per app, statement left, picture right, pictures of different shapes */
.screens { display: grid; gap: clamp(72px, 9vw, 140px); }
.screen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 4vw, 64px); align-items: center; }
.screen-text { display: grid; gap: 16px; align-content: center; }
.screen-text h3 { font-size: var(--step-head); letter-spacing: -0.045em; line-height: 0.95; }
.screen-text .lead { max-width: 24ch; }
.more { font-weight: 600; font-size: var(--step-body); }
.screen-pic { display: flex; justify-content: center; }
.screen--ai-multitool .screen-pic, .screen--influencer-pro .screen-pic { background: var(--surface); padding: clamp(28px, 5vw, 72px); }
.screen--sitebuilder .screen-pic { justify-content: flex-end; margin-right: calc(-1 * var(--gutter)); }

.frame { margin: 0; position: relative; }
.frame img, .frame video { width: 100%; height: auto; background: var(--surface); }
.frame--phone { width: min(100%, 320px); }
.frame--phone img { border-radius: 28px; }
.frame figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.video-toggle { position: absolute; right: 12px; bottom: 12px; min-height: 40px; padding: 0 14px; border: 0; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--f-text); cursor: pointer; transition: transform var(--press) var(--ease-out); }
.video-toggle:active { transform: scale(0.97); }

/* Influencer Pro's pipeline, drawn as a piece of its interface */
.pipe { width: min(100%, 520px); background: var(--paper); color: var(--ui-ink); padding: 24px; border-radius: 10px; font-size: 15px; }
.pipe-title { font-weight: 600; margin-bottom: 14px; }
.pipe ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pipe li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--ui-line); border-radius: 6px; background: var(--white); line-height: 1.35; } /* taste-skill-ignore: inside a data-ui fragment */
.pipe li.is-on { border-color: var(--ui-ink); }
.pipe-step { font-weight: 600; }
.setup-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.setup-options li { display: grid; grid-template-columns: 20px 110px minmax(0, 1fr); align-items: center; gap: 12px; padding: 16px 14px; border: 1px solid var(--ui-line); border-radius: 6px; background: var(--white); } /* taste-skill-ignore: inside a data-ui fragment */
.setup-options li.is-on { border-color: var(--ui-ink); }
.setup-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--field-edge); }
.is-on .setup-dot { border: 6px solid var(--ui-ink); }
.setup-note { margin-top: 14px; color: var(--muted); }

/* The maker's letter */
.letter-body { width: min(100%, 600px); margin-inline: auto; display: grid; gap: 22px; }
.letter-body h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.letter-body .logo-mark { width: 44px; height: 44px; }
.letter-body p { line-height: 1.55; }
.letter-sign { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; }
.letter-sign span { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; }

/* Contact: one prompt and the form, the brightest surface on the page */
.contact { width: min(100%, 600px); margin-inline: auto; }
.contact h2 { margin-bottom: 16px; }
.contact .lead { margin-bottom: 36px; color: var(--muted); }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: var(--step-small); }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border-radius: 0;
  font: 400 var(--step-body)/1.4 var(--f-text); color: var(--ink);
  background: var(--paper); border: 1px solid var(--field-edge);
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; font-size: 15px; color: var(--danger); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: the spam trap, never visible */
.form-note { font-size: var(--step-small); color: var(--muted); }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { background: var(--surface); color: var(--muted); cursor: progress; transform: none; }
.form-status { margin: 0; font-size: 15px; color: var(--danger); }
.form-status:empty { display: none; }
.contact-thanks { padding: 28px; background: var(--paper); }
.contact-thanks h3 { margin-bottom: 8px; }
.contact-thanks:focus { outline: none; }

/* ---------- App pages ---------- */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(820px, calc(100svh - 70px)); }
.app-hero-text { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding: 32px var(--gutter) clamp(48px, 6vw, 88px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.app-hero-text .lead { max-width: 26ch; }
.back { font-weight: 600; font-size: var(--step-body); margin-bottom: auto; padding-bottom: 32px; }
.app-title { display: flex; align-items: center; gap: 0.25em; }
.app-title .app-icon { width: 0.8em; height: 0.8em; }
.app-id { display: flex; align-items: center; gap: 20px; }
.app-id .dl-stat { align-items: flex-start; text-align: left; }
.app-hero-pic { background: var(--surface); display: grid; place-items: center; padding: 48px var(--gutter); }
.app-hero-pic .frame:not(.frame--phone) { width: 100%; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 4px 0 0; }
.facts div { background: var(--surface); padding: 20px 22px; min-width: 0; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

.split-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.split-text { display: grid; gap: 18px; }
.split-text h2 { margin-bottom: 8px; }
.split-text p { max-width: 60ch; }

.pinned-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(32px, 5vw, 80px); }
.pinned-head { grid-column: 1 / -1; margin-bottom: clamp(24px, 4vw, 48px); }
.pinned-steps { display: grid; }
.pinned-step { min-height: 56svh; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pinned-step h3 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.pinned-step p { max-width: 36ch; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.02em; }
.pinned-inline { display: none; }
.pinned-stage { position: relative; }
.pinned-stage .frame { position: sticky; top: max(24px, calc(50svh - 340px)); margin-inline: auto; }
.pinned-stage img { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms var(--ease-out); }
.pinned-stage img.is-on { position: relative; opacity: 1; }

.feature-list { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.feature-list li { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2.4vw, 32px) 0; }
.feature-list h3 { font-size: var(--step-lead); }
.feature-list p { max-width: 46ch; }

.gallery-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.gallery-grid .frame:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }

.plain-list, .steps { margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.plain-list { list-style: none; }
.plain-list li, .steps li { background: var(--surface); padding: 16px 20px; }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 56px; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; font-weight: 800; color: var(--accent); }
.apk-warn { margin-top: 28px; padding: 18px 20px; background: var(--warn-bg); color: var(--warn-ink); }
#android .small { margin-top: 20px; }
#android .actions { margin-top: 28px; }

.closing { background: var(--band); margin-top: var(--section); padding-block: clamp(64px, 8vw, 120px); }
.closing h2 { margin-bottom: 28px; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.closing .small { max-width: 60ch; color: var(--ink); }
.closing-notes { display: grid; gap: 16px; }
.closing .fine { overflow-wrap: anywhere; }
.closing .btn--quiet { background: var(--paper); }

/* Download counter, Play Store style (apkhelp.js fills it in) */
.dl-stat { display: inline-flex; flex-direction: column; align-items: center; text-align: center; flex: none; }
.dl-stat[hidden] { display: none; }
.dl-num { font-weight: 800; font-size: var(--step-lead); line-height: 1.05; letter-spacing: -0.03em; }
.dl-label { font-size: var(--step-small); color: var(--muted); }

/* ---------- Privacy and other text pages ---------- */
.page-head { padding-block: clamp(48px, 8vw, 120px) 32px; }
.page-head h1 { font-size: var(--step-head); }
.page-head p { margin-top: 12px; color: var(--muted); }
.prose { max-width: 68ch; display: grid; gap: 16px; padding-bottom: 32px; }
.prose h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

/* ---------- Footer: a board of tiles ---------- */
.site-footer { padding: var(--section) 0 var(--gutter); }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--surface); padding: 22px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-width: 0; }
.tile--say { grid-column: span 4; }
.tile--say p:first-child { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; max-width: 22ch; }
.tile--nav { grid-column: span 3; }
.tile--nav nav { display: grid; gap: 6px; }
.tile--nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step-body); }
.tile--nav a:hover { text-decoration: underline; }
.tile--time { grid-column: span 2; }
.tile--time .clock { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; }
.tile--mail { grid-column: span 3; }
.tile--mail a { font-size: var(--step-body); font-weight: 600; overflow-wrap: anywhere; }
.tile--mark { grid-column: span 8; min-height: 320px; background: var(--ink); color: var(--paper); align-items: center; justify-content: center; }
.tile--mark .mark { display: flex; align-items: center; gap: 0.18em; font-size: clamp(56px, 9vw, 150px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; }
.tile--mark .logo-mark { width: 0.8em; height: 0.8em; }
.tile--mark .logo-mark rect { fill: var(--paper); }
.tile--mark .logo-mark .tile-accent { fill: var(--accent); }
.tile--go { grid-column: span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); text-decoration: none; transition: background-color var(--hover) ease; }
.tile--go span { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; max-width: 10ch; }
.tile--go svg { width: 56px; height: 56px; align-self: flex-end; transition: transform var(--hover) var(--ease-out); }
.tile--go:active svg { transform: translate(4px, -4px); }
@media (hover: hover) and (pointer: fine) {
  .tile--go:hover { background: var(--accent-deep); }
  .tile--go:hover svg { transform: translate(4px, -4px); }
}

/* ---------- Pop-ups (paywall.js, apkhelp.js) ---------- */
button.btn { cursor: pointer; }
dialog.paywall, dialog.apk-dialog {
  width: min(540px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow: auto;
  padding: 0; border: 0; border-radius: 0;
  background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px var(--shadow); /* taste-skill-ignore: a dialog truly floats */
}
dialog.apk-dialog { padding: 24px; }
dialog.paywall::backdrop, dialog.apk-dialog::backdrop { background: var(--scrim); }
/* Pop-ups arrive and leave along the same path (transitions, so they can be interrupted) */
dialog.paywall, dialog.apk-dialog {
  opacity: 0; transform: translateY(12px) scale(0.98);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out), overlay 260ms allow-discrete, display 260ms allow-discrete;
}
dialog.paywall[open], dialog.apk-dialog[open] { opacity: 1; transform: none; }
@starting-style { dialog.paywall[open], dialog.apk-dialog[open] { opacity: 0; transform: translateY(12px) scale(0.98); } }
dialog.paywall::backdrop, dialog.apk-dialog::backdrop { opacity: 0; transition: opacity 260ms ease, overlay 260ms allow-discrete, display 260ms allow-discrete; }
dialog.paywall[open]::backdrop, dialog.apk-dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog.paywall[open]::backdrop, dialog.apk-dialog[open]::backdrop { opacity: 0; } }
.pw-head, .apk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pw-head { padding: 24px 24px 0; }
.apk-head { margin-bottom: 14px; }
.pw-head h2, .apk-head h2 { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.05; }
.pw-close { width: 44px; height: 44px; flex: none; border: 0; background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; transition: transform var(--press) var(--ease-out); }
.pw-close:active { transform: scale(0.95); }
.pw-test { margin: 16px 24px 0; padding: 12px 14px; background: var(--warn-bg); color: var(--warn-ink); font-size: 15px; }
.pw-step { padding: 20px 24px 24px; display: grid; gap: 14px; }
.pw-step[hidden] { display: none; }
.pw-plans { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.pw-plans legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
#pw-plan-list { display: grid; gap: 4px; }
.pw-plan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 16px; background: var(--surface); cursor: pointer; }
.pw-plan:has(input:checked) { background: var(--white); outline: 2px solid var(--accent); outline-offset: -2px; }
.pw-plan.is-off { cursor: not-allowed; color: var(--muted); }
.pw-plan input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }
.pw-plan-main { display: grid; gap: 2px; min-width: 0; font-size: 15px; }
.pw-plan-name { font-weight: 600; font-size: 17px; }
.pw-plan-feat { font-size: 14px; color: var(--muted); }
.pw-plan-price { font-weight: 800; font-size: 20px; white-space: nowrap; }
.pw-pay { width: 100%; }
.pw-pay:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; transform: none; }
.pw-small { font-size: 14px; margin: 0; color: var(--muted); }
.pw-step[data-step="paying"] { justify-items: center; text-align: center; padding-block: 40px; }
.pw-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface); border-top-color: var(--accent); animation: pw-spin .9s linear infinite; }
@keyframes pw-spin { to { transform: rotate(360deg); } }
.pw-ok { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--live); font-size: 24px; font-weight: 800; }
.pw-step[data-step="done"] h3 { font-size: 22px; }
.pw-step[data-step="done"] p { color: var(--muted); }
.pw-next { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.apk-warn-box { margin: 0 0 16px; padding: 14px 16px; background: var(--warn-bg); color: var(--warn-ink); font-size: 15px; }
.apk-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; font-size: 16px; }
.apk-steps li::marker { font-weight: 600; color: var(--muted); }
.apk-where { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.apk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.apk-note { font-size: 14px; color: var(--muted); }

/* ---------- Ads ---------- */
.ad-slot { margin-block: 40px; min-width: 0; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.ad-label { margin: 0 0 6px; font-size: 14px; color: var(--muted); }

/* ---------- Motion: arrival and scroll (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero-text .lead { opacity: 0; transform: translateY(16px); animation: rise 700ms var(--ease-out) 520ms forwards; }
  .js .app-hero-pic > * { opacity: 0; transform: translateY(24px) scale(0.98); animation: rise 900ms var(--ease-out) 300ms forwards; }
  .js .app-hero-text > * { opacity: 0; transform: translateY(16px); animation: rise 700ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms + 100ms); }
  .js .reveal > *, .js .reveal .screen-text > *, .js .board > .row, .js .feature-list > li, .js .tiles > .tile, .js .facts > div {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), background-color var(--hover) ease;
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .reveal.is-in > *, .js .reveal.is-in .screen-text > *, .js .board.is-in > .row, .js .feature-list.is-in > li, .js .tiles.is-in > .tile, .js .facts.is-in > div { opacity: 1; transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1000px) {
  .row summary { grid-template-columns: minmax(0, 1fr) auto; }
  .row-job { grid-column: 1 / -1; grid-row: 2; }
  .row-on { display: none; }
  .row-detail { grid-template-columns: minmax(0, 1fr); padding-left: 20px; }
  .row-detail .dl-stat { grid-column: 1; grid-row: auto; justify-self: start; align-items: flex-start; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--say, .tile--nav, .tile--time, .tile--mail { grid-column: span 6; }
  .tile--mark, .tile--go { grid-column: span 12; }
}
@media (max-width: 860px) {
  .app-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero { min-height: 0; }
  .app-hero-pic { padding: 32px 20px; }
  .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding: 56px var(--gutter) 24px; }
  .app-hero-text { padding: 40px var(--gutter) 56px; }
  .back { padding-bottom: 8px; }
  .screen, .split-grid, .pinned-grid, .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .screen--sitebuilder .screen-pic { margin-right: 0; }
  .gallery-grid .frame:nth-child(2) { margin-top: 0; }
  .pinned-stage { display: none; }
  .pinned-step { min-height: 0; padding-block: 32px; }
  .pinned-inline { display: block; margin-top: 12px; width: min(100%, 300px); }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
  .feature-list li { padding-block: 16px; }
}
@media (max-width: 560px) {
  .site-header .wrap { padding-block: 14px; gap: 8px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .site-nav a { padding: 10px 8px; }
  .row summary { padding: 14px 16px; min-height: 72px; gap: 8px 12px; }
  .row-name { gap: 12px; }
  .row-name .app-icon { width: 36px; height: 36px; }
  .row:not([open]) .row-job { display: none; }
  .row-detail { padding: 0 16px 22px; }
  .actions .btn { flex: 1 1 auto; }
  .facts div { padding: 16px; }
  .tiles { gap: 6px; }
  .tile { min-height: 0; padding: 20px; }
  .tile--say, .tile--nav, .tile--time, .tile--mail, .tile--mark, .tile--go { grid-column: span 12; }
  .tile--mark { min-height: 160px; order: -2; }
  .tile--go { min-height: 160px; order: -1; }
  .pipe li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Feel (Apple design polish, 2026-11) ---------- */
/* Respond on press: every tappable thing reacts the instant it is pressed, and the 300ms tap delay is gone. */
a, button, summary, label, input, textarea, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.site-nav a, .tile--nav a, .more, .closing .small a, .calc-foot a { transition: opacity var(--hover) ease; }
.site-nav a:active, .tile--nav a:active, .more:active, .closing .small a:active { opacity: 0.55; transition-duration: 0ms; }
.row summary:active { background: var(--band); transition-duration: 0ms; }
.row[open] summary:active { background: var(--accent-deep); }
.tile--go:active { background: var(--accent-deep); }
.tile--nav a { display: block; padding-block: 6px; }

/* A row opens downward from its own summary: the detail settles in place rather than appearing */
.row-detail { transition: opacity 280ms var(--ease-out), transform 320ms var(--ease-out); }
@starting-style { .row[open] .row-detail { opacity: 0; transform: translateY(-8px); } }

/* Tracking follows size: tight on display type, neutral on body, a touch open on small text */
.small, .field label, .status, .dl-label, .frame figcaption, .form-note, .facts dt, .tile .small, .apk-note, .pw-small { letter-spacing: 0.005em; }

/* The download count rises into place when it changes, right after the download that caused it */
.dl-num.bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { from { transform: translateY(45%); opacity: 0.2; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* On a phone the pop-ups are sheets: they rise from the bottom edge, leave the same way, and can be dragged down to close */
@media (max-width: 560px) {
  dialog.paywall, dialog.apk-dialog {
    width: 100%; max-width: none; margin: auto 0 0; max-height: 90svh;
    transform: translateY(100%); opacity: 1;
    transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1), overlay 420ms allow-discrete, display 420ms allow-discrete;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overscroll-behavior: contain;
  }
  dialog.paywall[open], dialog.apk-dialog[open] { transform: none; }
  @starting-style { dialog.paywall[open], dialog.apk-dialog[open] { transform: translateY(100%); } }
  dialog.paywall::before, dialog.apk-dialog::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--field-edge); margin: 10px auto 2px; }
  dialog.apk-dialog { padding-top: 12px; }
  dialog.apk-dialog::before { margin-top: -2px; margin-bottom: 12px; }
  dialog.is-dragging { transition: none; user-select: none; }
  /* the handle and the title row grab the sheet; the content below still scrolls */
  dialog.paywall, dialog.apk-dialog { touch-action: none; }
  dialog.apk-dialog > :not(.apk-head), dialog.paywall > :not(.pw-head) { touch-action: pan-y; }
}

/* People who ask for more contrast get firmer edges and darker secondary text */
@media (prefers-contrast: more) {
  :root { --muted: #45423F; --field-edge: #2B2A29; --surface: #DCD8D3; }
  :focus-visible { outline-width: 4px; }
  .row, .tile, .facts div, .plain-list li, .steps li { outline: 1px solid var(--field-edge); outline-offset: -1px; }
}
/* ...and people who ask for less transparency get a solid backdrop behind pop-ups */
@media (prefers-reduced-transparency: reduce) {
  :root { --scrim: rgba(30, 28, 26, 0.82); }
}


/* ---------- Guides, articles and text pages (added 2026-11-02) ---------- */
.crumbs { padding-top: 8px; }
.crumbs a { color: var(--muted); }
.byline { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.prose ol { margin: 0; padding-left: 24px; display: grid; gap: 8px; }
.prose li::marker { color: var(--muted); }
.prose em { font-style: italic; }
.prose h2 { text-wrap: balance; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: var(--step-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; background: var(--surface); }
.prose th { font-weight: 600; background: var(--band); }
.prose .note { background: var(--surface); padding: 16px 20px; font-size: var(--step-small); color: var(--muted); }
.prose .contact-form, .prose #contact-box { margin-block: 8px; }
.prose.guide { padding-bottom: 8px; }
.guide-list { display: grid; gap: 4px; margin-top: 24px; }
.guide-card { display: grid; gap: 6px; padding: 20px 22px; background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color var(--hover) ease; }
.guide-card:active { background: var(--band); }
.guide-title { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.guide-desc { color: var(--muted); font-size: var(--step-body); max-width: 60ch; }
.guide-meta { font-size: var(--step-small); color: var(--muted); }
.guide-group { margin-top: clamp(40px, 6vw, 72px); }
.guide-group h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.guide-group .small { margin-top: 6px; }
.cta-box { margin-top: 48px; padding: clamp(24px, 4vw, 40px); background: var(--band); display: grid; gap: 14px; }
.cta-box h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.cta-box .btn--quiet { background: var(--paper); }
.related { margin-top: 56px; padding-bottom: 8px; }
.related h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.more-row { margin-top: 24px; }
@media (hover: hover) and (pointer: fine) { .guide-card:hover { background: var(--band); } }
@media (max-width: 560px) {
  .site-nav { gap: 0; }
  .site-nav a { padding: 10px 7px; }
  .prose table { display: block; overflow-x: auto; }
}

/* Visit counter on the homepage hero: left-aligned under the intro */
.hero-text .dl-stat { align-items: flex-start; text-align: left; margin-top: 28px; }
