/* Creator journey: bright, playful, one step per screen. Works as a web app on laptops and on phones.
   The creator's own colour (--brand) is the main accent; yellow coins, green ticks, sky-blue hints. */
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #FFF7EC; --bg2: #FFEFD9; --card: #FFFFFF; --ink: #1E1B16; --mu: #6E675C; --mu2: #A59C8C; --line: #EFE4D3; --line2: #E6D9C5;
  --b: var(--brand, #FF6A3D);
  --b-deep: color-mix(in oklab, var(--b) 74%, black);
  --b-soft: color-mix(in oklab, var(--b) 16%, white);
  --b-glow: color-mix(in srgb, var(--b) 28%, transparent);
  --y: #FFC83D; --y-deep: #D9A11A; --y-soft: #FFF1C9;
  --g: #22C38A; --g-deep: #16936A; --g-soft: #E3F6EE;
  --sky: #58B9FF; --sky-deep: #2E8FD6; --sky-soft: #E5F2FF;
  --pink: #FF6F9F; --pink-deep: #D94A7A; --pink-soft: #FFE5EE;
  --head: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 24px;
  --shadow: 0 2px 0 var(--line), 0 18px 40px -26px rgba(80, 50, 10, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.g { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.g a { color: inherit; }
.g svg { width: 1em; height: 1em; flex: none; }
.g h1, .g h2, .g h3 { font-family: var(--head); letter-spacing: -.03em; }

/* ---------- layout: sidebar on laptops, tab bar on phones ---------- */
.g-side { display: none; }
.g-body { min-width: 0; }
@media (min-width: 1000px) {
  body.g { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .g-side { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff; border-right: 2px solid var(--line); padding: 22px 16px 30px; }
}
.g-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.g-logo span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.g-logo b { font: 800 16px var(--head); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-logo small { color: var(--mu); font-size: 12.5px; font-weight: 600; }
.g-side .g-logo { margin: 0 6px 22px; }
.g-nav { display: grid; gap: 4px; margin-bottom: 18px; }
.g-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-weight: 700; color: var(--mu); text-decoration: none; }
.g-nav a svg { width: 20px; height: 20px; }
.g-nav a:hover { background: var(--bg); color: var(--ink); }
.g-nav a.on { background: var(--b-soft); color: var(--b-deep); }
.g-side-lvl { margin: 0 4px 16px; }
.g-side-lvl > p { margin: 0 0 6px 8px; font: 800 14px var(--head); color: var(--mu); }
.g-side-lvl > p span { display: block; font: 800 10.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mu2); }
.g-side-lvl.on > p { color: var(--ink); }
.g-side ol { list-style: none; margin: 0; padding: 0; }
.g-side li a, .g-side li > span { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--mu); }
.g-side li a:hover { background: var(--bg); }
.g-side li i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 800 11.5px var(--body); font-style: normal; background: var(--bg2); color: var(--mu); flex: none; }
.g-side li i svg { width: 13px; height: 13px; }
.g-side li.done i { background: var(--g); color: #fff; }
.g-side li.current i, .g-side li.open i { background: var(--b); color: #fff; box-shadow: 0 0 0 4px var(--b-glow); }
.g-side li.locked { opacity: .6; }
.g-side li.sel a { background: var(--b-soft); color: var(--ink); font-weight: 700; }

.g-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.g-logo-m { flex: 1; } .g-logo-m b { font-size: 15px; }
@media (min-width: 1000px) { .g-logo-m { visibility: hidden; } .g-top { padding: 16px 36px; } }
.g-lvl { display: none; font: 800 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--b-deep); background: var(--b-soft); padding: 7px 12px; border-radius: 999px; }
@media (min-width: 700px) { .g-lvl { display: inline-block; } }
.g-hud { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.g-stat { display: inline-flex; align-items: center; gap: 6px; font: 800 15px var(--body); }
.g-stat b { font-family: var(--head); font-size: 16px; }
.g-stat small { font-weight: 700; color: var(--mu); font-size: 13px; }
.g-stat.flame { color: #F2602B; } .g-stat.flame svg { width: 20px; height: 20px; }
.g-stat.big { font-size: 18px; }
.g-coin { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; font: 900 12px var(--body); color: #8A5E00;
  background: radial-gradient(circle at 35% 30%, #FFF0B3, var(--y) 55%, var(--y-deep)); box-shadow: 0 3px 0 #B98608; }
.g-count { font: 700 13px var(--body); color: var(--mu); padding: 5px 10px; border-radius: 10px; background: #fff; border: 2px solid var(--line); }
.g-count b { color: var(--ink); }
@media (max-width: 480px) { .g-stat small { display: none; } }
.g-progress { position: sticky; top: 58px; z-index: 19; display: flex; gap: 5px; padding: 0 20px; height: 8px; }
@media (min-width: 1000px) { .g-progress { top: 68px; padding: 0 36px; } }
.g-progress i { flex: 1; border-radius: 8px; background: var(--line); }
.g-progress i.done { background: var(--g); }
.g-progress i.current, .g-progress i.open { background: var(--b); }
.g-progress i.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

.g-teambar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 14px 20px 0; padding: 10px 14px; font-size: 13.5px;
  background: var(--sky-soft); border: 2px solid #C9E3FA; border-radius: 14px; color: #1C4E78; }
@media (min-width: 1000px) { .g-teambar { margin: 14px 36px 0; } }
.g-teamlinks { display: flex; gap: 14px; flex-wrap: wrap; }
.g-link { background: none; border: 0; padding: 0; color: var(--sky-deep); font: 700 13.5px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.g-link.light { color: #fff; }
.g-notice { display: flex; gap: 10px; align-items: center; margin: 14px 20px 0; padding: 12px 16px; border-radius: 14px; background: var(--y-soft); font-weight: 700; color: #6A4A00; }
@media (min-width: 1000px) { .g-notice { margin: 14px 36px 0; } }

.g-stage { width: 100%; max-width: 860px; margin: 0 auto; padding: 26px 20px 120px; animation: g-in .45s cubic-bezier(.2,.8,.2,1) backwards; }
.k-today .g-stage, .k-map .g-stage { max-width: 1180px; }
@media (min-width: 1000px) { .g-stage { padding: 34px 36px 70px; } }
@keyframes g-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* phone tab bar */
.g-tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 2px solid var(--line); }
.g-tabs a { display: grid; justify-items: center; gap: 2px; min-width: 76px; padding: 6px 10px; border-radius: 14px; text-decoration: none; font: 800 12px var(--body); color: var(--mu2); }
.g-tabs a svg { width: 24px; height: 24px; }
.g-tabs a.on { color: var(--b-deep); background: var(--b-soft); }
@media (min-width: 1000px) { .g-tabs { display: none; } }

/* ---------- headings and blocks ---------- */
.g-chip { display: inline-flex; align-items: center; gap: 7px; font: 800 12px var(--body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--b-deep); background: var(--b-soft); padding: 7px 12px; border-radius: 999px; }
.g-chip svg { width: 13px; height: 13px; }
.g-chip.pink { color: #B5285A; background: var(--pink-soft); }
.g h1 { font-size: clamp(2.1rem, 5.6vw, 3.3rem); line-height: 1.04; font-weight: 800; margin: 16px 0 10px; text-wrap: balance; }
.g h1 em { font-style: normal; color: var(--b); }
.g-sub { color: var(--mu); font-size: 1.12rem; font-weight: 500; max-width: 60ch; margin: 0 0 24px; text-wrap: pretty; }
.g-kicker { margin: 0; color: var(--mu); font-weight: 700; }
.g-h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.g-card { background: var(--card); border-radius: var(--r); padding: 22px; margin: 0 0 16px; box-shadow: var(--shadow); border: 2px solid transparent; }
.g-label { display: block; font: 800 11.5px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--mu2); margin-bottom: 6px; }
.g-note { color: var(--mu); font-size: 14.5px; margin: 12px 0 0; }
.g-note b { color: var(--ink); }
.g-wait { display: flex; align-items: center; gap: 10px; color: var(--mu); font-weight: 600; margin: 0; padding: 14px 16px; border: 2px dashed var(--line2); border-radius: 16px; }
.g-wait svg { color: var(--b); }
.g-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.g-tiles { display: grid; gap: 12px; margin-top: 16px; }
.g-tiles.two { grid-template-columns: repeat(2, 1fr); }
.g-tiles.three { grid-template-columns: 1fr; }
.g-tiles.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .g-tiles.three { grid-template-columns: repeat(3, 1fr); } .g-tiles.four { grid-template-columns: repeat(4, 1fr); } }
.g-tiles > div { background: var(--bg); border-radius: 16px; padding: 12px 15px; min-width: 0; }
.g-tiles span { display: block; font: 800 11px var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--mu2); margin-bottom: 3px; }
.g-tiles b { font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.g-tiles s { color: var(--mu2); font-weight: 500; }
.g-tiles.big > div { background: #fff; box-shadow: var(--shadow); padding: 18px; }
.g-tiles.big b { font: 800 1.8rem var(--head); letter-spacing: -.02em; }
.g-url { font: 700 15px var(--body); margin: 0; word-break: break-all; }
.g-pill { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 2px solid var(--line2); font-weight: 800; font-size: 13px; text-decoration: none; color: var(--mu); background: #fff; }
.g-pill.on { background: var(--b); border-color: var(--b); color: #fff; }

/* buttons: chunky, pressable */
.g-btn { --c: var(--b); --d: var(--b-deep); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 26px;
  font: 800 16.5px var(--body); letter-spacing: .01em; color: #fff; text-decoration: none; background: var(--c); border: 0; border-radius: 16px; cursor: pointer;
  box-shadow: 0 6px 0 var(--d); transition: transform .08s, box-shadow .08s, filter .15s; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.g-btn:hover { filter: brightness(1.05); }
.g-btn:active, .g-btn.busy { transform: translateY(5px); box-shadow: 0 1px 0 var(--d); }
.g-btn.busy { opacity: .75; }
.g-btn svg { width: 18px; height: 18px; }
.g-btn.green { --c: var(--g); --d: var(--g-deep); }
.g-btn.sky { --c: var(--sky); --d: var(--sky-deep); }
.g-btn.y { --c: var(--y); --d: var(--y-deep); color: #5A3E00; }
.g-btn.pink { --c: var(--pink); --d: var(--pink-deep); }
.g-btn.white { --c: #fff; --d: #C9E3FA; color: var(--sky-deep); }
.g-btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line2); }
.g-btn.ghost:active { box-shadow: 0 1px 0 var(--line2); }
.g-btn.sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; border-radius: 13px; box-shadow: 0 4px 0 var(--d); }
.g-btn.sm.ghost { box-shadow: 0 4px 0 var(--line2); }
.g-btn.copied { --c: var(--g); --d: var(--g-deep); background: var(--g); color: #fff; border-color: var(--g); }
.g-tagc { font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.16); }
.g-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }
.g-actions.center { justify-content: center; }
.g-actions form { margin: 0; display: contents; }
@media (max-width: 639px) { .g-actions { flex-direction: column; align-items: stretch; } .g-actions .g-btn { width: 100%; } }

.g-bar { height: 12px; border-radius: 12px; background: var(--line); overflow: hidden; margin: 0 0 16px; }
.g-bar i { display: block; height: 100%; border-radius: 12px; background: linear-gradient(90deg, var(--b), color-mix(in oklab, var(--b) 60%, #FFC83D)); transition: width .6s; }
.g-bar.green i { background: var(--g); }
.g-bar.big { height: 16px; }
.g-bar-label { display: flex; justify-content: space-between; font-weight: 800; font-size: 14.5px; margin: 6px 0 8px; }

.g-av { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; font: 800 16px var(--head);
  color: #fff; background: linear-gradient(135deg, color-mix(in oklab, var(--b) 60%, white), var(--b)); border: 3px solid #fff; box-shadow: 0 4px 14px -4px var(--b-glow); }
.g-av img { width: 100%; height: 100%; object-fit: cover; }
.g-av.xs { width: 26px; height: 26px; font-size: 12px; border-width: 2px; }
.g-av.lg { width: 110px; height: 110px; font-size: 44px; border-width: 5px; }
.g-av.me { width: 44px; height: 44px; font-size: 18px; border-width: 4px; position: relative; justify-self: start; align-self: start; margin: -18px 0 0 -16px; z-index: 2; }

/* ---------- dashboard ---------- */
.g-dash { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.g-dash-main, .g-dash-side { min-width: 0; }
@media (min-width: 1100px) { .g-dash { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.g-dash h1 { margin-top: 6px; }
.g-prio { display: grid; gap: 12px; margin-top: 18px; border-radius: 26px; }
.g-prio-item { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 18px; }
.g-prio-item > div { flex: 1; min-width: 0; }
.g-prio-item b { display: block; font-size: 16.5px; line-height: 1.3; }
.g-prio-item small { color: var(--mu); font-weight: 600; font-size: 13.5px; }
.g-prio-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; flex: none; font-size: 22px; background: var(--b-soft); color: var(--b); }
.g-prio-ic.pink { background: var(--pink-soft); color: var(--pink); } .g-prio-ic.sky { background: var(--sky-soft); color: var(--sky); } .g-prio-ic.y { background: var(--y-soft); color: var(--y-deep); }
@media (max-width: 560px) { .g-prio-item { flex-wrap: wrap; } .g-prio-item .g-btn { width: 100%; } }
.g-week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 10px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px; border-radius: 22px; scrollbar-width: thin; }
.g-week > div { background: #fff; border-radius: 18px; padding: 10px; min-height: 128px; border: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.g-week > div.today { border-color: var(--b); box-shadow: 0 0 0 4px var(--b-glow); }
.g-week span { font: 800 11.5px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--mu2); }
.g-week span em { font-style: normal; color: var(--ink); margin-left: 2px; }
.g-week a { display: block; padding: 7px 8px; border-radius: 11px; font: 700 12.5px/1.3 var(--body); text-decoration: none; background: var(--pink-soft); color: #7A1E43; }
.g-week a.done { background: var(--g-soft); color: #0E6B4B; }
.g-week a svg { width: 11px; height: 11px; display: inline; }
.g-dash-side { display: grid; gap: 16px; align-content: start; }
.g-dash-side .g-card { margin: 0; }
.g-lvlcard { background: var(--ink); color: #fff; }
.g-lvlcard small { font: 800 11.5px var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.g-lvlcard > b { display: block; font: 800 23px var(--head); margin: 4px 0 12px; }
.g-lvlcard .g-bar { background: rgba(255,255,255,.14); margin-bottom: 12px; }
.g-lvlcard .g-bar i { background: linear-gradient(90deg, var(--y), #FFE08A); }
.g-lvlcard a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; color: var(--y); text-decoration: none; }
.g-money small { font: 800 11.5px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--mu2); }
.g-money > b { display: block; font: 800 36px var(--head); letter-spacing: -.02em; }
.g-money .g-tiles { margin-top: 10px; }
.g-badges h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0 0 12px; }
.g-badges h3 svg { color: var(--y-deep); }
.g-badges h3 small { font: 700 13px var(--body); color: var(--mu); margin-left: auto; }
.g-badges > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.g-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.g-badge i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; background: var(--bg2); color: var(--mu2); margin-bottom: 4px; }
.g-badge.won i { color: #6A4700; background: radial-gradient(circle at 35% 30%, #FFF0B3, var(--y) 60%, var(--y-deep)); box-shadow: 0 4px 0 #B98608; }
.g-badge b { font: 700 12px/1.2 var(--body); }
.g-badge small { display: none; }
.g-badge:not(.won) b { color: var(--mu2); }
.k-map .g-badges, .k-score .g-badges { margin-top: 18px; }
@media (min-width: 700px) { .k-map .g-badges > div, .k-score .g-badges > div { grid-template-columns: repeat(8, 1fr); } }

.g-checklist-card { padding: 18px; border-color: var(--g-soft); }
.g-checklist-card h3 { display: flex; align-items: center; justify-content: space-between; font-size: 18px; margin: 0 0 10px; }
.g-trophy { color: var(--y); font-size: 28px; }
.g-checklist-card .g-bar { height: 10px; margin-bottom: 12px; }
.g-cl { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14.5px; padding: 5px 0; color: var(--mu); }
.g-cl em { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg2); color: transparent; flex: none; }
.g-cl em svg { width: 13px; height: 13px; }
.g-cl.y { color: var(--ink); } .g-cl.y em { background: var(--g); color: #fff; }
.g-checklist-card .g-link { margin-top: 6px; color: var(--mu2); }

/* guided tour */
.g-tour[hidden] { display: none; }
.g-tour-dim { position: fixed; inset: 0; z-index: 40; background: rgba(30, 27, 22, .5); }
.g-tour-on { position: relative; z-index: 41; box-shadow: 0 0 0 5px var(--sky), 0 20px 50px -10px rgba(0,0,0,.4) !important; }
.g-tour-on:not(.g-card):not(.g-lvlcard) { background: var(--bg); border-radius: 18px; }
.g-tip { position: fixed; z-index: 42; width: 320px; padding: 18px 20px; border-radius: 22px; color: #fff; background: var(--sky); box-shadow: 0 6px 0 var(--sky-deep), 0 30px 60px -20px rgba(0,0,0,.45); }
.g-tip small { font: 800 12px var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.g-tip b { display: block; font: 800 19px/1.25 var(--head); margin: 6px 0 14px; }
.g-tip-row { display: flex; justify-content: space-between; align-items: center; }

/* ---------- map ---------- */
.g-mapwrap { display: grid; gap: 22px; }
@media (min-width: 1100px) { .g-mapwrap { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.g-world { border-radius: 28px; padding: 18px 18px 26px; background: linear-gradient(180deg, #fff, var(--bg)); box-shadow: var(--shadow); }
.g-world.future { opacity: .62; }
.g-lvlban { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 20px; color: #fff; background: var(--b); box-shadow: 0 6px 0 var(--b-deep); }
.g-lvlban.w2 { background: var(--sky); box-shadow: 0 6px 0 var(--sky-deep); }
.g-lvlban.w3 { background: var(--g); box-shadow: 0 6px 0 var(--g-deep); }
.g-world.future .g-lvlban { background: #CDBFA8; box-shadow: 0 6px 0 #B3A48A; }
.g-lvlban small { display: block; font: 800 11.5px var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.g-lvlban b { display: block; font: 800 24px var(--head); letter-spacing: -.02em; }
.g-lvlban span { display: block; font-size: 13px; font-weight: 600; opacity: .9; }
.g-lvlban em { font: 800 13px var(--body); font-style: normal; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.22); white-space: nowrap; }
.g-path { position: relative; display: grid; gap: 18px; padding: 26px 0 0; }
.g-path::before { content: ""; position: absolute; left: 50%; top: 30px; bottom: 10px; width: 0; border-left: 10px dotted var(--line2); transform: translateX(-50%); }
.g-node-row { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; column-gap: 12px; width: 100%; }
.g-node-row > .g-node { grid-column: 2; }
.g-node-row > .g-node-label { grid-column: 3; justify-self: start; }
.g-node-row.o1 { transform: translateX(42px); } .g-node-row.o3 { transform: translateX(-42px); }
.g-node-row.o1 > .g-node-label { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.g-node-row > .g-av.me { grid-column: 2; grid-row: 1; }
.g-node { position: relative; display: grid; place-items: center; width: 72px; height: 68px; border-radius: 50%; flex: none; font-size: 26px; text-decoration: none;
  color: #fff; background: #E3D7C2; box-shadow: 0 7px 0 #CBBDA4; transition: transform .1s; }
.g-node:hover { transform: translateY(-2px); }
.g-node.done { background: var(--g); box-shadow: 0 7px 0 var(--g-deep); }
.g-node.current, .g-node.open { background: var(--b); box-shadow: 0 7px 0 var(--b-deep), 0 0 0 10px var(--b-glow); animation: g-pulse 1.8s infinite; }
.g-node.locked { color: #B7A98F; }
.g-node.chest { border-radius: 22px; }
.g-node.chest.current, .g-node.chest.open { background: var(--y); box-shadow: 0 7px 0 var(--y-deep), 0 0 0 10px rgba(255,200,61,.3); color: #6A4700; }
@keyframes g-pulse { 0%, 100% { box-shadow: 0 7px 0 var(--b-deep), 0 0 0 6px var(--b-glow); } 50% { box-shadow: 0 7px 0 var(--b-deep), 0 0 0 14px transparent; } }
.g-node-label { font: 800 14px/1.2 var(--body); color: var(--mu); background: #fff; padding: 7px 11px; border-radius: 12px; box-shadow: 0 3px 0 var(--line); max-width: 100%; }
.g-node-label.done, .g-node-label.current, .g-node-label.open { color: var(--ink); }
.g-node-label em { display: block; font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--b); }

/* ---------- step screens ---------- */
.g-hero { padding: 10px; }
.g-hero-img { position: relative; aspect-ratio: 16/8; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, color-mix(in oklab, var(--b) 45%, white), var(--b) 55%, #FFC83D); }
.g-hero-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.g-hero-by { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.g-why { display: flex; gap: 10px; margin: 16px 8px 4px; font: 700 1.1rem/1.4 var(--head); }
.g-why svg { color: var(--y-deep); margin-top: 4px; }
.g-hero .g-tiles { margin: 14px 4px 6px; }
.g-goal { display: flex; gap: 16px; align-items: center; background: var(--y-soft); box-shadow: 0 5px 0 #F2DFA6; }
.g-goal-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; flex: none; font-size: 30px; color: #6A4700;
  background: radial-gradient(circle at 35% 30%, #FFF0B3, var(--y) 60%, var(--y-deep)); box-shadow: 0 5px 0 #B98608; }
.g-big { font: 800 clamp(1.3rem, 3.6vw, 1.75rem)/1.2 var(--head); letter-spacing: -.02em; margin: 0; }

.g-pagebox { display: grid; gap: 20px; }
@media (min-width: 1000px) { .g-pagebox { grid-template-columns: auto minmax(0, 1fr); align-items: start; } .g-viewtoggle { grid-column: 1 / -1; } }
.g-viewtoggle { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border-radius: 14px; border: 2px solid var(--line); justify-self: start; }
.g-viewtoggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 14px; border-radius: 10px; font: 800 14px var(--body); color: var(--mu); cursor: pointer; }
.g-viewtoggle button.on { background: var(--b-soft); color: var(--b-deep); }
.g-preview { min-width: 0; }
.g-phone { width: 300px; height: 600px; margin: 0 auto; border-radius: 44px; overflow: hidden; background: #fff; border: 10px solid var(--ink); box-shadow: 0 30px 60px -24px rgba(60,40,10,.45); }
.g-phone iframe { width: 390px; height: 790px; border: 0; transform: scale(.718); transform-origin: 0 0; background: #fff; }
.g-browser { display: none; width: 100%; border-radius: 18px; overflow: hidden; background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow); }
.g-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg); border-bottom: 2px solid var(--line); }
.g-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); }
.g-browser-bar span { margin-left: 10px; font-size: 12.5px; font-weight: 700; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-browser iframe { width: 100%; height: 560px; border: 0; display: block; }
.g-pagebox[data-view="desktop"] { grid-template-columns: 1fr; }
.g-pagebox[data-view="desktop"] .g-phone { display: none; }
.g-pagebox[data-view="desktop"] .g-browser { display: block; }
.g-pageside { min-width: 0; }
.g-editor { display: grid; gap: 10px; border-color: var(--b-soft); }
.g-editor label b { display: flex; align-items: center; gap: 8px; font: 800 17px var(--head); }
.g-editor label b svg { color: var(--b); }
.g-editor label small { display: block; color: var(--mu); font-weight: 600; font-size: 13.5px; }
.g-editor textarea { width: 100%; resize: vertical; min-height: 84px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font: 500 15px/1.45 var(--body); color: var(--ink); }
.g-editor textarea:focus, .g-postform input:focus { outline: none; border-color: var(--b); box-shadow: 0 0 0 4px var(--b-glow); }
.g-sugs { display: flex; flex-wrap: wrap; gap: 6px; }
.g-sug { border: 2px solid var(--line); background: #fff; color: var(--mu); font: 700 12.5px var(--body); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.g-sug:hover { border-color: var(--b); color: var(--b-deep); }
.g-editor .g-btn { justify-self: start; }
.g-mini { display: flex; align-items: baseline; gap: 10px; }
.g-mini b { font: 800 2rem var(--head); }
.g-mini span { color: var(--mu); font-weight: 600; }

.g-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -2px 6px; scrollbar-width: none; }
.g-days::-webkit-scrollbar { display: none; }
.g-day { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 56px; text-decoration: none; }
.g-day span { font: 800 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--mu2); }
.g-day b { display: grid; place-items: center; width: 50px; height: 46px; border-radius: 15px; font: 800 16px var(--head); background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line2); }
.g-day.done b { background: var(--g); border-color: var(--g); color: #fff; box-shadow: 0 4px 0 var(--g-deep); }
.g-day.done b svg { width: 18px; height: 18px; }
.g-day.today b { border-color: var(--b); color: var(--b); }
.g-day.sel b { box-shadow: 0 4px 0 var(--b-deep), 0 0 0 4px var(--b-glow); border-color: var(--b); }
.g-post-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.g-due { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 800; color: var(--b-deep); }
.g-due svg { color: var(--g); }
.g-post h3 { font-size: 1.5rem; line-height: 1.2; margin: 10px 0 12px; }
.g-draft { background: var(--bg); border-radius: 16px; padding: 14px 16px; }
.g-tag { display: inline-flex; align-items: center; gap: 6px; font: 800 11.5px var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--y-deep); }
.g-draft p { margin: 8px 0 0; white-space: pre-line; max-height: 14em; overflow: auto; font-size: 15.5px; }
.g-postform { margin-top: 18px; padding-top: 18px; border-top: 2px dashed var(--line); display: grid; gap: 10px; }
.g-postform label { font-weight: 800; font-size: 14.5px; }
.g-postform input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 15px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: 500 16px var(--body); }
.g-postform .g-btn { width: 100%; }

.g-score { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.g-score .g-tiles { flex: 1 1 260px; margin: 0; }
.g-ring { position: relative; width: var(--s); height: var(--s); flex: none; margin: 0 auto; }
.g-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-ring circle { fill: none; stroke-width: 12; }
.g-ring .track { stroke: var(--line); }
.g-ring .fill { stroke: var(--b); stroke-linecap: round; animation: g-ring 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes g-ring { from { stroke-dasharray: 0 100; } }
.g-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-ring b { font: 800 1.4rem var(--head); letter-spacing: -.02em; }
.g-ring span { font-size: 12px; color: var(--mu); font-weight: 600; }
.g-lb h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0 0 10px; }
.g-lb h3 svg { color: var(--y-deep); }
.g-lb ol { list-style: none; margin: 0; padding: 0; }
.g-lb li { display: grid; grid-template-columns: 34px 1fr auto; column-gap: 12px; align-items: center; padding: 10px 0; border-top: 2px solid var(--bg); }
.g-lb li:first-child { border-top: 0; }
.g-lb li i { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; font: 800 14px var(--head); font-style: normal; background: var(--bg2); }
.g-lb li:first-child i { background: var(--y); color: #5A3E00; }
.g-lb li span { grid-row: span 2; font-weight: 700; min-width: 0; }
.g-lb li small { display: block; color: var(--mu); font-weight: 600; font-size: 12px; }
.g-lb li b { font: 800 15px var(--head); text-align: right; }
.g-lb li em { font-style: normal; font-size: 12px; color: var(--mu); text-align: right; }

.g-gate { text-align: center; padding: 8px 0 0; }
.g-gate .g-sub { margin-left: auto; margin-right: auto; }
.k-gate1 .g-chip, .k-gate2 .g-chip { display: table; margin: 0 auto; }
.g-medal { display: grid; place-items: center; width: 120px; height: 120px; margin: 16px auto 4px; border-radius: 50%; font-size: 54px; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--b) 50%, white), var(--b) 60%, var(--b-deep)); box-shadow: 0 8px 0 var(--b-deep); }
.g-gate.win .g-medal, .g-medal.win { color: #6A4700; background: radial-gradient(circle at 35% 30%, #FFF1B8, var(--y) 55%, var(--y-deep)); box-shadow: 0 8px 0 #B98608, 0 0 0 12px rgba(255,200,61,.25);
  animation: g-pop .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes g-pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.g-checklist { list-style: none; padding: 0; margin: 10px auto 0; max-width: 520px; }
.g-checklist li, .g-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; padding: 7px 0; }
.g-checklist li i, .g-checks li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; font: 900 12px var(--body); font-style: normal; }
.g-checklist li.ok i, .g-checks li.ok i { background: var(--g); color: #fff; }
.g-checklist li.no i, .g-checks li.no i { background: var(--y-soft); color: var(--y-deep); }
.g-checklist li svg, .g-checks li svg { width: 12px; height: 12px; }
.g-checks ul { list-style: none; padding: 0; margin: 12px 0 0; }
.g-checks li.no { color: var(--mu); }

.g-feats { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .g-feats { grid-template-columns: repeat(2, 1fr); } }
.g-feat { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.g-feat i { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font: 800 17px var(--head); font-style: normal; color: #fff; background: var(--b); box-shadow: 0 4px 0 var(--b-deep); }
.g-feat.t1 i { background: var(--sky); box-shadow: 0 4px 0 var(--sky-deep); } .g-feat.t2 i { background: var(--y); box-shadow: 0 4px 0 var(--y-deep); color: #5A3E00; } .g-feat.t3 i { background: var(--g); box-shadow: 0 4px 0 var(--g-deep); }
.g-feat i svg { width: 18px; height: 18px; }
.g-feat b { font-weight: 800; line-height: 1.3; align-self: center; }
.g-feat small { color: var(--mu); font-size: 13.5px; margin-top: 4px; font-weight: 500; }
.g-quotes { display: grid; gap: 10px; margin-bottom: 16px; }
.g-quotes blockquote { margin: 0; padding: 14px 16px; border-left: 4px solid var(--b); background: #fff; border-radius: 0 16px 16px 0; font-weight: 600; }
.g-share { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.g-share .g-label { flex-basis: 100%; margin: 0; }
.g-share .g-url { flex: 1; }

.g-mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 6px 0 18px; }
@media (min-width: 800px) { .g-mods { grid-template-columns: repeat(4, 1fr); } }
.g-mod { position: relative; padding: 16px; border-radius: 20px; background: #fff; border: 2px solid var(--line); min-height: 118px; }
.g-mod i { display: block; width: 42px; height: 42px; border-radius: 14px; margin-bottom: 10px; background: var(--b-soft); }
.g-mod.t1 i { background: var(--sky-soft); } .g-mod.t2 i { background: var(--y-soft); } .g-mod.t3 i { background: var(--pink-soft); }
.g-mod b { display: block; font-size: 14.5px; line-height: 1.25; }
.g-mod small { color: var(--mu2); font-weight: 800; font-size: 12px; }
.g-mod.now { border-color: var(--b); } .g-mod.now small { color: var(--b); }
.g-mod.now i { animation: g-bob 1s infinite ease-in-out; }
@keyframes g-bob { 50% { transform: translateY(-5px); } }
.g-mod.ok::after { content: ""; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.g-mod.ok small { color: var(--g-deep); }

.g-locked { text-align: center; padding-top: 30px; }
.g-locked > i { display: grid; place-items: center; width: 100px; height: 100px; margin: 0 auto 20px; border-radius: 30px; font-size: 44px; background: #fff; color: var(--mu2); box-shadow: 0 6px 0 var(--line2); }
.g-locked .g-sub { margin-left: auto; margin-right: auto; }
.g-stepnav { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 2px dashed var(--line); }
.g-navbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 13px; text-decoration: none; font-weight: 800; color: var(--mu); }
.g-navbtn:hover { background: #fff; color: var(--ink); }
.g-navbtn.fwd { color: var(--b-deep); }

/* celebration */
.g-win { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(30,27,22,.4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: g-fade .25s both; }
.g-win canvas { position: absolute; inset: 0; pointer-events: none; }
.g-win-card { position: relative; display: grid; justify-items: center; gap: 12px; padding: 30px 36px; margin: 16px; border-radius: 28px; background: #fff; box-shadow: 0 8px 0 var(--line2), 0 30px 80px rgba(0,0,0,.3); animation: g-pop .6s cubic-bezier(.2,1.6,.4,1) both; text-align: center; }
.g-win-card .g-medal { margin: 0; width: 96px; height: 96px; font-size: 44px; }
.g-win-card > b { font: 800 1.7rem var(--head); letter-spacing: -.02em; }
@keyframes g-fade { from { opacity: 0; } }

@media (max-width: 639px) {
  .g-top { padding: 10px 14px; }
  .g-progress { top: 56px; padding: 0 14px; }
  .g-stage { padding: 20px 16px 120px; }
  .g-teambar, .g-notice { margin: 10px 14px 0; }
  .g-card { padding: 18px; }
  .g-phone { width: 270px; height: 540px; } .g-phone iframe { transform: scale(.641); }
  .g-node-row.o1 { transform: translateX(30px); } .g-node-row.o3 { transform: translateX(-30px); }
}
@media (prefers-reduced-motion: reduce) { .g *, .g *::before, .g *::after { animation: none !important; transition: none !important; } }

/* ---- Coaching card on every step: what it is, why it matters, what's next ---- */
.g-guide { background: #fff; border-radius: var(--r); margin: 6px 0 18px; box-shadow: var(--shadow); border: 2px solid var(--line); overflow: hidden; }
.g-guide summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 18px; font: 800 15px var(--body); color: var(--ink); }
.g-guide summary::-webkit-details-marker { display: none; }
.g-guide summary svg { width: 18px; height: 18px; color: var(--b); flex: none; }
.g-guide summary small { color: var(--mu2); font-weight: 700; }
.g-guide summary::after { content: "–"; margin-left: auto; color: var(--mu2); font-size: 20px; line-height: 1; }
.g-guide:not([open]) summary::after { content: "+"; }
.g-guide-grid { display: grid; gap: 10px; padding: 0 18px; }
@media (min-width: 760px) { .g-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-guide-grid div { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.g-guide-grid span { display: block; font: 800 11px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--b-deep, var(--b)); margin-bottom: 4px; }
.g-guide-grid p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.g-guide-ex { margin: 10px 18px 16px; padding: 10px 14px; border-radius: 12px; background: var(--y-soft); font-size: 14px; color: #5B4300; }
.g-guide-ex b { color: #3E2E00; }

/* channel stats and "why we picked this" */
.g-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.05rem; }
.g-card h3 svg { width: 18px; height: 18px; color: var(--b); }
.g-chan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.g-chan-grid div { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.g-chan-grid b { display: block; font: 800 20px var(--head); }
.g-chan-grid span { color: var(--mu); font-size: 13px; font-weight: 600; }
.g-bars { display: grid; gap: 8px; margin-bottom: 14px; }
.g-barrow { display: grid; grid-template-columns: minmax(0, 190px) 1fr 44px; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.g-barrow i { height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.g-barrow em { display: block; height: 100%; border-radius: 10px; background: var(--b); }
.g-barrow b { text-align: right; color: var(--mu); font-size: 13px; }
@media (max-width: 520px) { .g-barrow { grid-template-columns: 1fr 44px; } .g-barrow i { grid-column: 1 / -1; grid-row: 2; } }
.g-evid { margin: 4px 0 0; padding-left: 18px; color: var(--ink); font-size: 14.5px; }
.g-evid li { margin: 4px 0; }

/* page step: link note, payments */
.g-fine { color: var(--mu); font-size: 13px; line-height: 1.45; margin: 10px 0 0; }
.g-pay p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mu); }
.g-pay .g-ok, .g-pay .g-test { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; }
.g-pay .g-ok { background: #E3F7EA; color: #17723C; } .g-pay .g-ok svg { width: 12px; height: 12px; }
.g-pay .g-test { background: var(--y-soft); color: #6A4A00; }

/* results: founding members and what people said */
.g-two { display: grid; gap: 16px; }
@media (min-width: 900px) { .g-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-two > .g-card { margin: 0; } .g-two { margin-bottom: 16px; } }
.g-buyers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-buyers li { display: flex; align-items: center; gap: 10px; }
.g-buyers li i { width: 32px; height: 32px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--b); flex: none; }
.g-buyers li span { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.g-buyers li small { display: block; color: var(--mu2); font-weight: 600; font-size: 12.5px; }
.g-buyers li b { font-size: 14.5px; }

/* ---- page step: preview beside a chat editor (like Lovable) ---- */
@media (min-width: 1000px) {
  .g-studio[data-view="desktop"] { grid-template-columns: minmax(0, 1fr) 340px; }
  .g-studio .g-pageside { position: sticky; top: 16px; }
}
.g-studio .g-browser iframe { height: 640px; }
.g-chatedit { display: grid; gap: 10px; border-color: var(--b-soft); }
.g-chat-head b { display: flex; align-items: center; gap: 8px; font: 800 17px var(--head); }
.g-chat-head b svg { color: var(--b); }
.g-chat-head small { display: block; color: var(--mu); font-weight: 600; font-size: 13px; margin-top: 2px; }
.g-chat-log { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; padding: 4px 2px; scroll-behavior: smooth; }
.g-bub { margin: 0; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; max-width: 88%; }
.g-bub.me { align-self: flex-end; background: var(--b); color: #fff; border-bottom-right-radius: 5px; font-weight: 600; }
.g-bub.ai { align-self: flex-start; background: var(--bg); border: 2px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.g-chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.g-chat-form textarea { width: 100%; resize: none; min-height: 64px; padding: 11px 13px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font: 500 15px/1.45 var(--body); color: var(--ink); }
.g-chat-form textarea:focus { outline: none; border-color: var(--b); box-shadow: 0 0 0 4px var(--b-glow); }
.g-chat-form .g-btn { width: 48px; height: 48px; padding: 0; border-radius: 14px; }
.g-undo { margin: 0; }
.g-styles .g-style-grid { display: grid; gap: 8px; margin-top: 8px; }
.g-styles form { margin: 0; }
.g-style { width: 100%; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 8px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.g-style:hover { border-color: var(--b); }
.g-style.on { border-color: var(--b); box-shadow: 0 0 0 4px var(--b-glow); }
.g-style i { grid-row: span 2; width: 54px; height: 42px; border-radius: 10px; display: grid; align-content: center; gap: 4px; padding: 0 8px; overflow: hidden; }
.g-style i em { display: block; height: 5px; border-radius: 3px; }
.g-style i em:nth-child(1) { width: 80%; height: 7px; } .g-style i em:nth-child(2) { width: 55%; } .g-style i em:nth-child(3) { width: 34%; height: 8px; border-radius: 99px; }
.g-style.s-studio i { background: radial-gradient(circle at 80% 20%, var(--b), #0B0B10 70%); } .g-style.s-studio i em { background: rgba(255,255,255,.85); } .g-style.s-studio i em:nth-child(3) { background: var(--b); }
.g-style.s-editorial i { background: #F6F1E8; border: 1px solid #E2D9C8; } .g-style.s-editorial i em { background: #1D1A16; } .g-style.s-editorial i em:nth-child(3) { background: var(--b); }
.g-style.s-bold i { background: var(--b); } .g-style.s-bold i em { background: #fff; }
.g-style b { font: 800 15px var(--head); align-self: end; } .g-style small { color: var(--mu); font-size: 12.5px; font-weight: 600; align-self: start; line-height: 1.3; }
.g-fine { font-size: 12.5px; color: var(--mu); margin: 0; }
.k-page .g-stage, .k-build .g-stage { max-width: 1240px; }
.g-browser .g-scale { position: relative; width: 100%; overflow: hidden; }
.g-browser .g-scale iframe { width: 1280px; height: 820px; transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.g-rewrite { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 10px 0 4px; }
.g-rewrite input { padding: 10px 13px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); font: 500 14px var(--body); color: var(--ink); min-width: 0; }
.g-rewrite input:focus { outline: none; border-color: var(--b); }

/* ---- "What we build": the blueprint ---- */
.k-spec .g-stage { max-width: 1080px; }
.g-blue { margin-top: 8px; }
.g-blue-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.g-blue-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.g-blue-stats span { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 700; color: var(--mu); }
.g-blue-stats b { color: var(--ink); font-family: var(--head); }
.g-h3 { font: 800 1.2rem var(--head); letter-spacing: -.01em; margin: 26px 0 12px; }
.g-h3 small { font: 600 13px var(--body); color: var(--mu); margin-left: 6px; }
.g-fwhy { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.g-fw { display: grid; gap: 6px; align-content: start; border-top: 6px solid var(--b); }
.g-fw.pr-should { border-top-color: var(--y); } .g-fw.pr-could { border-top-color: var(--line2); }
.g-fw-top { display: flex; justify-content: space-between; align-items: center; }
.g-fw-top i { font-style: normal; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--b-soft); color: var(--b-deep); font: 800 14px var(--head); }
.g-pr { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mu); }
.g-fw b { font: 800 1.05rem/1.25 var(--head); }
.g-fw p { margin: 0; font-size: 14.5px; color: var(--mu); line-height: 1.45; }
.g-fw .g-fw-why { display: flex; gap: 7px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 8px 10px; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.g-fw-why svg { width: 16px; height: 16px; flex: none; color: var(--b); margin-top: 2px; }
.g-wires { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.g-wire { flex: none; width: 128px; text-align: center; }
.g-wire span { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.g-wire-ph { height: 220px; border-radius: 22px; border: 6px solid var(--ink); background: #fff; padding: 14px 10px; display: grid; align-content: start; gap: 8px; box-shadow: 0 14px 26px -18px rgba(60,40,10,.5); }
.g-wire-ph i { display: block; height: 46px; border-radius: 10px; background: linear-gradient(135deg, var(--b), var(--b-deep)); opacity: .85; }
.g-wire-ph em { display: block; height: 9px; border-radius: 5px; background: var(--line); }
.g-wire-ph em:nth-of-type(2) { width: 70%; } .g-wire-ph em:nth-of-type(3) { width: 85%; }
.g-wire-ph u { display: block; height: 22px; border-radius: 999px; background: var(--b); margin-top: auto; }
.g-wire-ph.w1 i { height: 24px; background: var(--b-soft); } .g-wire-ph.w2 i { height: 70px; border-radius: 50%; width: 70px; justify-self: center; }
.g-wire-ph.w3 i { height: 30px; background: var(--y-soft); }
.g-flow { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.g-flow li { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 7px; font-weight: 700; font-size: 14.5px; position: relative; }
.g-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -18px; color: var(--mu2); font-weight: 800; }
.g-flow li:not(:last-child) { margin-right: 14px; }
.g-flow i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--b); color: #fff; font: 800 12.5px var(--head); }
.g-built { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.g-bt { display: grid; gap: 6px; align-content: start; }
.g-bt b { font: 800 1rem var(--head); } .g-bt p { margin: 0; font-size: 14px; color: var(--mu); line-height: 1.45; }
.g-bt-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--b-soft); color: var(--b-deep); }
.g-bt-ic svg { width: 20px; height: 20px; }
.g-bt.b-lock .g-bt-ic { background: var(--g-soft); color: var(--g-deep); } .g-bt.b-card .g-bt-ic { background: var(--y-soft); } .g-bt.b-chart .g-bt-ic { background: var(--sky-soft); color: var(--sky-deep); }
.g-tl { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 0; overflow-x: auto; padding-bottom: 6px; }
.g-tl-item { position: relative; padding: 0 16px 0 0; }
.g-tl-item::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 4px; background: var(--line); border-radius: 4px; }
.g-tl-dot { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--b); color: #fff; font: 800 15px var(--head); box-shadow: 0 0 0 5px var(--bg); }
.g-tl-item small { display: block; margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--b-deep); }
.g-tl-item b { display: block; font: 800 1rem var(--head); margin-bottom: 4px; }
.g-tl-item ul { margin: 0; padding-left: 16px; font-size: 13.5px; color: var(--mu); line-height: 1.5; }
.g-linkedit { margin: 8px 0 4px; }
.g-linkedit summary { cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--b-deep); }

/* ---- the coach (a guided journey, like Fabulous) ---- */
.g-coach { position: relative; overflow: hidden; border-radius: var(--r); padding: 20px 22px; margin: 4px 0 16px; color: #fff;
  background: radial-gradient(130% 140% at 100% 0%, color-mix(in oklab, var(--b) 55%, #FFC83D) 0%, var(--b) 45%, var(--b-deep) 100%); box-shadow: 0 18px 40px -22px var(--b); }
.g-coach::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); }
.g-coach-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.g-coach-av { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.2); flex: none; }
.g-coach-av svg { width: 22px; height: 22px; }
.g-coach-top small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.g-coach-top b { font: 800 1.35rem/1.15 var(--head); letter-spacing: -.01em; }
.g-coach-time { margin-left: auto; background: rgba(0,0,0,.18); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.g-coach-note { position: relative; z-index: 1; margin: 12px 0 14px; font-size: 16px; line-height: 1.5; max-width: 62ch; }
.g-coach-steps { position: relative; z-index: 1; display: grid; gap: 8px; }
.g-cstep { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14); border-radius: 14px; padding: 9px 12px; cursor: pointer; font-weight: 700; font-size: 14.5px; transition: background .2s; }
.g-cstep:hover { background: rgba(255,255,255,.22); }
.g-cstep input { position: absolute; opacity: 0; pointer-events: none; }
.g-cstep i { width: 24px; height: 24px; border-radius: 8px; border: 2px solid rgba(255,255,255,.7); display: grid; place-items: center; flex: none; }
.g-cstep i svg { width: 14px; height: 14px; opacity: 0; }
.g-cstep.y i { background: #fff; color: var(--b-deep); border-color: #fff; } .g-cstep.y i svg { opacity: 1; }
.g-cstep.y span { text-decoration: line-through; opacity: .75; }
.g-cstep em { margin-left: auto; font-style: normal; font-size: 12.5px; opacity: .8; }
.g-cstep:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- examples drawn as small pictures ---- */
.g-guide-ex2 { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; background: var(--y-soft); border-radius: 16px; padding: 12px; margin-top: 10px; }
.g-guide-ex2 p { margin: 0; font-size: 14.5px; line-height: 1.45; } .g-guide-ex2 p b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--y-deep); margin-bottom: 2px; }
@media (max-width: 560px) { .g-guide-ex2 { grid-template-columns: 1fr; } }
.g-exv { height: 104px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; padding: 10px; box-shadow: 0 6px 14px -10px rgba(80,50,10,.4); }
.xv-card { width: 100%; display: grid; gap: 5px; } .xv-card i { height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--b), var(--b-deep)); }
.xv-card b { font: 800 13px var(--head); } .xv-card em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--g-deep); } .xv-card u { height: 5px; border-radius: 3px; background: var(--line); }
.xv-ring { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; } .xv-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); grid-row: span 2; }
.xv-ring circle { fill: none; stroke-width: 4; } .xv-ring .t { stroke: var(--line); } .xv-ring .f { stroke: var(--g); stroke-linecap: round; }
.xv-ring b { font: 800 1.5rem var(--head); align-self: end; } .xv-ring small { font-size: 11px; color: var(--mu); font-weight: 700; align-self: start; }
.xv-page { width: 100%; display: grid; gap: 5px; } .xv-page em { height: 6px; width: 40%; border-radius: 3px; background: var(--b-soft); }
.xv-page b { font: 800 12.5px/1.2 var(--head); } .xv-page u { height: 5px; width: 80%; border-radius: 3px; background: var(--line); }
.xv-page span { justify-self: start; background: var(--b); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.xv-post { width: 100%; display: grid; gap: 5px; font-size: 11px; } .xv-post div { display: flex; align-items: center; gap: 5px; } .xv-post b { font-size: 11.5px; }
.xv-post .g-av.xs { width: 18px; height: 18px; } .xv-post em { height: 34px; border-radius: 7px; background: linear-gradient(135deg, var(--pink), var(--b)); }
.xv-post p { margin: 0; font-weight: 600; line-height: 1.25; } .xv-post span { color: var(--pink-deep); font-weight: 800; }
.xv-bars { width: 100%; height: 100%; display: flex; align-items: flex-end; gap: 5px; position: relative; padding-bottom: 16px; }
.xv-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--g), var(--g-deep)); }
.xv-bars small { position: absolute; left: 0; bottom: 0; font-size: 10.5px; font-weight: 800; color: var(--mu); }
.xv-medal { display: grid; justify-items: center; gap: 4px; color: var(--y-deep); } .xv-medal svg { width: 44px; height: 44px; } .xv-medal b { font: 800 13px var(--head); color: var(--ink); }
.xv-chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; } .xv-chips span { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--b-soft); color: var(--b-deep); }
.xv-chips .later { background: var(--line); color: var(--mu); }
.xv-checks { display: grid; gap: 5px; width: 100%; } .xv-checks span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; }
.xv-checks svg { width: 14px; height: 14px; color: var(--g); } .xv-checks .no { color: #B45309; }
.xv-quotes { display: grid; gap: 6px; width: 100%; } .xv-quotes p { margin: 0; font-size: 11.5px; font-weight: 700; padding: 6px 9px; border-radius: 10px; background: var(--g-soft); justify-self: start; }
.xv-quotes .b { background: var(--pink-soft); justify-self: end; }

/* ---- running the business ---- */
.k-business .g-stage { max-width: 1120px; }
.g-soon { font-size: 10.5px; font-weight: 800; color: var(--mu2); margin-left: 4px; text-transform: uppercase; letter-spacing: .04em; }
.g-btabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 2px solid var(--line); border-radius: 16px; margin: 6px 0 18px; flex-wrap: wrap; }
.g-btabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 12px; font-weight: 800; font-size: 14.5px; color: var(--mu); text-decoration: none; }
.g-btabs a svg { width: 17px; height: 17px; }
.g-btabs a.on { background: var(--b); color: #fff; }
.g-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.g-kpi { display: grid; gap: 4px; } .g-kpi span { font-size: 13px; font-weight: 800; color: var(--mu); }
.g-kpi b { font: 800 1.9rem var(--head); letter-spacing: -.02em; } .g-kpi em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--mu); }
.g-kpi em.up { color: var(--g-deep); } .g-kpi em.down { color: #C2410C; }
.g-chart { margin-bottom: 14px; }
.g-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.g-chart-head b { font: 800 1.1rem var(--head); } .g-chart-head small { color: var(--mu); font-weight: 700; } .g-chart-head form { margin: 0; }
.g-chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.g-chart-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--b), var(--b-deep)); min-height: 3px; transition: opacity .2s; }
.g-chart-bars i.zero { background: var(--line); } .g-chart-bars i:hover { opacity: .75; }
.g-chart-axis { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--mu2); margin-top: 6px; }
.g-todo { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.g-todo a { display: block; text-decoration: none; color: var(--ink); background: var(--bg); border-radius: 14px; padding: 10px 12px; border: 2px solid transparent; }
.g-todo a:hover { border-color: var(--b-soft); } .g-todo b { display: block; font-size: 14.5px; } .g-todo small { color: var(--mu); font-size: 13px; }
.g-chan-list { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 8px; }
.g-chan-list li { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.g-chan-list i { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; } .g-chan-list em { display: block; height: 100%; background: var(--b); border-radius: 99px; }
.g-recent { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.g-recent li { display: flex; align-items: center; gap: 10px; font-size: 14px; } .g-recent i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--g-soft); color: var(--g-deep); font-weight: 800; flex: none; }
.g-recent span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .g-recent small { display: block; color: var(--mu); font-size: 12px; } .g-recent b { font-family: var(--head); }
.g-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.g-cal-day { min-height: 96px; border-radius: 14px; background: var(--bg); padding: 7px; display: grid; align-content: start; gap: 5px; }
.g-cal-day.today { box-shadow: inset 0 0 0 2px var(--b); }
.g-cal-day > span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--mu2); } .g-cal-day em { font-style: normal; color: var(--ink); }
.g-cal-day a { display: block; text-decoration: none; background: #fff; border-radius: 9px; padding: 5px 6px; font-size: 11.5px; font-weight: 700; color: var(--ink); line-height: 1.25; border-left: 3px solid var(--b); }
.g-cal-day a.done { border-left-color: var(--g); opacity: .7; } .g-cal-day a small { display: block; color: var(--mu); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) { .g-cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.g-idea { display: grid; gap: 6px; align-content: start; margin: 0; } .g-idea b { font: 800 1rem/1.3 var(--head); } .g-idea small { color: var(--mu); font-size: 13px; }
.g-idea .g-chip { justify-self: start; } .g-idea .g-btn { justify-self: start; margin-top: 4px; }
.g-table { overflow-x: auto; } .g-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.g-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mu); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.g-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.g-st { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--line); }
.g-st.presale { background: var(--y-soft); color: #7A5300; } .g-st.customer { background: var(--g-soft); color: var(--g-deep); }
