/* LittlePetling brand overlay, loaded after design.css (the road's base tokens).
 * Built from the logo set in Philip's branding folder (22 Nov 2026), sampled
 * from the artwork's pixels: the wordmark's deep teal (#062e2b), the screen
 * frame's teal (#123e3a), the screen's mist (#c4d6d6) and the puppy's golden
 * fur (#e0a868 to #e8c090). docs/BRAND.md has the sampling and the reasoning.
 * The contrast gate (WCAG 2.2 AA) reads this file in light and dark:
 * arcwright.json -> files.check-contrast. Change a colour here, run the gate.
 */
:root {
  --lp-teal-900: #062e2b;   /* the wordmark */
  --lp-teal-800: #0f4a44;
  --lp-teal-700: #123e3a;   /* the screen frame */
  --lp-mist: #c4d6d6;       /* the screen glass */
  --lp-fur-300: #e8c090;    /* the puppy, light */
  --lp-fur-500: #e0a868;    /* the puppy, deep */
  --lp-cream: #fbf7f0;

  --surface: var(--lp-cream);
  --surface-sunken: #f2eadc;
  --surface-raised: #ffffff;
  --text: var(--lp-teal-900);
  --text-muted: #3d5753;
  --text-inverse: #ffffff;
  --action: var(--lp-teal-800);
  --action-hover: var(--lp-teal-900);
  --action-quiet: #e1ecea;
  --focus-ring: var(--lp-teal-800);
  --border: #d9d0c1;
  --border-strong: #6e7f7b;
  --accent: var(--lp-fur-500);
  --masthead: var(--lp-teal-900);
  --masthead-ink: #ffffff;
  --masthead-quiet: #d6e4e2;
  --colour-accent-300: var(--lp-fur-300);
  --colour-positive-500: #1d6a3c;
  --colour-positive-100: #e3f1e7;
  --colour-caution-500: #8a5300;
  --colour-caution-100: #fbefd9;
  --colour-critical-500: #a12c2c;
  --colour-critical-100: #fbe6e4;

  --font-family-sans: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lp-wordmark-weight: 800;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --surface: #0a1f1d;
  --surface-sunken: #061513;
  --surface-raised: #13302c;
  --text: #f7f0e4;
  --text-muted: #b8cac6;
  --text-inverse: #062e2b;
  --action: #e8c090;
  --action-hover: #f3d8b5;
  --action-quiet: #1b3a36;
  --focus-ring: #e8c090;
  --border: #24443f;
  --border-strong: #7f9a95;
  --accent: #e8c090;
  --masthead: #061513;
  --masthead-ink: #f7f0e4;
  --masthead-quiet: #c4d6d6;
  --colour-accent-300: #e8c090;
  --colour-positive-500: #8fd0a6;
  --colour-positive-100: #0f2a1b;
  --colour-caution-500: #f0c27a;
  --colour-caution-100: #2e2210;
  --colour-critical-500: #f2a5a0;
  --colour-critical-100: #34191a;
  }
}

:root[data-theme="dark"] {
  --surface: #0a1f1d;
  --surface-sunken: #061513;
  --surface-raised: #13302c;
  --text: #f7f0e4;
  --text-muted: #b8cac6;
  --text-inverse: #062e2b;
  --action: #e8c090;
  --action-hover: #f3d8b5;
  --action-quiet: #1b3a36;
  --focus-ring: #e8c090;
  --border: #24443f;
  --border-strong: #7f9a95;
  --accent: #e8c090;
  --masthead: #061513;
  --masthead-ink: #f7f0e4;
  --masthead-quiet: #c4d6d6;
  --colour-accent-300: #e8c090;
  --colour-positive-500: #8fd0a6;
  --colour-positive-100: #0f2a1b;
  --colour-caution-500: #f0c27a;
  --colour-caution-100: #2e2210;
  --colour-critical-500: #f2a5a0;
  --colour-critical-100: #34191a;
}

