/* Hourbook landing (light only, founder 2026-09-23). Tokens mirror the app (StudioUI Theme.default): one colour per state,
   blue = off the clock, green = working, amber = break. No gradients, no glow. */
:root {
  --paper: #F6F7FB; --card: #FFFFFF; --ink: #0F1B2D; --muted: rgba(15, 27, 45, .64); --line: rgba(15, 27, 45, .10);
  --blue: #0B73FA; --green: #22C55E; --amber: #F5A524; --on-solid: #FFFFFF;
  --round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --r-card: 22px; --r-btn: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--card); padding: 8px 12px; border-radius: 10px; z-index: 9; }
.skip:focus { top: 12px; }

.top, main { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--round); color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 15px; color: var(--ink); }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 8px; list-style: none;
  width: min(92vw, 520px); columns: 3 150px; column-gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 27, 45, .14); }
.langs li { break-inside: avoid; }
.langs a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.langs a:hover { background: var(--line); }
.langs a[aria-current] { font-weight: 700; color: var(--blue); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 36px 72px; }
h1, h2, h3 { font-family: var(--round); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06; font-weight: 800; margin: 0 0 18px; text-wrap: balance; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.badge { display: inline-block; border-radius: 10px; }
.badge img { height: 53px; width: auto; }
.note { font-size: .93rem; color: var(--muted); margin: 14px 0 0; }

/* The shift card: a ring in the state colour, faint tinted shadow (studio hero card) */
.shift { --tone: var(--green); margin: 0; background: var(--card); border-radius: var(--r-card); padding: 22px;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tone) 60%, transparent), 0 18px 40px color-mix(in srgb, var(--tone) 16%, transparent); }
.shift[data-state="off"] { --tone: var(--blue); }
.shift-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .95rem; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--tone); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 18%, transparent); }
.job { color: var(--muted); font-weight: 500; }
.shift-mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 18px; }
.clock { font: 800 clamp(2.6rem, 6vw, 3.4rem)/1 var(--round); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.since { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: .95rem; }
.mascot { width: 96px; height: 96px; flex: none; }
.shift-actions { display: flex; gap: 10px; }
.b { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 50px; border-radius: var(--r-btn);
  font-weight: 700; font-size: 1rem; }
.b.solid { background: var(--tone); color: var(--on-solid); }
.b.tonal { background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); }
.b.pressed { transform: scale(.96); transition: transform .12s ease; }
.shift[data-state="on"] .when-off, .shift[data-state="off"] .when-on { display: none; }

/* A shift, as a real timeline: times are a sequence, the dots carry the app's state colours */
section { padding-block: 40px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; font-weight: 800; margin: 0 0 24px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.timeline li { --c: var(--green); position: relative; padding: 30px 22px 0 0; }
.timeline li[data-tone="break"] { --c: var(--amber); }
.timeline li[data-tone="off"] { --c: var(--blue); }
.timeline li[data-tone="send"] { --c: var(--ink); }
.timeline li::before { content: ""; position: absolute; inset-inline: 0; top: 8px; border-top: 2px solid var(--line); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 5px var(--paper); }
.timeline time { display: block; font: 800 1.35rem/1 var(--round); font-variant-numeric: tabular-nums; color: var(--c); }
.timeline h3 { font-size: 1.12rem; margin: 10px 0 6px; }
.timeline p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 28ch; }

/* Screenshots in the visitor's language */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 23%); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.strip img { scroll-snap-align: start; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; } /* centered reading column under the 1040px sections (founder 2026-10-03) */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--round); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }

/* Closing */
.closing { text-align: center; padding-block: 56px 72px; }
.closing img:first-child { margin: 0 auto 8px; }
.closing h2 { margin-bottom: 8px; }
.closing p { color: var(--muted); margin: 0 0 22px; }
.closing .note { margin-top: 18px; }

/* Footer: a white band, three columns (brand + badge, links, languages), then the legal line */
.foot { max-width: none; padding: 0; margin-top: 24px; background: var(--card); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.foot-in { max-width: 1080px; margin-inline: auto; padding: 48px 20px 36px; display: grid; grid-template-columns: 1.2fr .7fr 1.6fr; gap: 40px; }
.foot-brand p { margin: 12px 0 18px; max-width: 26ch; color: var(--muted); }
.badge.small img { height: 40px; }
.foot-links { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.foot-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--blue); }
.foot-links .mail { font-size: .88rem; }
.foot-langs h2 { font: 700 .95rem/1.2 var(--sans); letter-spacing: 0; color: var(--ink); margin: 6px 0 14px; }
.foot-langs ul { list-style: none; margin: 0; padding: 0; columns: 3 120px; column-gap: 20px; }
.foot-langs li { break-inside: avoid; }
.foot-langs a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.foot-langs a:hover { color: var(--ink); }
.foot-langs a[aria-current] { color: var(--blue); font-weight: 700; }
.foot-more { max-width: 1080px; margin-inline: auto; padding: 0 20px 20px; } /* "More apps by JCOM" (root /_apps.php) */
.foot-base { max-width: 1080px; margin-inline: auto; padding: 18px 20px 32px; border-top: 1px solid var(--line); font-size: .85rem;
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.foot-base p { margin: 0; }

/* Legal pages (privacy, terms) */
.doc { max-width: none; padding-block: 24px 56px; line-height: 1.65; } /* legal pages use the full main width (founder 2026-10-03) */
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin: 30px 0 10px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 16px 40px; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 0 0 26px 34px; padding-inline: 34px 0; }
  .timeline li::before { inset-inline: 6px auto; top: 16px; bottom: 0; border-top: 0; border-inline-start: 2px solid var(--line); }
  .timeline li:last-child::before { display: none; }
  .timeline p { max-width: none; }
  .strip { grid-auto-columns: 62%; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .foot-links { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .foot-langs ul { columns: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.doc .eyebrow, .doc .updated { color: var(--muted); font-size: .95rem; }
