/* Tap In Book — the marketing site. One stylesheet, no framework, no web fonts, no JavaScript.
 *
 * The palette is the tablet's own. worker/assets/kiosk.css paints the door screen on near-black
 * (#0f1115) with a single green accent (#3f7d5c), because a wall-mounted screen at arm's length
 * wants one bright thing on it and nothing else. The site borrows that ink and that green rather
 * than inventing a brand colour, so the picture in the hero and the product it is a picture of
 * are the same object. It is deliberately nothing like My Job Book's yellow.
 *
 * Contrast, checked rather than eyeballed:
 *   #2f6b4d fill + white text .......... 6.4:1   (buttons, the mark)
 *   #1f5038 text on #ffffff ............ 8.6:1   (accent text in light mode)
 *   #6fbf93 text on #0f1115 ............ 8.6:1   (accent text in dark mode)
 *
 * Built phone-first: a gym owner reads this standing in a gym, on a phone, between classes.
 * Everything is checked at 360 CSS pixels, which is the narrowest phone still sold.
 */

:root {
  --ink: #0f1115;          /* the kiosk's background, and this site's dark panels */
  --ink-2: #171b22;        /* the kiosk's panel */
  --ink-line: #2b3240;
  --ink-text: #f2f5f8;
  --ink-muted: #9aa6b6;

  --green: #2f6b4d;
  --green-hover: #275a41;
  --green-text: #1f5038;   /* accent TEXT on paper: darker than the fill, for 8.6:1 */
  --green-soft: #e6f0ea;

  --paper: #f7f8f7;
  --card: #ffffff;
  --text: #16191d;
  --muted: #555e68;
  --line: #e2e5e3;

  --shadow: 0 1px 2px rgba(15, 17, 21, 0.06), 0 10px 28px rgba(15, 17, 21, 0.08);
  --radius: 14px;
  --wrap: 70rem;
  --pad: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1115;
    --card: #171b22;
    --text: #e8ecef;
    --muted: #9aa6b6;
    --line: #262d35;
    --green-text: #6fbf93;
    --green-soft: rgba(111, 191, 147, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 28px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
[id] { scroll-margin-top: 5rem; }

a { color: inherit; text-decoration-color: var(--green-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--text); line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
.small { font-size: 0.925rem; }
.centre { text-align: center; }
.narrow { max-width: 44rem; margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--green); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10; text-decoration: none; }
.skip:focus { left: 0.5rem; }

.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green-text); margin-bottom: 0.9rem; }
.lede { font-size: clamp(1.08rem, 2.3vw, 1.3rem); color: var(--muted); max-width: 38rem; }

/* A green underline behind a phrase. In dark mode it becomes green text, because a dark fill
 * under light text is a smudge rather than a highlight. */
.mark { background: linear-gradient(transparent 60%, #8fd5b0 60%, #8fd5b0 92%, transparent 92%); padding: 0 0.08em; }
@media (prefers-color-scheme: dark) { .mark { background: none; color: var(--green-text); } }

/* ---- buttons ------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--text); }
.btn-big { min-height: 3.5rem; font-size: 1.08rem; padding-inline: 1.7rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* On the dark hero the ghost button needs the dark palette's own line and text. */
.on-ink .btn-ghost { background: transparent; border-color: var(--ink-line); color: var(--ink-text); }
.on-ink .btn-ghost:hover { border-color: var(--ink-text); }

/* ---- header -------------------------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 0.75rem; min-height: 4rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; text-decoration: none; color: var(--text); white-space: nowrap; }
.logo img { width: 2rem; height: 2rem; }
.site-nav { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a { text-decoration: none; padding: 0.45rem 0.65rem; border-radius: 8px; font-weight: 600; font-size: 0.94rem; color: var(--text); }
.site-nav a:hover { background: var(--green-soft); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--green-text); border-radius: 0; }
.site-nav .btn { margin-left: 0.35rem; min-height: 2.6rem; padding: 0.45rem 1rem; color: #fff; }
.site-nav .btn:hover { background: var(--green-hover); }
@media (max-width: 40rem) {
  .site-head .wrap { min-height: 3.5rem; padding-block: 0.5rem; }
  .site-nav { width: 100%; margin-left: 0; }
  .site-nav a { padding-inline: 0.5rem; font-size: 0.9rem; }
}

/* ---- sections ------------------------------------------------------------------------------ */
.section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--card); border-block: 1px solid var(--line); }

