/* The new welcome tour (js/first-tour.js, council/first_run.py). */
html.ft-open { overflow: hidden; }
.ft { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
.ft-screen { box-sizing: border-box; max-width: 520px; min-height: 100%; margin: 0 auto; padding: max(20px, 4vh) 20px 20px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
/* Top bits (logo, Back) stay at the top; the rest sits in the middle of the screen. */
.ft-brand, .ft-top { margin-bottom: auto; }
.ft-body { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; margin-block: auto; }
.ft-screen h1 { margin: 0; font-size: 27px; line-height: 1.2; letter-spacing: -0.02em; }
.ft-center { align-items: center; text-align: center; }
.ft-hero { position: relative; width: 100%; max-width: 360px; aspect-ratio: 342 / 210; }
.ft-arc { position: absolute; inset: 0; }
.ft-seat { position: absolute; --s: clamp(30px, 10.5vw, 40px); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.ft-seat svg { width: 50%; height: 50%; }
.ft-hero-text { position: absolute; left: 14%; right: 14%; top: 50%; display: grid; gap: 4px; }
.ft-hero-text h1 { font-size: clamp(22px, 7vw, 27px); }
.ft-hero-text p { margin: 0; color: var(--muted); font-size: 14px; }
.ft-lede { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
.ft-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; text-align: left; }
.ft-checks li { display: flex; gap: 10px; align-items: center; }
.ft-checks li::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--up);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ft-foot { width: 100%; max-width: 420px; display: grid; gap: 4px; justify-items: center; padding-top: 8px; }
.ft-big { width: 100%; min-height: 52px; font-size: 17px; justify-content: center; }
.ft-quiet { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; padding: 12px; cursor: pointer; align-self: center; }
.ft-top { display: flex; justify-content: space-between; width: 100%; }
.ft-top .ft-quiet { padding-left: 0; }
.ft-label { font-size: 13px; font-weight: 600; color: var(--muted); }

.ft-msg { margin: -4px 0 0; min-height: 18px; font-size: 14px; color: var(--down); display: grid; gap: 8px; justify-items: center; }
.ft-msg-note { text-align: center; }
.ft-sugg-label { color: var(--muted); font-size: 13px; }
.ft-sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ft-sugg-btn { display: grid; gap: 1px; text-align: left; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.ft-sugg-btn b { font-family: var(--mono); font-size: 15px; }
.ft-sugg-btn span { color: var(--muted); }
.ft-pick .hero-box.shake { animation: hint-shake .4s ease; border-color: var(--down) !important; }
.ft-pick h1 { font-size: clamp(24px, 6.5vw, 30px); }
.ft-box { width: 100%; text-align: left; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ft-chips .suggest { min-height: 44px; align-items: center; padding: 0 14px; border-radius: 99px; }
.ft-fine { margin: 0; font-size: 13px; color: var(--muted); }
.ft-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.ft-plan p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ft-plan-pro { border: 2px solid var(--accent); box-shadow: 0 4px 14px rgba(44, 86, 201, 0.12); }
.ft-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ft-plan-head > b { font-size: 20px; }
.ft-plan-head span b { font-size: 20px; }
.ft-spots { font-size: 13px; font-weight: 600; color: var(--accent); }
/* The guided read: everything dimmed but one part of the real result. */
.ft-spot-layer { position: fixed; inset: 0; z-index: 210; pointer-events: none; }
.ft-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(13, 16, 21, .62); outline: 2px solid #7597f2;
  transition: left .25s, top .25s, width .25s, height .25s; }
.ft-tip { position: fixed; left: 16px; right: 16px; max-width: 440px; margin: 0 auto; pointer-events: auto; background: #141820; color: #fff;
  border-radius: 16px; padding: 16px; display: grid; gap: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.ft-tip b { font-size: 18px; line-height: 1.3; }
.ft-tip p { margin: 0; color: #d9dee7; font-size: 15px; line-height: 1.5; }
.ft-step { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a9b8e8; }
.ft-tip-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ft-skip { border: 0; background: none; color: #a9b8e8; font: inherit; font-size: 14px; padding: 10px 0; cursor: pointer; }
.ft-next { background: #fff; color: #141820; border: 0; min-height: 44px; padding: 0 22px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ft-hole { transition: none; } }
.ft-brand { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.ft-brand span { color: var(--accent); }
.ft-brand .logo { width: 22px; height: 22px; color: var(--accent); }
.ft-center .ft-lede { max-width: 420px; }
.ft-center .ft-checks { align-self: center; }
/* The last screen: the two plans side by side when there's room. */
.ft-plans { display: grid; gap: 12px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); justify-content: center; }
@media (min-width: 720px) { .ft-screen.ft-wide { max-width: 760px; } }
@media (max-height: 520px) { .ft-screen { justify-content: flex-start; } .ft-hero { max-width: 280px; } }
.ft-plan { text-align: left; align-content: start; }
.ft-plan-btn { align-self: end; }
.ft-plans .ft-plan { grid-template-rows: auto auto 1fr auto; }
.ft-hero-text p { font-size: clamp(12px, 3.6vw, 14px); }
/* A narrow phone: the button goes under the box so the box has room to type. */
@media (max-width: 380px) {
  .ft-box { flex-wrap: wrap; }
  .ft-box .hero-input { flex: 1 1 100%; }
  .ft-box .hero-run { flex: 1 1 100%; }
}
/* The pick screen's ticker tape: the Run page's, bigger and calmer. */
.ft-tape { position: relative; width: min(760px, 100vw); flex: none; overflow: hidden; padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.ft-tape-row { display: flex; width: max-content; justify-content: center; }
.ft-tape:not(.moving) .ft-tape-row { width: auto; flex-wrap: wrap; }
.ft-tape.moving .ft-tape-row { animation: ft-glide 60s linear infinite; }
.ft-tape.moving:hover .ft-tape-row, .ft-tape.moving:focus-within .ft-tape-row { animation-play-state: paused; }
@keyframes ft-glide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ft-tape-set { display: flex; gap: 10px; padding-right: 10px; }
.ft-tape:not(.moving) .ft-tape-set { flex-wrap: wrap; justify-content: center; padding: 0; }
.ft-tick { -webkit-tap-highlight-color: transparent; display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 1px; align-items: baseline;
  text-align: left; min-width: 132px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.ft-tick:hover { border-color: var(--accent); transform: translateY(-1px); }
.ft-tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ft-tick b { font-family: var(--mono); font-size: 17px; letter-spacing: .02em; }
.ft-tick-move { justify-self: end; font-family: var(--mono); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ft-tick-move.up { color: var(--up); } .ft-tick-move.down { color: var(--down); }
.ft-tick-name { grid-column: 1 / -1; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.ft-tape-note { margin: -6px 0 0; font-size: 12px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) {
  .ft-tape.moving { overflow-x: auto; }
  .ft-tape.moving .ft-tape-row { animation: none; }
  .ft-tape.moving .ft-tape-set[aria-hidden] { display: none; }
}
/* A computer screen (Oct 21, Ethan: "still sized for a phone"): everything
   grows with the screen, and the logo sits in the corner like the site's header. */
@media (min-width: 1024px) and (min-height: 860px) {
  .ft-screen { max-width: 720px; gap: 22px; padding-top: 88px; }
  .ft-brand { position: fixed; top: 26px; left: 36px; font-size: 20px; gap: 10px; }
  .ft-brand .logo { width: 28px; height: 28px; }
  .ft-top { position: fixed; top: 18px; left: 36px; width: auto; z-index: 1; }
  .ft-top .ft-quiet { font-size: 17px; }
  .ft-body { gap: 20px; }
  .ft-hero { max-width: 600px; }
  .ft-seat { --s: 58px; }
  .ft-hero-text { gap: 8px; }
  .ft-hero-text h1 { font-size: 50px; }
  .ft-hero-text p { font-size: 18px; }
  .ft-screen h1, .ft-pick h1 { font-size: 42px; }
  .ft-lede, .ft-center .ft-lede { font-size: 20px; max-width: 620px; }
  .ft-checks { font-size: 18px; gap: 12px; }
  .ft-checks li::before { width: 20px; height: 20px; }
  .ft-foot { max-width: 460px; gap: 8px; }
  .ft-big { min-height: 60px; font-size: 19px; border-radius: 14px; }
  .ft-quiet { font-size: 16px; }
  .ft-label { font-size: 15px; }
  .ft-fine, .ft-msg { font-size: 15px; }
  .ft-box .hero-input { font-size: 20px; min-height: 60px; }
  .ft-box .hero-run { min-height: 60px; font-size: 18px; padding-inline: 28px; }
  .ft-tape { width: min(1200px, 100vw); }
  .ft-tape-set { gap: 14px; padding-right: 14px; }
  .ft-tick { min-width: 168px; padding: 14px 18px; border-radius: 16px; }
  .ft-tick b { font-size: 21px; }
  .ft-tick-move { font-size: 16px; }
  .ft-tick-name { font-size: 14px; max-width: 200px; }
  .ft-tape-note { font-size: 14px; }
  .ft-screen.ft-wide { max-width: 1040px; }
  .ft-plans { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 460px)); }
  .ft-plan { padding: 28px; gap: 16px; border-radius: 20px; }
  .ft-plan p { font-size: 17px; }
  .ft-plan-head > b, .ft-plan-head span b { font-size: 26px; }
  .ft-spots { font-size: 15px; }
  .ft-tip { max-width: 540px; padding: 22px; gap: 8px; }
  .ft-tip b { font-size: 21px; }
  .ft-tip p { font-size: 17px; }
  .ft-step { font-size: 13px; }
}
/* A big monitor: one more step up. */
@media (min-width: 1600px) and (min-height: 950px) {
  .ft-screen { max-width: 860px; gap: 26px; }
  .ft-hero { max-width: 720px; }
  .ft-seat { --s: 70px; }
  .ft-hero-text h1 { font-size: 60px; }
  .ft-hero-text p { font-size: 20px; }
  .ft-screen h1, .ft-pick h1 { font-size: 50px; }
  .ft-lede, .ft-center .ft-lede { font-size: 22px; max-width: 700px; }
  .ft-checks { font-size: 20px; }
  .ft-foot { max-width: 520px; }
  .ft-big { min-height: 66px; font-size: 21px; }
}
/* A short laptop screen (1280x720, 1366x768): bigger than a phone, but it all fits without scrolling. */
@media (min-width: 1024px) and (min-height: 600px) and (max-height: 859px) {
  .ft-screen { max-width: 640px; gap: 16px; padding-top: 64px; }
  .ft-brand { position: fixed; top: 20px; left: 32px; font-size: 18px; }
  .ft-brand .logo { width: 24px; height: 24px; }
  .ft-top { position: fixed; top: 12px; left: 32px; width: auto; z-index: 1; }
  .ft-hero { max-width: 440px; }
  .ft-seat { --s: 44px; }
  .ft-hero-text h1 { font-size: 36px; }
  .ft-hero-text p { font-size: 16px; }
  .ft-screen h1, .ft-pick h1 { font-size: 34px; }
  .ft-lede, .ft-center .ft-lede { font-size: 18px; max-width: 560px; }
  .ft-checks { font-size: 16px; gap: 8px; }
  .ft-foot { max-width: 420px; }
  .ft-big { min-height: 54px; font-size: 18px; }
  .ft-quiet { font-size: 15px; }
  .ft-box .hero-input { font-size: 18px; min-height: 54px; }
  .ft-box .hero-run { min-height: 54px; font-size: 17px; }
  .ft-tape { width: min(1100px, 100vw); }
  .ft-tick { min-width: 150px; padding: 12px 16px; }
  .ft-tick b { font-size: 19px; }
  .ft-screen.ft-wide { max-width: 960px; }
  .ft-plans { grid-template-columns: repeat(auto-fit, minmax(280px, 420px)); }
  .ft-plan { padding: 22px; }
  .ft-plan p { font-size: 16px; }
  .ft-tip { max-width: 500px; padding: 20px; }
  .ft-tip b { font-size: 19px; }
  .ft-tip p { font-size: 16px; }
}
