/* whydot — marketing site and read-only console. Round 2.
 *
 * House brand: one dark ink on white, square corners, no colour palette
 * (hasna-brand-identity). Light mode only. Production serves Inter; this file
 * falls back to the system face for rendering.
 *
 * Round 2 is built on restraint: one typeface at two weights, a short type
 * scale, whitespace instead of boxes, hairlines only where a table needs them.
 * There are no cards, chips, washes or sidebars. The agent prompt is never
 * rendered; it lives in a <template> and reaches the clipboard through one
 * button, which is the only interactive control on any page.
 *
 * The single functional colour is the alarm red. It marks the two states that
 * end with a domain going dark (an expired registrant verification, clientHold)
 * and appears nowhere else.
 */

:root {
  --ink: #1e2124;
  --g600: #4e5256;
  --g500: #70707b;
  --g400: #a1a5aa;
  --line: #e9eaeb;
  --white: #ffffff;
  --alarm: #b42318;
  --gutter: 48px;
  --measure: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 500; }

.mono, code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.93em;
  font-variant-ligatures: none;
}

/* ---------------------------------------------------------------- shell */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.top {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.mark { font-weight: 500; font-size: 17px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 7px; }
.mark::before { content: ""; width: 6px; height: 6px; background: var(--ink); }
.top nav { display: flex; gap: 28px; font-size: 14px; color: var(--g500); }
.top nav a.here { color: var(--ink); }

main { flex: 1; }

footer.wrap {
  color: var(--g400); font-size: 13px;
  padding-top: 72px; padding-bottom: 40px;
}
footer a { color: var(--g500); }

/* ------------------------------------------------------------- marketing */

.hero { padding: 104px 0 64px; max-width: 820px; }
.hero h1 { font-size: 64px; letter-spacing: -0.035em; line-height: 1.02; }
.hero .lede { margin-top: 28px; font-size: 19px; line-height: 1.5; color: var(--g600); max-width: 600px; }

.sect { padding: 56px 0 0; }
.sect + .sect { margin-top: 24px; }
.sect h2 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--g500); margin-bottom: 28px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.three h3 { font-size: 17px; }
.three p { margin-top: 10px; color: var(--g600); font-size: 15px; max-width: 300px; }
.three > div > .mono { display: block; margin-top: 14px; color: var(--g400); font-size: 13px; }

.does { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; max-width: 980px; }
.does li { padding: 10px 0; font-size: 16px; }
.does .not li { color: var(--g500); font-size: 15px; }
.does .not li strong { color: var(--ink); display: block; }

