/* Shared theme: Sweetie 16 by GrafxKid and Vanilla Milkshake by Space Sandwich.
   https://lospec.com/palette-list/sweetie-16
   https://lospec.com/palette-list/vanilla-milkshake
   Palette-only colours; pastels are surfaces, dark colours carry the text. */

:root {
  /* Sweetie 16 palette */
  --night: #1a1c2c;
  --plum: #5d275d;
  --berry: #b13e53;
  --lime: #a7f070;
  --green: #38b764;
  --teal: #257179;
  --navy: #29366f;
  --blue: #3b5dc9;
  --sky: #41a6f6;
  --cyan: #73eff7;
  --white: #f4f4f4;
  --mist: #94b0c2;
  --slate: #566c86;
  --ink: #333c57;

  /* Semantic roles */
  --bg: var(--white);
  --bg-alt: var(--tint);
  --card: var(--white);
  --card-2: var(--tint);
  --line: var(--mist);
  --line-strong: var(--slate);
  --text: var(--night);
  --text-2: var(--ink);
  --muted: var(--ink);
  --subtle: var(--ink);
  --accent: var(--plum);
  --accent-hover: var(--night);
  --accent-edge: var(--night);
  --accent-ink: var(--white);
  --link: var(--plum);
  --ok: var(--teal);
  --danger: var(--berry);
  --thumb-bg: var(--white);
  --tint: #94b0c210;
  --surface-soft: #3b5dc909;
  --surface-selected: #3b5dc910;
  --glass: #f4f4f4f2;
  --overlay: #1a1c2c66;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px #1a1c2c14, 0 8px 24px #1a1c2c17;
  --shadow-lg: 0 2px 6px #1a1c2c17, 0 20px 50px #1a1c2c24;
  --font: 'Nunito', system-ui, sans-serif;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;

  /* Vanilla Milkshake by Space Sandwich, Lospec. Pastels are surfaces. */
  --charcoal: #28282e;
  --mauve: #6c5671;
  --oat: #d9c8bf;
  --lavender: #b0a9e4;
  --powder: #accce4;
  --mint: #b3e3da;
  --pink: #feaae4;
  --sage: #87a889;
  --pistachio: #b0eb93;
  --lemon: #e9f59d;
  --vanilla: #fff7a0;
  --shadow-colour: #1a1c2c18;
  --shadow-deep: #1a1c2c30;
  --plum-wash: #5d275d0c;
  --paper-glass: #f4f4f4f2;
  --lift-shadow: 0 14px 30px var(--shadow-colour);
  --panel-shadow: 0 4px 0 var(--shadow-colour), 0 12px 36px var(--shadow-colour);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--link); }
button, select, input { font: inherit; color: inherit; }
img { max-width: 100%; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, .btn, select, input:not([type=checkbox]):not([type=range]):not([type=color]) { min-height: 44px; }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; box-shadow: none; }
input[type=checkbox] { appearance: none; width: 18px; height: 18px; flex: none; margin: 0; border: 2px solid var(--slate); border-radius: 4px; background: var(--white); display: inline-grid; place-content: center; cursor: pointer; }
input[type=checkbox]:checked { background: var(--blue); border-color: var(--blue); }
input[type=checkbox]:checked::before { content: ''; width: 8px; height: 4px; border: solid var(--white); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
input[type=range] { min-height: 40px; cursor: pointer; accent-color: var(--blue); }
input[type=range] { appearance: none; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: var(--slate); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--slate); }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -8px; border: 2px solid var(--white); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--white); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
input[type=color] { min-height: 44px; }
select { max-width: 100%; }
label.check { min-height: 40px; }
a { text-underline-offset: 3px; }

/* one visible focus ring everywhere */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-primary:focus-visible, button.primary:focus-visible, [aria-pressed="true"]:focus-visible { outline-color: var(--night); box-shadow: 0 0 0 2px var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 11px 20px; border: 2px solid transparent;
  transition: transform .12s, background .12s, border-color .12s, box-shadow .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 var(--accent-edge); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--card-2); }
.btn-dark { background: var(--night); color: var(--white); }
.btn-dark:hover { background: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 14px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--vanilla); color: var(--night); font-weight: 800; font-size: 13px; }
.eyebrow { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; color: var(--berry); }

/* top bar, shared by the landing page */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .in { min-height: 72px; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 20px; }
.logo { display: flex; min-height: 44px; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--vanilla); display: grid; place-items: center; box-shadow: 0 3px 0 var(--blue); flex: none; }
.logo .mark svg { width: 22px; height: 22px; }
.logo b { font: 600 21px var(--display); letter-spacing: .01em; }
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.topnav a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.topnav a:not(.btn):hover { background: var(--card-2); }
@media (max-width: 760px) { .topnav a.hide-sm { display: none; } }

/* dialog, shared (paywall) */
dialog.sheet { border: 0; border-radius: 22px; padding: 0; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); width: min(860px, 94vw); max-height: 92vh; }
dialog.sheet::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
@media (max-width: 600px) {
  dialog.sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
}

