/* Front page. Full width bands, hairline rules between them, no boxes. */
.wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--ground); box-shadow: inset 0 -1px 0 var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--f-display); font-size: 26px; line-height: 1; letter-spacing: .01em; }
.top-nav { display: flex; gap: 4px; }
.top-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 600; text-decoration: none; color: var(--text-2); transition: color .15s ease;
}
.top-nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 112px) 0 clamp(56px, 8vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-copy .lede { max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-art { position: relative; display: grid; justify-items: center; isolation: isolate; padding: 24px 0 0; }
.hero-blob { position: absolute; z-index: -1; border-radius: 50%; }
.hero-blob.b-red { width: 44%; aspect-ratio: 1; background: var(--subtick); left: 4%; top: 6%; }
.hero-blob.b-yellow { width: 30%; aspect-ratio: 1; background: var(--wheel); right: 6%; top: 0; }
.hero-blob.b-blue { width: 38%; aspect-ratio: 1; background: var(--snoot); right: 14%; bottom: 14%; }
.hero-mango { width: min(100%, 420px); aspect-ratio: 1; transform: rotate(-8deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero-clock { position: absolute; left: 0; bottom: 96px; transform: rotate(-3deg); }
.hero-clock .mxo-timer { font-size: clamp(13px, 1.15vw, 18px); }
.hero-spin {
  position: absolute; right: 0; top: 12%; transform: rotate(4deg);
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(20px, 1.9vw, 30px); line-height: 1;
  background: var(--wheel); color: var(--on-tool); padding: .3em .55em .34em; border-radius: .3em;
  box-shadow: 0 0 0 3px var(--ground), 0 14px 30px rgba(0, 0, 0, .35);
}
.hero-spin span { display: block; font-family: var(--f-mono); font-weight: 700; font-size: 10px; letter-spacing: .16em; margin-bottom: 4px; }
.hero-q { position: absolute; right: 0; bottom: 92px; font-size: clamp(12px, 1vw, 15px); max-width: 19em; transform: rotate(2deg); box-shadow: inset .3em 0 0 var(--snoot), 0 14px 30px rgba(0, 0, 0, .35); }
.hero-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 28px; }

/* ---------- Section heads ---------- */
.tools, .dash { padding: clamp(56px, 7vw, 112px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }

/* ---------- Tool row: three demos side by side, each on its own colour ---------- */
.tool-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 44px); }
.tool { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 14px; align-content: start; }
.tool-h { display: flex; align-items: center; gap: 12px; font-size: clamp(36px, 3vw, 52px); line-height: 1; margin-top: 10px; }
.tool-h::before { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--tool); flex: none; }
.tool-line { font-size: 18px; line-height: 1.45; color: var(--text-2); max-width: 36ch; }
.stage {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden;
  background: var(--tool);
  background-image: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .22), transparent 46%);
}
.stage-clock { display: flex; align-items: center; justify-content: center; padding: 20px; }
.stage-clock .mxo-timer { font-size: clamp(12px, 1.05vw, 17px); }
.stage-clock .mxo-plate { transform: rotate(-3deg); box-shadow: 0 18px 30px rgba(60, 0, 0, .35); }
.stage-wheel { display: flex; align-items: center; justify-content: center; }
.stage-wheel #demo-wheel { width: 64%; --mxo-result-size: clamp(16px, 1.6vw, 24px); }
.stage-wheel .mxo-wheel { gap: 0; }
.stage-wheel .mxo-wheel-stage { margin-top: 4%; }
.stage-wheel .mxo-result { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%) scale(.9); white-space: nowrap; background: #21130b; color: #ffcc33; box-shadow: none; }
.stage-wheel .mxo-result.is-on { transform: translateX(-50%); }
.stage-q { display: flex; align-items: center; justify-content: center; padding: 20px; }
.stage-q .mxo-q { box-shadow: inset .3em 0 0 #21130b, 0 18px 30px rgba(0, 20, 60, .3); transform: rotate(-2deg); }
.q-slot { font-size: clamp(13px, 1.1vw, 17px); }
.q-empty { color: #0b1f3a; font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn-tool { background: var(--tool); color: var(--on-tool); }
.btn-tool:hover { filter: brightness(1.08); }
.btn-tool[disabled] { background: transparent; color: var(--text-2); }
.tool .btn-line:hover { box-shadow: inset 0 0 0 1px var(--tool); }
.inbox [aria-pressed="true"] { background: var(--tool); color: var(--on-tool); box-shadow: none; }
.workshop { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 17px; }

/* ---------- Make an account (the loud moment) ---------- */
.account { background: var(--mango); color: var(--on-mango); padding: clamp(64px, 8vw, 128px) 0; }
.account-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 112px); align-items: end; }
.account-grid .lede { margin-top: 20px; max-width: 38ch; }
.account-form { display: grid; gap: 16px; }
.account-form .input { background: var(--cream); color: var(--on-cream); border-color: rgba(28, 12, 0, .35); }
.account-form .input::placeholder { color: var(--on-cream-2); }
.account-form .input:hover { border-color: var(--on-mango); }
.account-form .input:focus-visible { outline-color: var(--on-mango); }
.account-form .input[aria-invalid="true"] { border-color: var(--on-mango); border-width: 2px; }
.account-form .error { color: var(--on-mango); font-weight: 700; }
.account-form .btn { justify-self: start; }
.account-note { font-size: 15px; line-height: 1.5; max-width: 46ch; }

