/* Solo1. Light theme only, mobile first.
   Colours from the brief: background #F4F4F2, cards #FFFFFF, text #111111,
   secondary #6B6B6B, chips #F0F0EE, accent #F47A2A (the tick only). */

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/google-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/google-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F4F4F2;
  --card: #FFFFFF;
  --text: #111111;
  --text-2: #6B6B6B;
  --chip: #F0F0EE;
  --accent: #F47A2A;
  --line: #E4E4E0;
  --shadow: 0 6px 24px rgba(17, 17, 17, 0.07);
  --radius: 24px;
  --font: 'Google Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
h1, h2 { font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Holding page ---------- */
.hold {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 16px 40px;
}
.hold-head { text-align: center; }
.hold-title {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hold-title a { text-decoration: none; }
.hold-line { margin: 12px 0 0; font-size: 18px; color: var(--text-2); }
.hold-intro { margin: 32px 0 28px; text-align: center; color: var(--text-2); }

.hold-form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 15px; font-weight: 500; padding: 0; }
.field-hint { margin: -4px 0 4px; font-size: 14px; color: var(--text-2); }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  font: inherit;
  font-size: 16px;   /* 16px stops iPhones zooming in */
  outline: none;
}
.field input:focus { border-color: var(--text); }

/* Skills: checkboxes drawn as chips, like Build your card */
.skills { margin: 0; padding: 0; border: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-2);
  font-size: 15px;
  transition: border-color 0.15s, color 0.15s;
}
.chip input:checked + span { border-color: var(--text); color: var(--text); }
.chip input:checked + span::before {
  content: '';
  width: 12px;
  height: 7px;
  margin-top: -3px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
}
.chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.45; cursor: default; }

/* Hours: the stepper from Build your card */
.hours {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 16px 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.hours-text { display: flex; flex-direction: column; }
.hours-label { font-weight: 500; }
.hours-hint { font-size: 14px; color: var(--text-2); }
.stepper { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.stepper-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--chip);
  color: var(--text);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}
