/* PriorDesk. Measurements follow the reference mockup at 1448 px wide. */
:root {
  --navy: #0B2E59;
  --blue: #0F6BCB;
  --blue-dark: #0959A8;
  --green: #2D9E4B;        /* headline phrase, icons */
  --green-btn: #237F3D;    /* buttons: the brand green darkened so white text reaches 4.5:1 */
  --green-dark: #1E6F35;
  --text: #344A64;
  --text-soft: #4B5C70;
  --line: #E3E8EF;
  --line-soft: #EEF2F7;
  --blue-tint: #F2F7FD;
  --blue-tint-2: #DCEAFB;
  --green-tint: #E4F3E8;
  --green-tint-2: #D8F0DE;
  --white: #FFFFFF;
  --focus: #0B6ECF;

  --sans: Figtree, "Helvetica Neue", Arial, system-ui, sans-serif;
  --hand: Caveat, "Segoe Print", "Bradley Hand", cursive;

  --max: 1448px;
  --edge: clamp(20px, 6.9vw, 100px);   /* header, hero copy, footer */
  --edge-2: clamp(20px, 5.5vw, 80px);  /* cards and panels */
  --radius: 12px;
  --radius-btn: 8px;
  --radius-field: 10px;
  --radius-card: 16px;
  --shadow-card: 0 10px 30px rgba(11, 46, 89, 0.12);
  --header-h: 92px;
}

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/Figtree-400.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/Figtree-500.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/Figtree-600.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/Figtree-700.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/Caveat-600.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { color: var(--navy); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--blue); }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--edge-2); }
.container-edge { padding-inline: var(--edge); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: var(--white); padding: 12px 16px; border-radius: var(--radius-btn); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 17px; line-height: 1;
  color: var(--white); text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
  transition: background-color 150ms, transform 150ms;
}
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 18px; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-green { background: var(--green-btn); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn .icon-arrow { flex: none; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding-block: 4px;
  color: var(--blue); font-weight: 500; font-size: 18px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.text-link:hover { color: var(--blue-dark); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-green { color: #2F6E4D; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: var(--white); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 100%; }
.brand { display: inline-flex; align-items: center; }
.logo { height: 74px; width: auto; }
.site-nav { display: none; align-items: center; gap: 44px; }
.nav-list { display: flex; align-items: center; gap: 38px; list-style: none; padding: 0; }
.nav-link {
  position: relative; display: inline-block; padding-block: 12px;
  color: #1F2F45; font-size: 17px; font-weight: 500; text-decoration: none; transition: color 150ms;
}
.nav-link:hover { color: var(--blue); }
.nav-link.is-current { color: var(--blue); }
.nav-link.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--blue); border-radius: 2px; }
.menu { position: relative; }
.menu-toggle { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding-inline: 4px; font-weight: 600; color: var(--navy); }
.menu-toggle::-webkit-details-marker { display: none; }
.menu-panel { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; background: var(--white); padding: 24px var(--edge); overflow: auto; z-index: 39; }
.menu-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.menu-list a { display: block; padding: 14px 0; font-size: 22px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
body:has(.menu[open]) { overflow: hidden; }
@media (min-width: 1024px) {
  .site-nav { display: flex; white-space: nowrap; }
  .menu { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .logo { height: 60px; }
  .site-nav { gap: 22px; }
  .nav-list { gap: 22px; }
  .nav-link { font-size: 15px; }
  .site-nav .btn { padding: 0 16px; font-size: 15px; min-height: 44px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero-inner { max-width: var(--max); margin-inline: auto; display: grid; gap: 40px; }
.hero-copy { padding: 56px var(--edge) 0; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(34px, 9.2vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.018em;
}
@media (min-width: 1024px) { .hero h1 { font-size: clamp(44px, 4.3vw, 62px); max-width: 11em; } }
.hero h1 .accent { display: block; color: var(--green); }
.lead { margin-top: 26px; max-width: 640px; font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.5; letter-spacing: -0.005em; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 38px; }
.hero-media { position: relative; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 767px) { .hero-photo { position: absolute; inset: 0; } }
.hero-media picture { display: block; position: relative; aspect-ratio: 776 / 441; overflow: hidden; }
@media (min-width: 768px) { .hero-media picture { position: absolute; inset: 0; aspect-ratio: auto; } }
.hero-media picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--white) 0%, rgba(255,255,255,0) 22%); pointer-events: none; }
.hero-note {
  position: absolute; left: 7%; top: 18%;
  font-family: var(--hand); font-weight: 600; font-size: clamp(22px, 2.1vw, 30px); line-height: 0.98;
  color: #2E3D50; transform: rotate(-9deg); pointer-events: none;
}
.hero-note span { display: block; }
.hero-note span:nth-child(2) { padding-left: 0.4em; }
.hero-note span:nth-child(3) { padding-left: 0.9em; }
.hero-note .swoosh { width: 3.6em; margin: 0.1em 0 0 1.1em; color: var(--green); }
.benefit-card {
  position: absolute; right: clamp(16px, 2.5vw, 36px); top: 12.5%;
  width: clamp(200px, 16.6vw, 240px);
  list-style: none; padding: 6px 0; margin: 0;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(6px);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.benefit-card li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-size: 14px; line-height: 1.35; color: #304460; }
.benefit-card li + li { border-top: 1px solid var(--line-soft); }
.benefit-card .icon { flex: none; color: var(--blue); }

@media (max-width: 480px) { .hero-actions .btn { width: 100%; } }
@media (max-width: 767px) {
  .hero-note { left: 6%; top: 8%; font-size: clamp(20px, 6vw, 26px); }
  .benefit-card { position: static; width: auto; margin: 12px var(--edge) 0; box-shadow: none; border: 1px solid var(--line); background: var(--white); backdrop-filter: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-media { aspect-ratio: auto; min-height: 400px; }
  .hero-note { left: 8%; top: 14%; }
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 47%) minmax(0, 53%); gap: 0; min-height: clamp(400px, 33vw, 480px); }
  .hero-copy { padding-right: 0; }
  .hero-media { aspect-ratio: auto; min-height: 0; width: calc(100% + max(0px, (100vw - var(--max)) / 2)); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-photo { object-position: 43% 40%; }
  .hero-note { left: 3%; top: 14%; font-size: 22px; }
  .benefit-card { width: 180px; }
}
@media (min-width: 1200px) { .hero-photo { object-position: 36% 40%; } }

/* Service cards */
.services { padding-top: 28px; }
.card-row { list-style: none; padding: 0; display: grid; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.service-card { padding: 32px 36px 36px; }
.icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; }
.icon-circle .icon { width: 30px; height: 30px; }
.tone-blue.icon-circle { background: var(--blue-tint-2); color: var(--blue); }
.tone-green.icon-circle { background: var(--green-tint-2); color: var(--green); }
.card-title { margin-top: 22px; font-size: 22px; line-height: 1.2; }
.card-text { margin-top: 12px; font-size: 17px; line-height: 1.45; color: var(--text); }
@media (min-width: 1200px) { .card-text { max-width: 26ch; } }
@media (min-width: 640px) { .card-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .card-row { grid-template-columns: repeat(4, 1fr); } }

/* Practice panel and pricing panel */
.practice-row { padding-top: 24px; }
.two-panels { display: grid; gap: 24px; }
.panel { border-radius: var(--radius-card); }
.panel-blue { background: var(--blue-tint); }
.panel-green { background: var(--green-tint); }
.practice-panel { padding: 48px 44px 56px; }
.practice-panel h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.panel-lead { margin-top: 8px; font-size: 18px; color: var(--text); }
.practice-items { list-style: none; padding: 0; margin-top: 44px; display: grid; gap: 40px 20px; }
.practice-item { text-align: center; display: grid; justify-items: center; }
.practice-item .icon { margin-bottom: 14px; width: 48px; height: 48px; }
.practice-item.tone-blue .icon { color: var(--blue); }
.practice-item.tone-green .icon { color: var(--green); }
.practice-item h3 { font-size: 18px; line-height: 1.25; text-wrap: pretty; }
.practice-item p { margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--text); max-width: 20ch; }
@media (min-width: 640px) { .practice-items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) and (max-width: 1199px) {
  .two-panels { grid-template-columns: minmax(0, 1fr) 340px; }
  .pricing-panel { padding: 24px 28px 20px; }
  .pricing-panel .btn { font-size: 15px; padding: 0 18px; gap: 10px; white-space: nowrap; }
}
@media (min-width: 1200px) {
  .two-panels { grid-template-columns: minmax(0, 860fr) minmax(0, 406fr); }
  .practice-items { grid-template-columns: repeat(4, 1fr); }
}
.pricing-panel { padding: 44px 48px 40px; }
.price-lead { margin-top: 22px; font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.price { margin-top: 4px; font-size: clamp(34px, 3vw, 44px); font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -0.01em; }
.price-text { margin-top: 18px; font-size: 17px; line-height: 1.45; color: var(--text); }
.pricing-panel .btn { margin-top: 28px; width: 100%; max-width: 320px; min-height: 56px; }
.price-note { margin-top: 20px; font-size: 14px; color: var(--text-soft); }

/* Proposal form */
.proposal { margin-top: 64px; padding-block: 96px 104px; background: var(--blue-tint); }
.proposal-inner { display: grid; gap: 48px; }
.proposal h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; }
.proposal-lead { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--text); max-width: 52ch; }
.how { margin-top: 40px; }
.how h3 { font-size: 22px; }
.steps { margin-top: 18px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; font-size: 17px; line-height: 1.45; color: var(--text); }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-tint-2); color: var(--blue); font-weight: 700; font-size: 15px; }
.proposal-card { padding: 44px; }
.form-grid { display: grid; gap: 24px; }
.field label { display: block; font-weight: 700; font-size: 15px; letter-spacing: 0.01em; color: var(--navy); margin-bottom: 10px; }
.field input, .field select {
  display: block; width: 100%; min-height: 54px; padding: 14px 16px;
  background: var(--white); color: #1F2F45; font-size: 17px;
  border: 1px solid #CDD6E1; border-radius: var(--radius-field);
  transition: border-color 150ms, box-shadow 150ms;
}
.field input:hover, .field select:hover { border-color: #9FB0C4; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 110, 207, 0.2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--navy); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.help { margin-top: 8px; font-size: 14px; color: var(--text-soft); }
.error { display: none; margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--blue); font-size: 14px; color: var(--navy); }
.field.is-invalid .error { display: block; }
.form-error { margin-bottom: 16px; }
.form-error:not([hidden]) { display: block; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.caution { margin-top: 24px; margin-bottom: 24px; font-size: 15px; color: var(--text-soft); }
.form .btn { width: 100%; }
.form-success h3 { font-size: 26px; }
.form-success p { margin-top: 10px; color: var(--text); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field:nth-child(4), .form-grid .field:nth-child(6) { grid-column: auto; }
  .form .btn { width: auto; }
}
@media (min-width: 1024px) {
  .proposal-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 40px; }
.footer-inner { display: grid; gap: 18px; align-items: center; }
.logo-footer { height: 52px; }
.footer-tagline { font-size: 14px; color: #33446A; }
.footer-tagline strong { color: var(--navy); font-weight: 700; }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-links a { display: inline-block; padding-block: 10px; font-size: 14px; color: #33446A; text-decoration: none; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: auto 1fr auto; gap: 48px; }
  .footer-tagline { text-align: center; }
}

/* Simple pages */
.page { padding-block: 56px 96px; }
.page-inner { max-width: 760px; }
.page h1 { font-size: clamp(32px, 3vw, 44px); margin-bottom: 24px; }
.legal-content { max-width: 72ch; }
.legal-content h2 { font-size: 22px; margin: 36px 0 10px; }
.legal-content p { margin-bottom: 16px; font-size: 17px; line-height: 1.6; color: var(--text); }
.legal-content .legal-date { color: var(--text-soft); font-size: 15px; }
.page h1 + .legal-content .legal-date { margin-top: -8px; }

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