/* Signed-in app, in the marketing site's world (web/src/assets/site.css, the
   2026-11 redesign), calmer: light warm bench only, Cabinet Grotesk headings
   with one Gambetta Italic word, Switzer text. The triad is status here:
   indigo = building, mint = ready / saved, persimmon = bought and the action.
   Site screenshots sit on white cards; 3D objects only at success moments.
   One authored motion: the mint selection frame around the newest Ready site. */
@font-face { font-family: "Cabinet Grotesk"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("fonts/CabinetGrotesk-Variable.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("fonts/Switzer-Variable.woff2") format("woff2"); }
@font-face { font-family: "Gambetta"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/Gambetta-Italic.woff2") format("woff2"); }

:root {
  --bg: #F1F0EC;
  --bg-2: #E8E6E0;
  --surface: #FBFAF8;
  --ink: #15140F;
  --ink-2: #45433D;
  --muted: #67645C;
  --line: rgb(21 20 15 / 0.09);
  --line-2: rgb(21 20 15 / 0.16);

  --indigo: #4B4BF2;
  --indigo-ink: #3434CC;
  --indigo-soft: #E2E2FD;
  --mint: #2FC27A;
  --mint-ink: #0F7A47;
  --mint-soft: #D6F4E4;
  --pop: #FF6A3D;
  --pop-ink: #B3330C;
  --pop-soft: #FFE1D6;

  --display: "Cabinet Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Gambetta", ui-serif, Georgia, serif;

  --gutter: 16px;
  --max: 1120px;
  --r: 28px;
  --r-card: 22px;
  --r-win: 20px;
  --r-field: 14px;
  --r-sm: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --lift: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 1px 2px rgb(21 20 15 / 0.06), 0 22px 44px -22px rgb(21 20 15 / 0.28);
  --lift-lg: inset 0 0 0 1px var(--line), 0 1px 2px rgb(21 20 15 / 0.05), 0 30px 60px -30px rgb(21 20 15 / 0.35);

  /* theme surfaces and inks (2026-11-22, the Appearance setting): light values are the app's look before it */
  --card: #fff;              /* white cards (site picture frames, the featured card) */
  --on-ink: #fff;            /* text on an --ink fill (the ink button, the avatar) */
  --on-accent: #15140F;      /* text on a persimmon or mint fill: always dark, in both themes */
  --ink-hover: #2B2A24;
  --outline: var(--ink);     /* the ink outline language: featured card, thumbnails, the library rule */
  --side: #15140F;           /* the sidebar */
  --side-edge: #15140F;      /* the sidebar's hairline edge: none in light (same as the sidebar) */
  --rec: #15140F;            /* the recommended plan card */
  --rec-ring: transparent;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%230F7A47' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' fill='none' stroke='%2367645C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --hex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75' viewBox='0 0 42 72.75'><g fill='none' stroke='%23d9d5cc' stroke-width='1.2'><path d='M10.5 0 21 6.06v12.13L10.5 24.25 0 18.19V6.06z'/><path d='M31.5 12.13 42 18.19v12.12l-10.5 6.07L21 30.31V18.19z'/><path d='M10.5 24.25 21 30.31v12.13L10.5 48.5 0 42.44V30.31z'/><path d='M31.5 36.38 42 42.44v12.12l-10.5 6.07L21 54.56V42.44z'/><path d='M10.5 48.5 21 54.56v12.13l-10.5 6.06L0 66.69V54.56z'/></g></svg>");
  --paper-feat: #EEECE7;
  --paper-done: #E7F6EE;
  --paper-build: #ECECFB;
  --hl-build: rgb(75 75 242 / 0.35);
  color-scheme: light;
}
/* Dark (signed-in app only; src/app/theme.ts): data-theme="dark" when chosen, data-theme-auto + a dark device for
   Auto. No data-theme at all = light, the default. The two blocks below must stay identical (a test checks). Accents
   keep their fills; the -ink variants get lighter for text on dark, the -soft variants become dark tints. */
:root[data-theme="dark"] {
  --bg: #121110;
  --bg-2: #27251F;
  --surface: #1B1A17;
  --card: #22201C;
  --ink: #F1F0EC;
  --ink-2: #CFCBC2;
  --muted: #9A958A;
  --line: rgb(241 240 236 / 0.10);
  --line-2: rgb(241 240 236 / 0.16);
  --indigo-ink: #9C9CFF;
  --indigo-soft: rgb(75 75 242 / 0.2);
  --mint-ink: #5BDA9A;
  --mint-soft: rgb(47 194 122 / 0.16);
  --pop-ink: #FF8A63;
  --pop-soft: rgb(255 106 61 / 0.16);
  --on-ink: #121110;
  --ink-hover: #FFFFFF;
  --outline: rgb(241 240 236 / 0.62);
  --side: #1B1A17;
  --side-edge: #2B2A26;
  --rec: #2A2824;
  --rec-ring: rgb(241 240 236 / 0.22);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%235BDA9A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' fill='none' stroke='%239A958A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --hex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75' viewBox='0 0 42 72.75'><g fill='none' stroke='%232e2b26' stroke-width='1.2'><path d='M10.5 0 21 6.06v12.13L10.5 24.25 0 18.19V6.06z'/><path d='M31.5 12.13 42 18.19v12.12l-10.5 6.07L21 30.31V18.19z'/><path d='M10.5 24.25 21 30.31v12.13L10.5 48.5 0 42.44V30.31z'/><path d='M31.5 36.38 42 42.44v12.12l-10.5 6.07L21 54.56V42.44z'/><path d='M10.5 48.5 21 54.56v12.13l-10.5 6.06L0 66.69V54.56z'/></g></svg>");
  --paper-feat: #1A1916;
  --paper-done: #142019;
  --paper-build: #19192A;
  --hl-build: rgb(75 75 242 / 0.6);
  --lift: inset 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.25), 0 22px 44px -24px rgb(0 0 0 / 0.5);
  --lift-lg: inset 0 0 0 1px var(--line-2), 0 1px 2px rgb(0 0 0 / 0.2), 0 30px 60px -30px rgb(0 0 0 / 0.55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme-auto] {
    --bg: #121110;
    --bg-2: #27251F;
    --surface: #1B1A17;
    --card: #22201C;
    --ink: #F1F0EC;
    --ink-2: #CFCBC2;
    --muted: #9A958A;
    --line: rgb(241 240 236 / 0.10);
    --line-2: rgb(241 240 236 / 0.16);
    --indigo-ink: #9C9CFF;
    --indigo-soft: rgb(75 75 242 / 0.2);
    --mint-ink: #5BDA9A;
    --mint-soft: rgb(47 194 122 / 0.16);
    --pop-ink: #FF8A63;
    --pop-soft: rgb(255 106 61 / 0.16);
    --on-ink: #121110;
    --ink-hover: #FFFFFF;
    --outline: rgb(241 240 236 / 0.62);
    --side: #1B1A17;
    --side-edge: #2B2A26;
    --rec: #2A2824;
    --rec-ring: rgb(241 240 236 / 0.22);
    --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%235BDA9A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' fill='none' stroke='%239A958A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --hex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75' viewBox='0 0 42 72.75'><g fill='none' stroke='%232e2b26' stroke-width='1.2'><path d='M10.5 0 21 6.06v12.13L10.5 24.25 0 18.19V6.06z'/><path d='M31.5 12.13 42 18.19v12.12l-10.5 6.07L21 30.31V18.19z'/><path d='M10.5 24.25 21 30.31v12.13L10.5 48.5 0 42.44V30.31z'/><path d='M31.5 36.38 42 42.44v12.12l-10.5 6.07L21 54.56V42.44z'/><path d='M10.5 48.5 21 54.56v12.13l-10.5 6.06L0 66.69V54.56z'/></g></svg>");
    --paper-feat: #1A1916;
    --paper-done: #142019;
    --paper-build: #19192A;
    --hl-build: rgb(75 75 242 / 0.6);
    --lift: inset 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / 0.25), 0 22px 44px -24px rgb(0 0 0 / 0.5);
    --lift-lg: inset 0 0 0 1px var(--line-2), 0 1px 2px rgb(0 0 0 / 0.2), 0 30px 60px -30px rgb(0 0 0 / 0.55);
    color-scheme: dark;
  }
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--mint-soft); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button, a, summary, label { touch-action: manipulation; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 0.98; }
h2 { font-size: 1.375rem; line-height: 1.1; letter-spacing: -0.02em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.muted { color: var(--muted); }
.fine { font-size: 0.875rem; color: var(--muted); }
.error { color: var(--pop-ink); font-size: 0.875rem; }
.error:empty { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code { font-size: 0.8125rem; overflow-wrap: anywhere; }

/* notices: neutral paper; alerts in persimmon, good news in mint */
.notice { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--r-field); padding: 14px 18px; margin: 0 0 20px; font-size: 0.9375rem; }
.notice[role="alert"] { background: var(--pop-soft); color: var(--pop-ink); box-shadow: none; }
.notice-ok { background: var(--mint-soft); color: var(--mint-ink); box-shadow: none; }
/* email not confirmed yet: a thin mint strip */
.notice-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 0 0 24px; padding: 6px 6px 6px 18px; border-radius: var(--r-field); background: var(--mint-soft); color: var(--ink); font-size: 0.875rem; line-height: 1.45; }
.notice-strip p { flex: 1 1 260px; overflow-wrap: anywhere; padding: 6px 0; }
.notice-strip .btn { background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mint-ink) 22%, transparent); }