.stepper input {
  width: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 20px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input::placeholder { color: var(--text-2); }

.btn-primary {
  align-self: center;
  margin-top: 8px;
  padding: 0 32px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.hold-consent { margin: -4px 0 0; text-align: center; font-size: 14px; color: var(--text-2); }

.hold-done {
  margin-top: 40px;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.hold-done h2 { margin: 0 0 8px; font-size: 24px; }
.hold-done p { margin: 0; color: var(--text-2); }
.hold-done strong { color: var(--text); font-weight: 500; word-break: break-all; }
.hold-done .btn-primary { margin-top: 16px; background: var(--text); color: var(--card); }

/* No words for a mistake: the field shakes (house rule, as on Lumin) */
.is-invalid { animation: shake 0.4s; }
.is-invalid input, .is-invalid .chip span { border-color: var(--text); }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) { .is-invalid { animation: none; } }

/* The trap for bots: off screen, never seen by people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal pages ---------- */
.legal {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 16px;
}
.legal-back { margin: 0 0 32px; font-size: 20px; font-weight: 500; }
.legal-back a { text-decoration: none; }
.legal h1 { margin: 0; font-size: 36px; }
.legal-updated { margin: 8px 0 32px; color: var(--text-2); font-size: 14px; }
.legal h2 { margin: 32px 0 8px; font-size: 20px; }
.legal p, .legal li { color: #3A3A3A; }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul { padding-left: 20px; }

/* ---------- Footer, as on the Start page ---------- */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot-credit { margin: 0; }
.site-foot-credit a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-foot-links { display: flex; gap: 20px; }

@media (min-width: 768px) {
  .hold { padding-top: 96px; }
  .hold-title { font-size: 72px; }
  .site-foot { padding: 24px 32px 32px; }
}

/* =====================================================================
   Phase 1: the design system (2026-10-26), from the six designed screens.
   Mobile first. Widths to check: 360, 390, 768 and 1280.
   ===================================================================== */

:root {
  --photo: #DDE2E6;        /* the grey photo area before there's a photo */
  --initials: #939CA3;
  --track: #E9E9E6;        /* the segmented control's track */
  --outline: #CFCFCA;      /* "needs" tags and quiet borders */
  --radius-card: 32px;
  --radius-photo: 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background-color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .btn-text:focus-visible, .back-btn:focus-visible,
.segmented-btn:focus-visible, .bottom-nav-item:focus-visible, .topbar a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn-white { background: var(--card); box-shadow: var(--shadow); }
.btn-grey { background: var(--chip); }
.btn-dark { background: var(--text); color: var(--card); }
@media (hover: hover) {
  .btn-white:hover { box-shadow: 0 8px 28px rgba(17, 17, 17, 0.11); }
  .btn-grey:hover { background: #E8E8E5; }
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

/* ---------- Top bar (public pages) ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
}
.topbar-brand { font-size: 20px; font-weight: 500; text-decoration: none; }
.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-link { padding: 8px 10px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.topbar-link.is-current { color: var(--text); }
/* Too narrow for all three links: How it works is still in the footer */
@media (max-width: 399px) { .topbar-link[href="/how-it-works"] { display: none; } }

/* ---------- Content pages ---------- */
.content {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}
.content-title { margin: 0 0 28px; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; }
.prose p, .prose li { color: #3A3A3A; }
.prose h2 { margin: 32px 0 8px; font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-underline-offset: 3px; }
.content-title + .legal-updated { margin: -20px 0 28px; }
.placeholder, .prose .placeholder {
  margin: 0;
  padding: 16px 20px;
  border: 1.5px dashed var(--outline);
  border-radius: 16px;
  color: var(--text-2);
}
.steps { display: grid; gap: 24px; margin: 0 0 40px; padding: 0; list-style: none; }
.step-num { font-size: 13px; color: var(--text-2); }
.step-title { margin: 4px 0 6px; font-size: 20px; }
.step-text { margin: 0; font-size: 15px; color: var(--text-2); }

/* ---------- Tags (skills shown, not picked) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags-center { justify-content: center; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.tag-outline { background: transparent; border-color: var(--outline); }
.tag-white { height: 34px; background: var(--card); box-shadow: 0 2px 10px rgba(17, 17, 17, 0.05); font-size: 14px; }

/* ---------- The tick (joined with LinkedIn): the accent colour's only use ---------- */
/* Inline with the name's last word, so a name that wraps keeps its tick beside it */
.tick { display: inline-flex; width: 0.85em; height: 0.85em; margin-left: 0.3em; vertical-align: -0.1em; }
.tick svg { width: 100%; height: 100%; }
.tick circle { fill: var(--accent); }
.tick path { stroke: #fff; }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.card-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--photo);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-initials { color: var(--initials); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.card-name {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card-name-sm { font-size: 17px; }
.card-label { margin: 14px 0 8px; font-size: 15px; color: var(--text-2); }
.card-skills, .card-hours, .card-meta { margin: 0; color: var(--text-2); }
.card-needs { margin: 2px 0 0; font-size: 15px; color: var(--text-2); }
.card-needs span { color: var(--text); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-figures { display: flex; gap: 16px; font-size: 17px; }
.card-figure { display: inline-flex; align-items: center; gap: 6px; }
.card-figure .icon { width: 20px; height: 20px; }

/* Classic: photo on top, details on white */
.card-classic { padding: 10px; }
.card-classic .card-photo { aspect-ratio: 374 / 330; }
.card-classic .card-initials { font-size: 72px; }
.card-classic .card-body { padding: 20px 14px 10px; }
.card-classic .card-foot { margin-top: 28px; }
.card-meta { margin: 6px 0 14px; }

/* Glass: the photo fills the top, the details sit on a dark fade over it.
   Used for someone else's full card (decided 2026-10-26). */
.card-glass { padding: 10px; color: #fff; }
.card-glass .card-photo {
  aspect-ratio: 374 / 330;
  padding-bottom: 40px;
  border-radius: var(--radius-photo) var(--radius-photo) 0 0;
  background: #C9D1D8;
}
.card-glass .card-initials { font-size: 80px; color: #8E979E; }
.card-glass .card-body {
  position: relative;
  margin-top: -96px;
  padding: 96px 20px 20px;
  border-radius: 0 0 var(--radius-photo) var(--radius-photo);
  /* Fully opaque by the photo's bottom edge (96px down), or the white card
     shows through below it as a lighter band */
  background: linear-gradient(to bottom, rgba(52, 55, 58, 0) 0, rgba(52, 55, 58, 0.35) 32px, rgba(52, 55, 58, 0.8) 68px, #343739 96px, #2E3133 100%);
}
.card-glass .card-label { color: rgba(255, 255, 255, 0.78); }
.card-glass .tag { background: rgba(255, 255, 255, 0.2); color: #fff; }
.card-glass .tag-outline { background: transparent; border-color: rgba(255, 255, 255, 0.75); }
.card-glass .tick circle { fill: #fff; }
.card-glass .tick path { stroke: var(--text); }
.card-glass .card-foot { margin-top: 22px; }

/* Row: Matches and search results */
.card-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 10px;
  border-radius: 28px;
}
.card-row .card-photo { height: 100%; min-height: 128px; border-radius: 20px; }
.card-row .card-initials { font-size: 34px; }
.card-row .card-body { display: flex; flex-direction: column; min-width: 0; padding: 6px 4px 2px 0; }
.card-row .card-name { margin-bottom: 4px; font-size: 21px; }
.card-row .card-skills { font-size: 15px; }
.card-row .card-foot { flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.card-row .card-hours { font-size: 15px; white-space: nowrap; }
.card-row .btn { height: 44px; padding: 0 18px; }
/* Phones under 400px: a narrower photo and button, so "6h / month" and
   Request fit on one line inside the card */
@media (max-width: 399px) {
  .card-row { grid-template-columns: 84px 1fr; gap: 12px; }
  .card-row .card-name { font-size: 19px; }
  .card-row .btn { padding: 0 14px; font-size: 15px; }
  .card-row .card-foot { gap: 8px; }
}

/* Mini: the sample strip on the Start page */
.card-mini { padding: 6px; border-radius: 24px; }
.card-mini .card-photo { aspect-ratio: 16 / 11; border-radius: 18px; }
.card-mini .card-initials { font-size: 30px; }
.card-mini .card-body { padding: 12px 8px 8px; }
.card-mini .card-name { margin-bottom: 4px; }
.card-mini .card-skills, .card-mini .card-hours { font-size: 13px; }

/* Preview: the live card while building yours */
.card-preview {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 28px;
}
.card-preview .card-photo { aspect-ratio: 1; border-radius: 20px; }
.card-preview .card-initials { font-size: 28px; }
.card-preview .card-body { min-width: 0; padding: 8px 0 0; }
.card-preview .card-name { margin-bottom: 4px; padding-right: 64px; font-size: 19px; }
.card-preview .card-skills, .card-preview .card-hours { font-size: 15px; }
.card-preview-label { position: absolute; top: 18px; right: 20px; font-size: 13px; color: var(--text-2); }

.card-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Your card beside a match */
.card-pair { display: grid; gap: 28px; }
.card-pair .card { max-width: 380px; margin: 0 auto; }
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); text-align: center; }
.swap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.swap > .icon { width: 64px; height: 64px; }
.swap-badge { padding: 9px 18px; border-radius: 999px; background: var(--text); color: var(--card); font-size: 15px; font-weight: 500; }
.swap-text { margin: 0; }
.swap-text strong { font-weight: 600; }

/* ---------- App screens ---------- */
.app-bar { display: flex; align-items: center; justify-content: space-between; }
.app-brand { font-size: 20px; font-weight: 500; }
.pill-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 15px;
}
.pill-note {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.screen-title { margin: 18px 0 20px; font-size: 40px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.screen-title-sm { margin: 24px 0 4px; font-size: 30px; }
.screen-sub { margin: 0 0 16px; color: var(--text-2); }
.section-label { margin: 24px 4px 10px; color: var(--text-2); font-size: 15px; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
  padding: 6px;
  border-radius: 999px;
  background: var(--track);
}
.segmented-btn {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.segmented-btn.is-active { background: var(--card); color: var(--text); box-shadow: 0 2px 10px rgba(17, 17, 17, 0.08); }

.bottom-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 420px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.bottom-nav-static { position: static; margin-top: 32px; }
.bottom-nav-item {
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
}
.bottom-nav-item.is-active { background: var(--chip); color: var(--text); }

.flow-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.flow-title { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -0.01em; }
.back-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
}
.back-btn .icon { width: 22px; height: 22px; }
.progress { display: inline-flex; gap: 8px; margin: 0 auto; }
.progress span { width: 40px; height: 5px; border-radius: 3px; background: #DADAD6; }
.progress .is-done { background: var(--text); }
.flow-bar-spacer { flex-shrink: 0; width: 56px; }
.flow-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; }
.flow-note { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }

.ledger { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ledger div { display: flex; justify-content: space-between; padding: 4px 0; }
.ledger dt { color: var(--text-2); }
.ledger dd { margin: 0; }
.ledger-total dd { font-weight: 600; }

.textbox {
  width: 100%;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  resize: vertical;
  outline: none;
}
.textbox:focus { border-color: var(--text); }
.field-hint-top { margin: 20px 4px 0; }

/* ---------- Start page hero ---------- */
.hero { padding: 24px 0 32px; text-align: center; }
.hero-title { margin: 0; font-size: 56px; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.hero-line { margin: 12px 0 24px; font-size: 18px; color: var(--text-2); }
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 18px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.searchbar > .icon { width: 20px; height: 20px; color: var(--text-2); }
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.searchbar:focus-within { box-shadow: 0 0 0 1.5px var(--text), var(--shadow); }
.hero-count { margin: 20px 0 0; font-size: 14px; color: var(--text-2); }

/* ---------- Design gallery (staging only) ---------- */
.design { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px 16px 64px; }
.design-note { margin: -8px 0 0; color: var(--text-2); }
.design-section { margin: 56px 0; }
.design-h { margin: 0 0 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.design-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
/* A phone-sized frame for the app screens */
.phone {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px 24px;
  border: 1.5px dashed var(--outline);
  border-radius: 36px;
}

.site-foot-links { flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Sign in and Your account (Phase 2) ---------- */
.content-narrow { max-width: 520px; }
.auth-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.auth-lead { margin: 0; font-size: 17px; }
.auth-linkedin { width: 100%; }
.auth-small { margin: 0; font-size: 14px; color: var(--text-2); }
.auth-small a { color: var(--text); text-underline-offset: 3px; }
.auth-alt { margin-top: 28px; }
.auth-alt summary {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}
.auth-alt summary::-webkit-details-marker { display: none; }
.auth-alt summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.auth-alt-body { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.auth-alt-title { margin: 0; font-size: 20px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .btn { align-self: flex-start; }
.auth-sent { margin: 8px 0 0; color: var(--text-2); }
.field-error { margin: -4px 4px 0; font-size: 14px; color: var(--text); }
.notice {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.account-who { margin: 0; }
.account-name { font-size: inherit; font-weight: 500; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.account-actions form { margin: 0; }
.auth-card .account-actions { margin-top: 4px; }

/* ---------- Build your card, My card, Your card is ready (Phase 3) ---------- */
.build { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.build-form { display: flex; flex-direction: column; gap: 18px; }
.build-form .screen-title-sm { margin: 16px 0 -10px; }
.build-form .screen-sub { margin: 0; }
.photo-row { display: flex; align-items: center; gap: 18px; }
.photo-current { width: 104px; height: 104px; flex-shrink: 0; border-radius: 22px; }
.photo-current .card-initials { font-size: 34px; }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.photo-actions .field-hint { flex-basis: 100%; margin: 2px 0 0; }
.photo-upload { position: relative; overflow: hidden; }
/* The real file input covers its button, invisible, so the button opens it */
.photo-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-upload:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.btn-text-sm { padding: 6px 8px; font-size: 14px; }
.field-hint-after { margin: 0 4px; font-size: 14px; color: var(--text-2); }
.chip-wide span { width: 100%; justify-content: center; }
.build .flow-foot { margin-top: 12px; }

.card-linkedin {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-2);
  text-underline-offset: 3px;
}
.card-glass .card-linkedin { color: rgba(255, 255, 255, 0.85); }
.card-paused {
  margin: 18px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--chip);
  font-size: 15px;
}
.card-glass .card-paused { background: rgba(255, 255, 255, 0.16); }
.card-page .card, .content-narrow > .card { max-width: 400px; margin: 0 auto; }

.ready { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 16px 40px; text-align: center; }
.ready-title { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; }
.ready-sub { margin: 8px 0 32px; color: var(--text-2); }
.card-ready { max-width: 340px; margin: 0 auto; text-align: left; transform: rotate(-2deg); }
.card-ready .card-body { display: flex; flex-direction: column; gap: 12px; }
.card-ready .tags { gap: 6px; }
.card-ready-foot { display: flex; gap: 18px; margin: 4px 0 0; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .card-ready { transform: none; } }

/* ---------- Start page and search (Phase 4) ---------- */
.start { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }
.start-steps { margin-top: 48px; }
.card-link { display: block; color: inherit; text-decoration: none; border-radius: var(--radius-card); }
.card-link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (hover: hover) { .card-link:hover .card { box-shadow: 0 10px 30px rgba(17, 17, 17, 0.11); } }
.card-strip .card-link { border-radius: 24px; }
.search .searchbar { margin: 0 0 8px; max-width: none; }
.search .screen-title { margin-top: 28px; margin-bottom: 4px; }
.search-count { margin: 0 0 18px; color: var(--text-2); }
.search-count strong { color: var(--text); font-weight: 600; }
.search-none { margin: 28px 0 14px; }
.search .tags-center { justify-content: flex-start; }
.invite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.invite p { margin: 0; }

/* ---------- App screens: Matches and My card (Phase 5) ---------- */
.app {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  /* room for the fixed bottom nav */
  padding: 0 16px calc(104px + env(safe-area-inset-bottom));
}
.app .screen-title { margin-top: 20px; }
.app-bar-top { width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 16px 0; }
.app-brand { color: var(--text); text-decoration: none; }
.page-app .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
a.segmented-btn { display: grid; place-items: center; text-decoration: none; }
.bottom-nav-2 { grid-template-columns: repeat(2, 1fr); max-width: 300px; }
.empty-line { margin: 4px 4px 0; color: var(--text-2); }
.app .card-classic { max-width: 400px; margin: 0 auto; }
.app .account-actions { justify-content: center; }
.ready-swaps { margin: 24px auto 0; }

/* The offline page (offline.html) */
.offline-title { margin: 0 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }

@media (min-width: 768px) {
  .topbar { padding: 18px 32px; }
  .topbar-nav { gap: 12px; }
  .content { padding-top: 40px; }
  .content-title { font-size: 48px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .card-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 72px; }
  .card-pair { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
  .design { padding: 16px 32px 80px; }
}

/* Test tools (staging and your PC only, app/testing.php) */
.test-strip {
  position: sticky; top: 0; z-index: 50;
  padding: 8px 16px; text-align: center; font-size: 14px;
  background: var(--text); color: var(--card);
}
.test-strip a { margin-left: 8px; color: inherit; font-weight: 500; }
.test-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.test-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow);
}
.test-row a { color: var(--text); font-weight: 500; }
.test-row form { margin: 0; flex-shrink: 0; }
.test-skills { display: block; margin-top: 2px; font-size: 14px; color: var(--text-2); }

/* ---------- Sessions and credits (Phase 6) ---------- */
.bottom-nav-item { gap: 6px; grid-auto-flow: column; }
.nav-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--text); color: var(--card);
  font-size: 12px; font-weight: 500;
}
a.pill-balance { color: var(--text); text-decoration: none; }
/* A row with Request: the name's link covers the row, the button sits above it */
.card-row-linked { position: relative; }
.card-stretch { color: inherit; text-decoration: none; }
.card-stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-stretch:focus-visible { outline: none; }
.card-stretch:focus-visible::after { outline: 2px solid var(--text); outline-offset: 3px; }
.card-row-linked .card-action { position: relative; z-index: 1; }
@media (hover: hover) { .card-row-linked:hover { box-shadow: 0 10px 30px rgba(17, 17, 17, 0.11); } }
.card-action .icon { width: 18px; height: 18px; }

.thanks { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; padding: 0; list-style: none; }
.thanks q { quotes: '\201C' '\201D'; }
.thanks span { color: var(--text-2); }
.card-glass .thanks span { color: rgba(255, 255, 255, 0.78); }
.thanks-manage li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.thanks-manage form { margin: 0; flex-shrink: 0; }
.thanks-manage .is-hidden q { color: var(--text-2); }
.thanks-note { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }

.panel { padding: 20px 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.balance-big { margin: 0 0 12px; font-size: 34px; font-weight: 500; letter-spacing: -0.01em; }
.history { margin: 0; padding: 0; list-style: none; }
.history li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.history-change { font-weight: 500; white-space: nowrap; }
.history-date { color: var(--text-2); white-space: nowrap; }

.request-balance { margin: 4px 4px 0; }
.session-page .card-classic { max-width: none; }
.session-card .card-body { display: flex; flex-direction: column; gap: 8px; }
.session-note { margin: 4px 0 0; font-size: 16px; }
.session-note span { color: var(--text-2); }
.session-body { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.session-text { margin: 0; }
.session-text a { color: var(--text); word-break: break-all; }
.session-small { margin: 0; font-size: 14px; color: var(--text-2); }
.session-body .flow-foot { margin-top: 12px; }
.session-body .flow-foot form { margin: 0; }
.session-links { margin-top: 4px; }
.field input[type="date"] { padding: 0 20px; }

.session-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 22px; }
.session-row .card-photo { width: 56px; height: 56px; border-radius: 16px; }
.session-row .card-initials { font-size: 18px; }
.session-row .card-body { min-width: 0; padding: 0; }
.session-line { margin: 0; }
.session-name { font-weight: 500; }
.session-status { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }
.session-card { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 10px; border-radius: 28px; }
.session-card .card-photo { width: 88px; height: 88px; border-radius: 20px; }
.session-card .card-initials { font-size: 28px; }
.session-card .card-body { padding: 6px 4px 6px 0; min-width: 0; }
.session-card .card-name { font-size: 21px; }
.session-note q, .thanks q { quotes: '\201C' '\201D'; }
.flow-note { text-align: center; }
.session-text a { word-break: normal; overflow-wrap: anywhere; }
.session-card .card-meta { margin: 4px 0 8px; }

/* ---------- Admin (Phase 7) ---------- */
.admin { max-width: 1120px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.admin-nav a { text-decoration: none; }
.admin-nav .is-current { background: var(--text); color: var(--card); }
.admin-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.admin-figure { display: flex; flex-direction: column; gap: 4px; }
.admin-figure-n { font-size: 34px; font-weight: 500; }
.admin-figure-label { color: var(--text-2); }
.admin-search { max-width: 480px; margin: 0 0 16px; padding-right: 18px; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th { padding: 14px 16px; text-align: left; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.admin-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table a { color: var(--text); }
.admin-sub { display: block; font-size: 14px; color: var(--text-2); }
.admin-badge { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--chip); font-size: 13px; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-inline { margin: 0; }
.admin-review { margin-bottom: 14px; }
.admin-h { margin: 0; font-size: 20px; font-weight: 500; }
.admin-h a { color: var(--text); }
.admin-flags { margin: 12px 0 16px; padding-left: 20px; }
.admin-flags li { margin-bottom: 8px; }
.admin-review-form, .admin-add-skill { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.admin-review-form .field, .admin-add-skill .field { flex: 1; min-width: 220px; }
.admin-add-skill { margin-bottom: 20px; max-width: 560px; }
.admin-skills { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 720px; }
.admin-skills li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; }
.admin-skills li.is-hidden { opacity: 0.7; }
.admin-rename { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; margin: 0; }
.admin-rename .field { flex: 1; }
.admin-rename input { height: 44px; box-shadow: none; background: var(--bg); }
.admin-signups-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-signups-head p { margin: 0; }
.panel .field input { background: var(--bg); box-shadow: none; }
