/* humanize — the house style.
   One stylesheet, no dependencies. Light and dark from the same tokens. */

:root {
  --paper: #fbfaf8;
  --ink: #17161a;
  --soft: #63606b;
  --line: #e5e2dc;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --card: #ffffff;
  --mark: #f0ede6;
  --free: #2f5d50;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131316;
    --ink: #eceaf0;
    --soft: #9d99a6;
    --line: #2a2930;
    --accent: #6fbfa5;
    --accent-ink: #10221c;
    --card: #1a1a1f;
    --mark: #22222a;
    --free: #6fbfa5;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.65;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; }

/* --- header --------------------------------------------------------------- */

header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 0;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 620; font-size: 1.1rem; letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark .dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.4rem; font-family: var(--sans); font-size: .9rem; }
.nav a { color: var(--soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* --- hero ----------------------------------------------------------------- */

.hero { padding: 3.5rem 0 2.5rem; }

h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.028em;
  margin: 0 0 1.1rem; font-weight: 500;
}
h1 em { font-style: italic; color: var(--accent); }

.standfirst { font-size: 1.24rem; line-height: 1.5; color: var(--soft); margin: 0 0 1.6rem; max-width: 34rem; }

.badge {
  display: inline-block; font-family: var(--sans); font-size: .76rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--free); padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--free) 35%, transparent);
  background: color-mix(in srgb, var(--free) 8%, transparent);
  margin-bottom: 1.4rem;
}

/* --- the estimator -------------------------------------------------------- */

.estimator {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.4rem; margin: 2rem 0 1rem;
}

.estimator label {
  display: block; font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; color: var(--soft); margin-bottom: .6rem;
}

textarea {
  width: 100%; min-height: 9.5rem; resize: vertical;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px;
  padding: .85rem .95rem; font-family: var(--serif); font-size: 1rem; line-height: 1.6;
}
textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }

.readout {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.4rem;
  margin-top: 1rem; font-family: var(--sans);
}
.price { font-size: 1.9rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1; }
.price.is-free { color: var(--free); }
.readout .meta { font-size: .88rem; color: var(--soft); }
.readout .grow { flex: 1 1 auto; }

.btn {
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: .7rem 1.3rem; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--soft); }

.result {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: 9px;
  background: var(--mark); font-family: var(--sans); font-size: .9rem; line-height: 1.55;
}
.result code { font-family: var(--mono); font-size: .86em; }
.result[hidden] { display: none; }

/* --- sections ------------------------------------------------------------- */

section { padding: 3.2rem 0; border-top: 1px solid var(--line); }

h2 {
  font-family: var(--sans); font-size: .8rem; font-weight: 680;
  letter-spacing: .11em; text-transform: uppercase; color: var(--soft);
  margin: 0 0 1.6rem;
}

h3 { font-size: 1.2rem; font-weight: 560; margin: 0 0 .4rem; letter-spacing: -0.01em; }

.steps { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.step .n {
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
  display: block; margin-bottom: .5rem;
}
.step p { margin: 0; color: var(--soft); font-size: 1rem; }

.price-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.price-grid .figure { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; font-family: var(--sans); }
.price-grid p { margin: .3rem 0 0; color: var(--soft); font-size: .98rem; }

.oauth { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.oauth .btn { display: inline-flex; align-items: center; gap: .6rem; }
.oauth svg { width: 1.05rem; height: 1.05rem; }

.fineprint { color: var(--soft); font-size: .92rem; }

footer {
  border-top: 1px solid var(--line); padding: 2rem 0 3rem;
  font-family: var(--sans); font-size: .88rem; color: var(--soft);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center;
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .grow { flex: 1 1 auto; }

/* --- placeholder pages ---------------------------------------------------- */

.placeholder { padding: 4rem 0; }
.placeholder h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.placeholder ul { color: var(--soft); padding-left: 1.2rem; }
.placeholder li { margin: .45rem 0; }
.stamp {
  display: inline-block; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--soft);
  border: 1px dashed var(--line); border-radius: 6px; padding: .25rem .6rem;
  margin-bottom: 1.2rem;
}
