/* Bushline website.
 * The page wears the app's own colours: the near-black bush-floor green of its
 * chrome, bush green for the one action, amber for the modelled lines and for
 * warnings, and the four filament spools for anything that is the print.
 */

:root {
  --night: #0B221C;
  --ground: #0E2821;
  --ground-2: #183C32;
  --ground-3: #21493D;
  --moss: #6B9E4A;
  --moss-2: #8DBE69;
  --snow: #F6F8F4;
  --mist: rgba(246, 248, 244, 0.72);
  --faint: rgba(246, 248, 244, 0.5);
  --line: rgba(246, 248, 244, 0.13);
  --amber: #DE9E33;
  --sp-green: #B2BA81;
  --sp-grey: #9EA2A2;
  --sp-white: #FFFFFF;
  --sp-ocean: #B8F1ED;
  --water-ink: #8CC8EA;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: var(--moss-2); text-underline-offset: 3px; }
a:hover { color: var(--snow); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--faint); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; }


h1, h2, h3 { font-family: var(--display); font-weight: 650; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
h3 { font-size: 1.15rem; line-height: 1.25; }
p { margin: 0 0 14px; text-wrap: pretty; }

/* ---- header -------------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: rgba(11, 34, 28, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--snow); text-decoration: none; font-family: var(--display); font-weight: 650; font-size: 19px; }
.brand img { margin: -4px -2px -4px -6px; }
.top nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font-size: 15px; }
.top nav a { color: var(--mist); text-decoration: none; }
.top nav a:hover { color: var(--snow); }

/* ---- hero ---------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
  min-height: min(88vh, 860px);
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(24px, 4vw, 48px);
  isolation: isolate;
}
.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 60% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 75% at 60% 50%, #000 30%, transparent 85%); }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 5.1rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 22px; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--mist); max-width: 34ch; margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.store {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px 11px 14px; border-radius: 999px;
  background: var(--moss); color: #fff; font-weight: 600; font-size: 15.5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.store .i { width: 18px; height: 18px; }
.text-link { font-weight: 600; font-size: 15.5px; text-decoration: none; }
.text-link::after { content: " ↓"; }
.text-link:hover { text-decoration: underline; }
.hero-model { margin: 0; position: relative; }
.hero-model canvas { display: block; width: 100%; height: clamp(340px, 64vh, 660px); cursor: grab; touch-action: pan-y; }
.hero-model canvas:active { cursor: grabbing; }
.hero-model figcaption, .window-caption { font-size: 13px; color: var(--faint); text-align: center; margin-top: 4px; }

/* ---- sections ------------------------------------------------------------------- */

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter) 0; }
.head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.head p { color: var(--mist); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.split .head { margin-bottom: 0; }

/* ---- the window ------------------------------------------------------------------ */

.window {
  position: relative;
  border-radius: 14px;
  background: var(--ground);
  border: 1px solid rgba(246, 248, 244, 0.1);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}
.win-bar {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  height: 40px; padding: 0 14px;
  background: rgba(24, 60, 50, 0.55);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(246, 248, 244, 0.18); }
.win-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-size: 15px; }
.win-title .i { width: 17px; height: 17px; color: var(--moss); align-self: center; }
.win-title b { font-family: var(--display); font-weight: 650; }
.win-title em { font-style: normal; color: var(--faint); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-tabs { display: none; }
.win-body { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); }
.pane { position: relative; min-width: 0; }
.map-pane { aspect-ratio: 3 / 2; background: #FBFBF6; overflow: hidden; }
.sheet, .sel-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sel-layer { cursor: crosshair; touch-action: none; }
.model-pane { display: grid; grid-template-columns: minmax(0, 1fr) 140px; border-left: 1px solid rgba(0, 0, 0, 0.35); }
.model-stage { position: relative; min-height: 0; }
.model-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.model-canvas:active { cursor: grabbing; }
.no-gl-note { display: none; position: absolute; inset: 0; margin: auto; height: fit-content; padding: 20px; text-align: center; color: var(--faint); font-size: 14px; }
.no-webgl .no-gl-note { display: block; }

/* The map's controls, on the app's dark material. */
.map-controls { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.group {
  display: flex; padding: 3px; gap: 2px;
  background: rgba(20, 36, 31, 0.66);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.group.col { flex-direction: column; align-items: center; }
.ctl {
  display: grid; place-items: center;
  width: 30px; height: 28px; padding: 0;
  border: 0; border-radius: 5px;
  background: transparent; color: var(--snow);
  cursor: pointer;
}
.ctl .i { width: 20px; height: 20px; }
.ctl:hover:not(:disabled) { background: rgba(246, 248, 244, 0.12); }
.ctl.armed { background: rgba(107, 158, 74, 0.9); }
.ctl.current { background: rgba(107, 158, 74, 0.28); }
.ctl:disabled { opacity: 0.35; cursor: default; }
.piece-count { display: flex; align-items: center; gap: 3px; height: 22px; font: 600 11.5px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--faint); border-block: 1px solid rgba(246, 248, 244, 0.14); padding: 0 3px; }
.piece-count.many { color: var(--snow); }
.cell-icon { width: 13px; height: 13px; }
.cell-icon[data-cell="square"] .u-hex, .cell-icon[data-cell="hexagon"] .u-square { display: none; }

.capsule {
  position: absolute; left: 50%; transform: translateX(-50%);
  margin: 0; max-width: calc(100% - 120px);
  padding: 7px 13px; border-radius: 999px;
  background: rgba(20, 36, 31, 0.74);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--snow); font-size: 14px; line-height: 1.3; text-align: center;
  pointer-events: none;
}
.hint { top: 10px; left: calc(50% + 24px); }
.pieces-hint { top: 10px; left: calc(50% + 24px); }
.make {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: 0; border-radius: 8px;
  background: var(--moss); color: #fff; font-weight: 600; font-size: 14.5px; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.make:hover { background: #77AB54; }
.make .i { width: 17px; height: 17px; }

/* The selection, drawn over the sheet. */
.sel-layer .dim { fill: rgba(11, 34, 28, 0.28); }
.sel-layer .halo { fill: none; stroke: rgba(11, 34, 28, 0.5); stroke-width: 4; vector-effect: non-scaling-stroke; }
.sel-layer .outline { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sel-layer .piece-halo { fill: none; stroke: rgba(11, 34, 28, 0.5); stroke-width: 3.4; vector-effect: non-scaling-stroke; }
.sel-layer .piece { fill: none; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sel-layer .piece.picked { fill: rgba(107, 158, 74, 0.38); }
.sel-layer .handle { fill: #fff; stroke: rgba(11, 34, 28, 0.75); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sel-layer .num { fill: #fff; stroke: rgba(11, 34, 28, 0.72); paint-order: stroke; font-family: var(--display); font-weight: 700; text-anchor: middle; pointer-events: none; }
.sel-layer .num.picked { fill: var(--ground); stroke: none; }
.sel-layer .num-chip { fill: #fff; }

/* The ruler and the dimensions. */
.ruler { position: relative; background: rgba(14, 40, 33, 0.55); border-left: 1px solid rgba(0, 0, 0, 0.25); padding: 0; }
.ruler canvas, .ruler-hits { position: absolute; inset: 8px 0; width: 100%; height: calc(100% - 16px); }
.ruler-empty { position: absolute; inset: 0; margin: auto; height: fit-content; padding: 0 12px; text-align: center; font-size: 12px; color: var(--faint); }
.ruler.has-model .ruler-empty { display: none; }
.hit { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; }
.band-hit:hover { box-shadow: 0 0 0 1.5px rgba(246, 248, 244, 0.6); border-radius: 3px; }
.break-hit { display: flex; align-items: center; gap: 4px; height: 22px; color: var(--snow); font: 10px/1 var(--mono); font-variant-numeric: tabular-nums; cursor: ns-resize; touch-action: none; }
.break-hit .val { white-space: nowrap; }
.chev {
  display: inline-block; width: 7px; height: 10px; flex: none; opacity: 0.7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 10'%3E%3Cpath d='M1 3.6 3.5 1 6 3.6M1 6.4 3.5 9 6 6.4' fill='none' stroke='%23F6F8F4' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dims { position: absolute; inset: 0; pointer-events: none; }
.dim-chip {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: auto;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(14, 40, 33, 0.82);
  border: 1px solid rgba(246, 248, 244, 0.14);
  color: var(--snow); font: 11px/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.size-chip { cursor: pointer; }
.size-chip:hover, .height-chip:hover { border-color: rgba(246, 248, 244, 0.5); }
.height-chip { cursor: ns-resize; touch-action: none; display: flex; flex-direction: column; padding: 0; }
.height-chip .row { display: flex; align-items: center; gap: 5px; padding: 3px 6px; }
.height-chip .row + .row { border-top: 1px solid rgba(246, 248, 244, 0.18); }
.height-chip .row > span:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.height-chip b { font-weight: 500; }
.height-chip i { font-style: normal; font-size: 9.5px; color: rgba(246, 248, 244, 0.75); }
.height-chip i.warn { color: var(--amber); }

/* The footer of the window. */
.win-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  min-height: 44px; padding: 6px 16px;
  background: rgba(24, 60, 50, 0.72);
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 13px;
}
.credit { font-size: 11.5px; color: var(--faint); }
.sep { width: 1px; height: 18px; background: rgba(246, 248, 244, 0.15); }
.style-group { display: flex; align-items: center; gap: 8px; }
.style-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--moss-2); cursor: pointer; font-size: 13.5px; }
.style-btn::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.style-btn:hover { background: rgba(246, 248, 244, 0.08); }
.style-btn .i { width: 17px; height: 17px; }
.style-control input[type="range"] { width: 84px; }
.style-control[data-style="natural"] { display: none; }
.style-control[data-style="lowpoly"] .blocks-ctl, .style-control[data-style="blocks"] input[name="step"] { display: none; }
.blocks-ctl { display: inline-flex; align-items: center; gap: 6px; }
.depth-out { font-size: 11px; min-width: 28px; }
.style-group:has(.style-control:not([data-style="natural"])) .style-btn { color: var(--amber); }
.foot-prompt { color: var(--faint); }
.readouts { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.scale-bar { display: inline-flex; align-items: center; gap: 7px; }
.bar { position: relative; width: 54px; height: 10px; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1.5px; background: rgba(246, 248, 244, 0.55); }
.bar::after { content: ""; position: absolute; inset: 0; border: solid rgba(246, 248, 244, 0.85); border-width: 0 1.5px; }
.bar-text { display: flex; flex-direction: column; line-height: 1.15; }
.bar-ground { font-size: 11px; }
.bar-print { font-size: 9px; color: var(--faint); }
.scale-text, .range-text { font-size: 11px; }

/* Popovers and menus. */
.pop {
  position: absolute; z-index: 10;
  min-width: 190px; max-width: 280px;
  padding: 12px;
  background: rgba(24, 48, 41, 0.97);
  border: 1px solid rgba(246, 248, 244, 0.16);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 13px;
}
.pop.menu { padding: 5px; min-width: 170px; }
.menu-title { margin: 4px 8px 6px; font-size: 11px; color: var(--faint); letter-spacing: 0.02em; }
.menu-item { display: block; width: 100%; text-align: left; padding: 6px 8px 6px 26px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; position: relative; font-size: 13px; }
.menu-item:hover:not(:disabled), .menu-item:focus-visible { background: var(--moss); color: #fff; outline: none; }
.menu-item:disabled { color: var(--faint); cursor: default; }
.menu-item.checked::before { content: "✓"; position: absolute; left: 9px; }
.pop-title { margin: 0 0 2px; font-family: var(--display); font-weight: 650; font-size: 15px; }
.pop-sub { margin: 0; color: var(--mist); font-size: 11.5px; }
.pop-note { margin: 8px 0; color: var(--mist); font-size: 12px; line-height: 1.45; }
.warn { color: var(--amber) !important; }
.pop-actions { margin: 10px -6px -6px; padding-top: 6px; border-top: 1px solid var(--line); }
.pop-actions .menu-item { padding-left: 8px; }

/* Pointing at a part of the window from the notes. */
.spot { animation: spot 0.85s ease-in-out 3; border-radius: 8px; }
.dims.spot .dim-chip { animation: spot 0.85s ease-in-out 3; }
.dims.spot { animation: none; }
@keyframes spot { 0%, 100% { box-shadow: 0 0 0 0 rgba(222, 158, 51, 0); } 50% { box-shadow: 0 0 0 4px rgba(222, 158, 51, 0.95); } }
@media (prefers-reduced-motion: reduce) { .spot, .dims.spot .dim-chip { animation: none; box-shadow: 0 0 0 3px var(--amber); } }

/* The notes under the window. */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; margin-top: 56px; }
.note { border-top: 1px solid var(--line); padding-top: 18px; }
.note-icon { width: 26px; height: 26px; color: var(--moss-2); margin-bottom: 10px; }
.note h3 { margin-bottom: 8px; }
.note p { color: var(--mist); font-size: 15.5px; margin-bottom: 10px; }
.show { padding: 0; border: 0; background: none; color: var(--moss-2); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.show::after { content: " ↑"; }
.show:hover { color: var(--snow); text-decoration: underline; text-underline-offset: 3px; }

/* ---- the name --------------------------------------------------------------------- */

.name { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.name-text p { color: var(--mist); }
.profile { margin: 0; }
.profile canvas { display: block; width: 100%; height: clamp(220px, 26vw, 320px); border-radius: 12px; background: linear-gradient(180deg, rgba(24, 60, 50, 0.35), rgba(24, 60, 50, 0.05)); cursor: crosshair; }
.profile figcaption { margin-top: 10px; font-size: 12.5px; color: var(--mist); min-height: 1.5em; }

/* ---- cards ---------------------------------------------------------------------------- */

.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding-bottom: 18px; overflow: hidden; }
.card canvas { display: block; width: 100%; aspect-ratio: 4 / 3; cursor: grab; touch-action: pan-y; background: radial-gradient(ellipse at 50% 60%, rgba(33, 73, 61, 0.55), transparent 70%); }
.cards.two .card canvas { aspect-ratio: 16 / 10; }
.card h3 { display: flex; align-items: center; gap: 8px; padding: 0 20px; margin: 6px 0 8px; }
.card h3 .i { color: var(--moss-2); }
.card p { padding: 0 20px; color: var(--mist); font-size: 15px; }
.slider { display: flex; align-items: center; gap: 12px; padding: 0 20px; font-size: 13px; color: var(--mist); }
.slider input { flex: 1; accent-color: var(--moss); }
.slider output { min-width: 34px; text-align: right; color: var(--snow); font-size: 12px; }
input[type="range"] { accent-color: var(--moss); }

/* ---- pieces ------------------------------------------------------------------------------ */

.stage-card { background: var(--ground); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stage-card canvas { display: block; width: 100%; aspect-ratio: 4 / 3; cursor: grab; touch-action: pan-y; background: radial-gradient(ellipse at 50% 55%, rgba(33, 73, 61, 0.6), transparent 70%); }
.stage-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 0; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: rgba(246, 248, 244, 0.07); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; cursor: pointer; color: var(--mist); }
.seg button .i { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--moss); color: #fff; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(246, 248, 244, 0.07); }
.stepper button { display: grid; place-items: center; width: 32px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: rgba(246, 248, 244, 0.12); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper .count { display: inline-flex; align-items: center; gap: 5px; min-width: 48px; justify-content: center; font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.stepper .cell-icon { width: 15px; height: 15px; color: var(--moss-2); }
.stage-caption { padding: 10px 16px 14px; margin: 0; font-size: 13px; color: var(--faint); }

/* ---- ideas --------------------------------------------------------------------------------- */

.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.idea { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; }
.place { margin: 0 0 10px; color: var(--sp-green); }
.range-name { font-size: 12.5px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; }
.water-name { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--water-ink); letter-spacing: 0.04em; margin-top: -3px; margin-bottom: 7px; }
.idea h3 { margin-bottom: 8px; }
.idea p:not(.place):not(.recipe) { color: var(--mist); font-size: 15.5px; }
.recipe { margin-top: auto; padding-top: 10px; border-top: 1px dotted rgba(246, 248, 244, 0.2); font-size: 12px; color: var(--sp-green); }

/* ---- ordering ------------------------------------------------------------------------------ */

.aside { font-size: 15px; border-left: 2px solid var(--moss); padding-left: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 16.5px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li > .i, .step-mark { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; border: 1px solid rgba(246, 248, 244, 0.22); color: var(--moss-2); }
.step-mark { display: grid; place-items: center; padding: 0; font-size: 12px; }

/* ---- data ------------------------------------------------------------------------------------ */

.data { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.data .head { margin-bottom: 0; }
.attribution { border-left: 3px solid var(--moss); padding-left: 18px; font-size: 14.5px; color: var(--mist); }
.attribution p:last-child { margin-bottom: 0; }

/* ---- footer ------------------------------------------------------------------------------------ */

.foot {
  max-width: var(--maxw); margin: clamp(72px, 10vw, 128px) auto 0;
  padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--mist); text-decoration: none; }
.foot nav a:hover { color: var(--snow); }
.foot .muted { margin: 0 0 0 auto; font-size: 13px; }

/* ---- smaller screens ---------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .notes, .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three .card:last-child { grid-column: 1 / -1; }
  .cards.three .card:last-child canvas { aspect-ratio: 16 / 9; }
  .win-foot .wide { display: none; }
}

@media (max-width: 860px) {
  .hero, .split, .name, .data { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; padding-top: 28px; }
  .hero-model canvas { height: clamp(300px, 72vw, 520px); }
  .name .profile { order: 2; }
}

/* The window on a phone: one pane at a time, with a picker, as the app does. */
.window.compact .win-tabs { display: flex; gap: 2px; margin: 8px 10px; padding: 2px; border-radius: 8px; background: rgba(246, 248, 244, 0.08); }
.window.compact .win-tabs button { flex: 1; padding: 5px 0; border: 0; border-radius: 6px; background: transparent; font-size: 13.5px; cursor: pointer; color: var(--mist); }
.window.compact .win-tabs button[aria-selected="true"] { background: rgba(246, 248, 244, 0.2); color: var(--snow); font-weight: 600; }
.window.compact .win-body { grid-template-columns: minmax(0, 1fr); }
.window.compact[data-pane="map"] .model-pane, .window.compact[data-pane="model"] .map-pane { display: none; }
.window.compact .model-pane { height: clamp(320px, 92vw, 560px); grid-template-columns: minmax(0, 1fr) 126px; border-left: 0; }
.window.compact .win-title em { display: none; }
.window.compact .readouts { margin-left: 0; }
.window.compact .pieces-hint { left: 50%; top: auto; bottom: 12px; max-width: calc(100% - 24px); font-size: 12.5px; }
.window.compact .hint { left: 50%; top: auto; bottom: 12px; font-size: 12.5px; max-width: calc(100% - 24px); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .notes, .idea-grid, .cards.three, .cards.two { grid-template-columns: minmax(0, 1fr); }
  .cards.three .card:last-child canvas { aspect-ratio: 4 / 3; }
  .top nav a:nth-child(2) { display: none; }
  .foot .muted { margin-left: 0; }
  .map-controls { top: 6px; left: 6px; gap: 5px; transform: scale(0.9); transform-origin: top left; }
}

.window.compact .readouts > .sep:first-child { display: none; }

/* ---- the privacy page ------------------------------------------------------------ */

.policy { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 0; }
.policy h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 18px; }
.policy .lead { max-width: none; margin-bottom: 10px; }
.updated { font-size: 12.5px; color: var(--faint); margin-bottom: 8px; }
.policy section { padding-top: 34px; margin-top: 30px; border-top: 1px solid var(--line); }
.policy h2 { font-size: 1.5rem; margin-bottom: 14px; }
.policy p, .policy li { color: var(--mist); }
.policy ul { margin: 0 0 14px; padding: 0; list-style: none; }
.policy li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 5px; border: solid var(--moss-2); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.services li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sp-green); }
.services b { color: var(--snow); font-weight: 600; }
.services .mono { font-size: 13px; color: var(--sp-green); }
.placeholder { padding: 1px 7px; border-radius: 5px; border: 1px dashed var(--amber); color: var(--amber); font-size: 14px; }
