/* Direction: "The sentence is the layout" · Barlow Condensed / Barlow · stone ground, Jeff's night and glow.
   Three layouts: wide (≥1100px), tablet (700–1099px), phone (<700px). Everything sits on one 12-column grid
   with equal outer margins; text starts on the left margin unless a layout says otherwise. */
:root {
  --bg: #eeecea;
  --surface: #e4e1dd;
  --ink: #2b2a29;
  --muted: #5f5b57;
  --accent: #f2913a;   /* Jeff's glow; used on the action only */
  --accent-ink: #171717;
  --night: #171717;    /* the ground of Jeff's portrait */
  --field-1: #cdc3b6;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
  --step-title: clamp(1.75rem, 1.2rem + 1.6vw, 3rem);
  --step-head: clamp(2.75rem, 1.4rem + 4.4vw, 5.5rem);
  --step-hero: clamp(4.25rem, 1.2rem + 10.6vw, 11.5rem);

  --margin: clamp(20px, 3vw, 40px);
  --col-gap: clamp(16px, 2vw, 32px);
  --gap: clamp(112px, 12vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
#contact { scroll-margin-top: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--field-1); }

.page { max-width: 1680px; margin-inline: auto; padding-inline: var(--margin); }
.grid, .hero-foot, .try-body, .frow, .qa, .footer .top, .contact, .legal {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 0.92; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); text-transform: uppercase; }
p { margin: 0; text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { background: #e47f25; transform: translateY(-2px); }
.btn:active { transform: none; }

/* ---------- navigation ---------- */
.nav { display: flex; justify-content: space-between; align-items: center; height: 88px; }
.wordmark { font: 700 var(--step-lead)/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.nav ul { list-style: none; display: flex; gap: clamp(20px, 3.4vw, 48px); margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: var(--step-small); }
.nav ul a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 10vh, 132px); }
/* The headline is two lines; on wide screens the Slack card takes the empty end of the first line. */
.headline {
  font: 700 var(--step-hero)/0.88 var(--display); text-transform: uppercase; letter-spacing: -0.03em;
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.16em; align-items: center;
}
.headline h1 { grid-area: 1 / 1 / 3 / 3; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; font: inherit; }
.headline .w1 { grid-area: 1 / 1; }
.headline .w2 { grid-area: 2 / 1 / 3 / 3; margin-top: 0.06em; }
.headline .slot { grid-area: 1 / 2; }

/* The Slack card sits in the line like a picture: its width is set in em off the headline, and
   everything inside it is sized in container units, so it scales as one piece at every width. */
.slot {
  width: calc(var(--step-hero) * 2.5); aspect-ratio: 3.1 / 1; container-type: inline-size;
  background: #fff; color: #1d1c1b; overflow: hidden;
  font: 400 1rem/1 var(--text); text-transform: none; letter-spacing: 0;
}
.card { display: grid; grid-template-columns: 9cqw 1fr; gap: 3.4cqw; padding: 4.6cqw 5cqw; font-size: 3.5cqw; line-height: 1.32; }
.card .av { width: 9cqw; height: 9cqw; border-radius: 1cqw; object-fit: cover; }
.card .row { display: block; }
.card b { font-weight: 700; }
.card .meta { color: #6b6763; margin-left: .45em; }
.card .acts { display: flex; gap: .5em; margin-top: .65em; }
.card .acts span { padding: .3em .85em; border-radius: .25em; font-weight: 500; }
.card .acts .ok { background: #2f7d4f; color: #fff; }
.card .acts .no { background: #ebe8e4; }

.hero-foot { margin-top: clamp(48px, 9vh, 112px); align-items: end; }
.hero-foot p { grid-column: 1 / span 6; font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; }
.hero-foot .btn { grid-column: 9 / span 4; justify-self: end; }

/* ---------- showcase: the search term you can type ---------- */
.try { padding-top: var(--gap); }
.try h2 { font: 500 var(--step-lead)/1.35 var(--text); text-transform: none; letter-spacing: 0; max-width: 40ch; }
.try h2 label { cursor: text; }
.term {
  display: block; width: 100%; margin-top: 8px; border: 0; padding: 0; background: transparent; color: var(--ink);
  font: 700 clamp(2.75rem, 0.8rem + 7.6vw, 8.5rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: -0.02em;
  caret-color: var(--accent); outline: none; text-overflow: ellipsis;
}
.try-body { margin-top: clamp(28px, 4vw, 48px); align-items: start; row-gap: 32px; }
.verdict { grid-column: 1 / span 7; background: var(--surface); padding: clamp(20px, 2.4vw, 32px); min-height: 300px; }
.verdict .vh { font: 700 var(--step-title)/1 var(--display); text-transform: uppercase; }
.verdict .vh.harvest { color: #2f6a45; } .verdict .vh.negate { color: #a13e2e; } .verdict .vh.bid { color: #7a5a14; }
.verdict p.why { margin-top: 12px; max-width: 52ch; }
.verdict table { width: 100%; border-collapse: collapse; margin-top: 20px; font-variant-numeric: tabular-nums; }
.verdict th, .verdict td { text-align: left; padding: 8px 0; border-bottom: 1px solid #d4cfc8; font-size: 1rem; } /* taste-skill-ignore: a real data table */
.verdict th { color: var(--muted); font-weight: 400; width: 45%; }
.controls { grid-column: 9 / span 4; display: grid; gap: 32px; align-content: start; }
.controls label, .examples > p { font-size: var(--step-lead); font-weight: 500; display: block; }
.acos { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.acos input { flex: 1; accent-color: var(--accent); min-height: 44px; }
.acos output { font: 700 var(--step-title)/1 var(--display); min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.examples { display: grid; gap: 8px; justify-items: start; }
.examples button {
  border: 0; background: var(--surface); padding: 12px 16px; min-height: 44px; cursor: pointer; text-align: left;
  font: 500 var(--step-body)/1.2 var(--text); color: var(--ink);
  transition: background-color .2s, transform .2s var(--ease);
}
.examples button:hover { background: var(--field-1); transform: translateX(3px); }
.note { font-size: var(--step-small); color: var(--muted); }

/* ---------- how it works: stages as one bar ---------- */
.how { padding-top: var(--gap); }
.stages { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: flex; gap: 6px; }
.stages li { flex: var(--g) 1 0; min-width: 0; }
.seg { height: clamp(150px, 20vh, 220px); padding: 18px 20px; transition: transform .3s var(--ease); }
.stages li:hover .seg { transform: translateY(-4px); }
.seg .dur { font: 700 var(--step-lead)/1 var(--display); text-transform: uppercase; }
.stages li:nth-child(1) .seg { background: var(--field-1); }
.stages li:nth-child(2) .seg { background: var(--surface); }
.stages li:nth-child(3) .seg { background: var(--ink); color: var(--bg); }
.stages li:nth-child(4) .seg { background: var(--accent); color: var(--accent-ink); }
.stages p { margin-top: 14px; padding-right: 16px; max-width: 26ch; }

/* ---------- features: rows hanging from one axis ---------- */
.features { padding-top: var(--gap); }
.features h2 { grid-column: 5 / span 8; }
.frow { grid-column: 1 / -1; margin-top: clamp(64px, 8vw, 112px); align-items: start; grid-template-rows: auto 1fr; }
.frow h3 { grid-column: 5 / span 4; font-size: var(--step-title); text-transform: uppercase; line-height: .95; }
.frow p { grid-column: 5 / span 4; margin-top: 14px; max-width: 38ch; }
.frow .fig { grid-column: 10 / span 3; grid-row: 1 / span 2; justify-self: end; width: 100%; }
.fig.w320 { max-width: 320px; } .fig.w240 { max-width: 260px; } .fig.w200 { max-width: 220px; }
.fig img { width: 100%; object-fit: cover; }
.fig .r45 { aspect-ratio: 4 / 5; } .fig .r32 { aspect-ratio: 3 / 2; } .fig .r11 { aspect-ratio: 1; }
.drift { overflow: hidden; }
.drift img { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translateX(-2%); } }

/* small app fragments used as pictures */
.ui { background: #fff; color: #1d1c1b; font: 400 .9375rem/1.4 var(--text); padding: 16px 18px; }
.ui .who { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.ui .who img { width: 26px; height: 26px; border-radius: 4px; }
.ui ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.ui li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; box-shadow: inset 0 -1px 0 #ece9e5; } /* taste-skill-ignore: Slack's own list rule inside the data-ui fragment */
.ui .st { color: #2f7d4f; font-weight: 500; white-space: nowrap; }
.ui .rv { color: #6b6763; text-decoration: underline; }

/* ---------- FAQ: large questions, answers beside ---------- */
.faq { padding-top: var(--gap); }
.qa { margin-top: clamp(48px, 6vw, 80px); align-items: baseline; }
.qa:first-child { margin-top: 0; }
.qa h3, .qa h2 { grid-column: 1 / span 6; font-size: var(--step-title); line-height: 1.02; text-transform: none; letter-spacing: -0.01em; }
.qa h2 { color: var(--muted); }
.qa p { grid-column: 8 / span 5; max-width: 44ch; }

/* ---------- contact: the email as display type ---------- */
.contact {
  margin: var(--gap) calc(var(--margin) * -1) 0; padding: clamp(48px, 6vw, 88px) var(--margin);
  background: var(--night); color: var(--bg); align-items: center; row-gap: 32px;
}
.contact .say { grid-column: 1 / span 7; align-self: stretch; display: grid; grid-template-rows: auto 1fr auto; gap: 32px; }
.contact h2 { font: 500 var(--step-lead)/1.35 var(--text); text-transform: none; letter-spacing: 0; max-width: 30ch; }
.contact .addr { align-self: center; font: 400 clamp(2.5rem, 0.6rem + 5.2vw, 7rem)/1 var(--display); letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; transition: color .25s; }
.contact .addr:hover { color: var(--accent); }
.contact .reach { align-self: center; display: grid; justify-items: start; gap: 24px; }
.contact .reach .addr { align-self: auto; }
.btn.copy { border: 0; cursor: pointer; }
.contact .corners { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: var(--step-small); color: #bdb9b4; }
.contact .corners a { color: var(--bg); }
.contact .corners .co { flex-basis: 100%; }
.contact .portrait { grid-column: 8 / span 5; justify-self: center; width: 100%; max-width: 560px; }
.contact .portrait img { width: 100%; aspect-ratio: 1; animation: hover 6s ease-in-out infinite alternate; }
@keyframes hover { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- footer: invitation over a cropped name ---------- */
.footer { background: var(--night); color: var(--bg); position: relative; overflow: hidden; margin-inline: calc(var(--margin) * -1); padding: clamp(80px, 10vw, 140px) var(--margin) 0; }
.footer .top { align-items: start; row-gap: 40px; }
.footer .invite { grid-column: 1 / span 7; }
.footer h2 { font-size: var(--step-head); }
.footer .invite .btn { margin-top: 32px; }
.footer .links { grid-column: 9 / span 4; justify-self: end; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer .links a { text-decoration: none; } .footer .links a:hover { text-decoration: underline; }
.footer .legal-row { display: flex; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; font-size: var(--step-small); color: #bdb9b4; margin-top: clamp(80px, 10vw, 140px); position: relative; z-index: 1; }
.footer .legal-row p { max-width: 62ch; }
.footer .credits a { color: var(--bg); }
.footer .name { font: 700 clamp(9rem, 1rem + 30vw, 34rem)/0.8 var(--display); color: #66635f; text-transform: uppercase; letter-spacing: -0.04em; white-space: nowrap; transform: translateY(26%); margin: 12px 0 0 -0.04em; user-select: none; }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.legal header { grid-column: 1 / span 4; }
.legal h1 { font-size: var(--step-head); text-transform: uppercase; }
.legal header p { margin-top: 16px; color: var(--muted); max-width: 32ch; }
.legal article { grid-column: 6 / span 7; max-width: 68ch; }
.legal article h2 { font-size: var(--step-title); margin: 48px 0 12px; }
.legal article h2:first-child { margin-top: 0; }
.legal article p + p { margin-top: 12px; }
.legal article ul { padding-left: 1.2em; margin: 12px 0 0; display: grid; gap: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 1rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid #d4cfc8; vertical-align: top; } /* taste-skill-ignore: real tables */
.legal-foot { background: var(--night); color: #bdb9b4; margin-inline: calc(var(--margin) * -1); padding: 40px var(--margin); display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; font-size: var(--step-small); }
.legal-foot a { color: var(--bg); margin-left: 20px; }

/* ---------- motion: quick, small, never hides content without script ---------- */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .drift img, .contact .portrait img { animation: none; }
  .btn, .seg, .examples button { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  /* The card leaves the line and sits under the headline at a readable, fixed size. */
  .headline { grid-template-columns: 1fr; }
  .headline h1 { grid-area: 1 / 1 / 3 / 2; }
  .headline .w2 { grid-area: 2 / 1; }
  .headline .slot { grid-area: 3 / 1; width: min(100%, 520px); aspect-ratio: auto; margin-top: 32px; }
  .card { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 20px; font-size: 1rem; }
  .card .av { width: 40px; height: 40px; border-radius: 6px; }
  .hero-foot p { grid-column: 1 / span 8; }
  .hero-foot .btn { grid-column: 9 / span 4; }

  .verdict { grid-column: 1 / -1; }
  .controls { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
  .controls .note { grid-column: 1 / -1; }

  .features h2 { grid-column: 1 / span 10; }
  .frow h3, .frow p { grid-column: 1 / span 6; }
  .frow .fig { grid-column: 8 / span 5; }

  .qa h3, .qa h2 { grid-column: 1 / span 6; }
  .qa p { grid-column: 7 / span 6; }

  .contact .say { grid-column: 1 / span 7; }
  .contact .portrait { grid-column: 8 / span 5; }
  .footer .invite { grid-column: 1 / span 8; }
  .footer .links { grid-column: 9 / span 4; }
  .legal header { grid-column: 1 / -1; }
  .legal article { grid-column: 1 / -1; margin-top: 40px; }
}

/* Stages turn vertical below 1100: each stage is a row; its block's height keeps the proportion. */
@media (max-width: 1099px) {
  .stages { flex-direction: column; }
  .stages li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap); align-items: start; }
  .seg { height: calc(var(--g) * 44px); min-height: 64px; }
  .stages p { margin-top: 0; padding-top: 16px; max-width: 34ch; }
}

/* ---------- phone ---------- */
@media (max-width: 699px) {
  .nav { height: 72px; }
  .nav ul li:not(.keep) { display: none; }
  .hero { padding-top: 32px; }
  .headline { font-size: 15.5vw; }
  .headline .slot { width: 100%; margin-top: 24px; }
  .hero-foot { margin-top: 40px; row-gap: 24px; }
  .hero-foot p, .hero-foot .btn { grid-column: 1 / -1; }
  .hero-foot .btn { justify-self: stretch; }

  .term { font-size: 11vw; }
  .controls { grid-template-columns: 1fr; }
  .examples { display: flex; flex-wrap: wrap; }
  .examples > p { width: 100%; }

  .stages li { grid-template-columns: 1fr; }
  .stages p { padding-top: 10px; }
  .seg { height: auto; min-height: calc(var(--g) * 32px); }

  .features h2, .frow h3, .frow p, .frow .fig { grid-column: 1 / -1; }
  .frow .fig { grid-row: auto; margin-top: 24px; justify-self: start; max-width: none; }
  .frow:nth-of-type(2n) .fig { justify-self: end; }
  .fig.w320, .fig.w240, .fig.w200 { max-width: none; }
  .frow:nth-of-type(3n+1) .fig { width: 100%; } .frow:nth-of-type(3n+2) .fig { width: 78%; } .frow:nth-of-type(3n) .fig { width: 62%; }

  .qa h3, .qa h2, .qa p { grid-column: 1 / -1; }
  .qa p { margin-top: 12px; }

  .contact .say, .contact .portrait { grid-column: 1 / -1; }
  .contact .portrait { justify-self: center; max-width: 320px; }
  .contact .addr { font-size: 10.5vw; padding-block: 24px; }
  .footer .invite, .footer .links { grid-column: 1 / -1; justify-self: start; }
  .footer .invite .btn { width: 100%; }
  .footer .links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .footer .name { font-size: 36vw; }
  .legal-foot a { margin: 0 20px 0 0; }
}
