/* Storeknock site styles. Mobile first, system fonts, no external assets. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b18;
  --muted: #5d5a52;
  --line: #e2ddd2;
  --accent: #1f5f4a;
  --accent-text: #ffffff;
  --accent-soft: #e6f0eb;
  --max: 44rem;
  --wide: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --surface: #1e1c17;
    --text: #ece8de;
    --muted: #a8a294;
    --line: #34312a;
    --accent: #6fbf9a;
    --accent-text: #0f1a15;
    --accent-soft: #223129;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.wrap.wide { max-width: var(--wide); }

/* Header and navigation */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand { font-weight: 700; font-size: 1.125rem; color: var(--text); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* Layout */
main { padding: 2rem 0 3rem; }
section { padding: 1.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 1rem 0 2rem; }
.hero h1 { font-size: 2.125rem; }
.lede { font-size: 1.125rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 1rem; }
.button {
  display: inline-block; padding: 0.7rem 1.1rem; border-radius: 6px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--accent); line-height: 1.3;
}
.button.primary { background: var(--accent); color: var(--accent-text); }
.button.secondary { background: transparent; color: var(--accent); }
.button:hover { filter: brightness(1.06); text-decoration: none; }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative; margin: 0;
  padding: 1rem 1rem 1rem 3.25rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  font-weight: 700; font-size: 0.95rem; display: grid; place-items: center;
}
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin: 0; color: var(--muted); }

/* Case block and notes */
.case { background: var(--accent-soft); border-radius: 8px; padding: 1.25rem; }
.case p:last-child { margin-bottom: 0; }
.note { border-left: 3px solid var(--accent); padding: 0.75rem 1rem; background: var(--surface); border-radius: 0 8px 8px 0; }
.note p:last-child { margin-bottom: 0; }

/* Dot lists */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.5rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent);
}

/* Pricing */
.plans { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; }
.plan h3 { margin-bottom: 0.2em; }
.price { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5em; }
.price small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.plan p { color: var(--muted); margin-bottom: 0.5em; }
.plan ul { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -1rem 1rem; padding: 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); }
thead th { white-space: nowrap; border-bottom-width: 2px; }
.num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.stores td { min-width: 7rem; }
.stores td.num { min-width: 0; }
.stores .reasons { margin: 0; padding-left: 1.1rem; min-width: 16rem; }
.stores .reasons li { margin-bottom: 0.2em; }

/* FAQ, native details and summary, no JavaScript needed */
.faq details { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 0.75rem; padding: 0 1rem; }
.faq summary { cursor: pointer; padding: 0.9rem 2rem 0.9rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0.75rem;
  color: var(--muted); font-size: 1.35rem; line-height: 1; transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p:last-child { margin-bottom: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; color: var(--muted); font-size: 0.95rem; }
.site-footer p { margin: 0 0 0.4em; }
.site-footer a { color: inherit; }

/* Larger screens */
@media (min-width: 720px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.75rem; }
  main { padding-top: 3rem; }
  section { padding: 2.25rem 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .table-wrap { margin: 0 0 1rem; padding: 0; }
}

@media print {
  .site-header, .actions, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
