/* Landing page: a scatter of squares and rectangles. One fixed screen on desktop, a scroll on phones.
   Muse-calm colours; imperfect on purpose (two tiles set slightly crooked, a handwritten note).

   The formula
   -----------
   1. One square unit u for the whole page. The field is 16 x 10 units (16:10, a
      laptop screen), so every cell is an exact square:

        u = min( (W - 2p - 15g) / 16 , (H - 2p - f - 9g) / 10 )

      p = outer padding, g = gutter, f = footer line. A tile n x m units measures
      (n*u + (n-1)g) by (m*u + (m-1)g); when n = m it is a true square. Left-over
      width or height becomes equal margins, so the layout keeps its shape on any screen.

   2. Guillotine cuts at uneven grid lines, each cut splitting one piece in two:

        x = 9   ->  left 9x10 | right 7x10
        left:   y = 6  ->  dream 9x6 / 9x4
                9x4:   x = 4  ->  AI builds it 4x4 (square) | 5x4
                5x4:   y = 2  ->  it builds 5x2 / glimpses 5x2
        right:  y = 4  ->  7x4 / 7x6
                7x4:   x = 4  ->  the full deal 4x4 (square) | results 3x4
                7x6:   x = 4  ->  access 4x6 | 3x6
                3x6:   y = 3  ->  questions 3x3 (square) / pricing 3x3 (square)

   3. The result: four squares and five rectangles, no two neighbours the same shape.
      Areas 54, 24, 16, 16, 12, 10, 10, 9, 9 of 160: the dream holds a third of the
      screen and every other tile gets smaller the less it matters.

   The story (landing.js) runs along the eye path this cut makes:
   dream (top left) -> AI builds it (below) -> glimpse (right) -> access (up right) -> results (top right). */

body.tiled {
  /* Colour roles (Forest). Each colour has one job: oat paper, forest for the calm dark tiles and
     the button, apricot for the one playful tile, lime only for the win and the ticks. */
  --page: #ebe5d9; --tile: #fcfaf5; --well-2: #e6dfd2; --muted: #8e968c; --dot: #a09a8c;
  --any: #f5dccb; --chip: #fcfaf5; --scene-a: #c65a2e; --scene-b: #efcdb8; --scene-c: #d9a07e; --scene-line: #cfc6b6;
  --panel: var(--night); --panel-text: #f6f3ea; --panel-soft: var(--night-text); --panel-muted: #8fab9b; --panel-line: #2f5543; --panel-accent: var(--lime);
  --result: var(--lime); --result-ink: var(--ink); --result-label: #355234;
  --deal: #e2ead8; --deal-ink: var(--lime-ink);
  --cta: var(--night); --cta-hover: var(--night-2); --cta-text: #fff;
  --accent: var(--lime); --on-accent: var(--ink);
  background: var(--page);
  /* Motion: one family. Arrivals spring in, exits leave faster, and forward always moves up. */
  --spring: cubic-bezier(.2, 1.25, .4, 1);
  --exit: cubic-bezier(.4, 0, 1, 1);
  --fast: 200ms; --med: 360ms; --slow: 600ms;
}
@supports (transition-timing-function: linear(0, 1)) {
  /* a damped spring (about 4% overshoot, settled by 70%) */
  body.tiled { --spring: linear(0, .022 2%, .078 4%, .157 6%, .25 8%, .348 10%, .494 13%, .629 16%, .778 20%, .889 24%, .963 28%, 1.015 33%, 1.036 38%, 1.036 45%, 1.018 55%, 1.001 70%, 1); }
}