.install { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.install .mono { font-size: 15px; }
.install > .mono::before { content: "$ "; color: var(--g400); }
.install .then { color: var(--g500); font-size: 14px; }

/* ---------------------------------------------------- agent-first control
 * The human sees one button. The prompt itself is in <template>, which the
 * browser never renders, and reaches the clipboard through whydot.js.
 */

.agent { margin-top: 40px; }
.copy {
  appearance: none; border: 0; cursor: pointer;
  background: var(--ink); color: var(--white);
  font: inherit; font-size: 15px; font-weight: 500;
  height: 44px; padding: 0 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.copy::before {
  content: ""; width: 12px; height: 12px; flex: none;
  border: 1.5px solid currentColor; box-shadow: 3px 3px 0 -0.5px var(--ink), 3px 3px 0 1px currentColor;
  margin-right: 2px;
}
.copy.done { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.copy.done::before { border: 0; box-shadow: none; width: 6px; height: 11px; margin: -3px 4px 0 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.agent .agent-note { margin-top: 14px; color: var(--g500); font-size: 14px; max-width: 560px; }
.agent .agent-raw { margin-top: 8px; color: var(--g400); font-size: 12.5px; }

/* --------------------------------------------------------------- console */

.subnav { display: flex; gap: 28px; font-size: 14px; color: var(--g500); padding: 4px 0 0; }
.subnav a.here { color: var(--ink); }

.head { padding: 72px 0 0; }
.crumb { font-size: 13px; color: var(--g500); margin-bottom: 14px; }
.crumb a:hover { color: var(--ink); }
.head h1 { font-size: 34px; letter-spacing: -0.03em; }
.head .sub { margin-top: 14px; color: var(--g600); font-size: 16px; max-width: 640px; }
.head .ro { margin-top: 10px; color: var(--g400); font-size: 13.5px; max-width: 640px; }

.figures { display: flex; gap: 64px; margin-top: 56px; }
.figures b { display: block; font-weight: 500; font-size: 30px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 8px; color: var(--g500); font-size: 13.5px; }
.figures .bad b { color: var(--alarm); }

.sec { margin-top: 64px; }
.sec h2 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--g500); display: flex; justify-content: space-between; gap: 24px; }
.sec h2 span { font-weight: 400; color: var(--g400); }

.note { margin-top: 36px; color: var(--g500); font-size: 14px; max-width: 640px; }

/* ---------------------------------------------------------------- tables */

table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th {
  text-align: left; font-weight: 400; font-size: 12.5px; color: var(--g400);
  padding: 0 24px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.lead a { font-weight: 500; }
.sub { display: block; font-size: 13px; color: var(--g500); margin-top: 3px; }
.q { color: var(--g500); }
.bad { color: var(--alarm); }
td.bad { font-weight: 500; }

/* ---------------------------------------------------------------- alarm
 * One rule, one kicker, no wash. It reads as a deliberate statement rather
 * than a warning box. */

.alarm { margin-top: 48px; border-top: 2px solid var(--alarm); padding-top: 24px; max-width: 760px; }
.alarm .k { color: var(--alarm); font-weight: 500; font-size: 13.5px; }
.alarm h2 { font-size: 24px; margin-top: 10px; letter-spacing: -0.025em; }
.alarm p { margin-top: 14px; color: var(--g600); font-size: 15px; }

/* ------------------------------------------------------------ detail grid */

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; margin-top: 8px; }
.kv > dl { display: grid; grid-template-columns: 148px 1fr; }
.kv dt { color: var(--g500); font-size: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv dd { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.kv dd .sub { margin-top: 4px; }

/* ----------------------------------------------------------------- login */

.login { max-width: 560px; padding: 104px 0 0; }
.login h1 { font-size: 40px; letter-spacing: -0.03em; }
.login .lede { margin-top: 20px; color: var(--g600); font-size: 17px; }
.steps { margin-top: 64px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 32px 1fr; padding: 16px 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); color: var(--g400); font-size: 13px; padding-top: 2px; }
.steps .s { color: var(--g500); font-size: 14px; margin-top: 4px; }

/* ------------------------------------------------------------- phone */

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .top { height: 60px; }
  .top nav { gap: 18px; }
  .top nav .hide-s { display: none; }
  footer.wrap { padding-top: 56px; padding-bottom: 32px; }

  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 17px; margin-top: 20px; }
  .sect { padding-top: 40px; }
  .three { grid-template-columns: 1fr; gap: 28px; }
  .does { grid-template-columns: 1fr; }
  .does .not { margin-top: 12px; }

  .agent { margin-top: 32px; }
  .copy { width: 100%; justify-content: center; }
  .agent-raw { display: none; }

  .subnav { gap: 20px; overflow-x: auto; white-space: nowrap; }
  .head { padding-top: 40px; }
  .head h1 { font-size: 28px; }
  .head .sub { font-size: 15px; }
  .figures { flex-wrap: wrap; gap: 28px 40px; margin-top: 40px; }
  .figures b { font-size: 26px; }
  .sec { margin-top: 48px; }

  .alarm { margin-top: 36px; }
  .alarm h2 { font-size: 21px; }

  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv > dl { grid-template-columns: 112px 1fr; }
  .kv dt { font-size: 13px; }
  .kv dd { font-size: 14px; }

  /* tables become stacked records */
  .stack thead { display: none; }
  .stack tr { display: block; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .stack td { display: block; position: relative; border: 0; padding: 4px 0 4px 108px; font-size: 14px; text-align: left; }
  .stack td::before { content: attr(data-l); position: absolute; left: 0; top: 4px; color: var(--g400); font-size: 12.5px; font-family: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
  .stack td.lead { padding: 0 0 10px; font-size: 16px; }
  .stack td.lead::before { display: none; }

  .login { padding-top: 48px; }
  .login h1 { font-size: 30px; }
  .steps { margin-top: 40px; }
}