/* The coming-soon page. */
.lp-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); color: var(--text); }
.lp-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-6, 2rem) var(--space-4, 1rem); gap: var(--space-4, 1rem); }
.lp-logo-card { background: #ffffff; border-radius: var(--radius-lg, 1rem); padding: var(--space-3, 0.75rem) var(--space-4, 1rem); box-shadow: var(--elevation-sm, none); max-width: 100%; }
.lp-logo { display: block; width: min(100%, 30rem); height: auto; }
.lp-main h1 { font-weight: var(--lp-wordmark-weight); letter-spacing: -0.01em; margin: 0; }
.lp-main p { color: var(--text-muted); max-width: 34rem; margin: 0; }
.lp-foot { text-align: center; padding: var(--space-4, 1rem); font-size: var(--font-size-sm, 0.875rem); color: var(--text-muted); }
.lp-foot a { color: var(--action); }
.lp-prose { max-width: 40rem; margin: 0 auto; padding: var(--space-6, 2rem) var(--space-4, 1rem); }

/* The sign-in and account screens. */
.lp-form { display: flex; flex-direction: column; gap: var(--space-3, 0.75rem); margin: var(--space-4, 1rem) 0; max-width: 24rem; }
.lp-form label { font-weight: 700; }
.lp-form input { font: inherit; font-size: 1.125rem; padding: 0.75rem; border-radius: var(--radius-md, 0.75rem); border: 1px solid var(--border-strong); background: var(--surface-raised); color: var(--text); }
.lp-form button { font: inherit; font-weight: 700; font-size: 1.0625rem; min-height: 3rem; padding: 0.75rem 1rem; border-radius: var(--radius-md, 0.75rem); border: 0; background: var(--action); color: var(--text-inverse); cursor: pointer; }
.lp-form button:hover { background: var(--action-hover); color: var(--text-inverse); transform: translateY(-1px); }
.lp-form button:active { transform: translateY(0) scale(0.98); }
.lp-form :focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.lp-form .lp-danger { background: var(--colour-critical-500); }
.lp-small { font-size: var(--font-size-sm, 0.875rem); color: var(--text-muted); }
.lp-error { color: var(--colour-critical-500); font-weight: 700; }
.lp-prose a { color: var(--action); }

/* The founders section and What's new. */
.lp-founders { max-width: 34rem; text-align: left; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg, 1rem); padding: var(--space-4, 1rem) var(--space-5, 1.5rem); margin-top: var(--space-4, 1rem); }
.lp-founders h2 { margin: 0 0 var(--space-2, 0.5rem); font-weight: var(--lp-wordmark-weight); }
.lp-main .lp-founders p { color: var(--text); margin: 0 0 var(--space-3, 0.75rem); }
.lp-main .lp-founders p.lp-small { color: var(--text-muted); margin: 0; }
.lp-founders a, .lp-release a { color: var(--action); }
.lp-release h2 { font-size: 1.125rem; margin-bottom: var(--space-1, 0.25rem); }

