/* Alpgency: zinc ramp, ink #0a0a0a, one sage accent. No em dashes anywhere. */

:root {
  --ink: #0a0a0a;
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-muted: #ededef;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-muted: #52525b;
  --text-soft: #71717a;
  --sage: #5d7a6b;
  --sage-text: #4d6659;
  --accent: var(--sage-text);        /* light surfaces, overridden per client */
  --accent-dark: var(--sage);        /* the ink masthead */
  --sf-text: #e4e4e7;
  --sf-text-strong: #fafafa;
  --sf-text-muted: #a1a1aa;
  --sf-border: rgba(255, 255, 255, 0.08);
  --display: #faf6f0;
  --error: #b6553a;
  --radius: 14px;
  --font-sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-brand: "Hanken Grotesk", var(--font-sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------- masthead -- */

.masthead { background: var(--ink); color: var(--sf-text); padding: 30px 0 46px; }

.lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.wordmark {
  font-family: var(--font-brand);
  font-weight: 600; font-size: 20px; letter-spacing: -0.04em;
  text-transform: lowercase; color: var(--sf-text-strong); line-height: 1;
}
.lockup__rule { width: 1px; height: 26px; background: var(--sf-border); }
.lockup__client { font-size: 14px; color: var(--sf-text-muted); }

.eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 12px;
}
.masthead .eyebrow { color: var(--accent-dark); }

.masthead h1 {
  font-size: clamp(30px, 6vw, 44px); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.035em; color: var(--display); margin: 0 0 14px;
}
.masthead p { color: var(--sf-text-muted); max-width: 52ch; margin: 0; }

/* ----------------------------------------------------------------- card -- */

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin: 22px 0;
}
.card--mine { border-left: 2px solid var(--accent); }

h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
h3 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--text-muted); }
.lede { color: var(--text-muted); font-size: 17px; margin-bottom: 20px; }

section { padding: 34px 0; }

/* ----------------------------------------------------------------- form -- */

.q { margin-bottom: 26px; }
.q__n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-soft); display: block; margin-bottom: 5px;
}
.q label { display: block; font-weight: 600; margin-bottom: 8px; }
.q .hint { color: var(--text-muted); font-size: 14px; margin: -4px 0 8px; }

textarea, input[type="text"] {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 11px 13px; resize: vertical;
}
textarea { min-height: 96px; }
textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }

.choice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border: 1px solid var(--border-strong);
  border-radius: 10px; margin-bottom: 8px; cursor: pointer;
}
.choice:hover { background: var(--surface-muted); }
.choice input { margin: 3px 0 0; accent-color: var(--accent); }
.choice input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice span { font-size: 15px; }
.choice small { display: block; color: var(--text-muted); font-size: 13px; }

button {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  background: var(--ink); color: var(--sf-text-strong);
  border: 0; border-radius: 99px; padding: 13px 26px; min-height: 46px;
  transition: background .15s ease;
}
button:hover { background: #262626; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button[disabled] { opacity: .5; cursor: not-allowed; }

.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.saved {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-soft);
}

.error {
  color: var(--error); font-size: 14px; margin-top: 10px;
  border-left: 2px solid var(--error); padding-left: 10px;
}

/* ---------------------------------------------------------------- state -- */

.hidden { display: none !important; }

.done { text-align: center; padding: 56px 26px; }
.done__mark {
  width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; color: #fff;
  font-size: 22px; line-height: 1;
}

footer {
  border-top: 1px solid var(--border); margin-top: 26px;
  padding: 22px 0 46px; color: var(--text-soft); font-size: 13px;
}
footer .mono {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

@media (max-width: 560px) {
  .card { padding: 20px; }
  section { padding: 26px 0; }
}

/* ---------------------------------------------------------------- fonts -- */
@font-face { font-family:"General Sans"; font-weight:400; font-style:normal; font-display:swap; src:url(/GeneralSans-400.woff2) format("woff2"); }
@font-face { font-family:"General Sans"; font-weight:600; font-style:normal; font-display:swap; src:url(/GeneralSans-600.woff2) format("woff2"); }
@font-face { font-family:"Hanken Grotesk"; font-weight:600; font-style:normal; font-display:swap; src:url(/HankenGrotesk-600.woff2) format("woff2"); }
@font-face { font-family:"Geist Mono"; font-weight:500; font-style:normal; font-display:swap; src:url(/GeistMono-500.woff2) format("woff2"); }

/* ----------------------------------------------------------- co-branding -- */

/* The client's crest sits beside the Alpgency wordmark, same weight, so the
   page reads as a document between two parties. */
.lockup__crest {
  height: 38px; width: auto; display: block;
  border-radius: 4px;
}

.footmarks {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.footmarks__word {
  font-family: var(--font-brand); font-weight: 600; font-size: 15px;
  letter-spacing: -0.04em; text-transform: lowercase; color: var(--text);
  line-height: 1;
}
.footmarks__rule { width: 1px; height: 18px; background: var(--border-strong); }
.footmarks__crest { height: 26px; width: auto; display: block; }
.footmarks__client { font-size: 13px; color: var(--text-muted); }

/* A hairline of the client's colour where the two halves of the page meet,
   so the accent is doing structural work rather than decoration. */
.masthead { border-bottom: 2px solid var(--accent-dark); }

@media (max-width: 560px) {
  .lockup__crest { height: 32px; }
}
