/* EZmenu stylesheet v2 — warm paper + lit screen.
   No @import: fonts are system stacks so nothing blocks render on a TV browser. */

:root {
  /* ground + surfaces: warm bone, not cold grey */
  --bg: #faf8f3;
  --bg-2: #f2efe5;
  --card: #ffffff;
  --dark: #121709;
  --dark-2: #1b2310;
  --dark-3: #2a3419;

  /* ink + neutrals, biased green so they read as chosen */
  --fg: #1a1f14;
  --fg-2: #41493a;
  --muted: #6f7663;
  --border: #e3e0d2;
  --border-2: #d2cebb;

  /* brand */
  --primary: #9cd22b;
  --primary-fg: #141a08;
  --primary-dark: #7fb51a;
  --primary-ink: #4a7209;   /* lime dark enough for text on bone */
  --amber: #e0a03a;
  --amber-ink: #8a5a06;
  --danger: #c0352c;
  --danger-bg: #fbeceb;
  --ok: #3f7d44;
  --ok-bg: #edf4ec;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(26,31,20,.05), 0 2px 6px rgba(26,31,20,.04);
  --shadow-2: 0 1px 2px rgba(26,31,20,.05), 0 14px 34px -14px rgba(26,31,20,.18);
  --shadow-3: 0 2px 4px rgba(26,31,20,.06), 0 30px 60px -24px rgba(26,31,20,.3);

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: 2px; border-radius: 4px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.1; }
h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.008em; }
h4 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary-ink);
  font-weight: 800;
  margin-bottom: .9rem;
}
.prose { max-width: 42rem; }
/* Article headings step down from the title instead of competing with it. */
.prose h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.9rem; }
.prose p { color: var(--fg-2); }
.prose .eyebrow a { color: inherit; }
.prose .eyebrow a:hover { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--fg-2); }
.prose li { margin: .35rem 0; }
.url { font-weight: 800; color: var(--fg); }
.code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .12em .4em;
  font-size: .88em;
}

/* ---------- shell ---------- */
.wrap { width: min(1140px, 100% - 2.5rem); margin: 0 auto; }
.wrap-sm { width: min(31rem, 100% - 2rem); margin: 0 auto; }
.spacer { flex: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}
.brand { font-family: var(--display); font-size: 1.5rem; font-weight: 400; letter-spacing: -.03em; }
.brand b { font-weight: 700; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; font-size: .94rem; font-weight: 600; }
.nav-links a { color: var(--fg-2); transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.navitem { color: var(--fg-2); font-weight: 600; }
@media (max-width: 680px) { .nav-links { gap: 1rem; } .nav-links .hide-sm { display: none; } }

#site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250,248,243,.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 2rem;
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: .9rem;
}
.footer a:hover { color: var(--fg); }
#site-footer { border-top: 1px solid var(--border); margin-top: 5rem; background: var(--bg-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: .96rem;
  cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .15s, border-color .15s;
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary, .solid {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 1px 2px rgba(26,31,20,.1), 0 10px 22px -10px rgba(124,170,24,.6);
}
.btn-primary:hover, .solid:hover { background: var(--primary-dark); box-shadow: 0 2px 4px rgba(26,31,20,.12), 0 14px 28px -10px rgba(124,170,24,.7); }

.btn-outline { background: transparent; border-color: var(--border-2); color: var(--fg); }
.btn-outline:hover { border-color: var(--fg); background: rgba(26,31,20,.03); }

.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: rgba(26,31,20,.05); color: var(--fg); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a62b23; }