/* pricing: billing switch, plan cards, founder spots, one-project pass */
.pricing { display: grid; gap: 22px; }
.billing { justify-self: center; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-strong); }
.billing button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 800; cursor: pointer; color: var(--text-2); }
.billing button[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.billing .save { background: var(--vanilla); color: var(--night); border-radius: 999px; padding: 2px 8px; font-size: 12px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; min-width: 0; }
.plan.featured { border-color: var(--blue); box-shadow: var(--shadow); }
.plan.dark { background: var(--night); color: var(--white); border-color: var(--blue); }
.plan.dark .ptag { background: var(--ink); color: var(--white); }
.plan.dark .bill, .plan.dark .pnote { color: var(--mist); }
.plan.dark .price, .plan.dark .pname { color: var(--white); }
.plan.dark li::before { color: var(--mist); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--vanilla); color: var(--night); font-weight: 800; font-size: 12px; padding: 3px 12px; border-radius: 999px; white-space: nowrap; letter-spacing: .04em; text-transform: uppercase; }
.plan .tag-dark { background: var(--night); color: var(--white); }
.plan .pname { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.plan .ptag { align-self: flex-start; background: var(--vanilla); color: var(--night); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 800; }
.plan .price { font: 600 42px/1 var(--display); margin-top: 6px; }
.plan .price small { font: 700 15px var(--font); }
.plan .bill { margin: 0; color: var(--muted); font-size: 13.5px; }
.plan .worth { align-self: flex-start; background: var(--white); color: var(--teal); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 800; }
.plan .fbar { height: 8px; border-radius: 99px; background: var(--white); overflow: hidden; }
.plan .fbar i { display: block; height: 100%; background: var(--blue); }
.plan ul { list-style: none; padding: 12px 0 0; margin: 4px 0 6px; display: grid; gap: 9px; font-size: 15px; border-top: 1px solid var(--line); }
.plan.dark ul { border-color: var(--ink); }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 900; }
.plan li.no { color: var(--berry); }
.plan li.no::before { content: '✕'; color: var(--berry); }
.plan .pnote { margin: 0; color: var(--muted); font-size: 13.5px; }
.plan .btn { margin-top: auto; }
.plan.dark .btn-ghost { color: var(--white); border-color: var(--mist); }
.plan.dark .btn-ghost:hover { background: var(--navy); }
/* Functional control edges must contrast with white surfaces. */
.btn-ghost, .billing, .signup input[type=email] { border-color: var(--slate); }
input::placeholder { color: var(--slate); opacity: 1; }
input { accent-color: var(--blue); }
.passbar { display: flex; gap: 18px; align-items: center; justify-content: space-between; background: var(--card); border: 2px dashed var(--line-strong); border-radius: 20px; padding: 18px 22px; flex-wrap: wrap; }
.passbar p { margin: 4px 0 0; color: var(--muted); max-width: 760px; }
@media (max-width: 1100px) { .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans, .plans-4 { grid-template-columns: minmax(0, 1fr); } }

/* newsletter signup */
.signup { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 220px; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--card); }
.signup-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.signup-fine { font-size: 13px; color: var(--subtle); margin: 8px 0 0; }

/* pricing inside the paywall sheet: tighter cards */
dialog.sheet { width: min(1040px, 96vw); }
dialog.sheet .plan { padding: 20px 16px; }
dialog.sheet .plan .price { font-size: 32px; }
.plan .price small { white-space: nowrap; }

/* Keep form boundaries visible and focus rings clear on dark plan cards. */
.signup input[type=email] { border-color: var(--slate); }
.plan.dark .btn-primary { border-color: var(--white); }
.plan.dark :focus-visible { outline-color: var(--white); }