/* ---------- header ---------- */
.app-head { position: sticky; top: 0; z-index: 20; padding: max(10px, env(safe-area-inset-top)) 12px 0; }
.head-bar { max-width: 760px; margin: 0 auto; height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 16px; border-radius: 999px; background: rgb(251 250 248 / 0.72); box-shadow: inset 0 0 0 1px rgb(21 20 15 / 0.06), 0 10px 30px -18px rgb(21 20 15 / 0.35); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; font: 800 1.1875rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; }
.mark rect { fill: var(--indigo); }
.mark path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.me { position: relative; }
.me summary, .switch summary { list-style: none; cursor: pointer; }
.me summary::-webkit-details-marker, .switch summary::-webkit-details-marker { display: none; }
.me summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 700 0.9375rem/1 var(--display); }
.me-menu, .switch-menu { position: absolute; top: calc(100% + 8px); z-index: 30; min-width: 230px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -20px rgb(21 20 15 / 0.4); display: grid; }
.me-menu { right: 0; }
.me-email { padding: 8px 12px 10px; font-size: 0.8125rem; color: var(--muted); overflow-wrap: anywhere; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me-menu a, .me-menu button, .switch-menu a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 500 0.9375rem var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.me-menu a:hover, .me-menu button:hover, .switch-menu a:hover { background: var(--bg); }
.switch { position: relative; min-width: 0; }
.switch summary { display: flex; align-items: center; gap: 8px; max-width: min(46vw, 360px); height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-size: 0.9375rem; }
.switch-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch-caret { width: 7px; height: 7px; flex: none; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.switch-menu { left: 0; min-width: 280px; max-width: min(90vw, 360px); }
.switch-menu ul { list-style: none; padding: 0; max-height: 50vh; overflow-y: auto; }
.switch-menu li a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch-menu a[aria-current="page"] { background: var(--bg); font-weight: 600; }
.switch-new { border-top: 1px solid var(--line) !important; border-radius: 0 0 10px 10px !important; margin-top: 4px; color: var(--ink-2) !important; }

.page { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gutter) 96px; }
.hello { margin-bottom: 28px; }
.hello .muted { margin-top: 10px; }

/* ---------- buttons and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 600 0.9375rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 44px; padding: 0 16px; font-size: 0.875rem; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 1rem; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-pop { background: var(--pop); color: var(--on-accent); box-shadow: 0 10px 24px -12px rgb(255 106 61 / 0.9); }
.btn-soft { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-danger { background: var(--pop-soft); color: var(--pop-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: var(--ink-hover); }
  .btn-pop:hover { background: #FF7A52; box-shadow: 0 14px 30px -12px rgb(255 106 61 / 1); }
  .btn-soft:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .btn-danger:hover { box-shadow: inset 0 0 0 1.5px var(--pop-ink); }
}
.btn[aria-disabled="true"], input:disabled + .btn, .btn:disabled { opacity: .5; cursor: default; }
input.visually-hidden:focus-visible + .btn { outline: 2.5px solid var(--indigo); outline-offset: 3px; }
label { font-weight: 600; font-size: 0.8125rem; color: var(--ink-2); }
input[type="email"], input[type="text"], input[type="password"], input[type="url"] { height: 52px; padding: 0 16px; border-radius: var(--r-field); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; caret-color: var(--mint-ink); width: 100%; transition: box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out); }
input[type="email"]:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="url"]:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 2px var(--mint), 0 0 0 5px var(--mint-soft); }
input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--pop-ink); }
.stack { display: grid; gap: 10px; margin: 24px 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9375rem; color: var(--ink); min-height: 44px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------- 3D objects (shadow baked into the render: no CSS shadow or rotation) ---------- */
.obj { user-select: none; -webkit-user-drag: none; }

/* ---------- single-card pages (sign-in, errors) ---------- */
.solo { max-width: 440px; margin: 2vh auto 0; text-align: center; }
.solo-obj { width: 128px; margin: 0 auto 14px; }
.solo .lead { margin: 14px auto 0; }
.solo .stack { text-align: left; }
.solo .btn { width: 100%; }
.solo .fine { margin-top: 12px; }

/* ---------- accounts ---------- */
.auth { margin-top: 28px; }
.auth .stack { margin-top: 0; }
.btn-google { width: 100%; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) { .btn-google:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.g-logo { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 0.875rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.label-row a { font-size: 0.875rem; color: var(--ink-2); padding: 12px 0; margin: -12px 0; }
.label-row a:hover { color: var(--ink); }
.hint { margin-top: -4px; }
.form-error { padding: 12px 16px; border-radius: var(--r-field); background: var(--pop-soft); color: var(--pop-ink); font-size: 0.9375rem; }
.acct-confirm { margin-bottom: 16px; }

/* ---------- the bar: link field + file behind "+" (one drop target) ---------- */
.start { max-width: 760px; margin: 5vh auto 0; text-align: center; }
.start .lead { margin: 14px auto 28px; }
.start .composer { text-align: left; }
.sources { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.sources a { color: var(--ink-2); }
.composer { position: relative; background: var(--surface); border-radius: 26px; padding: 14px 14px 14px 16px; box-shadow: var(--lift-lg); transition: box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out); }
.composer-field { display: flex; align-items: center; gap: 10px; padding: 2px 2px 10px; }
.composer-field input[type="url"], .composer-field input[type="url"]:focus { flex: 1; min-width: 0; height: 48px; border: 0; box-shadow: none; background: transparent; font-size: 1.0625rem; padding: 0 6px; }
.composer:focus-within { box-shadow: inset 0 0 0 2px var(--mint), 0 0 0 5px var(--mint-soft), 0 30px 60px -30px rgb(21 20 15 / 0.35); }
.composer-plus { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--ink-2); font-size: 1.4rem; font-weight: 400; cursor: pointer; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.composer-plus:hover { background: var(--bg-2); color: var(--ink); }
input.visually-hidden:focus-visible ~ * .composer-plus, .composer-file input:focus-visible { outline: none; }
.composer-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.composer-row .btn { margin-left: auto; }
.btn small { font-size: 0.8125rem; font-weight: 500; opacity: .7; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.chip-quiet { background: transparent; color: var(--muted); font-weight: 500; }
.composer .error { padding: 8px 6px 2px; }
.composer-link[data-state="checking"] .btn { opacity: .6; pointer-events: none; }
.composer-file { display: none; }
.composer[data-state] .composer-file { display: block; padding: 10px 6px 2px; }
.composer[data-state="error"] .composer-file .drop-bar, .composer[data-state="over"] .composer-file .drop-bar { display: none; }
.composer-status { font-size: 0.9375rem; font-weight: 600; }
.composer-status:has(span:empty + span:empty) { display: none; }
.composer .drop-bar { margin-top: 8px; }
.composer[data-state="over"], body[data-dragging] .composer { box-shadow: inset 0 0 0 2px var(--mint), 0 0 0 5px var(--mint-soft), 0 30px 60px -30px rgb(21 20 15 / 0.35); transform: translateY(-3px); }
.composer[data-state="over"] .composer-plus, body[data-dragging] .composer-plus { background: var(--mint-soft); color: var(--mint-ink); }
.composer[data-state="uploading"] .drop-bar, .composer[data-state="opening"] .drop-bar { opacity: 1; }
.composer[data-state="opening"] .drop-bar span { background: var(--mint); }
.composer[data-state="uploading"] .composer-link, .composer[data-state="opening"] .composer-link { opacity: .45; pointer-events: none; }
.drop-bar { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; opacity: 0; transition: opacity .3s; }
.drop-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--indigo); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s linear; }
@media (max-width: 560px) { .chip-quiet { display: none; } .composer-row .btn { flex: 1 0 100%; margin-left: 0; } }


.count { font-size: 0.875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn-convert { height: 46px; padding: 0 20px; border-radius: 999px; background: var(--indigo); color: #fff; font: 700 0.9375rem var(--display); text-decoration: none; display: inline-flex; align-items: center; box-shadow: 0 10px 22px -12px rgb(75 75 242 / 0.95); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn-convert:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgb(75 75 242 / 1); } }
.art-fallback { position: absolute; inset: 0; }
.art-fallback .swatch { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; width: 100%; }
.swatch-empty { fill: var(--bg-2); }
/* the highlighter stroke: a slightly tilted band under the lower half of the word */
.hl { padding: 0 3px; margin: 0 -1px; border-radius: 2px; color: var(--ink); font-weight: 700; background: linear-gradient(176deg, transparent 44%, var(--hl) 44%, var(--hl) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-ready { --hl: rgb(255 106 61 / 0.55); }
.hl-unlocked { --hl: rgb(47 194 122 / 0.55); }
.hl-building { --hl: var(--hl-build); }
.hl-failed { --hl: rgb(255 106 61 / 0.55); }
.btn-ink svg { width: 16px; height: 16px; flex: none; }
.btn-ink.ring-pop { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pop); }
.btn-ink.ring-mint { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--mint); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink.ring-pop:hover { box-shadow: 0 0 0 3px var(--pop-soft), 0 0 0 5px var(--pop); }
  .btn-ink.ring-mint:hover { box-shadow: 0 0 0 3px var(--mint-soft), 0 0 0 5px var(--mint); }
}
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }

/* status chips: indigo building, soft mint ready, solid mint + key unlocked */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; flex: none; }
.pill i, .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill:not([class*="pill-"]) i { display: none; }
.pill-queued, .pill-converting { background: var(--indigo-soft); color: var(--indigo-ink); }
.pill-ready { background: var(--mint-soft); color: var(--mint-ink); }
.pill-ready.pill-bought { background: var(--mint-ink); color: var(--on-ink); gap: 5px; padding-left: 8px; }
.pill-key { width: 13px; height: 13px; flex: none; fill: currentColor; }
.pill-failed { background: var(--bg-2); color: var(--ink); }
.dot-ready { color: var(--mint); } .dot-queued, .dot-converting { color: var(--indigo); } .dot-failed { color: var(--muted); }


/* ---------- one site: picture (or a practice WordPress) + rail ---------- */
/* Button colours by job (views.ts buyBox says the same):
   - persimmon (.btn-pop, ink text, 6.5:1): the money or next step. Unlock this site; See plans when there is no
     plan; Update my card; Download my WordPress site once unlocked. One per screen.
   - indigo: trying the site. The "Try it in WordPress" tab and the Practice band.
   - quiet (.btn-soft outline, text links, the switch): everything else. */
.page-wide { max-width: 1320px; }
.studio { display: grid; gap: 28px; align-items: start; }
.studio > * { min-width: 0; }
@media (min-width: 980px) {
  .studio { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
  /* app.js pins the rail only while all of it fits on the screen; taller, it scrolls with the page. */
  .rail.is-pinned { position: sticky; top: 96px; }
}
.stage { display: grid; gap: 14px; min-width: 0; }

/* Picture | Try it in WordPress */
.views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.view-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 0.9375rem/1.2 var(--sans); cursor: pointer; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.view-tab[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(21 20 15 / 0.08), inset 0 0 0 1px var(--line); }
.view-tab-try { color: var(--indigo-ink); }
.view-tab-try[aria-pressed="true"] { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px -10px rgb(75 75 242 / 0.8); }
.view-tab:disabled { color: var(--muted); cursor: default; opacity: .7; }
.view-play { width: 14px; height: 14px; fill: currentColor; flex: none; }
.view-tab:focus-visible { outline-offset: 2px; border-radius: 999px; }
.view-tab:active:not(:disabled) { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .view-tab:not(:disabled):not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
  .view-tab-try:not(:disabled):not([aria-pressed="true"]):hover { background: var(--indigo-soft); }
}
.views-note { flex: 1 1 240px; max-width: 46em; overflow-wrap: anywhere; }
.try-form { display: none; }

.frame { margin: 0; padding: 0 8px 8px; border-radius: var(--r-win); background: var(--card); box-shadow: var(--lift); min-width: 0; }
.frame-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 8px; font-size: 0.8125rem; color: var(--muted); }
.frame-bar span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-tag { flex: none; font-weight: 600; color: var(--ink-2); }
.frame-scroll { max-height: calc(100vh - 250px); min-height: 360px; overflow-y: auto; border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; }
.frame-scroll img { width: 100%; height: auto; }
@media (max-width: 979px) { .frame-scroll { max-height: 56vh; min-height: 260px; } }
.frame-none { position: relative; display: grid; justify-items: center; gap: 14px; padding: 56px 24px 72px; text-align: center; border-radius: var(--r-sm); background: var(--bg); overflow: hidden; }
.frame-none .swatch { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; width: 100%; }
[data-view-panel][hidden] { display: none !important; }

/* Try it in WordPress: the Practice band (ours, outside WordPress) over the stage where WordPress runs */
.frame.is-trying { padding-top: 8px; }
.try { display: grid; gap: 8px; }
.try-band { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 6px 6px 8px; border-radius: var(--r-sm); background: var(--indigo); color: #fff; }
.try-badge { flex: none; padding: 4px 10px; border-radius: 999px; background: #fff; color: #3434CC; font: 700 0.75rem/1.2 var(--sans); letter-spacing: 0.02em; text-transform: uppercase; }
.try-words { flex: 1 1 auto; min-width: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.try-full { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45); font: 600 0.875rem/1 var(--sans); cursor: pointer; }
.try-full:focus-visible { outline-color: #fff; }
@media (hover: hover) and (pointer: fine) { .try-full:hover { background: rgb(255 255 255 / 0.24); } }
@media (pointer: coarse) { .try-full { min-height: 44px; } }
/* WordPress runs at 1280 x 800 and is drawn at the frame's width (--s, set by app.js); the stage keeps 16:10. */
.try-stage { --s: 0.5; position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-sm); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.try-stage iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; background: #fff; transform: scale(var(--s)); transform-origin: 0 0; opacity: 0; }
.try-stage.is-shown iframe { opacity: 1; }
.try-fade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0.22; filter: grayscale(0.3); }
.try-status { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.try-msg { max-width: 30em; padding: 10px 16px; border-radius: var(--r-field); background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgb(21 20 15 / 0.06); overflow-wrap: anywhere; }
.try-status .wait-line { width: 220px; margin: 0; }
.try-stage.is-shown .try-status, .try-stage.is-shown .try-fade { display: none; }
.try-status [hidden] { display: none; }
.try-stage.is-error .try-msg { background: var(--pop-soft); color: var(--pop-ink); }
.try-stage.is-error .wait-line { display: none; }
/* Full screen: the frame covers the viewport; WordPress then runs at the screen's own size, not scaled. */
.frame.is-full { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; padding: 8px; border-radius: 0; box-shadow: none; }
.frame.is-full .try { flex: 1; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
.frame.is-full .try-stage { aspect-ratio: auto; height: 100%; }
.frame.is-full .try-stage iframe { width: 100%; height: 100%; transform: none; }
body.has-full { overflow: hidden; }
@media (max-width: 560px) {
  .try-band { flex-wrap: wrap; padding: 8px; }
  .try-words { flex-basis: calc(100% - 100px); font-size: 0.875rem; }
  .try-full { margin-left: auto; }
  .frame.is-full { padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .try-status .wait-line span { width: 100%; opacity: 0.35; } }

/* the converted pages, under the picture */
.pages { min-width: 0; }
.page-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; margin-bottom: 10px; }
.page-list button, .page-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--r-sm); background: none; color: inherit; font: inherit; font-size: 0.875rem; text-align: left; }
.page-list button { cursor: pointer; }
.page-list button:hover { background: var(--surface); }
.page-list button[aria-pressed="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; }
.page-list button:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: -2px; }
.page-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-list small { flex: none; color: var(--muted); font-size: 0.75rem; }

/* the rail: nothing in it is wider than it, and it never scrolls on its own */
.rail { display: grid; gap: 24px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.rail > * { min-width: 0; }
.rail .btn { white-space: normal; height: auto; min-height: 48px; padding-top: 12px; padding-bottom: 12px; line-height: 1.25; text-align: center; }
.rail .btn-lg { min-height: 56px; }
.rail-head h1 { font-size: clamp(1.625rem, 2.4vw, 2rem); line-height: 1.05; overflow-wrap: anywhere; }
.rail-head-obj { position: relative; padding-right: 84px; min-height: 80px; }
.rail-obj { position: absolute; top: -10px; right: 0; width: 88px; height: auto; }
.rail-src { margin: 8px 0 12px; font-size: 0.875rem; overflow-wrap: anywhere; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.rail-title { font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0; color: var(--muted); margin-bottom: 10px; }
.facts { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 6px; }
.facts li { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 12px 11px; border-radius: var(--r-field); background: var(--surface); }
.facts b { font: 800 1.375rem/1.05 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.rail-block .fine + .fine { margin-top: 6px; }
.buy { display: grid; gap: 8px; text-align: center; }
.buy .btn { width: 100%; }
.buy form { display: grid; }
.demo-note { color: var(--ink-2); }

/* Animations · Beta: one row with a real switch */
.motion-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 6px 6px 16px; border-radius: var(--r-field); background: var(--surface); }
.motion-label { font: 600 0.9375rem/1.2 var(--sans); letter-spacing: 0; }
.motion-beta { color: var(--muted); font-weight: 500; }
.motion .fine { margin-top: 8px; }
.switch-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 0.8125rem/1 var(--sans); cursor: pointer; }
.switch-knob { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms var(--ease-out); }
.switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(21 20 15 / 0.3); transition: transform 200ms var(--ease-out); }
.switch-btn[aria-checked="true"] .switch-knob { background: var(--mint-ink); box-shadow: none; }
.switch-btn[aria-checked="true"] .switch-knob::after { transform: translateX(18px); }
.switch-state { min-width: 2em; text-align: left; }
.switch-btn:focus-visible { outline-offset: 0; }

/* ---------- waiting screen ---------- */
.wait { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; border-radius: var(--r-win); background: var(--card); box-shadow: var(--lift); }
.wait .muted { margin-top: 6px; }
.wait-steps { list-style: none; padding: 0; margin: 26px auto 0; max-width: 380px; display: grid; gap: 12px; text-align: left; }
.wait-steps li { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; color: var(--muted); transition: color .3s; }
.wait-steps i { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: background-color .3s, border-color .3s; }
.wait-steps li.done { color: var(--ink-2); }
.wait-steps li.done i { background: var(--mint); border-color: var(--mint); }
.wait-steps li.done i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wait-steps li.now { color: var(--ink); font-weight: 600; }
.wait-steps li.now i { border-color: var(--indigo); border-top-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait-line { height: 3px; max-width: 380px; margin: 26px auto 0; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.wait-line span { display: block; width: 30%; height: 100%; border-radius: inherit; background: var(--indigo); animation: slide 1.6s var(--ease-out) infinite; }
@keyframes slide { from { transform: translateX(-110%); } to { transform: translateX(340%); } }

/* ---------- report, oops, fix ---------- */
.report-box summary, .fix summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 4px 0; border-top: 1px solid var(--line); }
.report-box summary::-webkit-details-marker, .fix summary::-webkit-details-marker { display: none; }
.report-box summary h2, .fix summary h2 { font: 600 0.9375rem/1.2 var(--sans); letter-spacing: 0; }
.report-box summary::after, .fix summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); transition: transform 300ms var(--ease-out); }
.report-box[open] summary::after, .fix[open] summary::after { transform: rotate(45deg); }
.report { list-style: none; padding: 0; }
.report li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; overflow-wrap: anywhere; }
.report li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; }
.report li.ok::before { background: var(--mint-soft) var(--tick) center/16px no-repeat; }
.report li.gap::before { background: var(--bg-2) var(--dash) center/16px no-repeat; }
.report .src { overflow-wrap: anywhere; font-weight: 600; }
.oops { padding: 24px 26px; border-radius: var(--r-win); background: var(--pop-soft); color: var(--pop-ink); }
.oops h2 { color: var(--ink); }
.oops p { margin-top: 6px; }
.fix-body { display: grid; gap: 10px; padding-bottom: 6px; }
.fix-item { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-field); background: var(--surface); }
.fix-drop form { display: grid; gap: 8px; }
.fix-drop[data-state="over"] { background: var(--mint-soft); box-shadow: inset 0 0 0 2px var(--mint); }
.fix-drop[data-state="uploading"] .drop-bar, .fix-drop[data-state="opening"] .drop-bar { opacity: 1; }
.fix-danger { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.fix-danger .btn { justify-self: start; }
.row-input { display: flex; gap: 8px; align-items: center; }
.row-input input[type="text"], .row-input input[type="url"] { height: 48px; flex: 1; min-width: 0; }
.link-form[data-state="checking"] .btn { opacity: .6; pointer-events: none; }

/* ---------- account ---------- */
.acct { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
.acct-card { position: relative; padding: 26px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.acct-card form { display: inline-block; margin: 0 6px 6px 0; }
dl.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 20px; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.facts dd { overflow-wrap: anywhere; font-weight: 500; }
.danger { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.danger h2 { margin-bottom: 4px; }
.danger p { color: var(--ink-2); margin-top: 8px; font-size: 0.9375rem; }
.danger form.stack { display: grid; }
.danger .btn { justify-self: start; }
.acct-portal { margin-top: 12px; }
.acct-portal form { display: inline-block; }

/* Page limit with an upgrade: locked pages in the list, the second choice and the upgrade. */
.lock { display: inline-block; vertical-align: -1px; margin-right: 5px; fill: currentColor; opacity: 0.6; flex: none; }
.page-list .is-locked { color: var(--muted); }
.upgrade { display: grid; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- plans: the plan line, the plan page (the marketing site's pricing cards) ---------- */
.plan-line { font-size: 0.875rem; color: var(--muted); }
.start .plan-line { margin-top: 18px; }
.plan-line a { color: var(--ink); font-weight: 600; margin-left: 4px; white-space: nowrap; }
.plan-line-warn { color: var(--pop-ink); }
.plan-now { display: grid; gap: 12px; justify-items: start; margin-bottom: 28px; max-width: 46em; }
.plan-now p[data-plan-summary] { font-weight: 600; }
.plan-now .notice { margin: 0; }
.plans-sheet { display: grid; justify-items: center; padding: clamp(20px, 4vw, 44px) clamp(14px, 3vw, 40px) clamp(22px, 4vw, 44px); border-radius: clamp(28px, 4vw, 40px); background: var(--surface); }
.billing { display: inline-flex; gap: 0; padding: 5px; margin-bottom: 28px; border-radius: 999px; background: var(--bg); max-width: 100%; }
.billing a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: color 250ms var(--ease-out); }
.billing a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -2px rgb(21 20 15 / 0.2); }
.billing small { font-size: 0.75rem; font-weight: 600; color: var(--mint-ink); background: var(--mint-soft); padding: 3px 8px; border-radius: 999px; }
@media (max-width: 400px) { .billing a { padding: 0 14px; } }
.demo-box { justify-self: stretch; text-align: center; margin: 0 0 20px; background: var(--bg); box-shadow: none; color: var(--ink-2); }
.plans { display: grid; gap: 16px; width: 100%; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--r-card); background: var(--bg); min-width: 0; }
.plan-rec { background: var(--rec); color: #fff; box-shadow: inset 0 0 0 1px var(--rec-ring), 0 30px 60px -30px rgb(21 20 15 / 0.6); }
@media (min-width: 960px) { .plan-rec { transform: translateY(-10px); } }
@media (max-width: 959px) { .plan-rec { order: -1; } }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.plan h2 { font-size: 1.5rem; }
.plan-flag { font-size: 0.75rem; font-weight: 700; line-height: 1; background: var(--pop); color: var(--on-accent); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.plan-tag { font-size: 0.9375rem; color: var(--muted); min-height: 2.8em; }
.plan-rec .plan-tag, .plan-rec .plan-bill, .plan-rec .plan-per, .plan-rec .plan-note { color: rgb(255 255 255 / 0.66); }
.plan-price { font: 800 3.25rem/1 var(--display); letter-spacing: -0.04em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.plan-price span { font: 500 0.9375rem var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.plan-rec .plan-price span { color: rgb(255 255 255 / 0.6); }
.plan-price s { font-size: 0.5em; color: var(--muted); text-decoration-thickness: 2px; margin-right: 4px; vertical-align: 0.4em; }
.plan-rec .plan-price s { color: rgb(255 255 255 / 0.45); }
.plan-bill { font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }
.plan-save { color: var(--mint-ink); background: var(--mint-soft); padding: 2px 8px; border-radius: 999px; font-weight: 700; display: inline-block; }
.plan-rec .plan-save { color: var(--on-accent); background: var(--mint); }
.plan-per { font-size: 0.8125rem; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 9px; margin: 18px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.plan-rec ul { border-top-color: rgb(255 255 255 / 0.12); }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--mint-soft) var(--tick) center/16px no-repeat; }
.plan-rec ul li::before { background-color: rgb(47 194 122 / 0.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%232FC27A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan form { display: grid; margin-top: auto; }
.plan .btn { width: 100%; height: auto; min-height: 48px; padding: 12px 22px; white-space: normal; text-align: center; line-height: 1.25; }
.plan-rec .btn-ink { background: var(--pop); color: var(--on-accent); }
.plan-rec .btn-soft { background: rgb(255 255 255 / 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.24); }
.plan-note { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 10px; }
.plan-chosen { box-shadow: inset 0 0 0 2px var(--indigo); }
.plan-rec.plan-chosen { box-shadow: 0 0 0 2px var(--indigo), 0 30px 60px -30px rgb(21 20 15 / 0.6); }
.plan-end { margin-top: 16px; }
.plan-terms { margin-top: 20px; max-width: 46em; }

/* Plan overview (P8c): the plan card and the usage dashboard. */
.sub-card { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-card); background: var(--surface); margin-bottom: 18px; max-width: 64em; }
.sub-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sub-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.sub-name { font: 800 clamp(1.75rem, 4vw, 2.25rem)/1.1 var(--display); letter-spacing: -0.03em; margin-top: 4px; }
.sub-name span { font: 600 1rem var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.sub-pill { font-size: 0.8125rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.sub-pill-ok { background: var(--mint-soft); color: var(--mint-ink); }
.sub-pill-warn { background: var(--pop); color: var(--on-accent); }
.sub-pill-end { background: var(--bg); color: var(--ink-2); }
.sub-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.sub-facts dt { font-size: 0.8125rem; color: var(--muted); }
.sub-facts dd { font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-actions form { display: contents; }
.usage { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); max-width: 64em; margin-bottom: 18px; }
.use-tile { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--r-card); background: var(--surface); min-width: 0; }
.use-tile form { display: grid; margin-top: 6px; }
.use-tile .btn { width: 100%; height: auto; min-height: 44px; white-space: normal; }
.use-big { font-size: 0.9375rem; color: var(--ink-2); }
.use-big b { display: block; font: 800 2.5rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.meter { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--bg); overflow: hidden; color: var(--mint); }
.meter::-webkit-progress-bar { background: var(--bg); border-radius: 999px; }
.meter::-webkit-progress-value { background: var(--mint); border-radius: 999px; }
.meter::-moz-progress-bar { background: var(--mint); border-radius: 999px; }
.meter-time { color: var(--indigo); }
.meter-time::-webkit-progress-value { background: var(--indigo); }
.meter-time::-moz-progress-bar { background: var(--indigo); }
.use-list { max-width: 64em; padding: 22px; border-radius: var(--r-card); background: var(--surface); }
.use-list ul { list-style: none; display: grid; }
.use-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.use-list li:first-child { border-top: 0; }
.use-list li span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.use-list li a { min-width: 0; overflow-wrap: anywhere; }

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

/* ---------- downloads, install (2026-11-20) ---------- */

.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 920px; }
.dl-row { display: grid; grid-template-columns: 148px 1fr auto; align-items: center; gap: 20px; padding: 12px 16px 12px 12px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.dl-art { display: block; padding: 5px; border-radius: 14px; background: var(--card); box-shadow: var(--lift); }
.dl-img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: top; border-radius: 10px; }
.dl-img.art-fallback { position: relative; inset: auto; overflow: hidden; }
.dl-img .swatch { width: 100%; height: 100%; display: block; }
.dl-info { min-width: 0; }
.dl-info h2 { margin: 0 0 4px; font: 700 1.125rem/1.25 var(--display); letter-spacing: -0.01em; }
.dl-info h2 a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .dl-info h2 a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.dl-info .fine { margin: 0; }
.dl-btn { white-space: nowrap; }
.dl-foot { margin-top: 18px; }
.dl-empty { max-width: 520px; padding: 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.dl-empty p { margin: 0 0 16px; color: var(--ink-2); }
@media (max-width: 560px) {
  .dl-row { grid-template-columns: 96px 1fr; gap: 12px 14px; padding: 10px; }
  .dl-btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

.guide { display: grid; gap: clamp(48px, 6vw, 72px); }
.guide-before { max-width: 760px; padding: 24px 28px 22px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.guide-before h2 { margin: 0 0 12px; font-size: 1.25rem; }
.guide-before ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.guide-before li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.55; }
.guide-before li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--mint-soft); box-shadow: inset 0 0 0 1.5px var(--mint); }
.guide-before .fine { line-height: 1.5; max-width: 46em; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 6vw, 80px); }
.guide-step { display: grid; gap: 20px; align-items: start; }
.guide-text { position: relative; max-width: 34em; }
.guide-num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo-ink); font: 700 1rem/1 var(--display); font-variant-numeric: tabular-nums; }
.guide-text h2 { margin: 0 0 8px; font-size: clamp(1.375rem, 2vw, 1.625rem); }
.guide-text p { color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.guide-text strong { color: var(--ink); font-weight: 600; }
.guide-note { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--line-2); font-size: 1rem; }
.guide-undo { padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
@media (min-width: 1024px) {
  .guide-step { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; }
  .guide-text { position: sticky; top: 96px; padding-top: 6px; }
}

/* a real wp-admin picture on a white card; the ring and the cursor are placed by /assets/install.css */
.shot { margin: 0; padding: 8px; border-radius: var(--r-win); background: var(--card); box-shadow: var(--lift); }
.shot-frame { position: relative; display: block; border-radius: var(--r-sm); text-decoration: none; }
.shot-img { width: 100%; height: auto; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); }
.shot-frame:focus-visible { outline-offset: 4px; }
.shot-ring { position: absolute; left: calc(var(--x) * 100% - 6px); top: calc(var(--y) * 100% - 6px); width: calc(var(--w) * 100% + 12px); height: calc(var(--h) * 100% + 12px); border: 2.5px solid var(--mint); border-radius: 8px; box-shadow: 0 0 0 3px rgb(47 194 122 / 0.16), 0 0 18px 2px rgb(47 194 122 / 0.32); pointer-events: none; }
/* the cursor's point (see .shot-arrow img in install.css) sits on a corner of the ring, 2.5px in, on the border's curve */
.shot-arrow { position: absolute; width: clamp(26px, 4.2%, 46px); pointer-events: none; transition: transform 300ms var(--ease-out); }
.shot-arrow img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgb(21 20 15 / 0.28)); }
.shot-br { left: calc((var(--x) + var(--w)) * 100% + 3.5px); top: calc((var(--y) + var(--h)) * 100% + 3.5px); }
.shot-bl { left: calc(var(--x) * 100% - 3.5px); top: calc((var(--y) + var(--h)) * 100% + 3.5px); }
.shot-tr { left: calc((var(--x) + var(--w)) * 100% + 3.5px); top: calc(var(--y) * 100% - 3.5px); }
.shot-tl { left: calc(var(--x) * 100% - 3.5px); top: calc(var(--y) * 100% - 3.5px); }
/* app.js: a picture still below the fold starts with its cursor 6px back and settles onto the ring when it scrolls in */
.shot-armed .shot-arrow { transform: translate(var(--ax), var(--ay)); transition: none; }
.shot-armed.shot-in .shot-arrow { transform: none; transition: transform 300ms var(--ease-out); }
@media (max-width: 560px) {
  .shot { padding: 5px; border-radius: 14px; }
  .shot-frame, .shot-img { border-radius: 9px; }
  .guide-before { padding: 20px 18px 18px; }
}
.smaller { margin-top: 14px; display: grid; gap: 6px; justify-items: start; }
.dl-btns { display: grid; gap: 6px; justify-items: end; }
.dl-small { font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 640px) { .dl-btns { grid-column: 1 / -1; justify-items: stretch; } .dl-small { text-align: center; } }

/* ---------- logo hover (2026-11-22): the 3D tile tips onto its bottom right corner, spins a full turn, drops
   back flat. The rendered strip (58 frames) sits exactly over the flat S; frame 0 and the last frame match it. */
.mark-3d { --s: 30px; position: relative; display: inline-flex; flex: none; width: var(--s); height: var(--s); }
.mark-3d .mark { transition: opacity 120ms; }
.mark-seq { position: absolute; width: calc(var(--s) / 0.4833); height: calc(var(--s) / 0.4833); left: calc(var(--s) / 0.4833 * -0.2583); top: calc(var(--s) / 0.4833 * -0.3167); background: url("/assets/3d/logo-tip.webp") 0 0 / 5800% 100% no-repeat; opacity: 0; pointer-events: none; transition: opacity 120ms; }
.mark-3d.is-moving .mark { opacity: 0; }
.mark-3d.is-moving .mark-seq { opacity: 1; }

/* ---------- signed-in shell (2026-11-22): a solid ink sidebar (brand, four places, the plan, the account) and the
   pages on paper beside it. Under 900px the sidebar folds into a compact ink bar with the four places under it. ---------- */
body.signed-in { background: var(--bg); }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: linear-gradient(90deg, var(--side) 247px, var(--side-edge) 247px 248px, var(--bg) 248px); }
.side { position: sticky; top: 0; z-index: 20; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 16px; background: var(--side); color: #fff; box-shadow: inset -1px 0 0 var(--side-edge); }
.side :focus-visible { outline-color: var(--mint); }
.side .brand { align-self: flex-start; padding: 0 8px; color: #fff; font-size: 1.25rem; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 12px; color: rgb(255 255 255 / 0.72); font-weight: 600; font-size: 0.9375rem; text-decoration: none; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { background: rgb(255 255 255 / 0.06); color: #fff; } }
.side-nav a[aria-current="page"] { background: rgb(255 255 255 / 0.1); color: #fff; }
.ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgb(255 255 255 / 0.08); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-nav a[aria-current="page"] .ic { background: var(--mint); color: var(--on-accent); }
.n-short { display: none; }
.side-plan { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 16px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); color: #fff; text-decoration: none; transition: background-color 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .side-plan:hover { background: rgb(255 255 255 / 0.1); } }
.side-plan .ring { width: 44px; height: 44px; flex: none; }
.side-plan b { display: block; font: 800 1rem/1.2 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.side-plan span span { font-size: 0.8125rem; line-height: 1.35; color: rgb(255 255 255 / 0.7); }
.side-plan-warn b { color: var(--pop); }
.side .me { margin-top: auto; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.side .me summary { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: 48px; padding: 0 10px; border-radius: 12px; color: #fff; font-weight: 600; font-size: 0.9375rem; }
@media (hover: hover) and (pointer: fine) { .side .me summary:hover { background: rgb(255 255 255 / 0.06); } }
.side .avatar { width: 32px; height: 32px; background: #fff; color: var(--side); font-size: 0.875rem; }
.side .me-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; min-width: 220px; color: var(--ink); }
.side .me-menu :focus-visible { outline-color: var(--indigo); }
.signed-in .page { width: 100%; max-width: 1320px; margin: 0 auto; padding: 44px 56px 80px; min-width: 0; }
.main-head { display: flex; margin-bottom: 24px; }
.signed-in .rail.is-pinned, .signed-in .guide-text { top: 32px; }
@media (max-width: 1100px) { .signed-in .page { padding: 36px 32px 72px; } }
@media (max-width: 899px) {
  .shell { display: block; background: none; }
  .side { position: relative; height: auto; box-shadow: inset 0 -1px 0 var(--side-edge); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand me" "nav nav"; align-items: center; gap: 6px 8px; padding: max(8px, env(safe-area-inset-top)) 12px 10px; }
  .side .brand { grid-area: brand; padding: 0 4px; font-size: 1.1875rem; }
  .side-plan { display: none; }
  .side .me { grid-area: me; margin: 0; padding: 0; border: 0; }
  .side .me summary { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .me-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .side .me-menu { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; }
  .side-nav { grid-area: nav; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .side-nav a { flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; padding: 6px 2px; font-size: 0.75rem; text-align: center; }
  .side-nav .ic { width: 26px; height: 26px; }
  .n-long { display: none; }
  .n-short { display: inline; }
  .signed-in .page { padding: 24px 16px 64px; }
  .main-head .switch summary { max-width: calc(100vw - 32px); }
}
/* the logo's text may go on the narrowest phones; the logo itself (.mark-3d) never does */
@media (max-width: 340px) { .side .brand > span:not(.mark-3d) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* ---------- Your sites (2026-11-22): the head, one featured card (the next step), the Site library ---------- */
.sites-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 20px; margin-bottom: 28px; }
.sites-head h1 { font-size: clamp(2.75rem, 5vw, 4rem); line-height: 0.95; letter-spacing: -0.045em; }
.sites-head p { margin-top: 10px; color: var(--ink-2); }
.feat { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 44px; border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1.5px var(--outline); }
.feat[hidden] { display: none; }
.hexbg { --paper: var(--paper-feat); background:
  var(--hex) 0 0 / 42px auto,
  radial-gradient(60% 70% at 15% 10%, rgb(255 106 61 / 0.18), transparent 70%),
  radial-gradient(60% 70% at 90% 90%, rgb(123 47 190 / 0.14), transparent 70%),
  var(--paper); }
.feat-done .hexbg { --paper: var(--paper-done); }
.feat-build .hexbg { --paper: var(--paper-build); }
.feat-pic { position: relative; display: grid; place-items: center; min-height: 380px; padding: 34px; overflow: hidden; border-right: 1.5px solid var(--outline); }
.feat-frame { position: relative; display: block; width: 86%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1.5px var(--outline), 0 26px 46px -24px rgb(21 20 15 / 0.6); transform: rotate(-2deg); }
.feat-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feat-frame.is-grey .feat-img { filter: grayscale(1); opacity: 0.55; }
.feat-obj { position: absolute; height: auto; pointer-events: none; filter: drop-shadow(0 14px 14px rgb(21 20 15 / 0.28)); }
.obj-padlock { width: 118px; right: 26px; bottom: 18px; transform: rotate(-8deg); }
.obj-key { width: 120px; right: 22px; top: 16px; transform: rotate(14deg); }
.obj-block { width: 170px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); }
.bars { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 6px; }
.bars i { width: 46px; height: 6px; border-radius: 999px; background: var(--indigo); opacity: 0.35; }
.bars i:first-child { opacity: 1; }
.bars i:nth-child(2) { opacity: 0.7; }
.feat-tx { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 36px 40px; }
.eyebrow { font: 700 0.75rem/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.feat-tx h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.02; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.feat-tx h2:focus { outline: none; }
.feat-tx h2 a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .feat-tx h2 a:hover, .lib-row .rname a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; } }
.fmeta { font-size: 0.9375rem; color: var(--ink-2); overflow-wrap: anywhere; }
.fmeta a { color: inherit; text-decoration: none; }
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.facts3 span { padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.facts3 b { display: block; margin-bottom: 2px; font: 800 1.375rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.feat-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.feat .btn-ink.ring-pop { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--pop); }
.feat .btn-ink.ring-mint { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--mint); }
.feat .fine { margin: 0; }
.queue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.queue ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qlabel { margin-right: 4px; font: 700 0.75rem var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.qitem { display: inline-flex; align-items: center; gap: 8px; max-width: 230px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--outline); color: var(--ink); font: 700 0.8125rem/1.2 var(--display); text-decoration: none; transition: background-color 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .qitem:hover { background: var(--pop-soft); } }
.qthumb { position: relative; flex: none; width: 52px; height: 34px; overflow: hidden; border-radius: 999px; background: var(--bg); }
.q-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.qname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps3 { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.steps3 li { counter-increment: s; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 6px; border-radius: 50%; background: var(--mint); color: var(--on-accent); font: 800 0.75rem/1 var(--display); }
.steps3 b { color: var(--ink); }
.wait-steps.progress { margin: 4px 0; max-width: none; gap: 10px; }
.feat-empty .feat-pic { min-height: 330px; }
.feat-empty .composer { padding: 10px 10px 10px 12px; border-radius: 22px; box-shadow: inset 0 0 0 1.5px var(--outline); }
.feat-empty .composer:focus-within, .feat-empty .composer[data-state="over"], body[data-dragging] .feat-empty .composer { box-shadow: inset 0 0 0 2px var(--mint), 0 0 0 5px var(--mint-soft); transform: none; }

.lib-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1.5px solid var(--outline); }
.lib-head h2 { font-size: 1.75rem; letter-spacing: -0.03em; }
.lib-rows { list-style: none; margin: 0; padding: 0; }
.lib-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 110px auto; align-items: center; gap: 18px; padding: 14px 6px; border-bottom: 1px solid var(--line-2); }
.thumb { position: relative; display: block; padding: 3px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1.5px var(--outline); }
.row-pic { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: top; border-radius: 7px; }
.row-pic.art-fallback, .feat-img.art-fallback, .q-img.art-fallback { background: var(--bg); overflow: hidden; }
.row-pic.art-fallback { position: relative; inset: auto; }
.row-building .row-pic { filter: grayscale(1); opacity: 0.55; }
.rname { min-width: 0; }
.rname a { display: block; color: var(--ink); font: 700 1rem/1.3 var(--display); letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; }
.rname small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
.rstat { font-size: 0.875rem; }
.rdate { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ract { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; }
.ract .fine { white-space: nowrap; }
.btn-row { height: 40px; padding: 0 16px; font: 700 0.8125rem/1 var(--display); }
.btn-row svg { width: 15px; height: 15px; }
.row-del button { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: 500 0.8125rem var(--sans); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .row-del button:hover { color: var(--pop-ink); text-decoration-color: currentColor; } }
.lib-empty { margin-top: 16px; padding: 28px; border-radius: 16px; border: 1.5px dashed var(--line-2); text-align: center; color: var(--muted); }

@media (max-width: 1199px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat-pic { min-height: 300px; border-right: 0; border-bottom: 1.5px solid var(--outline); }
  .feat-frame { width: min(86%, 460px); }
}
@media (max-width: 1100px) {
  .lib-row { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "thumb name" "thumb stat" "thumb act"; gap: 4px 16px; align-items: start; }
  .lib-row .thumb { grid-area: thumb; }
  .lib-row .rname { grid-area: name; }
  .lib-row .rstat { grid-area: stat; justify-self: start; }
  .lib-row .rdate { grid-area: stat; justify-self: end; }
  .lib-row .ract { grid-area: act; justify-self: start; justify-content: flex-start; margin-top: 6px; }
}
@media (max-width: 560px) {
  .feat { border-radius: 20px; margin-bottom: 36px; }
  .feat-pic { min-height: 220px; padding: 22px; }
  .feat-tx { padding: 22px 18px 24px; }
  .obj-padlock { width: 84px; right: 12px; bottom: 8px; }
  .obj-key { width: 84px; right: 10px; top: 8px; }
  .obj-block { width: 130px; }
  .facts3 span, .steps3 li { padding: 8px 9px; }
  .facts3 b { font-size: 1.125rem; }
  .feat-acts .btn { flex: 1 1 auto; }
  .lib-row { grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) { .side-nav a, .ic, .side-plan, .qitem { transition: none; } }

/* ---------- Appearance (2026-11-22): Light, Dark, Auto (src/app/theme.ts) ---------- */
/* A three-way segmented control: in the sidebar directly above My account (on ink), and on phones inside the
   account menu (on paper). One form of submit buttons; app.js switches without a request. */
.theme { display: grid; gap: 8px; margin: 0; }
.theme-label { font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.theme-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 999px; }
.theme-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 34px; padding: 0 6px; border: 0; border-radius: 999px; background: none; font: 600 0.8125rem/1 var(--sans); cursor: pointer; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.theme-seg button:active { transform: scale(0.97); }
.theme-seg button:focus-visible { border-radius: 999px; outline-offset: 1px; }
.theme-seg svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-seg svg .fill { fill: currentColor; stroke: none; }
@media (pointer: coarse) { .theme-seg button { min-height: 44px; } }
/* on ink: the sidebar's own whites, same in both themes */
.theme-side { margin-top: auto; padding: 14px 2px 0; border-top: 1px solid rgb(255 255 255 / 0.12); }
.theme-side .theme-label { padding: 0 8px; color: rgb(255 255 255 / 0.62); }
.theme-side .theme-seg { background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.theme-side button { color: rgb(255 255 255 / 0.72); }
.theme-side button[aria-pressed="true"] { background: rgb(255 255 255 / 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
@media (hover: hover) and (pointer: fine) { .theme-side button:not([aria-pressed="true"]):hover { background: rgb(255 255 255 / 0.06); color: #fff; } }
.side .theme-side + .me { margin-top: -10px; padding-top: 0; border-top: 0; }
/* on paper, inside the account menu (phones) */
.theme-menu { display: none; padding: 4px 6px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.theme-menu .theme-label { padding: 0 6px; color: var(--muted); }
.theme-menu .theme-seg { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.me-menu .theme-seg button { width: auto; min-height: 40px; padding: 0 6px; gap: 5px; justify-content: center; border-radius: 999px; color: var(--ink-2); font: 600 0.8125rem/1 var(--sans); }
.me-menu .theme-seg button:hover { background: none; color: var(--ink); }
.me-menu .theme-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(21 20 15 / 0.1), inset 0 0 0 1px var(--line-2); }
@media (pointer: coarse) { .me-menu .theme-seg button { min-height: 44px; } }
@media (max-width: 899px) { .theme-side { display: none; } .theme-menu { display: grid; } }
/* switching: a short colour fade on everything (app.js adds the class for ~300 ms); none under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .theme-fading, .theme-fading *, .theme-fading *::before, .theme-fading *::after { transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out), fill 240ms var(--ease-out), stroke 240ms var(--ease-out) !important; }
}

/* ---------- converting animation (2026-11-23): a page blueprint that builds itself with the real stages.
   p1 opening: the outline draws in ink; p2 reading: text lines appear; p3 sorting: the highlighter marks prices and
   hours; p4 building: WordPress block frames with + handles snap on and the colours fill in. ---------- */
.bp { position: relative; width: min(86%, 460px); aspect-ratio: 4 / 3; margin: 0 auto; }
.bp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bp-ln { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out); }
.bp.p1 .bp-ln { stroke-dashoffset: 0; }
.bp-tx { fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease-out), opacity .3s; }
.bp.p2 .bp-tx { opacity: .22; transform: none; }
.bp-hl { fill: var(--pop); opacity: 0; transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease-out), opacity .2s; }
.bp.p3 .bp-hl { opacity: .55; transform: none; }
.bp-blk { fill: none; stroke: var(--indigo); stroke-width: 1.8; opacity: 0; transition: opacity .3s; }
.bp-plus { fill: var(--indigo); opacity: 0; transition: opacity .3s; }
.bp.p4 .bp-blk, .bp.p4 .bp-plus { opacity: 1; }
.bp-fill { opacity: 0; transition: opacity .6s; }
.bp-fill.f-i { fill: var(--indigo-soft); } .bp-fill.f-p { fill: var(--pop-soft); } .bp-fill.f-m { fill: var(--mint-soft); }
.bp.p4 .bp-fill { opacity: 1; }
.bp .d1 { transition-delay: .15s; } .bp .d2 { transition-delay: .3s; } .bp .d3 { transition-delay: .45s; } .bp .d4 { transition-delay: .6s; }
.bp-badge { position: absolute; right: -6px; bottom: -10px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 .75rem var(--display); opacity: 0; transform: translateY(8px); transition: opacity .4s .6s, transform .5s .6s var(--ease-out); }
.bp.p4 .bp-badge { opacity: 1; transform: none; }
/* while a stage runs, the newest part breathes a little so the screen never looks frozen */
.bp.p1:not(.p2) .bp-ln, .bp.p2:not(.p3) .bp-tx, .bp.p3:not(.p4) .bp-hl, .bp.p4 .bp-plus { animation: bpBreathe 1.6s ease-in-out infinite; }
@keyframes bpBreathe { 50% { opacity: .55; } }
.feat-build .bp { width: 84%; }
.wait-bp { margin: 26px auto 8px; max-width: 460px; }
/* "Convert them too?" while the site converts (Marro 2026-11-24) */
.motion-ask { max-width: 460px; margin: 22px auto 0; padding: 16px 18px; border-radius: var(--r-field); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; }
.motion-ask[hidden], .motion-chosen[hidden], .motion-found[hidden] { display: none; }
.motion-ask.is-new { animation: motion-ask-in 420ms var(--ease-out) both; }
.motion-ask-q { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink); font-weight: 600; }
.motion-ask-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--indigo); vertical-align: 1px; }
.motion-ask-chip { height: 24px; margin-left: 4px; padding: 0 10px; font-size: 0.75rem; vertical-align: 1px; }
.motion-ask-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.motion-ask-btns form { margin: 0; }
.motion-ask-btns .btn { height: 44px; padding: 0 18px; font-size: 0.875rem; }
.motion-chosen { max-width: 460px; margin: 16px auto 0; }
.motion-found { margin: 6px 0 4px; font-size: 0.875rem; font-weight: 600; }
.motion-found a { color: var(--indigo); }
@keyframes motion-ask-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .motion-ask.is-new { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .bp-ln, .bp-tx, .bp-hl, .bp-blk, .bp-plus, .bp-fill, .bp-badge { transition: none; }
  .bp .bp-ln, .bp .bp-tx, .bp .bp-hl, .bp .bp-plus { animation: none; }
}
