/* Job Autopilot site. Palette and type follow design/stitch_professional_website_redesign. */
:root {
  --linen: #faf7f2;
  --linen-surface: #f4efea;
  --card: #ffffff;
  --forest: #0b4632;
  --forest-hover: #083626;
  --forest-light: #e7f2ec;
  --forest-border: #b9dec9;
  --forest-bright: #0b7a4b;
  --charcoal: #1a201c;
  --muted: #5f6962;
  --rule: rgba(26, 32, 28, 0.12);
  --rule-soft: rgba(26, 32, 28, 0.1);
  --error: #b42318;
  --serif: 'Newsreader', Georgia, Cambria, serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--charcoal);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--forest-light); color: var(--forest); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.025em; margin: 0; color: var(--charcoal); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.top .wrap { height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; border-radius: 0.5rem; padding: 0.25rem; }
.brand__mark {
  width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--forest); color: #fff;
  display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transition: transform 0.2s;
}
.brand:hover .brand__mark { transform: scale(1.05); }
.brand__mark svg { width: 1rem; height: 1rem; fill: currentColor; }
.brand__name { font: 700 1.25rem/1 var(--serif); letter-spacing: -0.025em; color: var(--forest); }
.nav { display: none; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.nav a { text-decoration: none; transition: color 0.15s; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--forest); }
@media (min-width: 768px) { .nav { display: flex; } }

/* Buttons and inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem; border: 0; border-radius: 0.5rem; cursor: pointer;
  background: var(--forest); color: #fff; font: 500 1rem/1.25 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn:hover { background: var(--forest-hover); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600; }
.btn--ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest-border); }
.btn--ghost:hover { background: var(--forest-light); box-shadow: inset 0 0 0 1px var(--forest-border); }
.top .btn { display: none; }
@media (min-width: 640px) { .top .btn { display: inline-flex; } }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.input, .select, .textarea {
  width: 100%; padding: 0.875rem 1rem; border-radius: 0.5rem; border: 1px solid rgba(26, 32, 28, 0.2);
  background: var(--card); color: var(--charcoal); font: 400 1rem/1.4 var(--sans);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: border-color 0.15s, box-shadow 0.15s; outline: none;
}
.input::placeholder, .textarea::placeholder { color: rgba(95, 105, 98, 0.6); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235F6962' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.textarea { resize: vertical; min-height: 14rem; }
.textarea--short { min-height: 5.5rem; }

.status { font-size: 0.875rem; margin-top: 0.75rem; min-height: 1.25rem; }
.status[data-tone='ok'] { color: var(--forest-bright); font-weight: 500; }
.status[data-tone='error'] { color: var(--error); font-weight: 500; }

/* Hero */
.hero { padding: 4rem 0 5rem; overflow-x: clip; }
@media (min-width: 768px) { .hero { padding: 6rem 0 7rem; } }
.hero__inner { max-width: 48rem; }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.hero__art { margin: 0; position: relative; max-width: 40rem; }
.hero__art::before {
  content: ""; position: absolute; inset: -12% -8% -14% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 60% 45%, rgba(11, 122, 75, 0.22), transparent 70%), radial-gradient(closest-side at 25% 80%, rgba(185, 222, 201, 0.55), transparent 70%);
  filter: blur(8px);
}
.shot {
  position: relative; z-index: 1; padding: 0.5rem; border-radius: 1.125rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 30px 60px -24px rgba(11, 70, 50, 0.35), 0 12px 24px -12px rgba(26, 32, 28, 0.18);
}
.shot__bar { display: flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.5rem 0.625rem; }
.shot__bar i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: rgba(26, 32, 28, 0.14); }
.shot__bar span { margin-left: auto; margin-right: auto; transform: translateX(-1.5rem); font: 500 0.6875rem/1 var(--sans); color: var(--muted); letter-spacing: 0.02em; }
.shot img { position: relative; display: block; width: 100%; height: auto; border-radius: 0.625rem; border: 1px solid rgba(26, 32, 28, 0.08); }
.shot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 28%, transparent 42%, transparent 78%, rgba(255, 255, 255, 0.1) 100%);
}
.glass-chip {
  position: absolute; z-index: 2; left: -1.5rem; bottom: -1.5rem;
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.125rem 0.75rem 0.875rem; border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 32px -12px rgba(11, 70, 50, 0.3);
}
.glass-chip b { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--forest); color: #fff; font: 600 0.875rem/1 var(--sans); }
.glass-chip span { display: grid; gap: 0.125rem; font: 600 0.875rem/1.2 var(--sans); color: var(--charcoal); }
.glass-chip small { font-weight: 400; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 639px) { .glass-chip { display: none; } }