/* Shared finishing touches: restrained surfaces, clear states and roomy controls. */
.btn { line-height: 1.3; }
.btn:disabled:hover { transform: none; }
.btn-ghost:hover { background: var(--surface-soft); border-color: var(--blue); }
.btn-dark:focus-visible { outline-color: var(--blue); }
.billing button { min-height: 44px; }
.billing button:hover:not([aria-pressed="true"]) { background: var(--surface-soft); }
.plan { border-radius: var(--radius); gap: var(--space-3); }
.plan ul { line-height: 1.5; }
.plan .bill { min-height: 3em; }
.passbar { border-color: var(--slate); border-radius: var(--radius); }
.signup input[type=email]:hover { border-color: var(--blue); }
.signup .btn { flex: 1 1 auto; }
.signup-fine { line-height: 1.6; }
.sheet-intro { padding: 32px 28px 8px; text-align: center; }
.sheet-intro h2 { font: 600 32px/1.15 var(--display); margin: 16px 0 8px; }
.sheet-intro p { color: var(--muted); margin: 0 auto; max-width: 56ch; }
.sheet-plans { padding: 24px 28px; }
.sheet-key { display: flex; gap: 8px; margin: 0 28px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sheet-key input { flex: 1 1 220px; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 2px solid var(--slate); background: var(--card); }
.sheet-message { padding: 0 28px; min-height: 1.5em; margin: 8px 0; color: var(--muted); font-size: 14px; }
.sheet-footer { display: flex; justify-content: center; padding: 0 28px 24px; }
.toast { overflow-wrap: anywhere; line-height: 1.45; }
@media (max-width: 600px) {
  dialog.sheet { width: 100vw; max-width: 100vw; }
  .sheet-intro { padding: 24px 16px 8px; }
  .sheet-plans { padding: 24px 16px; }
  .sheet-key { margin-inline: 16px; }
  .sheet-message { padding-inline: 16px; }
  .billing { max-width: 100%; }
  .billing button { padding-inline: 12px; }
  .topbar .in { min-height: 64px; }
  .logo { min-width: 0; gap: 8px; }
  .logo b { white-space: normal; font-size: 17px; line-height: 1.1; max-width: 140px; }
  .topnav .btn { font-size: 13px; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Premium workshop — shared surfaces and interaction language. */
.btn { border-radius: 14px; padding: 13px 22px; transition: transform .18s, box-shadow .18s, background .18s; }
.btn-primary { box-shadow: 0 4px 0 var(--accent-edge), 0 8px 18px var(--shadow-colour); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--white); }
.btn-sm { padding: 10px 16px; }
.pill { background: var(--powder); border: 1px solid var(--plum); color: var(--plum); padding: 7px 13px; }
.eyebrow { color: var(--plum); letter-spacing: .16em; }
.topbar { background: var(--paper-glass); border-bottom-color: var(--plum); }
.logo .mark, .brand .mark { background: var(--lavender); color: var(--night); box-shadow: 3px 3px 0 var(--plum); transform: rotate(-5deg); }
.topnav a:not(.btn):hover { background: var(--powder); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; box-shadow: 0 0 0 2px var(--white); }
input::placeholder { color: var(--ink); }

/* Designer: a workshop sidebar, studio stage and compact floating tools. */
/* Existing shared pricing and signup finishes, retained for the designer. */
.plan { background: var(--white); border-color: var(--plum); border-width: 1px; border-radius: 22px; padding: 26px 22px; box-shadow: 0 4px 0 var(--shadow-colour); }
.plan.featured { border: 2px solid var(--plum); box-shadow: 0 6px 0 var(--plum); }
.plan.dark { border-color: var(--night); }
.plan .pname { color: var(--plum); }
.plan .ptag { background: var(--powder); color: var(--plum); }
.plan .price { font-size: 46px; letter-spacing: -.03em; }
.plan .worth { color: var(--night); background: var(--mint); }
.plan .tag { background: var(--plum); color: var(--white); padding: 5px 14px; }
.plan .tag-dark { background: var(--vanilla); color: var(--night); }
.plan .bill, .plan .pnote { color: var(--ink); }
.plan li::before { color: var(--night); }
.plan li.no { color: var(--plum); }
.plan li.no::before { color: var(--plum); }
.plan.dark .btn-ghost { background: var(--ink); }
.plan.dark .btn-primary { background: var(--plum); }
.billing { background: var(--white); border-color: var(--plum); box-shadow: 0 3px 0 var(--shadow-colour); }
.billing button[aria-pressed="true"] { background: var(--plum); color: var(--white); }
.passbar { background: var(--white); border-color: var(--plum); border-radius: 20px; }
.signup input[type=email] { background: var(--white); border-color: var(--ink); border-radius: 12px; }
.signup-msg, .signup-fine { color: var(--ink); }
.designer header.bar { background: var(--white); border-bottom: 2px solid var(--plum); }
.designer .steps { background: var(--powder); padding: 4px; border-radius: 14px; }
.designer .steps button { color: var(--ink); border-radius: 10px; }
.designer .steps button[aria-current="step"] { background: var(--plum); color: var(--white); box-shadow: 0 2px 0 var(--night); }
.designer .steps button[aria-current="step"] b { background: var(--white); border-color: var(--white); color: var(--plum); }
.designer .usage { background: var(--mint); border-color: var(--teal); color: var(--night); border-radius: 12px; }
.designer .usage.out { background: var(--powder); }
.designer aside#panel { background: var(--white); border-right: 1px solid var(--plum); }
.designer .pane { padding: 26px 22px; }
.designer .pane h2 { font-size: 25px; letter-spacing: -.02em; }
.designer .pane h2 .n { background: var(--plum); border-color: var(--plum); color: var(--white); border-radius: 9px; }
.designer .pane .lead { font-size: 14px; margin-bottom: 22px; }
.designer .toolbar { padding-bottom: 20px; border-bottom: 1px solid var(--plum); gap: 10px; margin-bottom: 20px; }
.designer #addMiddle { background: var(--mint); border-color: var(--teal); }
.designer #matchWalls { background: var(--powder); border-color: var(--plum); }
.designer .inside { background: var(--lavender); border-color: var(--plum); border-radius: 16px; padding: 12px 16px 18px; }
.designer .inside legend { background: var(--plum); color: var(--white); border-radius: 8px; padding: 5px 10px; }
.designer .card { background: var(--white); border-radius: 16px; border-color: var(--slate); box-shadow: 0 3px 0 var(--shadow-colour); margin-bottom: 10px; }
.designer .card .head { padding: 14px 12px; }
.designer .card .kind { color: var(--plum); }
.designer .card.sel { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum), var(--lift-shadow); }
.designer .card.sel .head { background: var(--powder); }
.designer .thumb { width: 54px; height: 54px; background: var(--mint); }
.designer .slot { border: 0; color: var(--plum); background: var(--plum-wash); }
.designer .slot:hover { background: var(--powder); }
.designer .tabs { background: var(--white); padding-inline: 8px; }
.designer .tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--plum); color: var(--plum); }
.designer .chips .c { border-color: var(--ink); }
.designer .chips .c.on { border-color: var(--night); box-shadow: 0 0 0 2px var(--white) inset; }
.designer .sig, .designer .pgrid button, .designer .tile { background: var(--white); border-color: var(--slate); }
.designer .sig img, .designer .pgrid img, .designer .tile img { background: var(--mint); }
.designer .sig[data-sig] img { background: var(--tower-tint, var(--white)) !important; } /* transparent tower renders on their own tint */
.designer .sig:nth-child(3n + 2) img, .designer .pgrid button:nth-child(3n + 2) img, .designer .tile:nth-child(3n + 2) img { background: var(--lavender); }
.designer .sig:nth-child(3n) img, .designer .pgrid button:nth-child(3n) img, .designer .tile:nth-child(3n) img { background: var(--powder); }
.designer .sig.random { background: var(--vanilla); }
.designer .sig:hover, .designer .tile:hover, .designer .pgrid button:hover { background: var(--powder); border-color: var(--plum); }
.designer .sig[aria-pressed="true"], .designer .tile[aria-pressed="true"], .designer .pgrid button[aria-pressed="true"] { border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum); }
.designer #viewport { background: radial-gradient(ellipse at 50% 36%, var(--white) 10%, var(--powder) 72%, var(--lavender) 120%); }
.designer .glass { background: var(--paper-glass); border-color: var(--slate); border-radius: 16px; box-shadow: var(--panel-shadow); }
.designer .stats { border-top: 4px solid var(--plum); }
.designer .stats .big { color: var(--plum); }
.designer .heightctl button { background: var(--powder); border-color: var(--plum); }
.designer .vtools { gap: 4px; }
.designer .vtools button:hover { background: var(--powder); }
.designer .status .dot { background: var(--teal); }
.designer .status.busy .dot { background: var(--plum); }
.designer details.extra { background: var(--mint); border-color: var(--teal); }
.designer details.extra > summary { min-height: 40px; }
.designer .menu .pop { background: var(--white); border-color: var(--plum); padding: 8px; }
.designer .pop button:hover { background: var(--powder); }
.designer .usage-line { background: var(--mint); border-color: var(--teal); }

