:root {
  --bg: #f6f4f0;
  --paper: #fffcf8;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #d6d3d1;
  --accent: #1e3a5f;
  --accent-hover: #162b47;
  --accent-2: #c2410c;
  --ok: #3f6212;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 18px;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 200;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(840px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.wrap-wide {
  width: min(980px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 0;
  width: min(980px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
}
.logo:hover { color: var(--accent); }
.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}
.logo-slot.small {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.logo-mono {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo-slot.small .logo-mono { font-size: 9px; }
.logo-wordmark {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
nav.primary a {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] { color: var(--ink); }
nav.primary a[aria-current="page"] { font-weight: 600; }

.btn {
  display: inline-block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  padding: 11px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--accent);
}
.btn.secondary:hover { background: var(--accent); color: #fff; }
.btn.small { font-size: 13px; padding: 8px 12px; }
nav.primary a.btn { color: #fff; }
nav.primary a.btn:hover { color: #fff; }

.hero { padding: 48px 0 20px; }
h1, h2, h3 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(32px, 6vw, 44px); margin: 0 0 14px; }
h2 { font-size: 26px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 20px; color: var(--muted); }
.fine {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }

section { padding: 36px 0; border-top: 1px solid var(--line); }
.page-hero { padding: 36px 0 8px; border-top: 0; }
.page-hero h1 { font-size: clamp(28px, 5vw, 38px); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 680px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 14px;
}
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card h2 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.card .price {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}
.card .tag {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 6px;
}

.card ul, .steps, .teaser, .addons, .plain-list { margin: 0 0 14px; padding: 0; }
.addons, .plain-list { padding-left: 1.15em; }
.card li, .steps li, .teaser li { margin: 0 0 8px; padding-left: 0; }
.teaser, .card ul.bare { list-style: none; }

.steps { counter-reset: step; list-style: none; }
.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.steps li h3::before {
  content: counter(step) ". ";
  counter-increment: step;
  color: var(--accent);
}

details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
details:first-of-type { border-top: 0; }
summary {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  cursor: pointer;
}
details p { margin: 8px 0 0; color: var(--muted); }

table {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  background: var(--paper);
}
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

form.audit-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
label {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 4px;
}
input, select, textarea {
  width: 100%;
  font: 16px system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 10px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}
.check input { width: auto; margin-top: 4px; }
.check label { margin: 0; font-weight: 400; }
.form-note {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
.todo-note {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #78350f;
  background: #fef3c7;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0 0;
}
.form-status {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecfccb;
  color: #3f6212;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}
.form-status[data-visible="true"] { display: block; }

.placeholder-box {
  border: 1px dashed var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 18px;
}
.placeholder-box p:last-child { margin-bottom: 0; }
.portrait-slot {
  margin: 0 0 22px;
  max-width: 240px;
}
.portrait-slot img {
  width: 240px;
  height: 240px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.portrait-slot figcaption {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

@media (min-width: 720px) {
  #founder {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
  }
  #founder .portrait-slot {
    grid-column: 1;
    grid-row: 1 / span 20;
    margin: 0;
    max-width: none;
  }
  #founder p {
    grid-column: 2;
  }
}

@media (max-width: 719px) {
  #founder .portrait-slot {
    margin: 0 auto 22px;
    text-align: center;
  }
  #founder .portrait-slot img {
    margin-inline: auto;
    width: 200px;
    height: 200px;
  }
}

.site-footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--muted);
}
.footer-inner {
  width: min(980px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 22px;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr 1.2fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  margin: 0 0 10px;
}
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 6px; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.coming-soon {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.legal h2 { font-size: 20px; margin-top: 28px; }
.legal ul { margin: 0 0 14px; padding-left: 1.15em; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 28px 0 12px; }
  section { padding: 28px 0; }
  .wrap, .wrap-wide, .header-inner, .footer-inner { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap th:nth-child(2),
.table-wrap td:nth-child(2),
.table-wrap th:nth-child(3),
.table-wrap td:nth-child(3) { width: 1%; white-space: nowrap; }
@media (max-width: 640px) {
  .table-wrap table { font-size: 13px; }
  .table-wrap th, .table-wrap td { padding: 8px 6px; }
}

.logo-slot .logo-img{width:100%;height:100%;object-fit:contain;display:block;border-radius:8px}
.logo-slot{background:none !important}