.stack-page { display: grid; gap: 12px; padding: 12px; }
.tile {
  border: 0; border-radius: 28px; background: var(--tile); color: var(--ink); text-align: left; font: inherit;
  padding: clamp(18px, 2vw, 28px); position: relative; overflow: hidden; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
}
button.tile, a.tile { cursor: pointer; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
button.tile:hover, a.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(17, 19, 17, .4); color: var(--ink); }
.tile h2 { font-size: clamp(26px, min(2.6vw, 4.4vh), 44px); line-height: 1; letter-spacing: -.035em; }
.t-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.t-small { font-size: clamp(17px, min(1.5vw, 2.5vh), 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.t-hint { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* Desktop: the scatter, on one fixed screen */
@media (min-width: 1000px) and (min-height: 600px) {
  body.tiled { --p: 12px; --g: 12px; --f: 30px; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  .stack-page {
    --u: min(calc((100vw - 2 * var(--p) - 15 * var(--g)) / 16), calc((100dvh - 2 * var(--p) - var(--f) - 9 * var(--g)) / 10));
    flex: 1; min-height: 0; gap: var(--g); padding: var(--p);
    grid-template-columns: repeat(16, var(--u)); grid-template-rows: repeat(10, var(--u));
    justify-content: center; align-content: center;
  }
  .t-hero   { grid-column: 1 / 10;  grid-row: 1 / 7; }
  .t-build  { grid-column: 1 / 5;   grid-row: 7 / 11; }
  .t-any    { grid-column: 5 / 10;  grid-row: 7 / 9; }
  .t-glimpse { grid-column: 5 / 10; grid-row: 9 / 11; }
  .t-limits { grid-column: 10 / 14; grid-row: 1 / 5; }
  .t-result { grid-column: 14 / 17; grid-row: 1 / 5; }
  .t-ticks  { grid-column: 10 / 14; grid-row: 5 / 11; }
  .t-faq    { grid-column: 14 / 17; grid-row: 5 / 8; }
  .t-price  { grid-column: 14 / 17; grid-row: 8 / 11; }
  .t-foot { height: var(--f); flex-shrink: 0; padding: 0 26px; justify-content: center; align-items: center; }
}

/* ---------- Tiles rise in when the page opens, in story order, then let go of the animation ---------- */
.js body:not(.landed) .stack-page > .tile { animation: land var(--slow) var(--spring) both; animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes land { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* ---------- The baton: the tile telling the story right now lifts a little ---------- */
.t-hero, .t-build, .t-glimpse, .t-ticks, .t-result { transition: translate var(--med) var(--ease), box-shadow var(--med) var(--ease); }
.tile.is-live { translate: 0 -4px; box-shadow: 0 24px 44px -28px rgba(17, 19, 17, .5); }

/* ---------- The dream ---------- */
.t-hero { gap: 18px; }
.t-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.t-top-r { display: flex; align-items: center; gap: 6px; }
.t-link { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; min-height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; }
.t-link:hover { background: var(--mist); color: var(--ink); }
.motion-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); place-items: center; cursor: pointer; }
.js .motion-btn { display: inline-grid; }
.motion-btn:hover { background: var(--well-2); }
.motion-btn .i { width: 16px; height: 16px; stroke-width: 2.2; }
.hero-body { margin-top: auto; display: grid; gap: clamp(14px, 2.4vh, 26px); }
.t-hero h1 { font-size: clamp(44px, min(5.4vw, 8.6vh), 104px); line-height: .92; letter-spacing: -.05em; text-wrap: balance; max-width: 12ch; }
.hero-sub { font-size: clamp(18px, min(1.6vw, 2.8vh), 26px); font-weight: 700; color: var(--ink-2); letter-spacing: -.015em; margin-top: -6px; }
.idea-form { display: grid; gap: 10px; max-width: 640px; position: relative; }
.idea-q { font-size: clamp(17px, min(1.4vw, 2.4vh), 22px); font-weight: 800; letter-spacing: -.02em; }
.idea-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--mist); }
.idea-row:focus-within { box-shadow: 0 0 0 3px var(--lime-ink); }
.idea-field { flex: 1; min-width: 0; position: relative; display: flex; }
.idea-row input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 17px var(--font); color: var(--ink); padding: 0 16px; }
.idea-row input:focus { outline: none; }
.idea-row input::placeholder { color: var(--muted); }
.idea-row .button { flex-shrink: 0; background: var(--cta); border-color: var(--cta); color: var(--cta-text); }
.idea-row .button:hover { background: var(--cta-hover); color: var(--cta-text); }
.idea-note { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-left: 18px; }
.note-link { border: 0; background: none; padding: 0; font: inherit; color: var(--lime-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.idea-row .button.is-sent { animation: sent 700ms var(--ease); }
@keyframes sent { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 95%, transparent); } to { box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 0%, transparent); } }
/* The demo types on a line laid over the field, never in it, so a real idea is never touched.
   Right-to-left box, left-to-right text: short lines sit left, long ones scroll like a real field. */