/* Feature rows */
.features { display: grid; gap: 5rem; }
@media (min-width: 768px) { .features { gap: 7rem; } }
.feature { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 4.5rem; }
  .feature:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .feature:nth-child(even) .feature__text { order: 2; }
}
.feature__num { display: block; font: 700 0.75rem/1 var(--mono); letter-spacing: 0.1em; color: var(--forest-bright); margin-bottom: 1rem; }
.feature h3 { font-size: clamp(1.625rem, 3vw, 2rem); font-weight: 700; line-height: 1.15; margin-bottom: 1rem; }
.feature p { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 1.5rem; max-width: 34rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.ticks li { position: relative; padding-left: 1.75rem; font-size: 0.9375rem; color: var(--charcoal); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: var(--forest-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%230b4632' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
  border: 1px solid var(--forest-border);
}
.feature__shot { margin: 0; }
.feature__shot img { height: auto; }
@media (prefers-reduced-transparency: reduce) { .shot, .glass-chip { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card); } }
.eyebrow { display: inline-block; font: 700 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest-bright); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 600; line-height: 1.08; margin-bottom: 2rem; white-space: pre-line; }
.lede { font-size: 1.125rem; line-height: 1.65; color: var(--muted); max-width: 42rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .lede { font-size: 1.25rem; } }
.join { display: flex; flex-direction: column; gap: 0.75rem; max-width: 32rem; margin-bottom: 1rem; }
.join .input { flex: 1; }
@media (min-width: 640px) { .join { flex-direction: row; } }
.fine { font-size: 0.75rem; color: var(--muted); }

/* Matching preview */
.preview { padding: 3rem 0; background: rgba(244, 239, 234, 0.7); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 768px) { .preview { padding: 4rem 0; } }
.preview__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .preview__grid { grid-template-columns: 7fr 5fr; } }
.job { background: var(--card); padding: 1.75rem; border-radius: 1rem; border: 1px solid var(--rule-soft); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06); }
@media (min-width: 640px) { .job { padding: 2.25rem; } }
.job h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pill { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: #fff; background: #1c5f40; }
.pill--dark { background: #262422; }
.job__meta { font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-bottom: 1rem; }
.dots { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--rule-soft); display: grid; gap: 0.375rem; font-size: 0.875rem; color: rgba(26, 32, 28, 0.8); }
.dots li { display: flex; align-items: center; gap: 0.5rem; }
.dots li::before { content: ''; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--forest); flex: none; }
.quote { font: 400 clamp(1.5rem, 3vw, 1.875rem)/1.35 var(--serif); letter-spacing: -0.025em; margin: 0; }
.quote + p { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }

/* Sections */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section--ruled { border-top: 1px solid var(--rule-soft); }
.section--tint { background: rgba(244, 239, 234, 0.4); }
.section__head { margin-bottom: 3rem; }
.section__head h2, .h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.h2--lg { font-size: clamp(2.25rem, 5vw, 3rem); }
.section__head p { color: var(--muted); font-size: 1.0625rem; max-width: 36rem; }

