/* ============================================================================
   site.css — the public side of uishiring.com.

   Self-contained: public pages load this and nothing else. The look is
   editorial - warm paper, navy ink, one blue, big display type, hairlines
   instead of boxes, and no icons. Type and spacing do the work.
   ========================================================================= */

:root {
  --paper:   #f5f4f0;
  --paper-2: #ebe9e3;
  --white:   #ffffff;
  --ink:     #0b1b2b;
  --ink-2:   #46535f;
  --ink-3:   #7d8893;
  --line:    rgba(11, 27, 43, .13);
  --line-2:  rgba(11, 27, 43, .30);
  --blue:    #0a9ce6;
  --blue-ink:#086fa9;
  --navy:    #0b1b2b;
  --navy-2:  #142a40;

  --good: #1f7a4d; --good-bg: #e2f2ea;
  --warn: #9a5a00; --warn-bg: #fbeedb;
  --bad:  #b3261e; --bad-bg:  #fde7e5;

  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --text:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max:    1200px;
  --gutter: clamp(20px, 4.5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Type primitives ---------- */
.kicker, .label {
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0;
}
.kicker { display: flex; align-items: center; gap: 14px; }
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--ink-3); }

.tl {
  color: var(--ink); font-weight: 500; text-decoration: underline;
  text-decoration-color: var(--line-2); text-decoration-thickness: 1px;
  text-underline-offset: 5px; transition: text-decoration-color .15s;
}
.tl:hover { text-decoration-color: var(--ink); }
.tbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--navy); color: #fff; font: 600 15px/1 var(--text);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s cubic-bezier(.2,.7,.2,1), box-shadow .15s;
}
.pill:hover { background: var(--navy-2); transform: translateY(-1px); }
.pill:active { transform: none; }
.pill .arr { display: inline-block; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.pill:hover .arr { transform: translateX(4px); }
.pill.lg { height: 52px; padding: 0 28px; font-size: 15px; }
.pill.sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.pill.block { width: 100%; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill.ghost:hover { background: rgba(11,27,43,.05); }
.pill.on-navy { background: #fff; color: var(--navy); }
.pill.on-navy:hover { background: var(--paper); }
.pill:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- Masthead ---------- */
.mast {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 244, 240, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mast-in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.mast .logo img { height: 26px; width: auto; }
.mast nav { display: flex; align-items: center; gap: 28px; }
.mast nav > a:not(.pill) { font: 500 14px/1 var(--text); color: var(--ink-2); text-decoration: none; }
.mast nav > a:not(.pill):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 0; }
.hero-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.hero .mark {
  position: absolute; right: -2%; top: 4%; width: clamp(220px, 26vw, 420px);
  opacity: .07; pointer-events: none; user-select: none;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.03em;
  font-variation-settings: 'opsz' 64;
  margin: 22px 0 0; max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--blue-ink); }
.hero .deck {
  font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--ink-2);
  max-width: 540px; margin: 22px 0 0;
}
.hero .cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }

.facts { max-width: var(--max); margin: clamp(44px, 6vw, 72px) auto 0; padding: 0 var(--gutter); }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.facts li { padding: 20px 24px 22px 0; border-right: 1px solid var(--line); }
.facts li + li { padding-left: 28px; }
.facts li:last-child { border-right: 0; }
.facts .n {
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(24px, 2.4vw, 32px);
}
.facts .l { margin-top: 12px; }