.btn-sm { padding: .5rem .95rem; font-size: .86rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero > div:first-child { max-width: 34rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero p { color: var(--fg-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.pill-row span, .pill {
  font-size: .8rem;
  font-weight: 700;
  color: var(--fg-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .38rem .8rem;
  box-shadow: var(--shadow-1);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero > div:first-child { max-width: none; }
}

/* ---------- the lit menu board ---------- */
.tv-frame {
  background: linear-gradient(170deg, #2e3a1f, #141a0b 62%);
  border-radius: 16px;
  padding: clamp(.6rem, 1.4vw, 1rem);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255,255,255,.05) inset;
  position: relative;
}
.tv-frame::after {
  /* soft glow spilling from the panel */
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -18px; height: 40px;
  background: radial-gradient(ellipse at center, rgba(156,210,43,.3), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}
.tv-screen {
  background: radial-gradient(130% 100% at 15% 0%, #1d2712 0%, #0c1106 70%);
  border-radius: 10px;
  padding: clamp(1.2rem, 2.6vw, 1.9rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
  color: #eef3e4;
  min-height: 19rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6) inset;
}
.tv-screen h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .01em;
  margin: 0 0 .7rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(156,210,43,.26);
}
.tv-screen .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .8rem;
  font-size: .94rem;
  padding: .22rem 0;
  color: #d9e0cc;
}
.tv-screen .row b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 700; }
.promo {
  margin-top: 1.1rem;
  background: linear-gradient(135deg, rgba(224,160,58,.2), rgba(156,210,43,.14));
  border: 1px solid rgba(224,160,58,.42);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  line-height: 1.45;
}
.tv-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.9rem;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}
.tv-caption span:last-child { font-family: var(--mono); font-size: .76rem; }
.tv-caption span:last-child::before {
  content: "";
  display: inline-block;
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--primary);
  margin-right: .4rem;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(156,210,43,.22);
}
@media (max-width: 520px) { .tv-screen { grid-template-columns: 1fr; min-height: 0; } }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
/* 20rem floor keeps this at 3 columns in the 1140px wrap, so a 6-card
   section reads as two even rows rather than 4 + 2 orphans. */
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

.grid-3 .card:hover, .grid-2 .card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: var(--border-2);
}

/* numbered steps: the order carries real meaning here */
.steps .card { padding-top: 1.5rem; }
.step .num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-ink);
  margin-bottom: .7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.step b { color: var(--fg); }