/* Dialogs and newsletter are styled here for both entry points. */
dialog, dialog.sheet { background: var(--white); border: 1px solid var(--plum); border-radius: 24px; box-shadow: 0 10px 0 var(--shadow-deep), var(--shadow-lg); }
dialog::backdrop, dialog.sheet::backdrop { background: var(--overlay); backdrop-filter: blur(8px); }
.designer dialog .dh { background: var(--powder); border-bottom: 1px solid var(--plum); padding: 18px 20px; }
.designer dialog .dh h3 { font-size: 25px; }
.sheet-intro { background: var(--powder); border-bottom: 1px solid var(--plum); padding: 30px 28px 24px; }
.sheet-intro h2 { color: var(--plum); font-size: 36px; }
.sheet-intro p { color: var(--ink); }
.sheet-key { background: var(--mint); border: 1px solid var(--teal); border-radius: 16px; padding: 16px; }
.sheet-key input { border-radius: 10px; background: var(--white); }
.sheet-message { color: var(--ink); }
.sheet-footer { padding-top: 8px; }
.designer .dlbody { padding: 24px 20px; gap: 22px; }
.designer .seg button { background: var(--white); }
.designer .seg button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); box-shadow: 0 0 0 2px var(--plum); color: var(--white); }
.designer .dllist { border-color: var(--slate); background: var(--white); }
.designer .dllist label:has(input:checked) { background: var(--powder); }
.designer #dlSignup { padding: 18px; background: var(--mint); border: 1px solid var(--teal); border-radius: 16px; }
.designer .dlfoot { padding: 16px 20px 22px; border-top: 1px solid var(--slate); background: var(--powder); }
.toast { border: 1px solid var(--vanilla); border-left: 5px solid var(--vanilla); padding: 15px 22px; border-radius: 14px; background: var(--night); color: var(--white); box-shadow: var(--shadow-lg); }
.designer .toast.err { background: var(--plum); }
@media (max-width: 1100px) and (min-width: 981px) {
  .designer .brand b { font-size: 16px; }
  .designer header.bar { gap: 8px; padding-inline: 10px; }
  .designer .steps button { padding-inline: 8px; }
  .designer .usage { padding-inline: 8px; font-size: 12px; }
}
@media (max-width: 980px) {
  .designer .vtools { border-radius: 12px; }
  .designer .status { border-radius: 12px; }
}
@media (max-width: 760px) {
  .landing .wrap { padding-inline: 20px; }
  .designer .steps { padding: 2px; }
  .designer header.bar { gap: 4px; }
  .designer #nextBtn { padding-inline: 10px; }
  .designer .steps button { min-width: 40px; }
  .designer .pane { padding: 24px 16px; }
  .designer .stats { border-top-width: 3px; border-radius: 12px; }
  .designer dialog .dh { padding: 14px 16px; }
  .designer dialog .dh h3 { font-size: 22px; }
  .designer #lib, .designer #dl, dialog.sheet { border-radius: 0; }
}
@media (max-width: 600px) {
  .landing .hero { padding-top: 38px; }
  .landing .hero h1 { font-size: clamp(42px, 11vw, 60px); }
  .landing .hero .grid { gap: 26px; }
  .landing .hero-art { width: 90%; }
  .landing .hero-art::after { width: 52px; height: 52px; font-size: 40px; }
  .landing .stats { margin-top: 36px; }
  .landing .stat { padding: 18px; }
  .landing .stat:nth-child(2) { border-right: 0; }
  .landing .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--plum); }
  .landing .stat b { font-size: 32px; }
  .landing .tower div { padding: 12px; }
  .landing .tower b { font-size: 17px; }
  .landing .mail { padding: 24px; box-shadow: 4px 4px 0 var(--teal); }
  .landing .band { padding: 28px; box-shadow: 4px 4px 0 var(--plum); }
  .sheet-intro { padding: 24px 16px; }
  .sheet-intro h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Home page 2026: Sweetie 16 / GrafxKid + Vanilla Milkshake / Space Sandwich.
   Local roles only: shared designer tokens above remain unchanged. */