.ghost { position: absolute; inset: 0 16px; display: flex; align-items: center; pointer-events: none; font: 500 17px var(--font); color: var(--ink); }
.ghost-line { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; direction: rtl; text-align: left; }
.ghost-in { display: inline-block; direction: ltr; unicode-bidi: isolate; transition: opacity var(--fast) var(--exit), transform var(--fast) var(--exit); }
.ghost .caret { display: none; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -3px; background: var(--lime-ink); animation: blink 900ms steps(1) infinite; }
.ghost.is-typing .caret { display: inline-block; }
.ghost.is-sent .ghost-in { opacity: 0; transform: translateY(-12px); }
.idea-field:focus-within .ghost, .idea-field.has-value .ghost { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }
/* the handwritten nudge */
.idea-head { display: flex; align-items: flex-end; gap: 16px; }
.nudge { display: flex; align-items: flex-start; gap: 2px; color: var(--lime-ink); font: 600 24px/1 "Caveat", "Segoe Print", "Bradley Hand", cursive; transform: rotate(-3deg) translateY(8px); pointer-events: none; }
.nudge.wiggle { animation: wiggle 900ms var(--ease); }
@keyframes wiggle { 30% { transform: rotate(-8deg) translate(-3px, 5px); } 60% { transform: rotate(1deg) translate(2px, 8px); } }
.nudge svg { width: 40px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- AI builds it: the idea arrives, a moment of thought, Done ---------- */
.t-build { justify-content: space-between; }
.convo { margin-top: auto; display: grid; gap: 8px; }
.convo .bubble { font-size: clamp(13px, min(1.05vw, 1.9vh), 16px); padding: 10px 14px; margin: 0; max-width: 100%; }
.convo .bubble.me { justify-self: stretch; min-height: 3.2em; }
.js .t-build .bubble { transition: opacity var(--fast) var(--exit), transform var(--fast) var(--exit), background var(--fast) var(--ease); }
.js .t-build:not(.is-asked) .bubble { opacity: 0; transform: translateY(-12px); }
.js .t-build.is-fresh .bubble { transition: none; transform: translateY(14px); }
.js .t-build.is-asked .bubble { transition: opacity var(--med) var(--ease), transform var(--slow) var(--spring), background var(--fast) var(--ease); }
.js .t-build.is-asked .reply { transition-delay: 220ms; }
.convo .reply { transform-origin: 0 100%; }
.t-build.is-done .reply { animation: pop var(--slow) var(--spring); }
@keyframes pop { from { transform: scale(.88); } }
.t-build .reply:not(.win) { background: var(--well-2); }
.reply .dots { display: flex; gap: 4px; padding: 6px 2px; }
.reply .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); animation: dot 1s ease-in-out infinite; }
.reply .dots i:nth-child(2) { animation-delay: .15s; }
.reply .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* ---------- It builds anything: two rows, moving opposite ways (the only ambient motion) ---------- */
.t-any { background: var(--any); justify-content: center; gap: 8px; padding-top: clamp(12px, 1.4vw, 18px); padding-bottom: clamp(12px, 1.4vw, 18px); }
.t-any h2.t-label { font-size: 12px; letter-spacing: .1em; line-height: 1.2; }
.mq { display: grid; gap: 6px; margin: 0 calc(clamp(18px, 2vw, 28px) * -1); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-row { display: flex; gap: 8px; width: max-content; animation: mq 60s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 70s; }
.mq-row span { white-space: nowrap; border-radius: 999px; background: var(--chip); padding: clamp(5px, .8vh, 8px) 13px; font-weight: 800; font-size: clamp(13px, min(1.05vw, 1.9vh), 16px); letter-spacing: -.01em; }
.mq-row span:nth-child(3n) { background: var(--ink); color: #fff; }
.mq-row span:nth-child(4n) { background: var(--accent); color: var(--on-accent); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.t-any:hover .mq-row { animation-play-state: paused; }

/* ---------- Glimpses: each one builds itself as it appears ---------- */
.t-glimpse { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 16px; align-items: center; rotate: 1.2deg; }
.gl-stage { grid-row: 1 / 3; position: relative; height: 100%; min-height: 90px; }
.gl { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.96); transition: opacity var(--fast) var(--exit), transform var(--fast) var(--exit); }
.gl.is-on { opacity: 1; transform: none; transition: opacity var(--med) var(--ease) 120ms, transform var(--slow) var(--spring) 120ms; }
.gl > div { width: 100%; height: 100%; max-height: 120px; border-radius: 16px; background: var(--mist); position: relative; overflow: hidden; }
.gl-cap { align-self: end; font-size: clamp(16px, min(1.3vw, 2.3vh), 22px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
/* words that change: the old word leaves upward, the new one rises in */
.swap-text { transition: opacity var(--med) var(--ease), transform var(--slow) var(--spring); }
.swap-text.out { opacity: 0; transform: translateY(-8px); transition: opacity var(--fast) var(--exit), transform var(--fast) var(--exit); }
.swap-text.in { opacity: 0; transform: translateY(10px); transition: none; }
/* lead finder: scores fill in */
.gl-leads { display: grid; align-content: center; gap: 6px; padding: 10px 12px; }
.gl-leads span { display: grid; grid-template-columns: 1fr 40%; align-items: center; gap: 8px; font-size: 11px; }
.gl-leads i { height: 6px; width: var(--w); border-radius: 9px; background: var(--scene-a); transform: scaleX(.06); transform-origin: left; transition: transform var(--slow) var(--ease); }
.gl.is-on .gl-leads i { transform: none; transition-delay: 200ms; }
.gl.is-on .gl-leads span:nth-child(2) i { transition-delay: 320ms; }
.gl.is-on .gl-leads span:nth-child(3) i { transition-delay: 440ms; }
/* price gaps: bars rise, the gap shows last */
.gl-chart { display: flex; align-items: flex-end; gap: 6px; padding: 12px 12px 10px; }
.gl-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--scene-b); transform: scaleY(.06); transform-origin: bottom; transition: transform var(--slow) var(--spring); }
.gl-chart i:last-of-type { background: var(--lime-ink); }
.gl.is-on .gl-chart i { transform: none; transition-delay: 180ms; }
.gl.is-on .gl-chart i:nth-of-type(2) { transition-delay: 240ms; }
.gl.is-on .gl-chart i:nth-of-type(3) { transition-delay: 300ms; }
.gl.is-on .gl-chart i:nth-of-type(4) { transition-delay: 360ms; }
.gl.is-on .gl-chart i:nth-of-type(5) { transition-delay: 420ms; }
.gl-chart b { position: absolute; top: 8px; left: 12px; font-size: 13px; color: var(--lime-ink); opacity: 0; transition: opacity 300ms var(--ease); }
.gl.is-on .gl-chart b { opacity: 1; transition-delay: 700ms; }
/* bookings: slots get taken */
.gl-cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; }
.gl-cal i { border-radius: 8px; background: var(--tile); transition: background var(--fast) var(--ease), transform var(--slow) var(--spring); }
.gl-cal i.on { transform: scale(.8); }
.gl.is-on .gl-cal i.on { background: var(--ink); transform: none; transition-delay: 350ms; }
.gl.is-on .gl-cal i.on ~ i.on { transition-delay: 650ms; }
/* paid course: lessons tick off */
.gl-course { display: grid; grid-template-columns: 44% 1fr; gap: 10px; padding: 10px; }
.gl-course .vid { border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.gl-course .vid i { width: 0; height: 0; margin-left: 3px; border-left: 12px solid var(--lime); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.gl-course .ls { display: grid; align-content: center; gap: 7px; }
.gl-course .ls b { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.gl-course .ls b i { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--scene-line); transform: scale(.7); transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--slow) var(--spring); }
.gl.is-on .gl-course .ls b i { background: var(--lime-ink); border-color: var(--lime-ink); transform: none; transition-delay: 250ms; }
.gl.is-on .gl-course .ls b:nth-child(2) i { transition-delay: 450ms; }
.gl.is-on .gl-course .ls b:nth-child(3) i { transition-delay: 650ms; }
/* online shop: the Buy button pops */
.gl-shop { display: grid; grid-template-columns: 38% 1fr; grid-template-rows: 1fr auto auto; column-gap: 10px; padding: 10px; }
.gl-shop .img { grid-row: 1 / 4; border-radius: 10px; background: var(--scene-c); }
.gl-shop b { align-self: end; font-size: 13px; }
.gl-shop span { font-size: 12px; color: var(--ink-2); }
.gl-shop em { font-style: normal; justify-self: start; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; margin-top: 4px; transform: scale(0); transition: transform var(--slow) var(--spring); }
.gl.is-on .gl-shop em { transform: none; transition-delay: 450ms; }
/* support chatbot: a question, then the answer */
.gl-chat { display: grid; align-content: center; gap: 6px; padding: 10px 12px; }
.gl-chat span { font-size: 12px; border-radius: 12px; padding: 6px 10px; max-width: 85%; opacity: 0; transform: translateY(8px); transition: opacity var(--med) var(--ease), transform var(--slow) var(--spring); }
.gl-chat .q { background: var(--ink); color: #fff; justify-self: end; }
.gl-chat .a { background: var(--tile); justify-self: start; }
.gl.is-on .gl-chat span { opacity: 1; transform: none; transition-delay: 150ms; }
.gl.is-on .gl-chat .a { transition-delay: 650ms; }

/* ---------- We give your AI access to: what this idea used, ticked off ---------- */
.t-ticks { background: var(--panel); color: var(--panel-text); }
.t-ticks h2 { color: var(--panel-text); }
.ticks-view { flex: 1; min-height: 0; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.ticks { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; bottom: 0; transition: transform var(--slow) var(--spring); }
.ticks li { display: flex; align-items: center; gap: 12px; height: clamp(36px, 5.6vh, 52px); font-size: clamp(16px, min(1.35vw, 2.4vh), 22px); font-weight: 800; letter-spacing: -.01em; transition: color var(--med) var(--ease); }
.ticks li:not(.is-ticked) { color: var(--panel-muted); }
.tk { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--panel-line); display: grid; place-items: center; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--slow) var(--spring); }
.ticks li:not(.is-ticked) .tk { transform: scale(.8); }
.tk .i { width: 14px; height: 14px; stroke-width: 3; color: var(--on-accent); opacity: 0; transform: scale(.4); transition: opacity var(--fast) var(--ease), transform var(--slow) var(--spring); }
.ticks li.is-ticked .tk { background: var(--accent); border-color: var(--accent); }
.ticks li.is-ticked .tk .i { opacity: 1; transform: none; }

/* ---------- Example results: the win counts up ---------- */
.t-result { background: var(--result); color: var(--result-ink); justify-content: space-between; rotate: -2deg; }
.t-result .t-label { color: var(--result-label); }
.r-main { display: flex; align-items: center; gap: 6px; }
.r-up { width: clamp(22px, 2vw, 32px); height: clamp(22px, 2vw, 32px); stroke-width: 2.6; flex-shrink: 0; }
.r-num { font-size: clamp(30px, min(3vw, 5.2vh), 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.r-word { font-size: clamp(15px, min(1.2vw, 2.1vh), 19px); font-weight: 800; line-height: 1.15; }
.t-result.flip .r-up path { stroke-dasharray: 1; animation: draw 700ms var(--ease) both; }
.t-result.flip .r-up path + path { animation-delay: 450ms; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.r-num { transform-origin: 0 60%; }
.t-result.flip .r-num { animation: bump 1000ms var(--ease); }
@keyframes bump { 70% { scale: 1; } 84% { scale: 1.07; } }

/* ---------- The full deal ---------- */
.t-limits { background: var(--deal); justify-content: space-between; }
.t-limits h2 { font-size: clamp(30px, min(3vw, 5vh), 52px); }
.t-limits p { font-size: clamp(13px, min(1vw, 1.8vh), 15px); font-weight: 700; color: var(--deal-ink); }
.deal { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: clamp(6px, 1.2vh, 12px); }
.deal li { display: flex; align-items: center; gap: 10px; font-size: clamp(15px, min(1.25vw, 2.2vh), 20px); font-weight: 800; letter-spacing: -.01em; }
.deal .i { width: 22px; height: 22px; color: var(--deal-ink); }

/* ---------- Questions and pricing ---------- */
.t-faq { justify-content: space-between; }
.t-price { background: var(--panel); color: var(--panel-text); justify-content: space-between; }
.t-price .t-hint { color: var(--panel-accent); }
button.t-price:hover { color: var(--panel-text); }
.t-price .p-line { font-size: clamp(14px, min(1.1vw, 1.9vh), 17px); font-weight: 700; color: var(--panel-soft); line-height: 1.25; }
.t-price .p-line b { color: var(--panel-text); font-weight: 800; }

/* ---------- Footer line ---------- */
.t-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 6px 26px 24px; font-size: 13px; }
.t-foot a { color: var(--ink-2); text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.t-foot a:hover { color: var(--ink); }

/* ---------- Short laptop screens ---------- */
@media (min-width: 1000px) and (min-height: 600px) and (max-height: 800px) {
  .stack-page { gap: 10px; padding: 10px; }
  .tile { padding: 16px 18px; border-radius: 24px; }
  .nudge { display: none; }
  .t-hero { gap: 10px; }
  .hero-body { gap: 12px; }
  .idea-form { gap: 8px; }
  .idea-note { font-size: 13px; }
}

/* ---------- Phones: the cut becomes a scroll, in story order ---------- */
@media not all and (min-width: 1000px) and (min-height: 600px) {
  .stack-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-hero, .t-build, .t-any, .t-glimpse, .t-ticks { grid-column: 1 / -1; }
  .t-hero { min-height: 86svh; }
  .t-build { min-height: 230px; }
  .t-any { min-height: 124px; }
  .t-glimpse { min-height: 170px; }
  .t-ticks { min-height: 360px; }
  .t-result, .t-limits { min-height: 230px; }
  .t-limits h2 { font-size: 28px; }
  .t-price, .t-faq { min-height: 130px; }
  .nudge { font-size: 22px; }
}
@media (max-width: 560px) {
  .idea-row { flex-direction: column; border-radius: 24px; padding: 8px; }
  .idea-row input { min-height: 48px; }
}

/* ---------- Paused: by the button, everything holds still ---------- */
.is-still .mq-row, .is-still .reply .dots i, .is-still .ghost .caret { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .js body:not(.landed) .stack-page > .tile { animation: none; }
  .js .motion-btn { display: none; }
  .mq-row { animation: none; flex-wrap: wrap; width: auto; }
  .mq-row.rev { display: none; }
  .gl, .gl *, .swap-text, .ticks, .ticks li, .tk, .tk .i, .t-build .bubble { transition: none !important; }
}

/* ---------- Sheets (dialogs) ---------- */
.sheet { border: 0; padding: 0; border-radius: 32px; width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--tile); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(17, 19, 17, .45); }
.sheet::backdrop { background: color-mix(in srgb, var(--page) 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet 320ms var(--ease); }
@keyframes sheet { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
.sheet > * { padding: 0 clamp(20px, 3vw, 36px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: clamp(20px, 3vw, 32px) !important; padding-bottom: 16px !important; position: sticky; top: 0; background: var(--tile); z-index: 1; }
.sheet-head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.sheet .price-grid { padding-bottom: clamp(20px, 3vw, 36px); max-width: none; }
.sheet .costs-wrap { padding-bottom: clamp(20px, 3vw, 36px); }
.sheet .refund-line { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: var(--lime); }
.costs { border-radius: 24px; background: var(--mist); padding: 22px 24px; scroll-margin-top: 96px; }
.costs h3 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.02em; }
.costs dl { margin: 0; display: grid; gap: 12px; }
.costs dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; }
.costs dt { font-weight: 800; }
.costs dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .costs dl > div { grid-template-columns: 1fr; gap: 2px; } }
.sheet .faq-list { padding-bottom: 24px; margin: 0 clamp(20px, 3vw, 36px); padding-left: 0; padding-right: 0; }
