/* Trivet marketing site. Colours, type and radii follow the Trivet design system. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Soft-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface: #f6efe3;
  --surface-raised: #fffbf4;
  --ink: #1f2a24;
  --ink-muted: #4d5a51;
  --line: #d9cfbe;
  --line-strong: #7a8479;
  --green: #2f5d46;
  --on-green: #fbf6ec;
  --green-soft: #dce8df;
  --terracotta: #a8441f;
  --on-terracotta: #fffbf4;
  --ochre: #e0a83a;
  --on-ochre: #1f2a24;
  --focus: #1f2a24;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

a { color: var(--terracotta); }
a:hover { color: #7d3217; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-band:focus-visible { outline-color: var(--on-green); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.display { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; margin: 0; }
.eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.lead { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.site-header { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-header img { height: 40px; width: auto; display: block; }
.site-footer { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer img { height: 28px; width: auto; display: block; }
.site-footer p { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.02em; }
.hero .lead { max-width: 560px; }
.hero__art { flex: 0 1 400px; min-width: 260px; position: relative; width: 100%; max-width: 400px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hero__art img { position: absolute; left: 0; top: 6%; width: 84%; height: auto; display: block; }
.hero__art .disc { position: absolute; right: 0; top: 0; width: 28%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--terracotta); }
.hero__art .pill { position: absolute; right: 4%; bottom: 0; width: 20%; height: 40%; border-radius: 999px; background: var(--ochre); }

/* Sign-up form */
.signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 0; max-width: 560px; }
.signup input[type="email"] { flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 24px; border: 2px solid var(--line-strong); border-radius: 999px; background: var(--surface-raised); color: var(--ink); font: 400 16px/24px var(--font-sans); }
.signup input::placeholder { color: var(--ink-muted); opacity: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px; background: var(--green); color: var(--on-green); font: 600 16px/24px var(--font-sans); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(0.93); color: var(--on-green); }
.btn[disabled] { cursor: wait; filter: none; opacity: 0.8; }
.form-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.form-status { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--green); }
.form-status[data-state="error"] { color: #a8321c; }
.hp { position: absolute; left: -9999px; }

/* Sections */
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.section-head h2, .band h2 { font-size: clamp(32px, 4.5vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }

.points { padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.cards { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; padding: 0; list-style: none; }
.card { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 24px; }
.card h3 { font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-muted); }
.card .eyebrow { margin-top: 8px; }

.num { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; }
.num--green { background: var(--green); color: var(--on-green); }
.num--terra { background: var(--terracotta); color: var(--on-terracotta); }
.num--ochre { background: var(--ochre); color: var(--on-ochre); }
.num--ink { background: var(--ink); color: var(--surface); }

.flow { background: var(--green-soft); }
.flow .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.flow .section-head { max-width: 680px; }
.steps { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; padding: 0; list-style: none; }
.step { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.step h3 { margin-top: 8px; font-size: 24px; line-height: 30px; }
.step p { margin: 0; color: var(--ink-muted); }

.band { background: var(--green); color: var(--on-green); }
.band .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.band__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.band h2 { color: var(--on-green); }
.band p { margin: 0; font-size: 18px; line-height: 28px; color: var(--on-green); max-width: 520px; }
.band .btn { background: var(--surface); color: var(--green); padding: 0 32px; }
.band .btn:hover { color: var(--green); }

/* Thank-you page */
.thanks { padding-top: 96px; padding-bottom: 128px; display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.thanks h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.thanks .btn { align-self: flex-start; }