/* ---------- Sections ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) 0; }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px;
  align-items: end; padding-bottom: 26px; border-bottom: 1px solid var(--ink);
}
.sec-head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.025em;
  margin: 12px 0 0;
}
.sec-head > p { margin: 0; color: var(--ink-2); max-width: 46ch; justify-self: end; line-height: 1.55; font-size: 15px; }

/* roles: an index, not a card grid */
.roles { list-style: none; margin: 0; padding: 0; }
.roles li { border-bottom: 1px solid var(--line); }
.roles a {
  display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) 40px;
  gap: 16px 24px; align-items: baseline; padding: 22px 0;
  text-decoration: none; color: inherit;
}
.roles .i { font: 500 13px var(--mono); color: var(--ink-3); }
.roles .t {
  font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.05;
  font-size: clamp(20px, 2vw, 26px);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.roles .d { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.roles .arr {
  font-family: var(--display); font-size: 22px; line-height: 1; color: var(--ink-3); justify-self: end;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), color .2s;
}
.roles a:hover .t { transform: translateX(10px); }
.roles a:hover .arr { transform: translateX(6px); color: var(--ink); }

/* areas: three big names */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); }
.areas > div { padding: 26px 24px 26px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.areas > div + div { padding-left: 28px; }
.areas > div:last-child { border-right: 0; }
.areas .n {
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(24px, 2.6vw, 34px);
}
.areas .s { color: var(--ink-3); font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-top: 14px; }

/* steps: numbered, no circles */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 32px; padding-top: 30px; }
.steps h3 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; line-height: 1.15; margin: 16px 0 10px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* requirements: a definition list */
.reqs { margin: 0; }
.reqs .row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 12px 32px;
  align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.reqs dt { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.reqs dd { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.tag {
  display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 10px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.tag.req { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* closing band */
.band { background: var(--navy); color: #fff; margin-top: clamp(56px, 7vw, 96px); }
.band-in {
  max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter);
  display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
}
.band h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(26px, 3.2vw, 40px); margin: 0; max-width: 18ch;
}
.band p { color: rgba(255,255,255,.68); margin: 12px 0 0; max-width: 46ch; line-height: 1.55; font-size: 15px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in {
  max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.foot img { height: 20px; width: auto; opacity: .8; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Narrow pages: apply, sign in, done ---------- */
.narrow { max-width: 600px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(72px, 9vw, 128px); }
.narrow.xs { max-width: 480px; }
.ph { margin-bottom: 36px; }
.ph h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 0;
}
.ph p { color: var(--ink-2); margin: 16px 0 0; line-height: 1.55; }

.wiz { display: flex; margin: 0 0 40px; border-bottom: 1px solid var(--line); }
.wiz span {
  flex: 1; padding-bottom: 14px; position: relative;
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.wiz span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.wiz span.on { color: var(--ink); }
.wiz span.on::after { background: var(--ink); }
.wiz span.done { color: var(--ink-2); }
.wiz span.done::after { background: var(--line-2); }

/* ---------- Fields ---------- */
.fs { margin: 40px 0 0; padding: 0; border: 0; min-width: 0; }
.fs:first-of-type { margin-top: 0; }
.fs legend { padding: 0 0 20px; }
.f { margin-bottom: 22px; }
.f label { display: block; font: 600 13.5px/1 var(--text); color: var(--ink); margin-bottom: 10px; }
.f label small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f input[type="password"],
.f select, .f textarea {
  width: 100%; height: 52px; padding: 0 16px; margin: 0;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--white);
  font: 400 16px/1.4 var(--text); color: var(--ink); outline: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.f textarea { height: auto; min-height: 124px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,27,43,.08); }
.f input:disabled { background: var(--paper-2); color: var(--ink-2); }
.f input::placeholder, .f textarea::placeholder { color: var(--ink-3); }
.f select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%230b1b2b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.f .hint { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin: 9px 0 0; }
.f .hint a { color: var(--ink-2); }
.f .err { color: var(--bad); }
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--bad); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.after { text-align: center; font-size: 14px; color: var(--ink-3); margin: 22px 0 0; line-height: 1.6; }
.after a { color: var(--ink-2); }

/* ---------- Notes (flash messages) ---------- */
.note {
  padding: 14px 18px; border-radius: 6px; border: 1px solid; margin: 0 0 26px;
  font: 500 14.5px/1.5 var(--text);
}
.note.ok  { background: var(--good-bg); border-color: rgba(31,122,77,.3);  color: var(--good); }
.note.err { background: var(--bad-bg);  border-color: rgba(179,38,30,.3);  color: var(--bad); }

/* ---------- Reference / password block ---------- */
.refcard {
  border: 1px solid var(--ink); border-radius: 8px; padding: 28px 30px; margin: 0 0 24px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
.refcard .v { font: 500 clamp(22px, 3vw, 30px)/1 var(--mono); letter-spacing: .04em; margin-top: 12px; }
.refcard .side { font-size: 13.5px; color: var(--ink-2); max-width: 24ch; line-height: 1.5; text-align: right; }

.plan { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: s; }
.plan li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.plan li:last-child { border-bottom: 1px solid var(--line); }
.plan li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font: 500 13px var(--mono); color: var(--ink-3); padding-top: 3px;
}
.plan b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.plan span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }

/* ---------- The applicant's account ---------- */
.port { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--gutter) 110px; }
.port-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.port-head h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 0;
}
.port-head p { color: var(--ink-2); margin: 12px 0 0; font-size: 15.5px; }

.status {
  border: 1px solid var(--ink); border-radius: 8px; padding: 28px 30px; margin-bottom: 44px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.status .v {
  font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1;
  font-size: clamp(22px, 2.6vw, 26px); margin-top: 10px;
  display: flex; align-items: center; gap: 13px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.status .n { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 12px 0 0; max-width: 48ch; }
.meter { text-align: right; min-width: 170px; }
.meter .bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--ink); transition: width .5s cubic-bezier(.2,.7,.2,1); }

.h2 { padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin: 0; }
.docs { list-style: none; margin: 0 0 48px; padding: 0; }
.docs li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.docs .t {
  font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; line-height: 1.2;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.docs .t .dot { width: 9px; height: 9px; }
.docs .t small { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.docs .s { color: var(--ink-2); font-size: 14px; margin-top: 6px; line-height: 1.5; }
.docs .s a { color: var(--blue-ink); }
.docs .act { display: flex; align-items: center; gap: 18px; }
.docs .act form { margin: 0; }
.docs label.pill { position: relative; overflow: hidden; }
.docs label.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.docs .pick-hint { margin: 18px 0 0; }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin: 0 0 44px; }
.kv > div { padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kv .v { font-size: 15.5px; line-height: 1.5; margin-top: 7px; white-space: pre-wrap; word-break: break-word; }
.kv .v.dim { color: var(--ink-3); }
.kv .label { font-size: 11px; }

.sub-note { color: var(--ink-3); font-size: 13.5px; line-height: 1.55; margin: 14px 0 0; }
.sub-note a { color: var(--ink-2); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .07s; }
  .rise.d2 { animation-delay: .14s; }
  .rise.d3 { animation-delay: .21s; }
  .rise.d4 { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .sec-head > p { justify-self: start; }
  .roles a { grid-template-columns: 44px minmax(0, 1fr) 32px; grid-template-areas: "i t a" ". d ."; gap: 10px 18px; }
  .roles .i { grid-area: i; } .roles .t { grid-area: t; } .roles .d { grid-area: d; } .roles .arr { grid-area: a; }
  .steps { grid-template-columns: 1fr 1fr; }
  .reqs .row { grid-template-columns: minmax(0, 1fr) auto; }
  .reqs .row dd:first-of-type { grid-column: 1 / -1; order: 3; }
  .band-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mast-in { height: 62px; }
  .mast .logo img { height: 22px; }
  .mast nav { gap: 18px; }
  .hero .mark { right: -24%; top: 2%; width: 240px; opacity: .05; }
  .facts ul, .areas { grid-template-columns: 1fr; }
  .facts li, .areas > div { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .facts li:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .two, .kv { grid-template-columns: 1fr; }
  .status, .refcard { grid-template-columns: 1fr; }
  .meter { text-align: left; }
  .refcard .side { text-align: left; max-width: none; }
  .docs li { grid-template-columns: 1fr; }
  .wiz span { font-size: 10px; letter-spacing: .06em; white-space: nowrap; }
  .wiz span:last-child { text-align: right; }
}
