@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --search-ink: #172b32;
  --search-muted: #63777a;
  --search-paper: #f5f6ef;
  --search-surface: #fffef9;
  --search-line: #dce5dc;
  --search-deep: #164f50;
  --search-deep-hover: #103f40;
  --search-accent: #d57c52;
  --search-accent-soft: #f6e7db;
  --search-mint: #e6efe8;
  --search-shadow: 0 18px 55px rgba(24, 61, 57, .08);
  --search-display: 'Manrope', sans-serif;
  --search-body: 'DM Sans', sans-serif;
  --search-mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.search-body {
  margin: 0;
  min-height: 100dvh;
  color: var(--search-ink);
  background:
    radial-gradient(ellipse at 82% 2%, rgba(213,124,82,.09), transparent 27rem),
    var(--search-paper);
  font: 400 16px/1.55 var(--search-body);
}
a { color: var(--search-deep); }
button, input, select, textarea { font: inherit; }
button, .search-button { transition: transform .18s ease, opacity .18s ease; }
button:hover, .search-button:hover { transform: translateY(-1px); }
:focus-visible { outline: 3px solid rgba(213,124,82,.7); outline-offset: 3px; }

.search-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(220,229,220,.92);
  background: rgba(245,246,239,.93);
  backdrop-filter: blur(14px);
}
.search-header-inner {
  width: min(1160px, calc(100% - 48px)); min-height: 72px; margin: auto;
  display: flex; align-items: center; gap: 30px;
}
.search-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--search-ink); font: 800 17px/1 var(--search-display); letter-spacing: -.045em; white-space: nowrap; }
.search-brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px 10px 10px 3px; background: var(--search-deep); color: #f9f4e9; }
.search-brand-mark svg { width: 17px; height: 17px; }
.search-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 3vw, 34px); margin-left: auto; }
.search-nav a { color: #536b6d; text-decoration: none; font-size: 14px; font-weight: 600; }
.search-nav a:hover, .search-nav a[aria-current="page"] { color: var(--search-deep); }
.search-nav .nav-cta { padding: 10px 15px; color: #fff9ef; background: var(--search-deep); border-radius: 7px; }
.search-header-signout { margin: 0; }
.search-header-signout button { padding: 0; border: 0; color: var(--search-muted); background: transparent; font-size: 13px; cursor: pointer; }
.search-menu-button { display: none; margin-left: auto; border: 1px solid var(--search-line); border-radius: 8px; padding: 9px 11px; color: var(--search-ink); background: var(--search-surface); cursor: pointer; }
.search-mobile-nav { display: none; }

.search-main { width: min(1160px, calc(100% - 48px)); min-height: calc(100dvh - 142px); margin: 0 auto; padding: 54px 0 92px; }
.search-footer { padding: 24px; border-top: 1px solid var(--search-line); color: var(--search-muted); font-size: 12px; text-align: center; }
.search-footer strong { color: var(--search-deep); }
.search-footer p { max-width: 780px; margin: 5px auto 0; }
.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; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--search-deep); font: 500 11px/1.2 var(--search-mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; display: block; width: 22px; height: 1px; background: var(--search-accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--search-display); }
h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(42px, 6.4vw, 78px); line-height: .99; letter-spacing: -.075em; font-weight: 700; }
h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.12; letter-spacing: -.05em; }
h3 { font-size: 18px; line-height: 1.2; letter-spacing: -.035em; }
.lede { max-width: 660px; color: var(--search-muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }
.search-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--search-deep); border-radius: 6px; background: var(--search-deep); color: #fff9ef; text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer; }
.search-button:hover { background: var(--search-deep-hover); }
.search-button.secondary { color: var(--search-deep); background: transparent; }
.search-button.soft { border-color: var(--search-line); color: var(--search-ink); background: var(--search-surface); }
.search-button.small { min-height: 38px; padding: 0 13px; font-size: 13px; }
.text-link { font-size: 13px; font-weight: 700; }
.search-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card { border: 1px solid var(--search-line); border-radius: 12px; background: var(--search-surface); box-shadow: var(--search-shadow); }
.card-pad { padding: clamp(20px, 3vw, 32px); }
.section-kicker { margin: 0 0 10px; color: var(--search-accent); font: 500 11px/1.2 var(--search-mono); letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--search-muted); }
.small-copy { color: var(--search-muted); font-size: 13px; line-height: 1.6; }
.privacy-note { padding: 15px 17px; border-left: 3px solid var(--search-accent); background: #f8eee5; color: #634c3e; font-size: 13px; }
.flash-stack { display: grid; gap: 8px; margin: 0 0 24px; }
.flash { padding: 12px 15px; border: 1px solid var(--search-line); border-radius: 7px; background: var(--search-surface); font-size: 14px; }
.flash.error, .flash.danger { border-color: #e8b8a3; background: #fbede5; }
.flash.success { border-color: #b9d3c0; background: #edf5ee; }
.flash.warning { border-color: #e8d2a9; background: #fbf5e8; }

.hero { position: relative; padding: clamp(28px, 7vw, 78px) 0 62px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr); gap: clamp(36px, 8vw, 100px); align-items: center; }
.hero h1 em { color: var(--search-deep); font-style: normal; }
.hero-copy { max-width: 620px; }
.hero-note { margin: 15px 0 0; color: var(--search-muted); font-size: 12px; }
.hero-art { position: relative; min-height: 370px; padding: 26px; border-radius: 48% 48% 12px 12px; background: #e5eee7; overflow: hidden; }
.hero-art::before, .hero-art::after { content: ''; position: absolute; border: 1px solid rgba(22,79,80,.17); border-radius: 50%; }
.hero-art::before { width: 320px; height: 320px; right: -76px; top: 15px; }
.hero-art::after { width: 230px; height: 230px; left: -60px; bottom: -65px; }
.orbit-label { position: absolute; z-index: 1; padding: 8px 11px; border: 1px solid rgba(22,79,80,.14); border-radius: 4px; background: rgba(255,254,249,.88); color: var(--search-deep); font: 11px var(--search-mono); }
.orbit-label.one { top: 52px; left: 22px; transform: rotate(-4deg); }
.orbit-label.two { right: 22px; top: 139px; transform: rotate(3deg); }
.orbit-label.three { bottom: 42px; left: 49px; transform: rotate(2deg); }
.orbit-core { position: absolute; left: 50%; top: 50%; z-index: 2; width: 170px; height: 210px; padding: 17px; transform: translate(-50%,-50%) rotate(-5deg); border: 1px solid rgba(22,79,80,.22); border-radius: 5px; background: var(--search-surface); box-shadow: 0 21px 42px rgba(22,79,80,.13); }
.orbit-core::before { content: ''; display: block; width: 38px; height: 4px; margin-bottom: 18px; background: var(--search-accent); }
.orbit-core span { display: block; height: 5px; margin: 9px 0; border-radius: 6px; background: #dce5dc; }
.orbit-core span:nth-child(3) { width: 72%; }
.orbit-core span:nth-child(4) { width: 88%; }
.orbit-core span:nth-child(5) { width: 61%; }
.orbit-core .core-chip { width: max-content; height: auto; margin-top: 23px; padding: 5px 8px; background: #e7efe7; color: var(--search-deep); font: 10px var(--search-mono); }
.trust-line { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 30px; color: var(--search-muted); font-size: 12px; }
.trust-line span::before { content: '—'; margin-right: 7px; color: var(--search-accent); }
.story-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; padding: 52px 0; border-top: 1px solid var(--search-line); }
.story-section h2 { max-width: 370px; }
.steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.step { padding: 20px; border: 1px solid var(--search-line); border-radius: 8px; background: rgba(255,254,249,.72); }
.step-index { margin-bottom: 20px; color: var(--search-accent); font: 12px var(--search-mono); }
.step p { margin-bottom: 0; color: var(--search-muted); font-size: 13px; }
.price-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-radius: 10px; background: var(--search-deep); color: #f5f2e8; }
.price-strip h3 { margin-bottom: 4px; }
.price-strip p { margin: 0; color: #c2d5cc; font-size: 13px; }
.price-mark { white-space: nowrap; color: #f3b797; font: 600 26px var(--search-display); }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.page-heading h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); }
.page-heading p { max-width: 540px; margin: 10px 0 0; color: var(--search-muted); }
.form-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: start; }
.form-section + .form-section { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--search-line); }
.form-section h2 { margin-bottom: 5px; font-size: 21px; }
.form-section > p { color: var(--search-muted); font-size: 13px; }
.field { display: grid; gap: 7px; margin-top: 17px; }
.field label, .field-label { color: var(--search-ink); font-size: 13px; font-weight: 700; }
.field-hint { color: var(--search-muted); font-size: 12px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid #cbd9d0; border-radius: 6px; outline: none; background: #fffefa; color: var(--search-ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--search-deep); box-shadow: 0 0 0 3px rgba(22,79,80,.1); }
.field textarea { min-height: 118px; resize: vertical; }
.field textarea.resume-field { min-height: 225px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 8px; margin-top: 10px; }
.choice { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid var(--search-line); border-radius: 6px; background: rgba(255,254,249,.7); color: var(--search-ink); font-size: 13px; }
.choice input { accent-color: var(--search-deep); }
.country-row { display: grid; grid-template-columns: minmax(110px,.5fr) minmax(200px,1.5fr); align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #e9eee8; }
.country-row label { font-weight: 600; font-size: 13px; }
.country-row select { width: 100%; min-width: 0; padding: 9px; border: 1px solid #cbd9d0; border-radius: 5px; background: #fffefa; color: var(--search-ink); font-size: 12px; }
.form-aside { position: sticky; top: 95px; }
.form-aside .card { box-shadow: none; }
.form-aside ol { padding-left: 19px; margin-bottom: 0; color: var(--search-muted); font-size: 13px; }
.form-aside li + li { margin-top: 10px; }
.form-submit { margin-top: 25px; }
.signin-wrap { width: min(100%, 540px); margin: 48px auto; }
.signin-wrap .card { padding: clamp(24px,5vw,44px); }
.signin-wrap h1 { font-size: clamp(34px,5vw,50px); }

.dashboard-top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 26px; align-items: end; margin-bottom: 25px; }
.objective-card { padding: 20px 22px; border-left: 3px solid var(--search-accent); background: #ebf1e9; }
.objective-card h2 { margin: 0 0 8px; font-size: 19px; }
.objective-card p { margin: 0; color: #4e6661; font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; }
.toolbar form { margin: 0; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { min-width: 180px; padding: 10px; border: 1px solid #cbd9d0; border-radius: 6px; background: var(--search-surface); }
.board-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; align-items: start; }
.board-section + .board-section { margin-top: 22px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h2 { margin: 0; font-size: 20px; }
.count-pill { padding: 3px 8px; border-radius: 99px; background: var(--search-mint); color: var(--search-deep); font: 11px var(--search-mono); }
.opportunity-list { display: grid; gap: 10px; }
.opportunity-card { padding: 17px 18px; border: 1px solid var(--search-line); border-radius: 8px; background: var(--search-surface); }
.opp-head { display: flex; justify-content: space-between; gap: 16px; }
.opp-title { margin: 0 0 4px; font-size: 17px; }
.opp-company { margin: 0; color: var(--search-muted); font-size: 13px; }
.score { flex: none; color: var(--search-deep); font: 500 12px var(--search-mono); }
.opp-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag { padding: 4px 8px; border-radius: 4px; background: #edf2ed; color: #536b63; font-size: 11px; }
.tag.source-customer { background: var(--search-accent-soft); color: #8d4d31; }
.opp-rationale { margin: 11px 0 0; color: #576d6c; font-size: 13px; }
.opp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }
.opp-controls form { display: flex; align-items: center; gap: 7px; margin: 0; }
.opp-controls select { max-width: 160px; padding: 8px; border: 1px solid var(--search-line); border-radius: 5px; background: #fffefa; color: var(--search-ink); font-size: 12px; }
.opp-controls .outcome-select { max-width: 130px; }
.status-label { font: 10px var(--search-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--search-muted); }
.side-stack { display: grid; gap: 14px; }
.side-stack .card { box-shadow: none; }
.pending-item, .event-item { padding: 12px 0; border-top: 1px solid #e8eee7; }
.pending-item:first-of-type, .event-item:first-of-type { border-top: 0; }
.pending-item strong, .event-item strong { display: block; font-size: 13px; }
.pending-item span, .event-item span { display: block; color: var(--search-muted); font-size: 11px; }
.pending-item form { margin-top: 9px; }
.empty-state { padding: 34px 26px; border: 1px dashed #bdcfc3; border-radius: 9px; background: rgba(230,239,232,.52); }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { max-width: 540px; margin-bottom: 16px; color: var(--search-muted); font-size: 13px; }

.job-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 22px; align-items: start; }
.job-title-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.job-title-row h1 { font-size: clamp(34px,5vw,54px); }
.job-section { padding: 24px 0; border-top: 1px solid var(--search-line); }
.job-section:first-child { border-top: 0; padding-top: 0; }
.job-section h2 { margin-bottom: 13px; font-size: 20px; }
.content-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.content-block { padding: 18px; border: 1px solid var(--search-line); border-radius: 6px; background: #f7f7ef; font-size: 13px; line-height: 1.7; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { padding: 11px 0; border-top: 1px solid #e8eee7; font-size: 12px; }
.event-list li:first-child { border-top: 0; }
.event-list small { display: block; color: var(--search-muted); }
.approval-box { padding: 17px; border: 1px solid #e8c2a9; border-radius: 7px; background: #fbf0e8; }
.approval-box p { margin: 7px 0 12px; color: #775944; font-size: 12px; }
.followup-note { border-left: 3px solid var(--search-accent); }
.followup-note::before { content: 'PRIVATE DRAFT · NEVER SENT'; display: block; margin-bottom: 10px; color: #8d4d31; font: 10px var(--search-mono); letter-spacing: .08em; }

@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.search-main > * { animation: rise-in .45s ease both; }
.search-main > *:nth-child(2) { animation-delay: .05s; }
.search-main > *:nth-child(3) { animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 850px) {
  .hero-grid, .story-section, .form-layout, .board-layout, .job-layout { grid-template-columns: 1fr; }
  .hero-art { min-height: 310px; max-width: 520px; width: 100%; margin: 5px auto 0; }
  .form-aside { position: static; }
  .board-layout { gap: 18px; }
  .side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-top { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .search-header-inner, .search-main { width: min(100% - 32px, 1160px); }
  .search-header-inner { min-height: 62px; }
  .search-nav { display: none; }
  .search-menu-button { display: inline-flex; }
  .search-mobile-nav:not([hidden]) { display: flex; flex-direction: column; gap: 0; padding: 5px 16px 14px; border-top: 1px solid var(--search-line); }
  .search-mobile-nav a { padding: 10px 0; color: var(--search-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
  .search-main { padding: 34px 0 64px; }
  .hero { padding-top: 20px; }
  .hero-art { min-height: 270px; }
  .steps, .side-stack { grid-template-columns: 1fr; }
  .story-section { gap: 10px; padding: 34px 0; }
  .price-strip { align-items: flex-start; flex-direction: column; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .country-row { grid-template-columns: 1fr; gap: 5px; }
  .inline-add { flex-direction: column; }
  .inline-add input { width: 100%; }
  .opp-head { flex-direction: column; gap: 5px; }
  .opp-controls form { flex-wrap: wrap; }
  .job-title-row { flex-direction: column; }
  .signin-wrap { margin: 10px auto; }
}