/* The owner portal. */
.lp-portal-nav { background: var(--surface-raised); border-bottom: 1px solid var(--border); overflow-x: auto; }
.lp-portal-nav ul { list-style: none; margin: 0 auto; padding: 0 var(--space-3, 0.75rem); display: flex; gap: var(--space-1, 0.25rem); max-width: 40rem; }
.lp-portal-nav a { display: block; padding: 0.875rem 0.75rem; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.lp-portal-nav a[aria-current="page"] { border-bottom-color: var(--action); color: var(--action); }
.lp-portal-nav a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.lp-portal h2 { margin-top: var(--space-5, 1.5rem); }
.lp-notice { background: var(--colour-positive-100); color: var(--text); border-radius: var(--radius-md, 0.75rem); padding: 0.75rem 1rem; font-weight: 700; }
.lp-button { display: inline-block; min-height: 3rem; padding: 0.75rem 1.125rem; border-radius: var(--radius-md, 0.75rem); background: var(--action); color: var(--text-inverse); font-weight: 700; text-decoration: none; }
.lp-button:hover { background: var(--action-hover); color: var(--text-inverse); transform: translateY(-1px); }
.lp-button:active { transform: translateY(0) scale(0.98); }
.lp-button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.lp-button-quiet { background: var(--action-quiet); color: var(--text); }
.lp-button-quiet:hover { background: var(--action-quiet); color: var(--text); transform: translateY(-1px); }
.lp-prose .lp-button, .lp-prose .lp-button:hover { color: var(--text-inverse); }
.lp-prose .lp-button-quiet, .lp-prose .lp-button-quiet:hover { color: var(--text); }
.lp-form select, .lp-form textarea { font: inherit; font-size: 1.0625rem; padding: 0.75rem; border-radius: var(--radius-md, 0.75rem); border: 1px solid var(--border-strong); background: var(--surface-raised); color: var(--text); }
.lp-check { display: flex; gap: 0.625rem; align-items: center; font-weight: 400 !important; min-height: 44px; }
.lp-check input { width: 1.25rem; height: 1.25rem; }
.lp-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
.lp-dl dt { font-weight: 700; } .lp-dl dd { margin: 0; }
.lp-dog-card { display: flex; gap: var(--space-4, 1rem); align-items: center; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg, 1rem); padding: var(--space-4, 1rem); }
.lp-dog-card img { width: 96px; height: 96px; border-radius: 50%; background: #fff; object-fit: cover; }
.lp-dog-card h2 { margin: 0 0 0.25rem; }
fieldset.lp-fieldset { border: 1px solid var(--border); border-radius: var(--radius-md, 0.75rem); padding: 0.75rem 1rem; margin: 0; }
fieldset.lp-fieldset legend { font-weight: 700; padding: 0 0.25rem; }

/* The site: header, hero, bands, plans (LP-06). Mobile first. */
.lp-skip { position: absolute; left: -999px; top: 0; background: var(--surface-raised); color: var(--text); padding: 0.75rem 1rem; z-index: 10; }
.lp-skip:focus { left: 0.5rem; top: 0.5rem; }
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 1rem; background: #ffffff; border-bottom: 1px solid var(--border); position: relative; }
.lp-brand img { display: block; height: 44px; width: auto; }
.lp-brand:focus-visible, .lp-menu summary:focus-visible { outline: 3px solid var(--lp-teal-800); outline-offset: 2px; }
.lp-menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0.625rem 0.875rem; border-radius: var(--radius-md, 0.75rem); background: var(--lp-teal-800); color: #ffffff; font-weight: 700; }
.lp-menu summary::-webkit-details-marker { display: none; }
.lp-menu nav { position: absolute; right: 0.75rem; top: calc(100% + 0.25rem); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg, 1rem); box-shadow: 0 12px 30px rgba(6, 46, 43, 0.18); z-index: 5; min-width: 14rem; }
.lp-menu ul { list-style: none; margin: 0; padding: 0.5rem; }
.lp-menu a { display: block; padding: 0.75rem 0.875rem; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 700; border-radius: var(--radius-md, 0.75rem); }
.lp-menu a[aria-current="page"] { color: var(--action); }
.lp-menu a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
@media (min-width: 900px) {
  .lp-menu summary { display: none; }
  .lp-menu nav { position: static; border: 0; box-shadow: none; background: transparent; min-width: 0; }
  .lp-menu ul { display: flex; gap: 0.25rem; padding: 0; }
  .lp-menu a { color: var(--lp-teal-900); }
  .lp-menu[open] summary, .lp-menu summary { display: none; }
}
@media (min-width: 900px) { .lp-menu:not([open]) > nav { display: block; } }
.lp-head { gap: 0.5rem; }
.lp-brand { margin-right: auto; }
.lp-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--radius-md, 0.75rem); border: 2px solid #0f4a44; color: #0f4a44; background: #ffffff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.lp-signin:hover { background: #e1ecea; color: #062e2b; transform: translateY(-1px); }
.lp-signin:active { transform: translateY(0) scale(0.98); }
.lp-signin:focus-visible { outline: 3px solid #0f4a44; outline-offset: 2px; }
@media (min-width: 900px) { .lp-signin { order: 3; } }
.lp-hero { display: grid; gap: 1.25rem; padding: 1.5rem 1rem 0.5rem; max-width: 68rem; margin: 0 auto; }
.lp-kicker { margin: 0; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8125rem; color: var(--action); }
.lp-hero h1 { margin: 0.25rem 0 0.75rem; font-size: clamp(2rem, 8vw, 3.25rem); line-height: 1.05; font-weight: var(--lp-wordmark-weight); letter-spacing: -0.02em; }
.lp-lead { font-size: 1.125rem; line-height: 1.5; margin: 0 0 1rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.lp-hero-dog { position: relative; margin: 0; border-radius: 1.5rem; overflow: hidden; background: #f6f5f1; aspect-ratio: 16 / 10; }
.lp-hero-dog img, .lp-hero-dog canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-hero-dog canvas { opacity: 0; transition: opacity 0.8s; }
.lp-hero-dog.lp-live canvas { opacity: 1; }
.lp-hero-dog figcaption { position: absolute; left: 0.75rem; bottom: 0.625rem; font-size: 0.8125rem; color: #3d5753; background: rgba(255, 255, 255, 0.85); padding: 0.125rem 0.625rem; border-radius: 999px; }
@media (min-width: 900px) { .lp-hero { grid-template-columns: 1fr 1.1fr; align-items: center; padding-top: 3rem; } }
.lp-band { max-width: 44rem; margin: 0 auto; padding: 1.75rem 1rem; }
.lp-band h2 { font-weight: var(--lp-wordmark-weight); margin: 0 0 0.75rem; }
.lp-band.lp-founders { max-width: 42rem; margin: 1.5rem max(1rem, calc((100% - 42rem) / 2)); }
.lp-steps { padding-left: 1.25rem; display: grid; gap: 0.75rem; }
.lp-ticks { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.lp-prices { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.lp-prices li { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md, 0.75rem); padding: 0.75rem 1rem; }
.lp-plans { display: grid; gap: 1rem; margin: 1rem 0 1.5rem; }
@media (min-width: 760px) { .lp-plans { grid-template-columns: repeat(3, 1fr); } }
.lp-plan { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg, 1rem); padding: 1rem 1.125rem; display: flex; flex-direction: column; }
.lp-plan > p:last-child { margin-top: auto; padding-top: 0.5rem; margin-bottom: 0; }
.lp-plan h2 { margin: 0 0 0.25rem; font-size: 1.125rem; }
.lp-price { margin: 0.25rem 0; font-size: 1.125rem; }
.lp-price strong { font-size: 2rem; font-weight: var(--lp-wordmark-weight); }
.lp-figure { margin: 0 0 1rem; border-radius: 1.25rem; overflow: hidden; background: #f6f5f1; }
.lp-figure img { display: block; width: 100%; height: auto; }
.lp-summary { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg, 1rem); padding: 1rem 1.125rem; margin: 1rem 0; }
.lp-summary h2 { margin-top: 0; }
.lp-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.75rem; font-weight: 800; letter-spacing: 0.08em; background: var(--surface-raised); border: 2px dashed var(--border-strong); border-radius: var(--radius-md, 0.75rem); padding: 0.75rem 1rem; display: inline-block; }
.lp-foot { text-align: left; border-top: 1px solid var(--border); margin-top: 2rem; padding: 1.5rem 1rem 2rem; }
.lp-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; max-width: 68rem; margin: 0 auto 1.25rem; }
@media (min-width: 760px) { .lp-foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-foot h2 { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.5rem; color: var(--text); }
.lp-foot ul { list-style: none; padding: 0; margin: 0; }
.lp-foot li a, .lp-foot p a { display: inline-block; min-height: 36px; line-height: 36px; }
.lp-foot-line { max-width: 68rem; margin: 0.25rem auto; font-size: 0.8125rem; }
/* The hero's live dog: its videos stay in the page, tiny and almost invisible (as in the player). */
.pl-videobox { position: fixed; left: 0; top: 0; width: 2px; height: 2px; overflow: hidden; opacity: 0.01; pointer-events: none; z-index: -1; }
.pl-video { width: 2px; height: 2px; }

/* Wide screens: the main links in the header; the Menu button only on narrow ones. */
.lp-nav-wide { display: none; }
@media (min-width: 900px) {
  .lp-nav-wide { display: block; }
  .lp-nav-wide ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
  .lp-nav-wide a { display: block; padding: 0.625rem 0.75rem; min-height: 44px; color: #062e2b; font-weight: 700; text-decoration: none; border-radius: var(--radius-md, 0.75rem); }
  .lp-nav-wide a[aria-current="page"] { color: #0f4a44; text-decoration: underline; text-underline-offset: 6px; }
  .lp-nav-wide a:focus-visible { outline: 3px solid #0f4a44; outline-offset: 2px; }
  .lp-menu { display: none; }
}
/* Pricing: room for three cards side by side. */
.lp-prose:has(.lp-plans) { max-width: 64rem; }

.lp-decoy { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Polish (D-44): a header that stays, gentle transitions, hover and press,
   a compact footer, and founding prices in aligned columns. Every movement
   stops for a visitor who prefers reduced motion. ---- */
html { scroll-padding-top: 5.5rem; }
.lp-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); transition: background-color var(--motion-duration-slow) var(--motion-easing-standard), box-shadow var(--motion-duration-slow) var(--motion-easing-standard), border-color var(--motion-duration-slow) var(--motion-easing-standard); }
.lp-scrolled .lp-head { background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 6px 22px rgba(6, 46, 43, 0.10); border-bottom-color: transparent; }
.lp-brand img { height: 52px; }
.lp-menu { margin-right: 0.5rem; }
@media (min-width: 900px) { .lp-nav-wide { margin-right: 1.5rem; } .lp-signin { margin-right: 0.75rem; } }

.lp-nav-wide a, .lp-menu a { transition: background-color var(--motion-duration-normal) var(--motion-easing-standard), color var(--motion-duration-normal) var(--motion-easing-standard), transform var(--motion-duration-fast) var(--motion-easing-standard); }
.lp-nav-wide a:hover, .lp-menu a:hover { background: #e1ecea; color: #062e2b; transform: translateY(-1px); }
.lp-nav-wide a:active, .lp-menu a:active { transform: translateY(0) scale(0.96); }
.lp-button, .lp-signin, .lp-menu summary { transition: background-color var(--motion-duration-normal) var(--motion-easing-standard), color var(--motion-duration-normal) var(--motion-easing-standard), transform var(--motion-duration-fast) var(--motion-easing-standard), box-shadow var(--motion-duration-normal) var(--motion-easing-standard); }
.lp-button:hover { box-shadow: 0 8px 18px rgba(6, 46, 43, 0.18); }
.lp-menu summary:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(6, 46, 43, 0.2); }
.lp-menu summary:active { transform: scale(0.95); }

.lp-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #0f4a44; color: #ffffff; font-size: 1.375rem; font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgba(6, 46, 43, 0.25); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--motion-duration-slow) var(--motion-easing-standard), transform var(--motion-duration-slow) var(--motion-easing-standard), visibility var(--motion-duration-slow), background-color var(--motion-duration-normal) var(--motion-easing-standard); }
.lp-scrolled .lp-top { opacity: 1; visibility: visible; transform: none; }
.lp-top:hover { background: #062e2b; color: #ffffff; transform: translateY(-2px); }
.lp-top:active { transform: scale(0.94); }
.lp-top:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

/* A slow, smooth change of page where the browser can (cross-document view transitions). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: calc(var(--motion-duration-slow) * 1.25) var(--motion-easing-exit) both lp-fade-out; }
  ::view-transition-new(root) { animation: calc(var(--motion-duration-slow) * 1.75) var(--motion-easing-entrance) both lp-fade-in; }
}
@keyframes lp-fade-out { to { opacity: 0; } }
@keyframes lp-fade-in { from { opacity: 0; transform: translateY(8px); } }

/* The footer, more compact. */
.lp-foot { margin-top: 1.5rem; padding: 1rem 1rem 1.25rem; }
.lp-foot-cols { gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }
.lp-foot h2 { margin-bottom: 0.25rem; }
.lp-foot li a, .lp-foot p a { min-height: 32px; line-height: 32px; }
.lp-foot p { margin: 0; }
.lp-foot p.lp-foot-line { margin: 0.125rem auto; }

/* Founding prices: side by side on a wide screen, every row lined up across the cards; stacked on a phone. */
.lp-band-wide { max-width: 64rem; }
.lp-plan h2, .lp-plan h3 { margin: 0 0 0.25rem; font-size: 1.125rem; }
.lp-then { margin: 0; color: var(--text-muted); }
.lp-plan-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.375rem; align-content: start; }
.lp-plan-list li { position: relative; padding-left: 1.5rem; }
.lp-plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--action); font-weight: 800; }
.lp-plan-cta { margin: 0.75rem 0 0; }
.lp-plan-cta .lp-button { display: block; text-align: center; }
.lp-plan { transition: transform var(--motion-duration-normal) var(--motion-easing-standard), box-shadow var(--motion-duration-normal) var(--motion-easing-standard), border-color var(--motion-duration-normal) var(--motion-easing-standard); }
.lp-plan:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(6, 46, 43, 0.12); border-color: var(--border-strong); }
@media (min-width: 760px) {
  .lp-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 1rem; row-gap: 0; }
  .lp-plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0.5rem; }
  .lp-plan > p:last-child { margin-top: 0; padding-top: 0; }
  .lp-plan-cta { align-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-head, .lp-top, .lp-plan, .lp-button, .lp-signin, .lp-menu summary, .lp-nav-wide a, .lp-menu a { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .lp-nav-wide a:hover, .lp-menu a:hover, .lp-button:hover, .lp-signin:hover, .lp-menu summary:hover, .lp-top:hover, .lp-plan:hover, .lp-scrolled .lp-top { transform: none; }
}

/* ---- D-47: the transparent logo, the page container, a two-row footer and a
   responsive pass. One container (68rem) and one gutter per size, so the
   logo, Sign in, the bands, the cards and the footer share the same edges. ---- */
:root { --lp-container: 68rem; --lp-gutter: 1rem; }
@media (min-width: 600px) { :root { --lp-gutter: 1.5rem; } }
@media (min-width: 1100px) { :root { --lp-gutter: 2rem; } }
.lp-page { overflow-x: clip; }

/* Header: inside the container, Sign in aligned with the content edge. */
.lp-head { display: block; padding: 0; }
.lp-head-inner { position: relative; display: flex; align-items: center; gap: 0.5rem; max-width: var(--lp-container); margin: 0 auto; padding: 0.375rem var(--lp-gutter); }
.lp-brand { margin-right: auto; display: block; line-height: 0; }
.lp-brand img, .lp-logo-pic img { display: block; width: 170px; height: auto; }
.lp-menu, .lp-signin { margin-right: 0; }
.lp-menu nav { right: var(--lp-gutter); }
@media (min-width: 900px) {
  .lp-brand img { width: 220px; }
  .lp-head-inner { gap: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .lp-brand { margin-right: 0; }
  .lp-nav-wide { margin: 0 0 0 auto; }
  .lp-signin { margin-right: 0; }
}
@media (max-width: 380px) { .lp-brand img { width: 140px; } .lp-signin { padding: 0.5rem 0.75rem; } .lp-menu summary { padding: 0.625rem 0.75rem; } }

/* The same edges for every band of content. */
.lp-hero { max-width: var(--lp-container); padding-left: var(--lp-gutter); padding-right: var(--lp-gutter); }
.lp-band { padding-left: var(--lp-gutter); padding-right: var(--lp-gutter); }
.lp-band.lp-founders { margin-left: max(var(--lp-gutter), calc((100% - 42rem) / 2)); margin-right: max(var(--lp-gutter), calc((100% - 42rem) / 2)); }
.lp-prose { padding-left: var(--lp-gutter); padding-right: var(--lp-gutter); }
.lp-band-wide, .lp-prose:has(.lp-plans) { max-width: var(--lp-container); }
.lp-portal-nav ul { padding-left: var(--lp-gutter); padding-right: var(--lp-gutter); }
.lp-form { max-width: 28rem; }
.lp-form input, .lp-form select, .lp-form textarea { width: 100%; box-sizing: border-box; min-height: 44px; }
.lp-form button, .lp-danger { min-height: 48px; }
.lp-check { display: flex; align-items: flex-start; gap: 0.625rem; min-height: 44px; }
.lp-check input { width: 1.375rem; height: 1.375rem; min-height: 0; flex: none; margin-top: 0.125rem; }

/* Price columns: stacked on a phone; three aligned columns from 760px, buttons on one line at the bottom. */
.lp-plans { gap: 1rem; }
.lp-plan { padding: 1.125rem; min-width: 0; }
@media (min-width: 760px) and (max-width: 1023px) {
  .lp-plans { column-gap: 0.75rem; }
  .lp-plan { padding: 1rem 0.875rem; }
  .lp-price strong { font-size: 1.75rem; }
  .lp-plan-list { font-size: 0.9375rem; }
}

/* Footer: two rows at most. Logo and one line of links; one small legal line. */
.lp-foot { margin-top: 2rem; padding: 0.75rem 0 1rem; text-align: left; border-top: 1px solid var(--border); }
.lp-foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; max-width: var(--lp-container); margin: 0 auto; padding: 0 var(--lp-gutter); }
.lp-foot-brand { display: block; line-height: 0; }
.lp-foot-brand img { width: 160px; }
.lp-foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.lp-foot .lp-foot-nav li a { line-height: 1.2; min-height: 44px; }
.lp-foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; border-radius: var(--radius-md, 0.75rem); color: var(--text); font-weight: 600; text-decoration: none; transition: background-color var(--motion-duration-normal) var(--motion-easing-standard); }
.lp-foot-nav a:hover { background: #e1ecea; text-decoration: underline; text-underline-offset: 4px; }
.lp-foot-nav a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 0; }
.lp-foot-legal { max-width: var(--lp-container); margin: 0.25rem auto 0; padding: 0 var(--lp-gutter); font-size: 0.8125rem; color: var(--text-muted); }
@media (max-width: 759px) {
  .lp-foot-inner { flex-direction: column; align-items: stretch; }
  .lp-foot-brand { align-self: center; margin-bottom: 0.25rem; }
  .lp-foot-nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .lp-foot-nav a { justify-content: center; padding: 0 0.25rem; font-size: 0.875rem; text-align: center; width: 100%; box-sizing: border-box; }
  .lp-foot-legal { text-align: center; }
}
@media (max-width: 380px) { .lp-foot-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .lp-foot-nav a { transition: none; } }

/* ---- D-49: the footer sits at the bottom of the screen on a short page and
   after the content on a long one. The page fills at least the small viewport
   height (svh: the height with a phone's address bar showing, so iOS Safari
   never leaves a gap or jumps), and the content grows to fill it. Not a fixed
   bar: it never covers anything. ---- */
.lp-page { min-height: 100vh; min-height: 100svh; }
.lp-page > main { flex: 1 0 auto; }
.lp-foot { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
.lp-top { bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.5rem)); }

