:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --warn: #b45309;
  --max: 68rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

/* header */
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  z-index: 20;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent-dark); }
.site-head nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-head nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
}
.site-head nav a:hover { color: var(--accent-dark); }

/* hero */
.hero { padding: 3.5rem 0 2.5rem; }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 44rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 0.75rem;
}

.btn {
  display: inline-block;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--accent-dark); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

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

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  background: var(--bg);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* operating record */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin: 1.5rem 0 0.5rem;
}
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem;
}
.stat b {
  display: block;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat span { font-size: 0.88rem; color: var(--ink-soft); }

.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border-left: 3px solid var(--line);
  padding: 0.85rem 1rem;
  border-radius: 0 6px 6px 0;
}

/* price */
.price-card {
  border: 2px solid var(--accent-dark);
  border-radius: 12px;
  padding: 1.75rem;
  max-width: 34rem;
}
.price {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }

ul.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
ul.ticks li { padding: 0 0 0 1.6rem; position: relative; margin-bottom: 0.6rem; }
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

/* form */
form.contact { max-width: 34rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-size: 0.98rem;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.87rem; color: var(--ink-soft); }
#form-status { margin-top: 0.9rem; font-weight: 600; min-height: 1.4em; }
#form-status.ok { color: var(--accent-dark); }
#form-status.err { color: var(--warn); }

/* prose pages */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose li { margin-bottom: 0.45rem; }

table.plainlist {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.plainlist th, table.plainlist td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.plainlist th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.tablewrap { overflow-x: auto; }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
footer a { color: var(--ink-soft); }

@media (max-width: 40rem) {
  .hero { padding: 2.5rem 0 1.75rem; }
  section { padding: 2rem 0; }

  /* At 390px the four nav links wrap to a second line, and because the header
     is sticky that cost ~110px of viewport on every scroll. Tighten the links
     so they fit one line, and stop pinning the header on small screens. */
  .site-head { position: static; }
  .site-head .wrap { min-height: 56px; gap: 0.5rem; }
  .site-head nav { gap: 0.85rem; }
  .site-head nav a { font-size: 0.85rem; }
}
