/* Power of a Point. Plain CSS, system fonts, light and dark via variables. */

:root {
  color-scheme: light dark;
  --bg: #fcfcfa;
  --surface: #f3f5f8;
  --ink: #17202a;
  --muted: #4a5563;
  --line: #d5dae1;
  --accent: #1d4f91;
  --accent-ink: #ffffff;
  --accent-hover: #163d72;
  --todo-bg: #fff3c4;
  --todo-ink: #5a4300;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --measure: 40rem;
  --wide: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #171e27;
    --ink: #e8ecf1;
    --muted: #aab4c0;
    --line: #2b3542;
    --accent: #84b4f0;
    --accent-ink: #0b1220;
    --accent-hover: #a9cbf6;
    --todo-bg: #3a2f08;
    --todo-ink: #ffe9a0;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40em) { .wrap { padding: 0 2rem; } }

/* Headings */
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.05rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: var(--measure); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.prose { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 2.4rem; height: auto; flex: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; font-size: 1rem; }
.nav-list a { display: inline-block; padding: 0.45rem 0; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.nav-list a:hover { border-bottom-color: var(--line); color: var(--ink); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; margin-top: 1.5rem; }
.text-link { font-weight: 600; }

/* Sections */
.section { padding: 3.25rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--surface); }
@media (min-width: 48em) { .section { padding: 4.5rem 0; } }
.section-head { max-width: var(--measure); margin-bottom: 2rem; }

/* Hero */
.hero { padding: 2.5rem 0 3.25rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-figure { max-width: 26rem; width: 100%; justify-self: center; }
@media (min-width: 52em) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.page-hero { padding: 2.75rem 0 2rem; }
.page-hero h1 { max-width: 20ch; }
@media (min-width: 48em) { .page-hero { padding: 4rem 0 2.5rem; } }

/* Geometric motif */
.fig-circle { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.fig-line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.fig-dot { fill: var(--ink); }
.fig-dot-p { fill: var(--accent); }
.fig-label { fill: var(--ink); font-family: var(--serif); font-style: italic; font-size: 19px; }
.fig-caption { fill: var(--muted); font-family: var(--sans); font-size: 14px; }
.logo-circle { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.logo-line { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.logo-dot { fill: var(--accent); }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 48em) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; display: flex; flex-direction: column; }
.section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 0.75rem; margin-bottom: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 3px solid var(--accent); padding-top: 1rem; }
.steps li::before { content: "Step " counter(step); display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; }

/* Two-column text blocks */
.split { display: grid; gap: 2rem; }
@media (min-width: 52em) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.narrow-right { grid-template-columns: 1.4fr 1fr; } }

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

/* Pricing */
.price-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 1rem; }
.price-table caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; }
.price-table th, .price-table td { text-align: left; padding: 0.8rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table .detail { display: block; color: var(--muted); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; }

/* TODO markers: visible on purpose, so nothing ships by accident */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0.05em 0.35em; border-radius: 3px; font-weight: 600; font-size: 0.9em; }

/* Photo placeholder */
.photo-placeholder {
  aspect-ratio: 4 / 5;
  max-width: 20rem;
  width: 100%;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; font-weight: 400; color: var(--accent); }
details[open] > summary::after { content: "\2212"; }
details > :not(summary) { max-width: var(--measure); }
details > :last-child { margin-bottom: 1.25rem; }
.faq-group { margin-bottom: 2.5rem; }
.faq-group h2 { font-size: 1.4rem; }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; max-width: 36rem; }
@media (min-width: 40em) { .form-card { padding: 2rem; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--muted);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.form-note { background: var(--bg); border-left: 4px solid var(--accent); padding: 0.75rem 1rem; margin: 0 0 1.25rem; font-size: 1rem; }
.small { font-size: 0.95rem; color: var(--muted); }

/* Final call to action */
.cta { text-align: left; }
.cta h2 { max-width: 24ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2.5rem 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-weight: 700; font-size: 1.15rem; margin: 0 0 0.25rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.35rem; }
.footer-list a { color: var(--ink); }
.footer-title { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; }
.footer-fine { margin: 1.75rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* Testimonials scaffold (enable by uncommenting the block in index.html) */
.quote { margin: 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--accent); background: var(--bg); }
.quote p { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.5rem; }
.quote footer { color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn, a { transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease; }
}

.visually-hidden-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-more { margin-top: 1.5rem; }
