/* jared.technology: a sales page for one person.
   Dark by default, one accent, big type, real product screenshots. */

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-2: #101215;
  --card: #121418;
  --ink: #f2f3f5;
  --ink-2: #aeb4bc;
  --ink-3: #767d86;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --accent: #7cf5d6;
  --accent-soft: rgba(124, 245, 214, 0.12);
  --glow: rgba(124, 245, 214, 0.07);
  --danger: #ff9d8a;
  --warn: #f5c26b;
  --warn-soft: rgba(245, 194, 107, 0.08);
  --warn-line: rgba(245, 194, 107, 0.28);
  --bar-bg: rgba(10, 11, 13, 0.72);
  --pill-bg: #f2f3f5;
  --pill-ink: #0a0b0d;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafaf8;
  --bg-2: #f2f2ef;
  --card: #ffffff;
  --ink: #0f1113;
  --ink-2: #4a5057;
  --ink-3: #737a82;
  --line: rgba(15, 17, 19, 0.1);
  --line-2: rgba(15, 17, 19, 0.22);
  --accent: #087a66;
  --accent-soft: rgba(8, 122, 102, 0.1);
  --glow: rgba(8, 122, 102, 0.06);
  --danger: #b03a26;
  --warn: #8f5a00;
  --warn-soft: rgba(143, 90, 0, 0.07);
  --warn-line: rgba(143, 90, 0, 0.28);
  --bar-bg: rgba(250, 250, 248, 0.76);
  --pill-bg: #0f1113;
  --pill-ink: #fafaf8;
  --shadow: 0 30px 70px -45px rgba(15, 17, 19, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
a:hover { color: var(--accent); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
}
.skip:focus { top: 0.75rem; color: var(--bg); }

.wrap {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---- Top bar ---- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease;
}

.bar.is-stuck {
  background: var(--bar-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(72rem, 100%);
  height: 4rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.brand {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }

.nav { display: flex; gap: 1.75rem; font-size: 0.9375rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }

.bar-actions { display: flex; align-items: center; gap: 0.875rem; }

.theme {
  padding: 0.25rem 0.125rem;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 180ms ease;
}
.theme:hover { color: var(--ink); }
.theme[hidden] { display: none; }

/* ---- Buttons ---- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.5rem;
  border: 1px solid var(--pill-bg);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 220ms var(--ease), opacity 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.pill:hover { transform: translateY(-1px); color: var(--pill-ink); opacity: 0.9; }
.pill:active { transform: translateY(0); }

.pill-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.pill-ghost:hover { border-color: var(--ink); color: var(--ink); opacity: 1; }

.pill-small { padding: 0.4375rem 0.9375rem; font-size: 0.875rem; }

/* ---- Hero ---- */

.hero {
  position: relative;
  margin-top: -4rem;
  padding: clamp(8.5rem, 20vh, 12rem) 0 clamp(3rem, 7vh, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -18rem;
  width: min(70rem, 130vw);
  height: 40rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

h1 {
  max-width: 17ch;
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: clamp(2.75rem, 7.6vw, 5.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
h1 span { display: block; color: var(--ink-3); }

.hero-sub {
  max-width: 36rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3.5rem, 9vh, 6rem);
  border-top: 1px solid var(--line);
}

.proof > div { padding: 1.5rem 1.5rem 0 0; }
.proof > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }

.proof dt {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.proof dd { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.4; color: var(--ink-3); }

/* ---- Sections ---- */

.section { padding: clamp(4rem, 11vh, 7.5rem) 0; }

.kicker {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}

h2 {
  max-width: 22ch;
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }

/* ---- Why me ---- */

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.25rem, 5vh, 3.5rem);
}

.value {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color 240ms ease, transform 400ms var(--ease);
}
.value:hover { border-color: var(--line-2); transform: translateY(-2px); }
.value h3 { font-size: 1.25rem; line-height: 1.25; }
.value p { margin-top: 0.75rem; font-size: 1rem; line-height: 1.55; }

/* ---- Case studies ---- */

.section-lead {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.5;
}

.case {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  transition: border-color 240ms ease;
}
.case:hover { border-color: var(--line-2); }
.section-lead + .case { margin-top: clamp(2.25rem, 5vh, 3.5rem); }

.case-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: start;
}

.case-flip .case-text { order: 2; }
.case-flip .case-visual { order: 1; }

.tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}

.live {
  display: inline-block;
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--accent);
}

.case h3 {
  margin-top: 0.875rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.case-copy { margin-top: 0.875rem; font-size: 1rem; line-height: 1.55; text-wrap: pretty; }

.more {
  display: inline-flex;
  gap: 0.375rem;
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.more span { transition: transform 300ms var(--ease); }
.more:hover span { transform: translateX(3px); }

.points { margin-top: 1.25rem; }
.points li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.points li + li { margin-top: 0.625rem; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--accent);
}
.points strong { color: var(--ink); font-weight: 500; }

/* ---- AI panels ---- */

.panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}
.panel-head > span:first-child { display: inline-flex; align-items: center; gap: 0.5rem; }

.panel-note { font-family: var(--mono); font-size: 0.6875rem; font-weight: 400; color: var(--ink-3); }

.panel-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; }

.msg {
  max-width: 90%;
  padding: 0.625rem 0.8125rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.msg-user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--pill-bg);
  color: var(--pill-ink);
}
.msg-ai {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  background: var(--card);
  color: var(--ink);
}

.steps { display: flex; flex-direction: column; gap: 0.4375rem; padding: 0.25rem 0.125rem; }
.steps li {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}

