/*
 * One stylesheet, no build step — the same choice as the Sendwire site. Every
 * colour goes through a variable so a theme is a matter of redefining the
 * palette rather than auditing the file. The palette itself is Sendwire's light
 * theme: warm paper rather than cool IDE-grey, so the two products read as one
 * family.
 */
:root {
  --bg: #f4f1eb;
  --panel: #fdfcfa;
  --elevated: #fbf9f5;
  --sunken: #eae5db;
  --raised: #f0ece3;
  --border: #e5ddcf;
  --border-strong: #d6ccba;
  --text: #22252b;
  --text-soft: #45474d;
  --dim: #6b6459;
  --faint: #736b5d;
  --accent: #1f6feb;
  --green: #1a7f37;
  --cyan: #1b7c83;
  --ink: #191713;
  --ink-on: #f4f1eb;
  --ink-soft: #cbc4b6;
  --shadow: rgba(74, 62, 42, 0.15);
  --radius: 6px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --panel: #14171d;
    --elevated: #1a1e26;
    --sunken: #101318;
    --raised: #232935;
    --border: #242933;
    --border-strong: #3b4352;
    --text: #e6e9ef;
    --text-soft: #c3c9d6;
    --dim: #8a92a3;
    --faint: #7c8494;
    --accent: #4a8cf7;
    --green: #3fb950;
    --cyan: #39c5cf;
    --ink: #05070a;
    --ink-on: #e6e9ef;
    --ink-soft: #8a92a3;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

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

body {
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
code { font-family: var(--mono); font-size: 0.88em; }
svg { display: block; }

.display { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; color: var(--text); }

/* --------------------------------------------------------------- controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 17px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--raised); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--ink-on); }
.btn.dark:hover { filter: brightness(1.25); background: var(--ink); }
.btn.light { background: var(--ink-on); border-color: var(--ink-on); color: var(--ink); }
.btn.lg { height: 46px; padding: 0 24px; font-size: 15px; }

/* -------------------------------------------------------------------- nav */

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; font-size: 13.5px; }
.nav nav a { color: var(--dim); }
.nav .btn { margin-left: auto; }

@media (max-width: 640px) { .nav nav { display: none; } }

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

.hero {
  padding: clamp(48px, 8vw, 76px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
}
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 15ch;
  text-wrap: balance;
}
.lede { font-size: clamp(1rem, 2.2vw, 1.05rem); max-width: 62ch; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.fine { font-size: 12.5px; color: var(--faint); }

/* ------------------------------------------------------------------ proof */

.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.proof article {
  background: var(--bg);
  padding: clamp(24px, 4vw, 34px) clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.proof svg { width: 19px; height: 19px; }
.proof #search svg { color: var(--cyan); }
.proof #import svg { color: var(--accent); }
.proof #files svg { color: var(--green); }
.proof h2 { font-size: 15px; font-weight: 650; color: var(--text); }
.proof p { font-size: 14px; color: var(--dim); }

/* ---------------------------------------------------------------- pricing */

.pricing { padding: clamp(48px, 7vw, 68px) clamp(20px, 5vw, 64px) 0; text-align: center; }
.pricing h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.pricing .sub { margin: 10px auto 0; max-width: 58ch; color: var(--dim); }

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 34px 0 clamp(48px, 6vw, 60px);
  text-align: left;
  align-items: start;
}
.tier {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  position: relative;
}
.tier.featured { border: 1.5px solid var(--ink); box-shadow: 0 6px 22px var(--shadow); }
.tier.quiet { background: var(--raised); border-color: var(--border-strong); }
.badge {
  position: absolute;
  top: -10px;
  left: 22px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--ink-on);
  background: var(--ink);
  border-radius: 10px;
  padding: 3px 10px;
}
.tier h3 { font-size: 13px; font-weight: 650; color: var(--text); }
.tier .for { font-size: 12.5px; color: var(--faint); margin-top: -10px; }
.price { font-family: var(--display); font-size: 40px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.price small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--dim); margin-left: 6px; }
.cap { font-size: 12.5px; color: var(--dim); background: var(--sunken); border-radius: var(--radius); padding: 7px 11px; }
.cap b { font-family: var(--mono); font-size: 13px; color: var(--text); }

.tier ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.tier li { position: relative; padding-left: 22px; color: var(--text-soft); line-height: 1.5; }
.tier li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.tier li.no { color: var(--faint); }
.tier li.no::before {
  border: none;
  left: 4px;
  top: 3px;
  width: 9px;
  height: 9px;
  background:
    linear-gradient(to bottom right, transparent 44%, var(--border-strong) 44%, var(--border-strong) 56%, transparent 56%),
    linear-gradient(to bottom left, transparent 44%, var(--border-strong) 44%, var(--border-strong) 56%, transparent 56%);
  transform: none;
}
.tier .btn { margin-top: auto; }

/* ---------------------------------------------------------------- honesty */

.honesty {
  margin: 0 clamp(20px, 5vw, 64px) clamp(48px, 6vw, 64px);
  padding: clamp(24px, 4vw, 32px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 40px);
}
.honesty h2 { font-size: 1.35rem; margin-bottom: 10px; }
.honesty p { font-size: 14px; margin-bottom: 10px; }
.honesty b { color: var(--text); }
.assurances { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.assurances li { font-size: 13.5px; color: var(--dim); line-height: 1.55; padding-left: 26px; position: relative; }
.assurances li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.assurances b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 2px; }

/* ------------------------------------------------------------------ close */

.close {
  background: var(--ink);
  color: var(--ink-soft);
  padding: clamp(44px, 6vw, 56px) clamp(20px, 5vw, 64px) clamp(52px, 7vw, 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.close h2 { color: var(--ink-on); font-size: clamp(1.5rem, 4vw, 2.1rem); max-width: 22ch; line-height: 1.2; }
.close p { max-width: 52ch; font-size: 14.5px; }
.close .btn { margin-top: 6px; }

footer {
  padding: 24px clamp(20px, 5vw, 64px) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--faint);
  border-top: 1px solid var(--border);
}
footer a { color: var(--faint); }
