/* The welcome and log-in page, every Arpero tool (work item W-012, card Q-103, ARP-D-023).
   Designer, 7 October 2026. The same look as each tool's page on www.arperotools.com (boards G7, M1):
   navy header with the logo image, coral rule and the tool's name; content centred on the light ground.
   Words: "Every tool - the welcome and log-in words, 7 October.md", copied by script. */

@font-face { font-family: "Basic"; src: url("../shell/fonts/Basic-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../shell/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #23384a;
  --navy-deep: #1a2a38;
  --coral: #f27c74;
  --coral-text: #b4554d;
  --slate: #5f758e;
  --pale: #c9d0d8;
  --rule: #dde2e8;
  --ground: #f5f5f5;
  --warm: #f7f4ee;
  --paper: #ffffff;
  --on-navy: #f5f5f5;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--navy);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--coral-text); text-underline-offset: 3px; }
a:hover { color: #8d423c; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.wrap { max-width: 1340px; margin: 0 auto; padding: 0 40px; }

/* Logged in: the line at the top of every page (N1, N2) */
.session {
  background: var(--navy-deep);
  color: var(--on-navy);
  font-size: 14px;
  line-height: 20px;
}
.session .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 20px; min-height: 48px; }
.session button {
  font: inherit;
  font-weight: 500;
  color: var(--on-navy);
  background: transparent;
  border: 1px solid var(--slate);
  border-radius: 4px;
  padding: 5px 14px;
  cursor: pointer;
}
.session button:hover { border-color: var(--on-navy); }

/* Header: as on each tool's page at www.arperotools.com */
.site-header { background: var(--navy); color: var(--on-navy); padding: 40px 0 56px; text-align: center; }
.logo { display: block; width: 200px; height: auto; }
.accent { width: 56px; height: 3px; background: var(--coral); margin: 48px auto 22px; }
h1 {
  margin: 0 auto;
  max-width: 900px;
  font-family: Basic, Inter, sans-serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

main { flex: 1 0 auto; padding: 44px 0 56px; text-align: center; }
main .wrap { max-width: 760px; }

.lead { font-family: Basic, Inter, sans-serif; font-size: 24px; line-height: 1.3; text-wrap: balance; }
.invited { margin-top: 20px; font-size: 17px; text-wrap: balance; }
.lead + .panel, .invited + .panel { margin-top: 28px; }

/* The panel holds the fields; set left, as forms read best */
.panel {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 28px 26px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-align: left;
}
.panel.wide { max-width: 600px; }
.panel h2 {
  margin: 0 0 8px;
  font-family: Basic, Inter, sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
}
.panel .intro { margin: 0 0 22px; font-size: 16px; }

.field { margin: 0 0 18px; }
.field label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.field input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--slate);
  border-radius: 4px;
}
.field input[aria-invalid="true"] { border: 2px solid var(--coral-text); padding: 0 13px; }
.field input.code {
  max-width: 220px;
  font-size: 22px;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}

.button {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  background: var(--navy);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.button:hover { background: var(--navy-deep); color: #ffffff; }
.button.narrow { width: 260px; max-width: 100%; margin: 0 auto; }
.after-button { margin-top: 16px; font-size: 15px; line-height: 1.5; }

/* A message: says what happened and what to do, with no fault (words file, section 3) */
.message {
  margin: 0 0 22px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  background: var(--warm);
  border-left: 4px solid var(--coral-text);
  border-radius: 0 4px 4px 0;
  text-align: left;
}
main > .wrap > .message { max-width: 520px; margin: 0 auto; }

/* The authenticator set-up: the QR code beside its line */
.scan { display: grid; grid-template-columns: 148px 1fr; gap: 22px; align-items: start; margin: 0 0 18px; }
.scan svg { display: block; width: 148px; height: 148px; border: 1px solid var(--rule); }
.key { margin: 0 0 22px; font-size: 15px; line-height: 1.5; }
.key code {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.06em;
  background: var(--ground);
  border-radius: 3px;
}

.links { margin-top: 32px; font-size: 16px; line-height: 1.6; }
.links p + p { margin-top: 10px; }

.site-footer { border-top: 1px solid var(--rule); padding: 20px 0 28px; text-align: center; font-size: 15px; }

/* The clients' path (a code by e-mail, card Q-104), 8 October: the address line, the way to change it, and the
   quiet button for a new code, which never looks like the main one */
.panel .intro.tight { margin-bottom: 4px; }
.address { font-weight: 600; overflow-wrap: anywhere; }
.change { margin: 0 0 22px; font-size: 15px; line-height: 1.5; }
.resend { margin-top: 16px; }
.button.quiet {
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--slate);
}
.button.quiet:hover { background: var(--ground); color: var(--navy); border-color: var(--navy); }
.resend .after-button { margin-top: 12px; }

/* The page shows one screen at a time; the word in body[data-screen] picks it */
[data-screen] .screen { display: none; }
[data-screen="welcome"] .screen.welcome,
[data-screen="code"] .screen.code,
[data-screen="setup"] .screen.setup,
[data-screen="no-access"] .screen.no-access,
[data-screen="logged-out"] .screen.logged-out { display: block; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .session .wrap { justify-content: space-between; gap: 12px; min-height: 44px; }
  .site-header { padding: 22px 0 36px; }
  .logo { width: 150px; }
  .accent { width: 48px; margin: 34px auto 18px; }
  h1 { font-size: 34px; line-height: 1.1; }
  main { padding: 32px 0 44px; }
  .lead { font-size: 22px; }
  .invited { margin-top: 16px; font-size: 16px; }
  .lead + .panel, .invited + .panel { margin-top: 24px; }
  .panel { padding: 22px 20px 20px; }
  .panel h2 { font-size: 23px; }
  .scan { grid-template-columns: 1fr; gap: 14px; }
  .scan svg { width: 132px; height: 132px; }
  .links { margin-top: 28px; font-size: 15px; }
}

/* The clients' welcome page: S2w on its own line under W4, above the address field (designer, 8 October) */
.codenote { margin-top: 8px; font-size: 17px; color: var(--slate, #5f758e); text-wrap: balance; }
.codenote + .panel { margin-top: 28px; }
@media (max-width: 640px) { .codenote { margin-top: 6px; font-size: 16px; } .codenote + .panel { margin-top: 24px; } }

/* The request for an invitation (card Q-072 option B, card Q-111), 9 October: a second panel under the log-in, its
   button quiet so the log-in stays the one main action; R5 as a hint under its field; R11 and R12 under the button */
.request { margin-top: 28px; }
.request h2 { font-size: 22px; }
.request .intro { margin-bottom: 20px; }
.hint { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--slate); }
.message.after { margin: 14px 0 0; }
.privacy-line { font-size: 14px; color: var(--slate); }
.request .sent { font-size: 16px; }
.request .sent + .after-button { margin-top: 12px; }
@media (max-width: 640px) { .request { margin-top: 24px; } .request h2 { font-size: 21px; } }

/* ---------- Step ux-1 (spec/step-ux-1.md part B), board T43: the navy header in one row, the logo on the left, the
   tool's name on the right with the short pale-coral rule under it (ARP-D-041: coral on navy is the pale coral). The
   clients' page and Arpero's share it, and every screen carries it. No word changes. ---------- */
.site-header { padding: 18px 0 20px; text-align: left; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header .logo { width: 150px; flex: none; }
.site-header .accent { display: none; }
.site-header h1 { margin: 0; max-width: none; font-size: 30px; line-height: 1.1; text-align: right; position: relative; padding-bottom: 10px; }
.site-header h1::after { content: ""; position: absolute; right: 0; bottom: 0; width: 40px; height: 3px; background: #f9ada0; }
@media (max-width: 640px) {
  .site-header { padding: 14px 0; }
  .site-header .logo { width: 108px; }
  .site-header h1 { font-size: 22px; padding-bottom: 8px; }
  .site-header h1::after { width: 32px; }
}

/* ---------- Step back-1 (spec/step-back-1.md part A, W-314), the designer's board: LB1, the link to Arpero's page
   about the tool, first thing on the clients' welcome screen. A text link, not a button, so "Send code" stays the one
   main action; set left on the form column's edge; no arrow (the designer, 20 October, 21:08). ---------- */
.way-back { max-width: 420px; margin: 0 auto 28px; text-align: left; font-size: 15px; line-height: 1.5; }
.way-back a { color: var(--coral-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .way-back { margin-bottom: 22px; } }