.check {
  position: relative;
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--accent-soft);
}
.check::after {
  content: "";
  position: absolute;
  left: 0.3125rem;
  top: 0.1563rem;
  width: 0.1875rem;
  height: 0.375rem;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

.panel-label { margin-top: 0.25rem; font-size: 0.75rem; color: var(--ink-3); }
.panel-foot { font-size: 0.75rem; color: var(--ink-3); }

.tools { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tools li {
  padding: 0.25rem 0.5625rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
}

.runs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; }
.runs li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.125rem 0.75rem;
  padding: 0.5625rem 0.75rem;
  font-size: 0.6875rem;
  color: var(--ink-3);
}
.runs li + li { border-top: 1px solid var(--line); }
.runs code { font-family: var(--mono); font-size: 0.75rem; color: var(--ink); }
.run-held span { color: var(--warn); }

.approval {
  padding: 0.75rem 0.8125rem;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: var(--warn-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.approval strong { color: var(--ink); font-weight: 500; }
.approval-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4375rem; margin-top: 0.625rem; }

.fake-btn {
  padding: 0.25rem 0.6875rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--ink);
}
.fake-btn-main { border-color: var(--pill-bg); background: var(--pill-bg); color: var(--pill-ink); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.metrics dt {
  color: var(--ink);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.metrics dd { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-3); }

/* Steps in the panels arrive one at a time, once. */
.js .reveal .steps li,
.js .reveal .runs li,
.js .reveal .approval {
  opacity: 0;
  transform: translateY(4px);
}
.js .reveal.is-visible .steps li,
.js .reveal.is-visible .runs li,
.js .reveal.is-visible .approval {
  animation: step-in 500ms var(--ease) forwards;
}
.js .reveal.is-visible .steps li:nth-child(1), .js .reveal.is-visible .runs li:nth-child(1) { animation-delay: 350ms; }
.js .reveal.is-visible .steps li:nth-child(2), .js .reveal.is-visible .runs li:nth-child(2) { animation-delay: 650ms; }
.js .reveal.is-visible .steps li:nth-child(3), .js .reveal.is-visible .runs li:nth-child(3) { animation-delay: 950ms; }
.js .reveal.is-visible .steps li:nth-child(4) { animation-delay: 1250ms; }
.js .reveal.is-visible .approval { animation-delay: 1300ms; }

@keyframes step-in {
  to { opacity: 1; transform: none; }
}

.also { margin-top: 1.75rem; font-size: 0.9375rem; color: var(--ink-3); }
.also strong { color: var(--ink-2); font-weight: 500; }

/* ---- Track record ---- */

#record { background: var(--bg-2); }

.record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
}

.timeline { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.timeline li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.35; }
.timeline span { display: block; margin-top: 0.125rem; font-size: 0.875rem; color: var(--ink-3); }
.timeline time { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; }

.record-side { display: flex; flex-direction: column; justify-content: flex-end; gap: 2.5rem; }
.side-title { font-size: 1rem; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4375rem; margin-top: 0.875rem; }
.chips li {
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ---- Contact ---- */

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.cta-sub { margin-top: 1.25rem; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; position: relative; }
.field { display: flex; flex-direction: column; gap: 0.4375rem; min-width: 0; }
.field-wide, .form-foot { grid-column: 1 / -1; }
.field label { font-size: 0.8125rem; color: var(--ink-3); }

.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.send:disabled { opacity: 0.55; cursor: progress; transform: none; }
.form-status { font-size: 0.875rem; }
.form-status[data-state="ok"] { color: var(--accent); }
.form-status[data-state="error"] { color: var(--danger); }

.foot { border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); }
.foot-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.foot a { text-decoration: none; }

/* ---- Reveal ---- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .value.reveal.is-visible:hover { transform: translateY(-2px); }
.js .values .reveal:nth-child(2) { transition-delay: 70ms; }
.js .values .reveal:nth-child(3) { transition-delay: 140ms; }

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .case-grid-2 { grid-template-columns: 1fr; }
  .case-text, .case-flip .case-text { order: 2; }
  .case-visual, .case-flip .case-visual { order: 1; }
  .record-grid, .cta-grid { grid-template-columns: 1fr; }
  .record-side { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div { padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid var(--line); }
  .proof > div + div { padding-left: 0; border-left: 0; }
  .proof > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .proof > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .values { grid-template-columns: 1fr; }
  .timeline li { flex-direction: column; gap: 0.25rem; }
}

@media (max-width: 460px) {
  .form { grid-template-columns: 1fr; }
  .hero-actions .pill { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal, .js .reveal .steps li, .js .reveal .runs li, .js .reveal .approval { opacity: 1; transform: none; animation: none !important; }
}

/* ---- Print ---- */

@media print {
  :root, :root[data-theme="light"] {
    color-scheme: light;
    --bg: #fff; --bg-2: #fff; --card: #fff;
    --ink: #000; --ink-2: #222; --ink-3: #555;
    --line: #ccc; --line-2: #999; --accent: #000; --glow: transparent;
    --shadow: none;
  }
  @page { margin: 0.5in; }
  body { font-size: 10pt; }
  .bar, .skip, .hero-actions, .form, .cta-sub, .foot, .more, .theme { display: none !important; }
  .js .reveal, .js .reveal .steps li, .js .reveal .runs li, .js .reveal .approval { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .hero { margin-top: 0; padding: 0 0 12pt; }
  h1 { font-size: 24pt; max-width: none; margin-top: 4pt; }
  h2 { font-size: 15pt; max-width: none; }
  .section { padding: 10pt 0; }
  .proof { margin-top: 10pt; }
  .proof dt { font-size: 13pt; }
  .values { margin-top: 8pt; }
  .value, .case { padding: 8pt; border-radius: 0; break-inside: avoid; }
  .case-grid-2 { padding: 0; gap: 10pt; }
  .wrap { width: 100%; padding: 0; }
  #record { background: none; }
  #contact { display: none; }
}