/* ---- the dark hero, which is the tablet's own colour --------------------------------------- */
.hero { background: var(--ink); color: var(--ink-text); padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.hero h1, .hero h2, .hero h3 { color: var(--ink-text); }
.hero .lede { color: var(--ink-muted); }
.hero .eyebrow { color: #6fbf93; }
.hero .mark { background: none; color: #6fbf93; }
.hero-grid { display: grid; gap: clamp(1.75rem, 5vw, 3rem); align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.price-line { font-size: 1.05rem; margin-top: 1.25rem; }
.price-line strong { font-size: 1.3rem; }
.hero .price-line span { color: var(--ink-muted); }
.hero-note { color: var(--ink-muted); font-size: 0.925rem; margin-top: 1.1rem; }
.hero-note a { color: #6fbf93; }

/* ---- the drawn tablet ---------------------------------------------------------------------- */
.tablet { width: 100%; height: auto; border-radius: 18px; }
.tablet-cap { color: var(--ink-muted); font-size: 0.875rem; margin: 0.9rem 0 0; }
.screens { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.screen figcaption { font-size: 0.925rem; color: var(--muted); margin-top: 0.7rem; }
.screen { margin: 0; }
.screen svg { border-radius: 14px; }

/* ---- cards and grids ----------------------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
/* Two columns at most, never three. 24rem is chosen so that a third column will not fit inside
 * --wrap: four cards laid out 3 + 1 leaves one orphan across the bottom, which reads as a
 * mistake rather than as a set of four. */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-q { font-size: 1.05rem; font-weight: 700; color: var(--green-text); margin: 0 0 0.35rem; }

/* A numbered step. The number is drawn by CSS so there is no image to load. */
/* Explicit breakpoints rather than auto-fit: every set of steps on this site has FOUR of them,
 * and auto-fit lands on three across with the fourth orphaned underneath, which reads as a
 * mistake. One, then two, then four. */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; font-size: 0.95rem; margin-bottom: 0.7rem; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p:last-child { margin-bottom: 0; }

/* A plain list with a tick or a cross, drawn as text so nothing loads. */
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 0.6rem; }
.ticks li, .crosses li { padding-left: 1.9rem; position: relative; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green-text); font-weight: 800; }
.crosses li::before { content: "\2715"; position: absolute; left: 0; top: 0; color: var(--muted); font-weight: 800; }

/* ---- the price ----------------------------------------------------------------------------- */
/* The card sits inside a centred section, but a ticked list with its text centred puts every
 * tick on a ragged left edge and reads as broken. So the card re-establishes left alignment and
 * only the three things that should be centred are centred again. */
.price-card { background: var(--card); border: 2px solid var(--green); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow); max-width: 34rem; margin-inline: auto; text-align: left; }
.price-big, .price-alt, .price-card .btn-row, .price-card > .small { text-align: center; }
.price-card .btn-row { justify-content: center; margin-top: 1.5rem; }
.price-card .ticks { margin-bottom: 0; }
.price-big { font-size: clamp(2.4rem, 8vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0 0 0.3rem; }
.price-big span { font-size: 1.05rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-alt { font-size: 1.05rem; margin-bottom: 1.4rem; }

/* ---- the quiet callout --------------------------------------------------------------------- */
.note { border-left: 4px solid var(--green); background: var(--green-soft); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--green-text); }

/* ---- questions ----------------------------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.35rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 0.85rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green-text); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin-bottom: 1rem; }

/* ---- a plain table ------------------------------------------------------------------------- */
.tbl-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
thead th { border-bottom-width: 2px; }

/* ---- footer -------------------------------------------------------------------------------- */
.site-foot { background: var(--card); border-top: 1px solid var(--line); padding-block: 2.5rem 2rem; margin-top: auto; }
.foot-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 2rem; }
.foot-grid h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.7rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.foot-grid a { text-decoration: none; font-size: 0.95rem; }
.foot-grid a:hover { text-decoration: underline; }
.foot-tag { font-size: 0.95rem; max-width: 20rem; }
.fine { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.25rem; margin: 0; }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
