/* HelpSeeker design system, product profile, for a standalone page.
   Sources (mareto-governance, origin/main, standard/mos-1.0/corteza/):
   - frontend/gateway/hs-gateway.css: tokens, card, pill controls, buttons, focus as lift
   - design-canon/rulings/helpseeker-brand.md: palette, Lato 400/700, light mode
   - design-canon/rulings/feedback_glow_not_lines.md: no lines, no outlines, no focus rings
   - design-canon/examples/form-validation.html: option A, Urgent pair under the field
   - design-canon/examples/login-cobrand-options.html: the white card on navy
   Look: Jesse's discreet mock-up of 01.12.26 (plain navy, one centred card, the sec1 padlock).
   - design-canon/rulings/corteza-gateway-page-design-profile.md: 999px controls, 20px cards,
     gradient only in medallions and icons
   - design-canon/rulings/medallion-glyph-must-be-white-stroke.md: glyphs on medallions
   - theme/package/dist/fonts/lato/: the self-hosted Lato files and unicode ranges
   Logo: sec1-logo.svg, the sec1 padlock in the Mareto, Karto and Navigi tube style. */

@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap; src: url('/lato-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lato; font-style: normal; font-weight: 700; font-display: swap; src: url('/lato-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap; src: url('/lato-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Lato; font-style: normal; font-weight: 700; font-display: swap; src: url('/lato-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --hs-navy: #0B1F33;
  --hs-midnight: #102A43;
  --hs-slate: #1E3A5F;
  --hs-ink: #2D3748;
  --hs-muted: #4A5568;
  --hs-deep-teal: #0E8C86;
  --hs-teal: #0FB9B1;
  --hs-aqua: #4FD1C5;
  --hs-pine: #0B7770;
  --hs-page: #F9FAFB;
  --hs-mist: #EDF5F4;
  --hs-pale: #E0F0EE;
  --hs-surface: #FFFFFF;
  --hs-urgent-bg: #F2DEDF;
  --hs-urgent-ink: #721D20;
  --hs-on-navy: rgba(255, 255, 255, 0.84);
  --hs-action-gradient: linear-gradient(135deg, #0B1F33 22%, #336FB5 100%);
  --hs-done-gradient: linear-gradient(135deg, #0B7770 0%, #0FB9B1 60%, #4FD1C5 100%);
  --hs-inset: inset 0 1px 2px rgba(11, 31, 51, 0.06);
  --hs-shadow-1: 0 2px 12px rgba(11, 31, 51, 0.08);
  --hs-shadow-2: 0 4px 18px rgba(11, 31, 51, 0.14);
  --hs-shadow-card: 0 24px 64px rgba(3, 12, 22, 0.45), 0 4px 14px rgba(3, 12, 22, 0.22);
  --hs-focus: 0 8px 22px rgba(11, 31, 51, 0.20), 0 2px 6px rgba(11, 31, 51, 0.10);
  --hs-r-control: 999px;
  --hs-r-well: 16px;
  --hs-r-card: 20px;
  --hs-font: Lato, -apple-system, "Segoe UI", Arial, sans-serif;
  --hs-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--hs-navy); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--hs-navy);
  color: var(--hs-ink);
  font: 400 15px/1.55 var(--hs-font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* One centred card. */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--hs-surface);
  border-radius: var(--hs-r-card);
  box-shadow: var(--hs-shadow-card);
  padding: 40px 38px 30px;
  text-align: center;
  /* Auto margins centre the card at any window height, and never push its top
     off screen when the window is shorter than the card. */
  margin-block: auto;
}
/* Headings, text and marks are centred; form parts read left to right. */
.label, .label-row, .field-wrap, .field, .field-error, .hint--under, .assurance { text-align: left; }

/* The sec1 padlock, on the sign-in and create cards. */
.logo { display: block; width: 64px; height: 64px; margin: 0 auto 12px; }
.title--big { font-size: 28px; margin-bottom: 0; }


h2 {
  margin: 0 0 8px;
  color: var(--hs-navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.2px;
}
p { margin: 0; }
.lede { color: var(--hs-muted); text-wrap: pretty; }
h2 { text-wrap: balance; }
.assurance span { text-wrap: pretty; }
.hint { color: var(--hs-muted); font-size: 12.5px; }
.hint--under { margin-top: 8px; padding-left: 4px; }

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.label-row .label { margin: 0; }
.label {
  display: block;
  margin: 22px 0 8px;
  color: var(--hs-slate);
  font-size: 13px;
  font-weight: 700;
}
.label-row + .field-wrap { margin-top: 8px; }

/* The person a link is for, named in a sentence. Long addresses wrap. */
.who { color: var(--hs-navy); font-weight: 700; overflow-wrap: anywhere; }

/* The assurance under the create button: a small shield, quiet text. */
.assurance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--hs-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.assurance svg {
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--hs-pine);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Who is signed in, and a quiet Sign out, at the foot of every card. */
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 10px;
  margin-top: 24px;
  padding-top: 14px;
  background: linear-gradient(var(--hs-mist), var(--hs-mist)) top / 100% 1px no-repeat;
  color: var(--hs-muted);
  font-size: 12.5px;
  text-align: left;
}
.card-foot .text-link { padding: 4px 0 4px 10px; color: var(--hs-deep-teal); font-weight: 700; font-size: 12.5px; }
.account-email { color: var(--hs-slate); font-weight: 700; overflow-wrap: anywhere; }
.text-link {
  border: 0;
  border-radius: var(--hs-r-control);
  padding: 4px 10px;
  background: none;
  color: var(--hs-muted);
  font: 400 13px var(--hs-font);
  cursor: pointer;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.text-link:hover { color: var(--hs-slate); text-decoration: underline; text-underline-offset: 3px; }
.text-link:focus-visible { outline: none; color: var(--hs-slate); box-shadow: var(--hs-focus); }

/* Medallion: the only place a gradient appears. White-stroke glyph. */
.mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--hs-action-gradient);
  box-shadow: 0 6px 18px rgba(11, 31, 51, 0.22);
}
.mark svg { fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark--done { background: var(--hs-done-gradient); box-shadow: 0 6px 20px rgba(15, 185, 177, 0.35); }
.mark--done svg { stroke-width: 2.4; }
.mark--calm { background: var(--hs-pale); box-shadow: none; }
.mark--calm svg { stroke: var(--hs-slate); }

/* Fields: mist fill with an inset, no outline. Focus lifts to white. */
.field-wrap { position: relative; }
.field {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--hs-r-control);
  background: var(--hs-mist);
  box-shadow: var(--hs-inset);
  color: var(--hs-ink);
  font: 400 15px var(--hs-font);
  padding: 13px 20px;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.field::placeholder { color: var(--hs-muted); opacity: 0.75; }
.field--area::placeholder { font-family: var(--hs-font); }
.field--area {
  border-radius: var(--hs-r-well);
  resize: none;
  min-height: 7.2em;
  padding: 14px 56px 14px 18px;
  font: 400 15px/1.55 var(--hs-mono);
}
.field--link {
  font: 400 13.5px var(--hs-mono);
  color: var(--hs-slate);
  text-overflow: ellipsis;
}
.field:focus { outline: none; background: var(--hs-surface); box-shadow: var(--hs-focus); }

/* Validation, option A: Urgent ground on the field, what to do underneath. */
.field[aria-invalid="true"] { background: var(--hs-urgent-bg); }
.field-error {
  margin: 8px 0 0;
  padding-left: 4px;
  color: var(--hs-urgent-ink);
  font-size: 13px;
  font-weight: 700;
}

.masked { -webkit-text-security: disc; }
.masked:placeholder-shown { -webkit-text-security: none; }

.well {
  background: var(--hs-mist);
  border-radius: var(--hs-r-well);
  box-shadow: var(--hs-inset);
  padding: 15px 56px 15px 18px;
}
.secret {
  min-height: 3.4em;
  display: flex;
  align-items: center;
  color: var(--hs-navy);
  font: 400 16px/1.6 var(--hs-mono);
  letter-spacing: 0.5px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* The eye: hold to show, inside the field's top right corner. */
.peek {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hs-slate);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.peek svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.peek:hover { background: var(--hs-pale); }
.peek:active { background: var(--hs-navy); color: #FFFFFF; }
.peek:focus-visible { outline: none; background: var(--hs-surface); box-shadow: var(--hs-focus); }
.field-wrap .secret + .peek { top: 50%; transform: translateY(-50%); }

/* Buttons: pills. Primary is the action gradient; focus is a lift, not a ring. */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.actions--pair .btn { flex: 1 1 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: var(--hs-r-control);
  padding: 12px 26px;
  font: 700 15px var(--hs-font);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.g-mark { display: grid; place-items: center; width: 26px; height: 26px; margin-right: 4px; border-radius: 999px; background: #FFFFFF; }
.btn--primary { background: var(--hs-navy); color: #FFFFFF; box-shadow: var(--hs-shadow-1); }
.btn--quiet { background: var(--hs-mist); color: var(--hs-slate); box-shadow: none; }
.btn--block { width: 100%; }
.btn--primary:hover { box-shadow: var(--hs-shadow-2); transform: translateY(-1px); }
.btn--quiet:hover { background: var(--hs-pale); }
.btn:focus-visible { outline: none; box-shadow: var(--hs-focus); }
.btn:disabled { opacity: 0.55; cursor: default; box-shadow: none; transform: none; }

/* Page messages inside the card. Problems use the Urgent pair; information is pale aqua. */
.alert {
  margin: 18px 0 0;
  padding: 12px 18px;
  border-radius: var(--hs-r-well);
  background: var(--hs-urgent-bg);
  color: var(--hs-urgent-ink);
  font-size: 14px;
  font-weight: 700;
}
.alert.is-info { background: var(--hs-pale); color: var(--hs-pine); }

/* A message with nothing else to show (link already used, expired, damaged):
   calm, not alarming. The card carries it with a quiet medallion. */
.notice-mark, .notice-title { display: none; }
body[data-state="none"] .notice-mark { display: grid; }
.notice-icon--person, .notice-icon--broken { display: none; }
body[data-notice="damaged"] .notice-icon--time { display: none; }
body[data-notice="damaged"] .notice-icon--broken { display: block; }
body[data-notice="not-for-you"] .notice-icon--time { display: none; }
body[data-notice="not-for-you"] .notice-icon--person { display: block; }
body[data-state="none"] .notice-title:not(:empty) { display: block; }
body[data-state="none"] .alert {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--hs-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}


/* Phones. */
@media (max-width: 520px) {
  .shell { padding: 22px 16px; gap: 18px; }
  .card { padding: 30px 22px 26px; }
  h2 { font-size: 22px; }
  .actions--pair { flex-direction: column; align-items: stretch; }
  .actions--pair .btn { flex: 0 0 auto; }
}

[hidden] { display: none !important; }
