/* career.law design system (Design Brief v4) */

@font-face { font-family: "Cardo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cardo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/cardo-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/cardo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --blue: #1C2A6E;          /* Docket blue: nav, primary buttons, headings */
  --blue-light: #2B3C8F;    /* Links, section numbers, phase 2 tags */
  --paper: #F7F8FA;         /* Page background */
  --white: #FFFFFF;
  --ink: #171A2C;           /* Body text */
  --ink-2: #4A4F66;         /* Secondary text */
  --yellow: #F4DC5A;        /* Legal pad yellow */
  --yellow-light: #FBEFA6;  /* Preview banner, callouts */
  --red: #D0473F;           /* Margin line (decorative) */
  --red-text: #A8322B;      /* "Sample" label text (contrast-safe) */
  --sage: #2F7A5B;          /* Verified, live now */
  --sage-text: #24614A;
  --line: #DDE1EA;          /* Borders and dividers */
  --tan: #6B5B33;
  --tan-bg: #F1ECDD;
  --blue-bg: #E6E9F7;
  --green-bg: #E2F0E8;
  --red-bg: #FBE7E5;
  --serif: "Cardo", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(23, 26, 44, 0.04);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-light); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--blue); line-height: 1.12; margin: 0 0 0.4em; }
h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 36px); }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.tiny { font-size: 13.5px; }
.measure { max-width: 72ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
main { display: block; padding-bottom: 72px; }

/* Focus: always visible */
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.nav :focus-visible, .btn-yellow:focus-visible { outline-color: var(--yellow); }

.skip-link { position: absolute; left: 8px; top: -60px; background: var(--yellow); color: var(--blue); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* --- Navigation --------------------------------------------------------- */
.nav { background: var(--blue); color: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: #fff; font-family: var(--serif); font-size: 25px; line-height: 1; }
.logo:hover { color: #fff; }
.logo .dot-law { font-family: var(--sans); font-weight: 700; font-size: 15px; background: var(--yellow); color: var(--blue); padding: 5px 7px 6px; margin-left: 2px; border-radius: 2px; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-links a, .nav-more summary { color: #E6E9F7; text-decoration: none; font-size: 15.5px; padding: 6px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.nav-links a:hover, .nav-more summary:hover { color: #fff; }
.nav-links a[aria-current="page"], .nav-right a[aria-current="page"] { color: #fff; border-bottom-color: var(--yellow); }
.nav-more { position: relative; }
.nav-more summary { list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ▾"; font-size: 12px; }
.nav-more[open] .nav-menu { display: block; }
.nav-menu { display: none; position: absolute; top: 34px; left: -12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(23, 26, 44, 0.14); list-style: none; padding: 6px 0; margin: 0; min-width: 190px; z-index: 30; }
.nav-menu a { display: block; color: var(--ink); padding: 8px 16px; border: 0; }
.nav-menu a:hover { background: var(--paper); color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right > a:not(.btn) { color: #E6E9F7; text-decoration: none; font-size: 15.5px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-right > a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; }

/* --- Banner ------------------------------------------------------------- */
.banner { background: var(--yellow-light); border-bottom: 1px solid #EBDD8C; font-size: 15px; }
.banner .wrap { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
.banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.banner a { color: var(--ink); }

/* --- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1.2 var(--sans); padding: 12px 18px; border-radius: 4px; border: 2px solid var(--blue); background: var(--blue); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #142057; border-color: #142057; color: #fff; }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--blue); }
.btn-yellow:hover { background: #EBCF3E; border-color: #EBCF3E; color: var(--blue); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--blue-light); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { background: var(--blue-bg); border-color: var(--blue-bg); color: var(--blue); }
.btn-danger { background: var(--red-text); border-color: var(--red-text); }
.btn-danger:hover { background: #8E2A24; border-color: #8E2A24; }
.btn-small { font-size: 14px; padding: 7px 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* --- Chips and labels ---------------------------------------------------- */
.chip { display: inline-block; font: 600 13.5px/1 var(--sans); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.chip-blue { background: var(--blue-bg); color: var(--blue-light); }
.chip-green { background: var(--green-bg); color: var(--sage-text); }
.chip-red { background: var(--red-bg); color: var(--red-text); }
.chip-tan { background: var(--tan-bg); color: var(--tan); }
.chip-gray { background: #ECEEF3; color: var(--ink-2); }
.chip-yellow { background: var(--yellow-light); color: #5C4E0E; }
.label { display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px/1.2 var(--sans); padding: 5px 9px; border-radius: 4px; }
.label-tan { background: var(--tan-bg); color: var(--tan); }
.label-green { background: var(--green-bg); color: var(--sage-text); }
.label-blue { background: var(--blue-bg); color: var(--blue-light); }
.label-red { background: var(--red-bg); color: var(--red-text); }
.verified { display: inline-flex; align-items: center; gap: 5px; font: 600 13.5px/1 var(--sans); color: var(--sage-text); background: var(--green-bg); padding: 6px 9px; border-radius: 999px; }
.verified svg { width: 14px; height: 14px; }

/* --- Cards --------------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card-tab::before { content: ""; position: absolute; top: -1px; left: 14px; width: 40px; height: 5px; border-radius: 0 0 3px 3px; background: var(--tab, var(--blue-light)); }
.card-tab-full::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: var(--tab, var(--blue-light)); }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
a.card:hover { border-color: #B9C0D3; box-shadow: 0 6px 18px rgba(23, 26, 44, 0.08); color: inherit; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card-dark { background: var(--blue); border-color: var(--blue); color: #E6E9F7; }
.card-dark h2, .card-dark h3 { color: #fff; }
.card-dark .muted { color: #C5CBE6; }
.card-yellow { background: var(--yellow-light); border-color: #EBDD8C; }
.card-dashed { border-style: dashed; border-color: #B9C0D3; background: transparent; box-shadow: none; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 56px 0 18px; }
.section-head h2 { margin: 0; }
.section-head .hint { font-size: 15px; color: var(--ink-2); }

/* --- Page header --------------------------------------------------------- */
.page-head { padding: 44px 0 28px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .lede { font-size: 19px; color: var(--ink-2); max-width: 66ch; margin: 0; }
.page-head .between { align-items: flex-end; }

/* --- Legal pad ----------------------------------------------------------- */
.pad { position: relative; background-color: var(--yellow); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 41px, rgba(28, 42, 110, 0.18) 41px, rgba(28, 42, 110, 0.18) 42px); background-position: 0 30px; border-radius: 2px; box-shadow: 0 18px 40px -18px rgba(28, 42, 110, 0.35); padding: 52px 40px 36px 96px; color: var(--blue); }
.pad::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 22px; background: var(--blue); background-image: repeating-linear-gradient(to right, transparent 0, transparent 22px, rgba(255, 255, 255, 0.16) 22px, rgba(255, 255, 255, 0.16) 24px); }
.pad::after { content: ""; position: absolute; top: 22px; bottom: 0; left: 62px; width: 2px; background: var(--red); opacity: 0.85; }
.pad h1 { color: var(--blue); font-size: clamp(38px, 5.2vw, 60px); line-height: 1.05; margin-bottom: 26px; }
.pad .pad-text { font-size: 19px; line-height: 42px; color: var(--ink); margin-bottom: 18px; }
.pad .pad-note { font-size: 14px; color: #3F4152; line-height: 1.6; margin: 14px 0 0; }
.pad .muted { color: #3F4152; }

/* --- Forms --------------------------------------------------------------- */
label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; color: var(--ink); }
.hint-text { font-weight: 400; font-size: 14px; color: var(--ink-2); display: block; margin-top: 4px; }
input:not([type]), input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="date"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #B9C0D3; border-radius: 4px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-light); outline: 3px solid rgba(43, 60, 143, 0.25); outline-offset: 0; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red-text); }
.field { margin-bottom: 18px; }
.field-error { color: var(--red-text); font-size: 14px; font-weight: 600; margin-top: 6px; display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-size: 15.5px; border: 1px solid; }
.alert-error { background: var(--red-bg); border-color: #F0C3BF; color: #6E211C; }
.alert-ok { background: var(--green-bg); border-color: #BEDDCB; color: #1D4D3B; }
.alert-info { background: var(--yellow-light); border-color: #EBDD8C; color: #4A400C; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks .pill { position: relative; }
.checks .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks .pill span { display: inline-block; padding: 8px 14px; border: 1.5px solid #CFC27A; border-radius: 999px; background: #fff; font-weight: 500; font-size: 15px; cursor: pointer; color: var(--ink); }
.checks .pill input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.checks .pill input:focus-visible + span { outline: 3px solid var(--blue-light); outline-offset: 2px; }

/* Signup in the hero */
.signup .signup-row { display: flex; gap: 8px; }
.signup .signup-row input[type="email"] { flex: 1; border-color: var(--blue); }
.signup .signup-more { display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.signup:focus-within .signup-more, .signup.expanded .signup-more, .signup:has(input[type="email"]:not(:placeholder-shown)) .signup-more { display: grid; }
.signup .signup-more .full { grid-column: 1 / -1; }
.signup .signup-more label { margin: 0; }
.signup select { border-color: var(--blue); }
.signup .check { color: var(--ink); font-size: 14px; line-height: 1.45; }
.signup .check input { margin-top: 1px; }

/* --- Homepage ------------------------------------------------------------ */
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 30px; }
.phases h2 { font-size: 27px; margin-bottom: 2px; }
.phase { display: grid; grid-template-columns: 32px 1fr auto; gap: 4px 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.phase:last-child { border-bottom: 0; padding-bottom: 0; }
.phase .num { font-family: var(--serif); font-size: 26px; color: var(--blue-light); line-height: 1; }
.phase h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; color: var(--ink); margin: 0; }
.phase p { font-size: 15px; color: var(--ink-2); margin: 2px 0 10px; }
.bar { height: 6px; background: #E8EBF2; border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue-light); border-radius: 3px; }
.section-card { min-height: 160px; display: flex; flex-direction: column; }
.section-card h3 { font-size: 23px; }
.section-card p { font-size: 15.5px; color: var(--ink-2); flex: 1; margin-bottom: 12px; }
.invite-card { display: flex; flex-direction: column; }
.invite-card p { flex: 1; font-size: 15.5px; }
.invite-card .btn { align-self: flex-start; margin-top: 8px; }

/* --- Section page -------------------------------------------------------- */
.section-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.topic-card h3 { font-size: 24px; }
.topic-card p { color: var(--ink-2); font-size: 16px; }
.questions h2 { font-size: 27px; margin-bottom: 2px; }
.question { font-family: var(--serif); font-size: 20px; color: var(--ink); padding: 14px 0; border-top: 1px solid var(--line); margin: 0; line-height: 1.3; }
.callout { background: var(--yellow-light); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; font-size: 15.5px; }
.callout .btn { margin-top: 10px; }
.notify { margin-top: 18px; }
.notify h3 { font-size: 21px; }

/* Jobs */
.job { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.job + .job { margin-top: 10px; }
.job h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--ink); margin: 0; }
.job .meta { color: var(--ink-2); font-size: 15px; }
.job .pay { font-weight: 600; text-align: right; }
.job .pay small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.job.featured { border: 2px solid var(--yellow); background: #FFFDF2; }
.job.nonprofit { border: 2px solid #9CCBB3; }

/* Sample chart */
.sample-chart { position: relative; }
.watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; font: 700 44px/1 var(--sans); color: rgba(168, 50, 43, 0.14); transform: rotate(-14deg); letter-spacing: 0.08em; text-transform: uppercase; }

/* Career map */
.moves { list-style: none; margin: 0; padding: 0; }
.moves li { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px dashed var(--line); }
.moves .node { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: 15px; text-align: center; }
.moves .arrow { color: var(--red); font-size: 22px; text-align: center; }
.moves .note { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); text-align: center; margin-top: -2px; }

/* --- Invitations --------------------------------------------------------- */
.track { display: flex; flex-direction: column; }
.track h2 { font-size: 32px; margin-bottom: 6px; }
.track dl { margin: 16px 0 0; }
.track dt { font-weight: 700; font-size: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-dark.track dt { border-top-color: rgba(255, 255, 255, 0.2); color: #fff; }
.track dd { margin: 4px 0 14px; font-size: 16px; }
.track .actions { margin-top: auto; padding-top: 18px; }
.track .actions .tiny { margin-top: 12px; display: block; }
.strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; border-radius: var(--radius); }
.strip p { margin: 0; }

/* --- Partner pages ------------------------------------------------------- */
.ppage { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.ppage-head { display: flex; gap: 20px; align-items: center; }
.ppage-logo { width: 88px; height: 88px; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: contain; flex: none; }
.ppage-logo.placeholder { display: flex; align-items: center; justify-content: center; font: 400 36px/1 var(--serif); color: var(--blue); background: var(--blue-bg); }
.feature h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0 0 4px; }
.feature p { color: var(--ink-2); font-size: 16px; margin: 0; }
.facts { margin: 0; }
.facts dt { font-weight: 600; font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.facts dd { margin: 2px 0 0; }
.media-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.media-frame img { display: block; width: 100%; }
/* Product video: a play button until pressed, then the provider's player (public/app.js). */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--blue); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; color: #fff; text-decoration: none; text-align: center; background: radial-gradient(circle at 50% 42%, #2B3C8F 0%, var(--blue) 70%); }
.video-facade:hover, .video-facade:focus-visible { color: #fff; }
.video-facade:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }
.video-play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--yellow); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.video-play::after { content: ""; position: absolute; left: 30px; top: 22px; border-left: 26px solid var(--blue); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { transform: scale(1.07); }
.video-label { display: flex; flex-direction: column; gap: 4px; max-width: 46ch; }
.video-label strong { font-size: 18px; }
.video-label span { font-size: 14px; opacity: .85; }
.video-facade.is-demo { cursor: default; }
.video-facade.is-demo .video-play { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .video-play { transition: none; } }
.media-empty { padding: 40px 20px; text-align: center; color: var(--ink-2); border: 1.5px dashed #B9C0D3; border-radius: var(--radius); }
.event { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.event .date { font: 600 14px/1.25 var(--sans); color: var(--blue-light); text-transform: uppercase; }
.event .date strong { display: block; font: 400 28px/1 var(--serif); color: var(--blue); text-transform: none; }
.event h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.event .meta { font-size: 14.5px; color: var(--ink-2); }
.discount-box { background: var(--yellow-light); border: 1.5px dashed #CDB938; border-radius: var(--radius); padding: 16px; }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.product-card { display: flex; gap: 14px; }
.product-card img, .product-card .ppage-logo { width: 56px; height: 56px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters a { text-decoration: none; }

/* --- Welcome ------------------------------------------------------------- */
.code-box { display: inline-flex; align-items: center; gap: 18px; background: #fff; border: 2.5px dashed var(--blue); border-radius: 6px; padding: 14px 16px 14px 22px; margin: 6px 0 18px; }
.code-box code { font: 700 clamp(22px, 3.2vw, 34px)/1 var(--sans); letter-spacing: 0.06em; color: var(--blue); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps .num { font: 400 30px/1 var(--serif); color: var(--blue-light); grid-row: span 2; }
.steps strong { display: block; }
.steps span { color: var(--ink-2); font-size: 15.5px; }

/* --- Legal & prose ------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h3 { font-size: 22px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--paper); border-bottom: 2px solid var(--line); }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.placeholder-note { border-left: 4px solid var(--red); background: var(--red-bg); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; color: #6E211C; margin-bottom: 24px; }

/* --- Footer -------------------------------------------------------------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 15px; color: var(--ink-2); }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.15fr; gap: 28px; }
.footer h2 a.footer-contact { color: var(--blue-light); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.footer h2 a.footer-contact:hover { color: var(--blue); }
.footer h2 { font: 600 14px/1.2 var(--sans); color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--blue); text-decoration: underline; }
.footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer .logo { color: var(--blue); }

/* --- Consent banner ------------------------------------------------------ */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(23, 26, 44, 0.18); padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: 15px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1; }
.consent .row { flex: none; }

/* --- Search -------------------------------------------------------------- */
.search-form { display: flex; gap: 8px; max-width: 640px; }
.result { padding: 16px 0; border-top: 1px solid var(--line); }
.result h3 { font-size: 22px; margin-bottom: 4px; }

/* --- Tables (admin and portal) ------------------------------------------ */
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.04em; background: #FAFBFC; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-links { gap: 16px; }
  .nav-links a, .nav-more summary { font-size: 15px; }
}
@media (max-width: 960px) {
  .nav .wrap { flex-wrap: wrap; gap: 0 16px; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 4px; padding: 7px 10px; font: 600 14px/1 var(--sans); cursor: pointer; }
  .nav-links, .nav-right { display: none; width: 100%; }
  .nav.open .nav-links { display: flex; flex: 0 0 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 0; order: 3; }
  .nav.open .nav-links li { width: 100%; }
  .nav.open .nav-links a, .nav.open .nav-more summary { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav.open .nav-menu { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; }
  .nav.open .nav-menu a { color: #E6E9F7; }
  .nav.open .nav-right { display: flex; flex: 0 0 100%; order: 4; padding: 6px 0 12px; }
  .nav .nav-cta-mobile { display: inline-flex; }
  .hero, .section-layout, .ppage { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .pad { padding: 44px 20px 28px 50px; }
  .pad::after { left: 32px; }
  .pad .pad-text { font-size: 17px; line-height: 36px; }
  .pad { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(28, 42, 110, 0.18) 35px, rgba(28, 42, 110, 0.18) 36px); }
  .signup .signup-row { flex-direction: column; }
  .signup .signup-more { grid-template-columns: 1fr; }
  .section-head { margin-top: 40px; flex-direction: column; gap: 4px; }
  .strip { flex-direction: column; align-items: flex-start; }
  .job { grid-template-columns: 1fr; }
  .job .pay { text-align: left; }
  .code-box { flex-direction: column; align-items: flex-start; }
  .consent { flex-direction: column; align-items: stretch; }
  .footer .cols { grid-template-columns: 1fr; }
  .page-head { padding-top: 30px; }
  .moves li { grid-template-columns: 1fr; }
  .moves .arrow { transform: rotate(90deg); }
}

/* --- Partner page editor -------------------------------------------------- */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.preview-pane { position: sticky; top: 16px; }
.preview-frame { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); max-height: calc(100vh - 80px); overflow: auto; zoom: 0.62; }
.preview-frame .wrap { padding: 0 24px 24px; max-width: none; }
.preview-frame .ppage { grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); }
@media (max-width: 1100px) {
  .editor-layout { grid-template-columns: 1fr; }
  .preview-pane { position: static; }
  .preview-frame { zoom: 0.8; max-height: none; }
}

/* --- Location selector (country first, then state / province) ------------- */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.location .location-part { min-width: 0; }
.location .field-error { grid-column: 1 / -1; }
.location [data-location-region][hidden] { display: none; }
.location.js [data-location-nojs] { display: none; }
.location-compact { gap: 8px; }
.signup .signup-more .location-compact { grid-column: 1 / -1; }
@media (max-width: 640px) { .location { grid-template-columns: 1fr; } }

/* --- Privacy choices (grouped consent banner and page) -------------------- */
.consent { display: block; max-width: 760px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 20px; }
.consent p { flex: none; }
.consent-title { font: 600 17px/1.3 var(--sans); color: var(--ink); margin: 0 0 6px; }
.consent-main p { margin: 0 0 12px; font-size: 15px; }
.consent-actions { gap: 8px; }
.consent-panel { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.consent-panel[hidden] { display: none; }
.consent-groups { margin: 0 0 12px; }
.consent-group { padding: 10px 0; border-bottom: 1px solid var(--line); }
.consent-group:last-child { border-bottom: 0; }
.consent-group p { margin: 4px 0 0 58px; }
.consent-switch { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; font-weight: 600; }
.consent-switch input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: #C3C8D6; position: relative; cursor: pointer; transition: background 0.15s; }
.consent-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(23, 26, 44, 0.3); transition: transform 0.15s; }
.consent-switch input:checked { background: var(--blue); }
.consent-switch input:checked::after { transform: translateX(20px); }
.consent-switch input:disabled { background: var(--sage); cursor: not-allowed; opacity: 0.85; }
.consent-switch input:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.consent-group-title { font-size: 15.5px; }
.card .consent-groups { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
@media (max-width: 640px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
  .consent-group p { margin-left: 0; }
  .consent-actions .btn { flex: 1 1 auto; }
}

/* Contact page: every application form, each followed by a "Have a question?" link */
.contact-nav { margin-top: 18px; }
.contact-nav a.chip:hover { background: var(--blue-bg); color: var(--blue); }
.contact-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.contact-block:first-of-type { border-top: 0; padding-top: 8px; }
.contact-intro h2 { font-size: 30px; margin: 0 0 10px; }
.contact-intro p { margin: 0; }
.ask { margin: 14px 0 0; font: 600 16px/1.4 var(--sans); }
.ask a { color: var(--blue-light); }
@media (max-width: 860px) {
  .contact-block { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
}

/* Founding offers */
.offer-note { margin: 12px 0 0; padding: 10px 12px; background: var(--yellow-light); border: 1px solid #EBDD8C; border-radius: var(--radius); font-size: 15px; line-height: 1.5; color: var(--ink); }
.card-yellow .offer-note { background: #fff; }
.page-head .offer-note { max-width: 760px; font-size: 16px; }

/* Optional sign-up choices (newsletter, remember me) */
.signup-choices { display: grid; gap: 8px; margin: 4px 0 14px; }
.signup-choices .check { margin: 0; }
.signup .signup-choices { margin: 2px 0 0; }
.welcome-options { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.welcome-options h3 { font: 600 14px/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin: 0; }
.welcome-options form p { margin: 0 0 8px; }