/* ---- D-52: a compact footer. Small logo, one wrapped line of small links
   separated by dots, one small legal line; one row on a laptop. Links keep a
   36px tap height through padding, not tall rows. Keeps D-49 (bottom of a
   short page, safe area). ---- */
.lp-foot { margin-top: 1rem; padding: 0.375rem 0 max(0.5rem, env(safe-area-inset-bottom)); display: block; }
.lp-foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.125rem 0.75rem; max-width: var(--lp-container); margin: 0 auto; padding: 0 var(--lp-gutter); flex-direction: row; justify-content: flex-start; }
.lp-foot-brand { display: block; line-height: 0; margin: 0; align-self: center; }
.lp-foot-brand img { width: 96px; }
.lp-foot-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.lp-foot-nav li + li::before { content: "·"; color: var(--text-muted); padding: 0 0.125rem; }
.lp-foot .lp-foot-nav li a, .lp-foot-nav a { display: inline-flex; align-items: center; min-height: 36px; line-height: 1.2; padding: 0 0.375rem; font-size: 0.8125rem; font-weight: 600; width: auto; justify-content: flex-start; }
.lp-foot-legal { margin: 0; padding: 0; max-width: none; font-size: 0.75rem; color: var(--text-muted); text-align: left; }
@media (min-width: 1024px) { .lp-foot-legal { margin-left: auto; } }
@media (max-width: 759px) {
  /* Phones (D-57): three centred rows, evenly spaced, inside the page gutter:
     the logo, one row of links, the legal line. */
  .lp-foot { display: block; padding: 0.625rem 0 max(0.625rem, env(safe-area-inset-bottom)); }
  .lp-foot-inner { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0 var(--lp-gutter); text-align: center; }
  .lp-foot-brand { margin: 0; }
  .lp-foot-brand img { width: 96px; }
  .lp-foot-nav { margin: 0; width: 100%; }
  .lp-foot-nav ul { display: flex; flex-wrap: wrap; justify-content: center; }
  .lp-foot .lp-foot-nav li a, .lp-foot-nav a { padding: 0 0.3125rem; }
  .lp-foot-nav li + li::before { padding: 0; }
  .lp-foot-legal { margin: 0; max-width: 22rem; text-align: center; line-height: 1.4; }
}

/* D-58: the live Biscuit on Meet Biscuit sits in the text column like the photograph did. */
.lp-meet-dog { margin: 0 0 1.25rem; }

/* The apps' sign-in code (D-69): big, spaced, easy to compare with the email page. */
.lp-code { font-size: 2.25rem; font-weight: 800; letter-spacing: 0.25em; margin: 0.5rem 0; font-variant-numeric: tabular-nums; }