/* ---------- Go to the dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.dash-copy { display: grid; gap: 28px; justify-items: start; }
.dash-list { display: grid; gap: 0; counter-reset: d; width: 100%; }
.dash-list li { counter-increment: d; display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.dash-list li::before { content: "0" counter(d); grid-row: span 2; font-family: var(--f-mono); font-weight: 700; font-size: 13px; color: var(--mango); padding-top: 4px; }
.dash-peek { display: block; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px rgba(0, 0, 0, .45); }
.dash-peek img { width: 100%; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .brand { margin-right: 0; }
.foot .brand img { width: 32px; height: 32px; }
.foot .brand span { font-size: 22px; }
.foot-nav { display: flex; gap: 4px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.foot-nav a:hover { color: var(--text); }
.foot-note { margin-left: auto; font-size: 15px; }
/* The sign-off: one Anton word set edge to edge across the page, above the small links.
   Sized from the viewport so it always fills the column (Anton caps run about 4.77em for the word). */
.foot-mark {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase; color: var(--mango);
  font-size: calc((min(100vw, 1680px) - 2 * var(--gutter)) / 4.8); line-height: .82; letter-spacing: 0;
  white-space: nowrap; text-align: center; padding: 8px 0 28px; user-select: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid, .section-head, .account-grid, .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 520px; }
  .tool-row { grid-template-columns: minmax(0, 1fr); gap: 48px; max-width: 640px; }
}
@media (max-width: 720px) {
  .top-nav a:not(:last-child) { display: none; }
  .top-row { gap: 8px; min-height: 64px; }
  .brand span { font-size: 22px; }
  .brand img { width: 34px; height: 34px; }
  .btn-sm { min-height: 44px; }
  .hero-clock { bottom: 124px; }
  .hero-cap { margin-top: 120px; }
  .hero-mango { width: 74%; }
  .stage { aspect-ratio: 4 / 3; }
  .stage-clock .mxo-timer { font-size: 15px; }
  .q-slot { font-size: 15px; }
  .hero-clock { left: -4px; }
  .hero-q { bottom: 72px; max-width: 14em; }
  .foot-note { margin-left: 0; }
}
@media (max-width: 420px) {
  .top-cta { padding-left: 12px; padding-right: 12px; font-size: 14px; }
  .top-nav { display: none; }
}
