/*
 * Nezdoo — nezdoo.com
 *
 * The palette and type scale are the app's, copied from src/theme/tokens.ts so
 * the site and the app read as one thing. Keep them in step by hand: this file
 * is deliberately not wired into the app's build.
 */

:root {
  --coral: #f0674a;
  --coral-pressed: #d9573c;
  --coral-soft: #fdebe6;
  --navy: #16233d;
  --text-secondary: #7a7f8c;
  --text-muted: #9aa0ac;
  --bg: #fdf8f4;
  --surface: #ffffff;
  --border: rgba(22, 35, 61, 0.11);
  --divider: rgba(22, 35, 61, 0.08);
  --success: #1e9e62;
  --success-soft: #e6f5ec;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--coral);
  text-decoration: none;
}

a:hover {
  color: var(--coral-pressed);
  text-decoration: underline;
}

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

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

header.site {
  padding-block: 28px;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 34px;
  width: auto;
}

nav.site a {
  color: var(--navy);
  font-weight: 500;
  font-size: 15.5px;
  margin-left: 22px;
}

nav.site a:first-child {
  margin-left: 0;
}

nav.site a:hover {
  color: var(--coral);
  text-decoration: none;
}

main {
  padding-bottom: 72px;
}

footer.site {
  border-top: 1px solid var(--divider);
  padding-block: 32px 48px;
  color: var(--text-muted);
  font-size: 14.5px;
}

footer.site .links a {
  color: var(--text-secondary);
  margin-right: 18px;
}

footer.site .fine {
  margin-top: 14px;
}

/* ---------- home ---------- */

.hero {
  padding-block: 28px 12px;
}

.hero h1 {
  font-size: clamp(34px, 7vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
}

.hero p.lead {
  font-size: 19px;
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 34em;
}

.pill {
  display: inline-block;
  margin-bottom: 18px;
  background: var(--coral-soft);
  color: var(--coral-pressed);
  border: 1px solid rgba(240, 103, 74, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14.5px;
  font-weight: 500;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-block: 12px 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

.card li {
  margin-bottom: 6px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--coral);
  border-radius: 14px;
  padding: 20px 22px;
  margin-block: 28px;
}

.note strong {
  display: block;
  margin-bottom: 6px;
}

.note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ---------- documents ---------- */

.doc h1 {
  font-size: clamp(30px, 6vw, 40px);
  margin: 12px 0 6px;
  letter-spacing: -0.3px;
}

.doc .updated {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 22px;
  margin: 40px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc h3 {
  font-size: 18px;
  margin: 26px 0 6px;
}

.doc p,
.doc li {
  color: #38415a;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 16px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
}

th {
  font-weight: 600;
  background: var(--surface);
}

td {
  color: #38415a;
}

.table-scroll {
  overflow-x: auto;
}

/* A detail only the owner of the site can fill in. Loud on purpose: an
   unfilled one must be impossible to miss on the published page. */
.fill {
  background: #fff3cd;
  border-bottom: 2px dotted var(--coral);
  padding: 0 4px;
  font-weight: 500;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 26px 0;
}

.contact-box p {
  margin: 0 0 6px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.steps li {
  position: relative;
  padding-left: 46px;
  margin-bottom: 18px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-pressed);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 16.5px;
}

.button:hover {
  background: #0f1930;
  color: #fff;
  text-decoration: none;
}