.landing { --home-display: 'Oswald', sans-serif; --home-accent: var(--cyan); --home-dark: var(--night); background: var(--white); }
.landing .wrap { width: 100%; max-width: 1320px; margin: auto; padding-inline: 40px; }
.landing section { padding-block: 86px; }
.landing h1, .landing h2, .landing h3 { margin: 0; color: var(--night); }
.landing h2.title { font: 700 clamp(34px,4.2vw,58px)/1.08 var(--home-display); letter-spacing: -.025em; margin: 12px 0 18px; text-transform: uppercase; }
.landing .lead { color: var(--ink); font-size: 17px; max-width: 48ch; margin: 0; }
.landing .eyebrow { color: var(--plum); font-size: 12px; letter-spacing: .16em; }
.landing .section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 34px; }
.landing .section-head .lead { max-width: 34ch; padding-bottom: 18px; }
.landing .alt { background: var(--powder); border-block: 1px solid var(--mist); }
.landing .topbar { background: var(--night); border-color: var(--ink); backdrop-filter: none; }
.landing .topbar .in { max-width: 1440px; min-height: 78px; padding: 12px 32px; }
.landing .logo { color: var(--white); }
.landing .logo b { font: 600 19px/1.15 var(--display); max-width: 160px; }
.landing .logo .mark { background: var(--cyan); box-shadow: none; transform: none; border-radius: 10px; }
.landing .header-count { color: var(--mist); font-size: 11px; max-width: 130px; line-height: 1.4; border-left: 1px solid var(--slate); padding-left: 18px; }
.landing .topnav a:not(.btn) { color: var(--white); font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.landing .topnav a:not(.btn):hover { background: var(--ink); }
.landing .btn { border-radius: 999px; box-shadow: none; }
.landing .btn-primary { background: var(--cyan); color: var(--night); border-color: var(--cyan); }
.landing .btn-primary:hover { background: var(--mint); border-color: var(--mint); }
.landing :focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; box-shadow: 0 0 0 2px var(--white); }
.landing .hero :focus-visible, .landing .topbar :focus-visible, .landing .render-gallery :focus-visible { outline-color: var(--cyan); box-shadow: 0 0 0 2px var(--night); }
.landing .skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--white); color: var(--night); }
.landing .skip-link:focus { top: 12px; }
.landing .hero { background: var(--night); color: var(--white); padding: 62px 0 0; overflow: hidden; }
.landing .hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px; }
.landing .hero-copy { position: relative; z-index: 2; padding-block: 8px 40px; }
.landing .hero .eyebrow { color: var(--cyan); }
.landing .hero h1 { font: 700 clamp(46px,5.35vw,78px)/1.03 var(--home-display); letter-spacing: -.035em; max-width: none; color: var(--white); margin: 22px 0; }
.landing .hero h1 em { color: var(--cyan); font-style: normal; }
.landing .hero p.lead { color: var(--mist); font-size: 17px; max-width: 46ch; line-height: 1.7; }
.landing .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.landing .hero .btn { font-size: 14px; padding: 16px 20px; }
.landing .hero .btn-ghost { color: var(--white); background: var(--night); border-color: var(--mist); }
.landing .hero .btn-ghost:hover { background: var(--ink); }
.landing .ticks { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; font-weight: 700; color: var(--white); }
.landing .ticks span::before { content: '\2713'; color: var(--cyan); margin-right: 6px; }
.landing .hero-note { font-size: 13px; color: var(--mist); margin: 22px 0 0; }
.landing .hero-note b { color: var(--white); }
.landing .hero-mosaic { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; width: 660px; transform: rotate(-9deg); margin: -38px -130px -10px 0; }
.landing .mosaic-card { min-width: 0; background: var(--lavender); border-radius: 20px; text-decoration: none; overflow: hidden; color: var(--night); display: block; border: 1px solid var(--slate); }
.landing .mosaic-card:nth-child(3n+2) { background: var(--mint); transform: translateY(38px); }
.landing .mosaic-card:nth-child(3n) { background: var(--powder); transform: translateY(-20px); }
.landing .mosaic-card img { width: 100%; height: 245px; object-fit: contain; display: block; }
.landing .mosaic-card span { display: block; font-size: 11px; font-weight: 800; padding: 10px 12px; background: var(--white); }
.landing .stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); position: relative; z-index: 3; margin-top: 38px; border: 0; border-top: 1px solid var(--slate); border-radius: 0; box-shadow: none; background: var(--night); }
.landing .stat, .landing .stat:nth-child(n) { background: var(--night); border: 0; border-right: 1px solid var(--ink); padding: 25px 24px; border-radius: 0; }
.landing .stat b { font: 600 36px var(--home-display); color: var(--white); display: block; }
.landing .stat span { color: var(--mist); font-size: 13px; }
.landing .steps, .landing .features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.landing .step, .landing .feature { position: relative; border: 1px solid var(--mist); border-radius: 20px; overflow: visible; padding: 0; background: var(--white); box-shadow: none; }
.landing #how { background: var(--white); color: var(--night); }
.landing #how h2, .landing #how h3 { color: var(--night); }
.landing #how .eyebrow { color: var(--plum); }
.landing .step-image { position: relative; height: 290px; background: var(--lavender); border-radius: 19px 19px 0 0; overflow: hidden; }
.landing .step:nth-child(2) .step-image { background: var(--powder); }
.landing .step:nth-child(3) .step-image { background: var(--mint); }
.landing .step-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px 24px 35px; }
.landing .image-note { position: absolute; bottom: 12px; left: 14px; color: var(--night); background: var(--white); border-radius: 99px; font-size: 11px; font-weight: 800; padding: 5px 10px; }
.landing .card-copy { padding: 24px; }
.landing .step .n { float: left; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--cyan); margin-right: 10px; box-shadow: none; font: 700 14px var(--font); }
.landing .step h3, .landing .feature h3 { font: 600 20px/1.3 var(--display); margin: 2px 0 12px; }
.landing .step p, .landing .feature p { color: var(--ink); margin: 0; font-size: 14px; }
.landing .step:not(:last-child)::after { content: '\2192'; position: absolute; right: -26px; top: 140px; z-index: 2; border: 1px solid var(--slate); background: var(--white); color: var(--night); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.landing .feature { overflow: hidden; }
.landing .feature > img { width: 100%; height: 250px; object-fit: contain; display: block; background: var(--mint); padding: 12px; }
.landing .feature:nth-child(2)>img { background: var(--lavender); }
.landing .feature:nth-child(3)>img { background: var(--powder); }
.landing .filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.landing .filter-chips button { display: flex; align-items: center; gap: 12px; border: 1px solid var(--slate); background: var(--white); border-radius: 99px; color: var(--ink); padding: 9px 16px; font-size: 13px; font-weight: 800; cursor: pointer; }
.landing .filter-chips button span { font-size: 11px; }
.landing .filter-chips button[aria-pressed=true] { background: var(--night); color: var(--white); border-color: var(--night); }
.landing .filter-chips button:hover { border-color: var(--blue); }
.landing .carousel-heading, .landing .collection-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 28px 0 20px; }
.landing .carousel-heading h3, .landing .collection-head h3 { font: 600 23px var(--home-display); }
.landing .carousel-heading h3 span { font: 700 12px var(--font); color: var(--ink); margin-left: 8px; }
.landing .carousel-controls { display: flex; gap: 8px; }
.landing .carousel-controls button { width: 44px; border-radius: 50%; border: 1px solid var(--slate); background: var(--white); cursor: pointer; }
.landing .tower-carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; scrollbar-color: var(--slate) var(--white); }
.landing .tower-carousel .tower { flex: 0 0 245px; scroll-snap-align: start; }
.landing .towers { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; margin-top: 0; text-align: left; }
.landing .collection-head { margin-top: 54px; }
.landing #towerCount { color: var(--ink); font-size: 13px; }
.landing .tower { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--mist); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--night); transition: transform .2s; box-shadow: none; }
.landing .tower:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: none; }
.landing .tower .tower-picture { position: relative; padding: 0; background: var(--powder); }
.landing .tower:nth-child(3n+2) .tower-picture { background: var(--mint); }
.landing .tower:nth-child(3n) .tower-picture { background: var(--lavender); }
.landing .tower img, .landing .tower:nth-child(n) img { display: block; width: 100%; height: 235px; aspect-ratio: auto; object-fit: contain; padding: 23px 8px 0; background: transparent; }
.landing .tower .tower-copy { padding: 16px; }
.landing .tower b { display: block; font: 600 17px/1.25 var(--display); }
.landing .tower b i { float: right; font-style: normal; }
.landing .tower .tower-copy > span { display: block; color: var(--ink); font-size: 12px; margin-top: 8px; }
.landing .tower small { display: block; font-size: 10px; font-weight: 800; color: var(--ink); margin-top: 16px; }
.landing .badge { position: absolute; top: 10px; left: 10px; border-radius: 99px; padding: 4px 9px; background: var(--night); color: var(--white); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.landing .tower .badge { color: var(--white); }
.landing .rank { position: absolute; left: 12px; top: 4px; font: 700 43px var(--home-display); color: var(--night); }
.landing .styles { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.landing .style { border: 1px solid var(--slate); border-radius: 16px; background: var(--white); color: var(--night); padding: 10px; text-decoration: none; min-width: 0; }
.landing .style img, .landing .style:nth-child(n) img { width: 100%; height: 160px; object-fit: contain; display: block; background: var(--white); }
.landing .style b { display: block; font: 600 17px var(--display); margin: 8px 4px; }
.landing .style span { color: var(--ink); display: block; font-size: 12px; margin: 4px; }
.landing .style:hover { border-color: var(--blue); box-shadow: none; }
.landing .browse-tile { display: flex; flex-direction: column; justify-content: center; background: var(--night); color: var(--white); min-height: 230px; }
.landing .browse-tile span { color: var(--white); }
.landing .browse-tile .browse-arrow { font: 600 64px var(--home-display); color: var(--cyan); }
.landing .render-gallery { background: var(--night); color: var(--white); }
.landing .render-gallery h2 { color: var(--white); }
.landing .render-gallery .eyebrow { color: var(--cyan); }
.landing .render-gallery .lead { color: var(--mist); }
.landing .gallery-wall { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; align-items: start; }
.landing .gallery-wall a { color: var(--night); background: var(--lavender); border-radius: 18px; overflow: hidden; text-decoration: none; }
.landing .gallery-wall a:nth-child(even) { background: var(--mint); margin-top: 32px; }
.landing .gallery-wall img { width: 100%; height: 300px; object-fit: contain; display: block; }
.landing .gallery-wall span { display: block; padding: 16px; background: var(--white); font-size: 13px; font-weight: 800; }
.landing .proof-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--slate); padding-top: 32px; gap: 24px; margin-top: 45px; }
.landing .proof-strip span { color: var(--mist); font-size: 13px; }
.landing .proof-strip b { display: block; font: 600 22px var(--display); color: var(--white); margin-bottom: 5px; }
.landing .center { text-align: center; }
.landing .center .lead { margin-inline: auto; }
.landing .faq { max-width: 820px; margin: 32px auto; }
.landing .faq summary { min-height: 44px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 800; }
.landing .faq summary::after { content: '+'; }
.landing .faq details[open] summary::after { content: '-'; }
.landing .faq details { padding: 20px; }
.landing .mail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; border-radius: 24px; box-shadow: none; }
.landing .mail { background: var(--mint); padding: 36px; border: 1px solid var(--teal); }
.landing .mail ul { padding-left: 20px; color: var(--ink); }
.landing .band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-radius: 24px; padding: 40px; box-shadow: none; }
.landing .band { background: var(--lavender); }
.landing .band h2 { font: 700 clamp(28px,3vw,42px)/1.1 var(--home-display); }
.landing .band p { margin-bottom: 0; }
.landing .faq p { color: var(--ink); }
.landing .faq details { border-bottom: 1px solid var(--slate); }
.landing .faq summary { text-align: left; }
.landing .plan.dark .btn-primary { background: var(--cyan); color: var(--night); }
.landing .toast { display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: 90vw; z-index: 80; }
.landing .toast.on { display: block; }
.landing .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* dice holder: exploded render with labels, and the steps beside it */
.landing .holder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.landing .holder-picture { position: relative; background: var(--powder); border-radius: 24px; padding: 28px 24px; }
.landing .holder-picture img { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }
.landing .holder-tag { position: absolute; left: 18px; background: var(--white); color: var(--night); border: 1px solid var(--night); border-radius: 99px; font-size: 12px; font-weight: 800; padding: 5px 11px; }
.landing .tag-lid { top: 14%; }
.landing .tag-wall { top: 50%; }
.landing .tag-plug { top: 84%; }
.landing .holder-copy .lead { max-width: 52ch; }
.landing .holder-steps { list-style: none; counter-reset: hs; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.landing .holder-steps li { counter-increment: hs; position: relative; padding-left: 52px; color: var(--ink); font-size: 14.5px; min-height: 38px; }
.landing .holder-steps li::before { content: counter(hs); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--night); color: var(--white); display: grid; place-items: center; font: 600 16px var(--display); }
.landing .holder-steps b { display: block; color: var(--night); font-size: 16px; }
/* best towers, each paired with its holder */
.landing .gallery-wall a { background: linear-gradient(var(--tower-tint, transparent), var(--tower-tint, transparent)), var(--white); }
.landing .gallery-wall a:nth-child(even) { background: linear-gradient(var(--tower-tint, transparent), var(--tower-tint, transparent)), var(--white); }
.landing .gallery-wall .pair { position: relative; }
.landing .gallery-wall .pair img { padding: 14px 14px 40px; }
.landing .gallery-wall .pair .pair-holder { position: absolute; right: 10px; bottom: 10px; width: 42%; height: auto; padding: 6px; background: var(--white); border: 1px solid var(--mist); border-radius: 14px; box-shadow: 0 6px 16px rgb(26 28 44 / .18); }
.landing .gallery-wall .pair img:first-child { padding-right: 20%; }
.landing .gallery-wall span small { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink); margin-top: 3px; }
@media (max-width: 800px) {
  .landing .holder { grid-template-columns: 1fr; gap: 32px; }
  .landing .holder-picture { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .landing .holder-picture img { max-width: 260px; }
  .landing .gallery-wall img { height: 230px; }
}
@media(max-width:1100px) {
 .landing .header-count { display: none; }
 .landing .hero .grid { gap: 20px; }
 .landing .hero-mosaic { width: 550px; }
 .landing .mosaic-card img { height: 220px; }
 .landing .towers, .landing .styles { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .landing .step-image { height: 240px; }
}
@media(max-width:800px) {
 .landing .wrap { padding-inline: 24px; }
 .landing .topbar .in { padding-inline: 20px; }
 .landing .topnav a.hide-sm { display: none; }
 .landing .hero .grid { grid-template-columns: 1fr; }
 .landing .hero-copy { max-width: 600px; padding-bottom: 0; }
 .landing .hero h1 { font-size: clamp(48px,9vw,72px); }
 .landing .hero-mosaic { width: 100%; max-width: 660px; transform: rotate(-5deg); margin: 24px auto 12px; }
 .landing .mosaic-card img { height: 210px; }
 .landing .section-head { align-items: start; flex-direction: column; gap: 4px; }
 .landing .section-head .lead { max-width: 48ch; }
 .landing .steps, .landing .features { gap: 14px; }
 .landing .card-copy { padding: 18px; }
 .landing .step .n { float: none; margin-bottom: 12px; }
 .landing .step h3, .landing .feature h3 { font-size: 18px; }
 .landing .step:not(:last-child)::after { right: -23px; }
 .landing .gallery-wall { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .landing .mail { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
 .landing .wrap { padding-inline: 20px; }
 .landing section { padding-block: 54px; }
 .landing .topbar .in { gap: 8px; padding: 10px 16px; min-height: 70px; }
 .landing .logo { gap: 8px; }
 .landing .logo b { font-size: 15px; max-width: 108px; }
 .landing .topnav .btn { padding: 10px 12px; font-size: 12px; }
 .landing .hero { padding-top: 36px; padding-bottom: 0; }
 .landing .hero h1 { font-size: clamp(42px,11vw,64px); }
 .landing .hero p.lead { font-size: 15px; }
 .landing .cta-row { flex-direction: column; }
 .landing .cta-row .btn { width: 100%; }
 .landing .ticks { gap: 8px 13px; font-size: 11px; }
 .landing .hero-mosaic { gap: 8px; margin-top: 30px; }
 .landing .mosaic-card { border-radius: 12px; }
 .landing .mosaic-card img { height: 145px; }
 .landing .mosaic-card span { font-size: 9px; padding: 8px; }
 .landing .mosaic-card:nth-child(3n+2) { transform: translateY(15px); }
 .landing .mosaic-card:nth-child(3n) { transform: translateY(-12px); }
 .landing .stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 28px; }
 .landing .stat, .landing .stat:nth-child(n) { padding: 18px 12px; border-bottom: 1px solid var(--ink); }
 .landing .stat b { font-size: 32px; }
 .landing .stat span { font-size: 11px; }
 .landing .steps, .landing .features { grid-template-columns: 1fr; gap: 20px; }
 .landing .step-image { height: 280px; }
 .landing .step:not(:last-child)::after { display: none; }
 .landing .step .n { float: left; }
 .landing .card-copy { padding: 22px; }
 .landing .feature>img { height: 260px; }
 .landing .filter-chips { gap: 8px; }
 .landing .filter-chips button { font-size: 12px; padding: 9px 12px; }
 .landing .carousel-heading h3 { font-size: 20px; }
 .landing .carousel-heading h3 span { display: none; }
 .landing .tower-carousel .tower { flex-basis: 235px; }
 .landing .towers, .landing .styles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .landing .tower img { height: 180px; padding-top: 28px; }
 .landing .tower .tower-copy { padding: 12px; }
 .landing .tower b { font-size: 16px; }
 .landing .style img, .landing .style:nth-child(n) img { height: 130px; }
 .landing .gallery-wall { gap: 12px; }
 .landing .gallery-wall img { height: 210px; }
 .landing .gallery-wall span { padding: 12px; font-size: 11px; }
 .landing .proof-strip { grid-template-columns: 1fr; gap: 20px; }
 .landing .mail, .landing .band { padding: 24px; }
 .landing .band .btn { width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
 .landing *, .landing *::before, .landing *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
 .landing .hero-mosaic, .landing .mosaic-card:nth-child(n), .landing .tower:hover, .landing .btn:hover { transform: none; }
}

/* Shared generator footer (web/footer.css, copied from K:/Claude/generator-footer). Its colours, all Sweetie 16:
   white on night 15.3:1, mist on night 7.4:1, cyan on night 12.4:1, white on ink 9.9:1, cyan on ink 8.0:1.
   The kit's slate muted text is only 3.1:1 on night, so muted steps up to mist. */
footer.gf {
  --gf-bg: var(--night); --gf-ink: var(--white); --gf-text: var(--mist); --gf-muted: var(--mist);
  --gf-accent: var(--cyan); --gf-line: #f4f4f41f; --gf-chip: var(--ink);
  --gf-display: var(--display); --gf-font: var(--font);
}
footer.gf .gf-name { font-weight: 600; } /* Fredoka is loaded at 500 and 600 */
.landing footer.gf { margin-top: 80px; }
.landing .gf :focus-visible { outline-color: var(--cyan); box-shadow: 0 0 0 2px var(--night); }
@media (max-width: 600px) { .landing footer.gf { margin-top: 54px; } }

/* Legal pages (privacy, terms, licences, refunds): night on white 15.3:1, ink 9.9:1, plum links 10.0:1,
   night on powder table heads 10.0:1. */
.landing .gf-legal { --gf-muted: var(--ink); color: var(--night); font-size: 16.5px; }
.landing .gf-legal h1 { font: 700 clamp(36px, 5vw, 54px)/1.06 var(--home-display); letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 8px; }
.landing .gf-legal h2 { font: 600 22px/1.25 var(--display); margin: 34px 0 8px; color: var(--night); }
.landing .gf-legal p, .landing .gf-legal li { color: var(--night); }
.landing .gf-legal li + li { margin-top: 6px; }
.landing .gf-legal a { color: var(--link); text-underline-offset: 2px; }
.landing .gf-legal a:hover { color: var(--night); }
.landing .gf-legal .gf-table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--mist); border-radius: 12px; }
.landing .gf-legal table { margin: 0; }
.landing .gf-legal th { background: var(--powder); color: var(--night); font-weight: 800; }
.landing .gf-legal th, .landing .gf-legal td { border-bottom-color: var(--mist); }
.landing .gf-legal tr:last-child td { border-bottom: 0; }
.landing .gf-legal .gf-note { background: var(--powder); }
.landing .gf-legal :target { scroll-margin-top: 96px; }
/* Product-page headings use the shared Fredoka display face in sentence case. */
.landing:not(.legal-page) { --home-display: var(--display); }
.landing:not(.legal-page) h2.title { text-transform: none; font-weight: 600; }
.landing:not(.legal-page) .hero h1 { font-weight: 600; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.08; }

.nowrap{white-space:nowrap}