.gallery { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery__img { overflow: hidden; border-radius: 1rem; border: 1px solid var(--rule-soft); background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); aspect-ratio: 4 / 3; }
.gallery__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery figure:hover img { transform: scale(1.05); }
.caption { margin-top: 0.75rem; font: 0.75rem/1.5 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

.principles { display: grid; gap: 3rem 4rem; }
@media (min-width: 768px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.principles p { color: var(--muted); line-height: 1.7; }

.narrow { max-width: 36rem; }
.narrow--wide { max-width: 42rem; }
.price__intro { color: var(--muted); padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.price__amount { display: flex; align-items: baseline; gap: 0.5rem; margin: 2rem 0 0.75rem; }
.price__amount b { font: 700 clamp(3rem, 6vw, 3.75rem)/1 var(--serif); letter-spacing: -0.025em; }
.price__amount span { color: var(--muted); font-weight: 500; }
.price__then { color: var(--muted); margin-bottom: 2rem; }

.faq { border-top: 1px solid var(--rule); }
.faq details { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '\25B6'; font-size: 0.625rem; color: rgba(26, 32, 28, 0.7); transition: transform 0.2s; }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq summary:hover { color: var(--forest); }
.faq details p { padding: 0.75rem 1rem 0 1.125rem; color: var(--muted); line-height: 1.7; }
.faq h2 { margin-bottom: 2rem; }

/* Footer */
.foot { padding: 3rem 0; border-top: 1px solid var(--rule-soft); font-size: 0.875rem; color: var(--muted); }
.foot .wrap { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; align-items: baseline; }
@media (min-width: 640px) { .foot .wrap { flex-direction: row; } }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem; color: rgba(26, 32, 28, 0.8); }
.foot__links a { text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s; }
.foot__links a:hover { color: var(--forest); }
.foot small { font-size: 0.75rem; color: rgba(95, 105, 98, 0.8); }

/* Inner pages */
.page { padding: 4rem 0 5rem; }
@media (min-width: 768px) { .page { padding: 5rem 0 6rem; } }
.page h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 600; line-height: 1.08; margin-bottom: 1.5rem; }
.page .lede { margin-bottom: 3rem; }

.card { background: var(--card); border: 1px solid var(--rule-soft); border-radius: 1rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); padding: 1.75rem; }
@media (min-width: 640px) { .card { padding: 2.25rem; } }

/* Early access form */
.enroll { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .enroll { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.enroll__aside h1 { margin-bottom: 1.25rem; }
.enroll__aside .lede { margin-bottom: 2rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; counter-increment: step; }
.steps li::before { content: counter(step); width: 2rem; height: 2rem; border-radius: 50%; background: var(--forest-light); color: var(--forest); display: grid; place-items: center; font: 700 0.875rem/1 var(--sans); border: 1px solid var(--forest-border); }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 0.9375rem; }
.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; }
.field > span, .legend { font-size: 0.875rem; font-weight: 600; color: var(--charcoal); }
.field small, .hint { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
.opt { color: var(--muted); font-weight: 400; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.legend { padding: 0; margin-bottom: 0.625rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; padding: 0.5rem 0.875rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  border: 1px solid rgba(26, 32, 28, 0.2); background: var(--card); color: var(--charcoal); transition: all 0.15s; cursor: pointer;
}
.choice input:checked + span { background: var(--forest-light); border-color: var(--forest); color: var(--forest); }
.choice input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; cursor: pointer; }
.check input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--forest); flex: none; }
.founder-box { border: 1px solid var(--forest-border); background: var(--forest-light); border-radius: 0.75rem; padding: 1rem 1.125rem; }
.founder-box .check b { color: var(--forest); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--rule-soft); }
.form__foot .fine { flex: 1; min-width: 14rem; }
.done { text-align: left; }
.done h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.done p + p { margin-top: 0.75rem; }
.done .btn { margin-top: 1.5rem; }
[hidden] { display: none !important; }

/* Fit check */
.fit__form { display: grid; gap: 1.5rem; }
.fit__fields { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .fit__fields { grid-template-columns: 1fr 1fr; } }
.fit__result:empty { display: none; }
.fit__result { margin-top: 2.5rem; }
.score { display: flex; align-items: baseline; gap: 0.375rem; margin-bottom: 0.5rem; }
.score b { font: 700 4rem/1 var(--serif); letter-spacing: -0.03em; color: var(--forest); }
.score span { color: var(--muted); font-weight: 500; }
.verdict { font: 500 1.375rem/1.35 var(--serif); margin-bottom: 0.75rem; }
.fit__result h3 { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 1.75rem 0 0.75rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; border: 1px solid; }
.chip--miss { background: #fdf2ef; border-color: #f2c7bb; color: #8a2c14; }
.chip--hit { background: var(--forest-light); border-color: var(--forest-border); color: var(--forest); }
.fit__cta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-soft); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.fit__cta p { color: var(--muted); max-width: 32rem; }

/* Legal pages */
.legal { max-width: 44rem; }
.legal .updated { font: 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: rgba(26, 32, 28, 0.85); line-height: 1.75; }
.legal p + p { margin-top: 0.75rem; }
.legal ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.legal a { color: var(--forest); text-underline-offset: 2px; }

/* 404 */
.lost { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }
.lost .btn { align-self: flex-start; }
.status:empty { display: none; }