/* ---------- closing band ---------- */
.cta {
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(156,210,43,.17), transparent 55%),
    linear-gradient(165deg, var(--dark-2), var(--dark) 70%);
  color: #f3f6ec;
  border-radius: 20px;
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-3);
}
.cta .eyebrow { color: var(--primary); }
.cta h2 { color: #fff; margin-bottom: .8rem; }
.cta p { color: #b9c2a8; max-width: 30rem; margin: 0 auto 2rem; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field > label, .field > span:first-child {
  font-size: .82rem;
  font-weight: 700;
  color: var(--fg-2);
  letter-spacing: .01em;
}
.input {
  width: 100%;
  padding: .78rem .95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-2);
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 4px rgba(156,210,43,.2);
}
.input::placeholder { color: #a3a894; }

.code-input {
  font-family: var(--mono);
  font-size: 1.6rem;
  letter-spacing: .3em;
  text-align: center;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  padding: .7rem;
}
.err { color: var(--danger); font-size: .86rem; font-weight: 600; }
.hint { color: var(--muted); font-size: .86rem; }

/* ---------- messages ---------- */
.alert {
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-size: .91rem;
  border: 1px solid var(--border);
  background: var(--bg-2);
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert-info { background: #eef3fa; border-color: #c9dcf0; color: #1f4668; }
.alert-err, .alert-error, .alert-danger { background: var(--danger-bg); border-color: #efc3bf; color: #8e241d; }
.alert-ok, .alert-success { background: var(--ok-bg); border-color: #c2dcc3; color: #2d5c31; }
.alert-warn, .alert-warning { background: #fdf3e0; border-color: #efd6a8; color: var(--amber-ink); }
.mmsg { font-size: .9rem; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  background: var(--dark);
  color: #f3f6ec;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-3);
  font-weight: 600;
  font-size: .92rem;
  z-index: 100;
}

/* ---------- workspace ---------- */
.main { padding: 2rem 0 4rem; }
.side { display: flex; flex-direction: column; gap: .35rem; }
.side-foot { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--border); }

.title { font-weight: 700; color: var(--fg); letter-spacing: -.008em; }
.sub { color: var(--muted); font-size: .86rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.list { display: flex; flex-direction: column; gap: .6rem; }
.item {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow-1);
}
.item .spacer { flex: 1; }
.selectable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.selectable:hover { border-color: var(--border-2); box-shadow: var(--shadow-2); }
.selectable.active, .item.active {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(156,210,43,.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .24rem .58rem;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg-2);
}
.dot {
  display: inline-block;
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.dot.active, .active > .dot { background: var(--primary-dark); box-shadow: 0 0 0 3px rgba(156,210,43,.22); }

.thumb {
  width: 4.2rem; height: 3rem;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-2);
  border: 1px solid var(--border);
  flex: none;
}
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .9rem; }
.img-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow .2s, transform .2s;
}
.img-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.img-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.img-card .title { padding: .6rem .75rem .7rem; font-size: .88rem; }

.empty, .empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
}
.empty-state h3 { color: var(--fg); margin-bottom: .4rem; }

.checklist { display: flex; flex-direction: column; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.checklist li, .check { display: flex; align-items: flex-start; gap: .6rem; font-size: .93rem; color: var(--fg-2); }
.check::before, .checklist li::before {
  content: "";
  flex: none;
  width: .72rem; height: .4rem;
  margin-top: .45rem;
  border-left: 2.5px solid var(--primary-dark);
  border-bottom: 2.5px solid var(--primary-dark);
  transform: rotate(-45deg);
}

/* ---------- pricing ---------- */
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.plan.active {
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-2), 0 0 0 3px rgba(156,210,43,.18);
}
.price {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price .small, .price span { font-family: var(--font); font-size: .88rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan-bar { height: 4px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.plan-bar > * , .progress > * { display: block; height: 100%; background: var(--primary-dark); border-radius: 999px; }
.progress { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }

/* ---------- modal ---------- */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(18,23,9,.55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 90;
}
.modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.7rem;
  width: min(32rem, 100%);
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--border);
}
.modal h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---------- auth card footer ----------
   "New to EZmenu? Create your free workspace" is the only route a new visitor
   has out of the sign-in screen, so it must not read as fine print. The
   element carries an inline style, but that only sets alignment and margin —
   size, colour and the link treatment are still ours. */
.wrap-sm > p.muted.small {
  font-size: 1rem;
  color: var(--fg-2);
  margin-top: 1.6rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.wrap-sm > p.muted.small a {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--primary-dark);
  background: rgba(156, 210, 43, .10);
  color: var(--primary-ink);
  font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.wrap-sm > p.muted.small a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
}

/* ---------- pointer affordances ----------
   Anything clickable should say so, and anything not clickable shouldn't
   show a text caret the user can't use. */
a.card, a.item, a.img-card, label[for], summary,
.selectable, .plan, [role="button"] { cursor: pointer; }
.btn, button:not(:disabled) { cursor: pointer; }
button:disabled, .btn:disabled { cursor: not-allowed; }
.badge, .eyebrow, .num, .price, .dot, .tv-caption { cursor: default; }
.thumb, .img-card img { user-select: none; -webkit-user-drag: none; }

/* ---------- utility ---------- */
.hidden { display: none !important; }
.show { display: block; }
.ico { flex: none; display: inline-flex; }
.alt { margin-top: 1.5rem; }
.row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }

/* wide content never scrolls the page sideways */
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
td { font-variant-numeric: tabular-nums; }
pre { overflow-x: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .card:hover, .img-card:hover { transform: none; }
}

/* ---------- how-it-works flow ----------
   A picture of the actual journey: phone -> EZmenu -> the TV on the wall.
   Drawn with CSS rather than an image so it stays sharp and themeable. */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
  margin-top: 1rem;
}
.flow-node { text-align: center; }
.flow-node h3 { margin: .55rem 0 .3rem; font-size: 1.02rem; }
.flow-node p { font-size: .9rem; margin: 0 auto; max-width: 17rem; }
.flow-num {
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  color: var(--primary-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.flow-art { height: 9.5rem; display: grid; place-items: center; margin-bottom: .6rem; }

/* phone */
.phone {
  width: 5.1rem; height: 9rem; border-radius: 14px; background: var(--dark);
  padding: .45rem .4rem; box-shadow: var(--shadow-2); position: relative;
}
.phone-screen {
  background: #f7f9f3; height: 100%; border-radius: 9px; padding: .55rem .45rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.ph-row { display: flex; align-items: center; gap: .25rem; }
.ph-row span { flex: 1; height: .32rem; border-radius: 99px; background: #d7ddcb; }
.ph-row b { width: .7rem; height: .32rem; border-radius: 99px; background: var(--primary-dark); }
.ph-up {
  margin-top: auto; background: var(--primary); color: var(--primary-fg);
  border-radius: 99px; font-size: .55rem; font-weight: 800; padding: .25rem 0; letter-spacing: .02em;
}

/* cloud / code card */
.cloudbox {
  background: linear-gradient(165deg, var(--dark-2), var(--dark) 70%);
  border-radius: 14px; padding: 1.3rem 1.1rem; box-shadow: var(--shadow-2);
  min-width: 8.6rem;
}
.cloud-code {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--primary);
  letter-spacing: .08em; font-variant-numeric: tabular-nums; line-height: 1;
}
.cloud-label {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .13em;
  color: #8d957f; margin-top: .45rem; font-weight: 700;
}

/* television */
.telly { width: 11.5rem; }
.telly-screen {
  background: radial-gradient(130% 100% at 20% 0%, #1d2712, #0c1106 72%);
  border: .32rem solid var(--dark); border-radius: 9px; padding: .7rem .75rem;
  box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: .3rem;
}
.tv-row {
  display: flex; justify-content: space-between; gap: .5rem;
  font-size: .62rem; color: #d9e0cc;
}
.tv-row b { color: #fff; font-variant-numeric: tabular-nums; }
.telly-stand {
  width: 3.2rem; height: .3rem; background: var(--border-2);
  border-radius: 0 0 4px 4px; margin: .35rem auto 0;
}

/* connectors */
.flow-link { align-self: start; margin-top: 4.35rem; position: relative; padding: 0 .3rem; min-width: 5rem; }
.flow-link svg { width: 100%; height: 1.5rem; display: block; overflow: visible; }
.flow-link path {
  stroke: var(--primary-dark); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 5 7; fill: none;
  animation: flowdash 1.6s linear infinite;
}
@keyframes flowdash { to { stroke-dashoffset: -24; } }
.flow-tag {
  position: absolute; left: 50%; top: -1.35rem; transform: translateX(-50%);
  font-size: .68rem; font-weight: 700; color: var(--muted); white-space: nowrap;
}

@media (max-width: 880px) {
  .flow { grid-template-columns: 1fr; gap: .4rem; }
  .flow-link { min-width: 0; margin-top: 0; padding: .2rem 0; justify-self: center; width: 2.2rem; }
  .flow-link svg { height: 2.2rem; width: 2.2rem; transform: rotate(90deg); }
  .flow-tag { position: static; display: block; transform: none; margin-top: .2rem; }
  .flow-art { height: auto; padding: .6rem 0; }
}
@media (prefers-reduced-motion: reduce) { .flow-link path { animation: none; } }

/* Hero: a quiet line for the person who is standing at the television,
   so the two big buttons can stay aimed at first-time visitors. */
.hero-tv {
  margin: 1.4rem 0 0;
  font-size: .88rem;
  color: var(--muted);
  border-left: 2px solid var(--border-2);
  padding-left: .8rem;
}
.hero-tv b { color: var(--fg); }

/* Keyboard users should be able to jump past the nav on every page. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--dark);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  font-size: .9rem;
}
.skip-link:focus { left: 0; }
main:focus { outline: none; }
