/* Budget Analyzer Pro — marketing site styles. 9.9.9 (Dan: "match the web color to the app color"):
   the app's own colors and font (src-esm/styles/look.css): its light look by default, its dark look
   when the visitor's device is set to dark (or data-theme="dark" on <html>). */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../assets/fonts/geist-latin-ext.woff2') 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: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../assets/fonts/geist-latin.woff2') 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;
}
:root {
  /* the app's light look */
  --bg: #F2F3F7;
  --bg-2: #E9EBF1;
  --card: #FFFFFF;
  --card-2: #F6F7FA;
  --line: rgba(16, 24, 40, .09);
  --line-solid: #DCDFE6;
  --text: #0B0C10;
  --muted: #545D6E;
  --accent: #2F6BFF;
  --accent-2: #7B4DFF;
  --green: #18A96B;
  --red: #E75B62;
  --gold: #975F00;
  --header: rgba(242, 243, 247, .86);
  --glow-1: rgba(47, 107, 255, .14);
  --glow-2: rgba(24, 169, 107, .10);
  --btn-glow: rgba(47, 107, 255, .28);
  --tint-green: rgba(24, 169, 107, .08);
  --tint-green-edge: rgba(24, 169, 107, .30);
  --overlay: rgba(11, 12, 16, .82);
  --phone: #0B0C10;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 18px 40px -18px rgba(16, 24, 40, .28);
  --radius: 16px;
  --max: 1180px;
  color-scheme: light;
  font-family: 'Geist', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* the app's dark look */
    --bg: #000000; --bg-2: #0B0C0F; --card: #111216; --card-2: #17181D;
    --line: rgba(255, 255, 255, .08); --line-solid: #2A2C33;
    --text: #FFFFFF; --muted: #A7AFBD; --accent: #5B9CFF; --accent-2: #9B7CFF;
    --green: #34D399; --red: #F87171; --gold: #FBBF24;
    --header: rgba(0, 0, 0, .82); --glow-1: rgba(91, 156, 255, .20); --glow-2: rgba(52, 211, 153, .10);
    --btn-glow: rgba(91, 156, 255, .30); --tint-green: rgba(52, 211, 153, .08); --tint-green-edge: rgba(52, 211, 153, .30);
    --overlay: rgba(0, 0, 0, .9); --phone: #000000;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 4px rgba(0, 0, 0, .8), 0 24px 48px -16px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #0B0C0F; --card: #111216; --card-2: #17181D;
  --line: rgba(255, 255, 255, .08); --line-solid: #2A2C33;
  --text: #FFFFFF; --muted: #A7AFBD; --accent: #5B9CFF; --accent-2: #9B7CFF;
  --green: #34D399; --red: #F87171; --gold: #FBBF24;
  --header: rgba(0, 0, 0, .82); --glow-1: rgba(91, 156, 255, .20); --glow-2: rgba(52, 211, 153, .10);
  --btn-glow: rgba(91, 156, 255, .30); --tint-green: rgba(52, 211, 153, .08); --tint-green-edge: rgba(52, 211, 153, .30);
  --overlay: rgba(0, 0, 0, .9); --phone: #000000;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 4px rgba(0, 0, 0, .8), 0 24px 48px -16px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: inherit; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card); text-decoration: none; }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.menu-btn { display: none; margin-left: auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; border: 1px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px var(--btn-glow); }
.btn-primary:hover { box-shadow: 0 12px 30px var(--btn-glow); filter: brightness(1.06); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card-2); }
.btn-sm { padding: 8px 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 1.1rem; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; color: var(--green); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- hero ---------- */
.hero { padding: 80px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 700px; background: radial-gradient(closest-side, var(--glow-1), transparent 70%), radial-gradient(closest-side at 70% 40%, var(--glow-2), transparent 70%); z-index: -1; }
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 720px; margin: 0 auto 32px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero .fineprint { color: var(--muted); font-size: .9rem; }
.hero-shot { margin: 56px auto 0; max-width: 1100px; }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.frame .bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.frame .bar i:nth-child(2) { background: #febc2e; }
.frame .bar i:nth-child(3) { background: #28c840; }

/* ---------- trust strip ---------- */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: var(--muted); font-weight: 600; padding: 28px 0 0; }
.badges span { display: flex; align-items: center; gap: 8px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: 8px; }

/* ---------- feature rows (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 48px 0; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .feature-text { order: 2; }
.feature-text ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.feature-text li { padding: 6px 0 6px 30px; position: relative; color: var(--muted); }
.feature-text li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--green); font-weight: 800; }
.feature-text li strong { color: var(--text); }
.feature-media img, .feature-media video { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
}

/* ---------- feature index (features page) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips a { background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.chips a:hover { border-color: var(--accent); text-decoration: none; }
/* On a phone the chips are two even columns (Dan's pick A: 21 tutorials wrapped into ragged rows,
   centred, more than a screen tall). A long name wraps inside its tile, never cut. */
@media (max-width: 640px) {
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chips a { display: flex; align-items: center; gap: 6px; border-radius: 12px; padding: 10px 12px; font-size: .9rem; line-height: 1.25; text-align: left; }
}
.group-title { display: flex; align-items: center; gap: 12px; margin: 40px 0 0; padding-top: 40px; border-top: 1px solid var(--line); }
.group-title:first-of-type { border-top: 0; }

/* ---------- phones ---------- */
.phones { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.phone { width: 250px; border-radius: 34px; padding: 10px; background: var(--phone); border: 1px solid var(--line); box-shadow: var(--shadow); }
.phone img { border-radius: 26px; }

/* ---------- steps (how-to page) ---------- */
.toc { position: sticky; top: 88px; align-self: start; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.toc li { counter-increment: s; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.toc ol a::before { content: counter(s) ". "; color: var(--accent); }
.toc a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.howto { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
@media (max-width: 960px) { .howto { grid-template-columns: 1fr; } .toc { position: static; } }
@media (max-width: 640px) { .step { padding: 22px 18px; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 28px; scroll-margin-top: 90px; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 800; margin-right: 12px; }
.step h2 { font-size: 1.6rem; display: flex; align-items: center; }
.step ol, .step ul { color: var(--muted); padding-left: 22px; }
.step li { margin: 6px 0; }
.step li strong, .step p strong { color: var(--text); }
.step .media { margin-top: 20px; }
.step .media img { border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.tip { background: var(--tint-green); border: 1px solid var(--tint-green-edge); border-radius: 12px; padding: 14px 18px; color: var(--text); margin-top: 16px; }
.tip b { color: var(--green); }
code, kbd { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); }

/* ---------- videos ---------- */
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.video-card video { width: 100%; aspect-ratio: 16 / 10; background: #000; }
.video-card .body { padding: 20px 22px 24px; }
.video-card .meta { color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.video-card p { color: var(--muted); margin: 0; }
.video-feature { margin-bottom: 40px; }
.video-feature video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }

/* ---------- tab tutorials (narrated, one per tab) ---------- */
.tut-grid { scroll-margin-top: 90px; }
.tut-card { scroll-margin-top: 90px; }
.tut-card h3 { margin: 0 0 6px; }
.video-card video.is-phone { aspect-ratio: 390 / 844; max-height: 78vh; object-fit: contain; }
.tut-link { margin: 18px 0 0; }
.tut-dialog { width: min(1100px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #000; color: var(--text); box-shadow: var(--shadow); }
.tut-dialog.is-phone { width: min(420px, calc(100vw - 32px)); }
.tut-dialog::backdrop { background: var(--overlay); }
.tut-dialog video { width: 100%; max-height: calc(100vh - 120px); background: #000; }
.tut-dialog .bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card); border-top: 1px solid var(--line); }
.tut-dialog .bar strong { flex: 1; font-size: .95rem; }
.tut-dialog .bar button { background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.tut-dialog .bar button:focus-visible, .tut-link button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 26px; justify-content: center; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 34px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.price { font-size: 3rem; font-weight: 800; margin: 10px 0 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
/* 9.9.9 (Dan: "the device need to look modern"): each platform a card with the app's kind of colored
   icon tile and a line drawing of the device, three to a row */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 920px; margin-inline: auto; }
@media (max-width: 820px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .platforms { grid-template-columns: minmax(0, 1fr); } }
.platform { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.platform:hover { transform: translateY(-2px); border-color: var(--line-solid); }
.platform .icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 14px -6px rgba(16, 24, 40, .45); }
.platform .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform .i-win { background: linear-gradient(135deg, #2F6BFF, #5B9CFF); }
.platform .i-linux { background: linear-gradient(135deg, #F97316, #F5A524); }
.platform .i-web { background: linear-gradient(135deg, #0891B2, #22D3EE); }
.platform .i-phones { background: linear-gradient(135deg, #7B4DFF, #A78BFA); }
.platform .i-iphone { background: linear-gradient(135deg, #3F4654, #6B7385); }
.platform .i-android { background: linear-gradient(135deg, #18A96B, #34D399); }
.platform .txt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.platform b { display: block; font-size: 1.02rem; }
.platform span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: linear-gradient(135deg, var(--glow-1), var(--glow-2)), var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 64px 24px; }
.cta-band p { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--text); font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: var(--muted); display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--text); }
.site-footer .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: var(--overlay); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 12px; box-shadow: var(--shadow); }

/* ---------- page header (inner pages) ---------- */
.page-hero { padding: 72px 0 24px; text-align: center; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 700px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- blog (9.9.9: a Blog tab; posts are one column, pictures from the app in light mode) ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .post-list { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.post-card:hover { border-color: var(--accent); text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #fff; border-bottom: 1px solid var(--line); }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .meta { color: var(--green); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-card h2 { font-size: 1.3rem; margin: 0; }
.post-card p { color: var(--muted); margin: 0; flex: 1; }
.post-card .more { color: var(--accent); font-weight: 700; }

.post { max-width: 780px; margin: 0 auto; padding: 64px 20px 8px; }
.post h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); text-wrap: balance; }
.post h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 1.9em; text-wrap: balance; }
.post p, .post li { font-size: 1.06rem; line-height: 1.7; }
.post .back { display: block; width: fit-content; font-weight: 600; margin-bottom: 18px; }
.post .byline { color: var(--muted); font-size: .92rem; margin: -4px 0 26px; }
.post .lede { font-size: 1.2rem; color: var(--muted); }
.post figure { margin: 30px 0; }
.post figure img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in; background: #fff; }
.post figure.phone-shot img { max-width: min(100%, 300px); margin: 0 auto; border-radius: 26px; }
.post figure.narrow img { max-width: min(100%, 420px); margin: 0 auto; }
.post figcaption { color: var(--muted); font-size: .93rem; margin-top: 12px; }
.post .diagram { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; }
.post .diagram svg { display: block; width: 100%; min-width: 560px; height: auto; }
.post .diagram svg text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.post .side { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 26px; align-items: start; margin: 26px 0; }
.post .side figure { margin: 0; }
@media (max-width: 720px) { .post .side { grid-template-columns: minmax(0, 1fr); } }
.post ul.facts { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.post ul.facts li { padding-left: 28px; position: relative; color: var(--muted); }
.post ul.facts li strong { color: var(--text); }
.post ul.facts li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.post .num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .93em; font-variant-numeric: tabular-nums; }
.post .callout { background: var(--tint-green); border: 1px solid var(--tint-green-edge); border-radius: 12px; padding: 16px 18px; margin: 26px 0; }
.post .callout b { color: var(--green); }
.post-more { max-width: 780px; margin: 0 auto; padding: 8px 20px 0; }
.post-more h2 { font-size: 1.2rem; }
.post-more .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .post-more .links { grid-template-columns: 1fr; } }
.post-more a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--text); font-weight: 700; }
.post-more a span { display: block; color: var(--muted); font-weight: 400; font-size: .92rem; margin-top: 4px; }
.post-more a:hover { border-color: var(--accent); text-decoration: none; }
.post .phones { margin: 28px 0 10px; gap: 20px; }
.post .phones .phone { width: 220px; }
.post .phones-caption { color: var(--muted); font-size: .93rem; text-align: center; max-width: 60ch; margin: 0 auto 1em; }
.platform.soon { border-style: dashed; box-shadow: none; }
.platform .pill { display: inline-block; margin-top: 2px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--gold); background: var(--card-2); border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .platform { transition: none; } .platform:hover { transform: none; } }

/* The app's Colorful icons (68-look-icons.js) on the site: a gradient tile with a line glyph, the same
 glyph and colour per tab as the app. Dan: "make the tags the new look". The glyph is a CSS mask. */
.ico { display: inline-grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: .55em; margin-right: .5em; vertical-align: middle; color: #fff;
  background: linear-gradient(145deg, var(--g1) 0%, var(--g2) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.25), 0 6px 14px -6px var(--g2); }
.ico > i { display: block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.chips a { display: inline-flex; align-items: center; }
.c-amber { --g1: #F5C36B; --g2: #C98A1B; }
.c-blue { --g1: #6AA8FF; --g2: #2F6BFF; }
.c-coral { --g1: #FF9A8B; --g2: #F0545A; }
.c-grape { --g1: #D49CFF; --g2: #9B3DF0; }
.c-gray { --g1: #B8C0CC; --g2: #6B7380; }
.c-green { --g1: #5BE49B; --g2: #11A75C; }
.c-indigo { --g1: #8C9EFF; --g2: #4353FF; }
.c-lime { --g1: #C6F36B; --g2: #5DB31F; }
.c-mint { --g1: #4FE3B0; --g2: #0E9F6E; }
.c-orange { --g1: #FFB35C; --g2: #F2711C; }
.c-pink { --g1: #FF8AC5; --g2: #E83E8C; }
.c-red { --g1: #FF8A80; --g2: #E5383B; }
.c-sky { --g1: #7FD4FF; --g2: #1F8FE0; }
.c-sunset { --g1: #FFC26B; --g2: #FF6F59; }
.c-teal { --g1: #5EE6D8; --g2: #0FA3B1; }
.c-violet { --g1: #B59CFF; --g2: #7B4DFF; }
.c-yellow { --g1: #FFD95C; --g2: #F2A900; }
.g-bars { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2019V9M10%2019V5M16%2019v-7M22%2019H2%27%2F%3E%3C%2Fsvg%3E"); }
.g-bill { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%203h14v18l-3-2-2%202-2-2-2%202-2-2-3%202zM9%208h6M9%2012h6%27%2F%3E%3C%2Fsvg%3E"); }
.g-building { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2021h18M5%2021V10l7-6%207%206v11M10%2021v-6h4v6%27%2F%3E%3C%2Fsvg%3E"); }
.g-bulb { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%2018h6M10%2022h4M12%202a7%207%200%200%200-4%2012.7V17h8v-2.3A7%207%200%200%200%2012%202z%27%2F%3E%3C%2Fsvg%3E"); }
.g-cal { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%205h16v16H4zM4%2010h16M8%203v4M16%203v4%27%2F%3E%3C%2Fsvg%3E"); }
.g-calc { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%203h16v18H4zM8%207h8M8%2011h2M14%2011h2M8%2015h2M14%2015h2%27%2F%3E%3C%2Fsvg%3E"); }
.g-card { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M2%206h20v12H2zM2%2010h20M6%2015h4%27%2F%3E%3C%2Fsvg%3E"); }
.g-cash { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M2%207h20v10H2zM12%209.5a2.5%202.5%200%201%200%200%205%202.5%202.5%200%200%200%200-5%27%2F%3E%3C%2Fsvg%3E"); }
.g-clock { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%202a10%2010%200%201%200%2010%2010M12%206v6l4%202%27%2F%3E%3C%2Fsvg%3E"); }
.g-coin { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20M14.5%209a2.5%202.5%200%200%200-2.5-1.5c-1.4%200-2.5.8-2.5%202s1%201.6%202.5%202%202.5.9%202.5%202-1.1%202-2.5%202A2.5%202.5%200%200%201%209.5%2015M12%206v1.5M12%2016.5V18%27%2F%3E%3C%2Fsvg%3E"); }
.g-cube { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%202l9%205v10l-9%205-9-5V7zM12%2022V12M21%207l-9%205-9-5%27%2F%3E%3C%2Fsvg%3E"); }
.g-file { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%202h9l5%205v15H6zM14%202v6h6%27%2F%3E%3C%2Fsvg%3E"); }
.g-flask { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M10%203v6l-5%209a2%202%200%200%200%202%203h10a2%202%200%200%200%202-3l-5-9V3M8%203h8%27%2F%3E%3C%2Fsvg%3E"); }
.g-gear { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2015a3%203%200%201%200%200-6%203%203%200%200%200%200%206zM19.4%2013a7.4%207.4%200%200%200%200-2l2-1.6-2-3.4-2.4%201a7%207%200%200%200-1.8-1L14.8%203h-4l-.4%202.6a7%207%200%200%200-1.8%201l-2.4-1-2%203.4%202%201.6a7.4%207.4%200%200%200%200%202l-2%201.6%202%203.4%202.4-1a7%207%200%200%200%201.8%201l.4%202.6h4l.4-2.6a7%207%200%200%200%201.8-1l2.4%201%202-3.4z%27%2F%3E%3C%2Fsvg%3E"); }
.g-grid { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%203h8v10H3zM13%203h8v6h-8zM13%2011h8v10h-8zM3%2015h8v6H3z%27%2F%3E%3C%2Fsvg%3E"); }
.g-receipt { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%203h14v18H5zM9%208h6M9%2012h6M9%2016h4%27%2F%3E%3C%2Fsvg%3E"); }
.g-repeat { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M17%202l4%204-4%204M3%2011v-1a4%204%200%200%201%204-4h14M7%2022l-4-4%204-4M21%2013v1a4%204%200%200%201-4%204H3%27%2F%3E%3C%2Fsvg%3E"); }
.g-sliders { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%206h10M18%206h2M4%2012h4M12%2012h8M4%2018h12M14%204v4M8%2010v4M16%2016v4%27%2F%3E%3C%2Fsvg%3E"); }
.g-sparkle { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203l2%205%205%202-5%202-2%205-2-5-5-2%205-2zM19%2015l1%202%202%201-2%201-1%202-1-2-2-1%202-1z%27%2F%3E%3C%2Fsvg%3E"); }
.g-sun { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%208a4%204%200%201%200%200%208a4%204%200%201%200%200-8zM12%202v2M12%2020v2M4.9%204.9l1.4%201.4M17.7%2017.7l1.4%201.4M2%2012h2M20%2012h2M4.9%2019.1l1.4-1.4M17.7%206.3l1.4-1.4%27%2F%3E%3C%2Fsvg%3E"); }
.g-swap { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M7%207h13l-3-3M17%2017H4l3%203%27%2F%3E%3C%2Fsvg%3E"); }
.g-target { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20M12%207a5%205%200%201%200%200%2010%205%205%200%200%200%200-10M12%2011a1%201%200%201%200%200%202%201%201%200%200%200%200-2%27%2F%3E%3C%2Fsvg%3E"); }
.g-trend { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2017l6-6%204%204%208-8M15%207h6v6%27%2F%3E%3C%2Fsvg%3E"); }
.g-umbrella { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203a9%209%200%200%201%209%209H3a9%209%200%200%201%209-9zM12%2012v7a2%202%200%200%200%204%200%27%2F%3E%3C%2Fsvg%3E"); }
.g-upload { --glyph: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.1%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2019V5M5%2012l7-7%207%207%27%2F%3E%3C%2Fsvg%3E"); }
