/* Krischan Digital & Co. styles. Mobile first; tokens live in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0 0 var(--space-2); padding-left: 1.25rem; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-footer :focus-visible { outline-color: var(--on-dark); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--on-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--gutter); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Visible placeholders for facts Krischan still has to supply */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  border: 1px dashed currentColor;
  border-radius: 4px;
  padding: 0 0.3em;
  font-size: 0.95em;
}

/* Buttons. .btn-action is the only place --action appears. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-action { background: var(--action); color: #fff; }
.btn-action:hover, .btn-action:active { background: var(--action-dark); }
.btn-quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--surface); }
.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: var(--step--1); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem 0.25rem;
}
.brand { grid-area: brand; }
.header-cta { grid-area: cta; }
.site-nav { grid-area: nav; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
}
.brand svg { flex: none; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.6rem;
  min-height: 24px;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { background: var(--tint); text-decoration: underline; }

/* Sections */
.section { padding-block: var(--space-5); }
.section-tint { background: var(--tint); }
.section-white { background: var(--surface); }
.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-1);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40rem; }
.section-head { max-width: 44rem; margin-bottom: var(--space-4); }
.section-head p { color: var(--muted); }

/* Hero */
.hero { padding-block: var(--space-4) var(--space-5); }
.hero-grid { display: grid; gap: var(--space-4); align-items: center; }
.hero h1 { max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }
.hero-note { margin-top: var(--space-2); font-size: var(--step--1); color: var(--muted); }
.hero-art { justify-self: center; width: min(100%, 210px); }

/* Feature cards */
.cards { display: grid; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid; place-items: center;
  margin-bottom: 0.75rem;
}
@media (max-width: 47.99em) {
  .card { padding: 1.25rem; }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: var(--space-3) var(--space-3) var(--space-3) 4.5rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--muted); }

/* Prices */
.prices { display: grid; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card h3 { margin-bottom: 0.25rem; }
.price-tag { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-2); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin-bottom: 0.25rem; }
.price-now { font-family: var(--font-display); font-weight: 600; font-size: 2.5rem; line-height: 1; }
.price-unit { font-size: var(--step-0); color: var(--muted); }
.price-was { color: var(--muted); font-size: var(--step-0); }
.price-badge {
  align-self: flex-start;
  background: var(--navy);
  color: var(--on-dark);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: var(--space-2);
}
.price-tax { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.4rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.45em;
  width: 0.9rem; height: 0.5rem;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; align-self: flex-start; }

/* Optional add-on (AI assistant): sits under the package cards */
.addon {
  margin-top: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  display: grid;
  gap: var(--space-3);
}
.addon .price-badge { display: inline-block; }
.addon h3 { margin-bottom: 0.5rem; }
.addon-text p { color: var(--muted); }
.addon-text .ticks { margin-bottom: 0; }
.addon-price .price { margin-bottom: 0; }
.addon-price .price-now { font-size: 2rem; }
.addon-price .price-tax { margin-top: 0.5rem; }
.terms {
  margin-top: var(--space-4);
  background: var(--surface);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}
.terms h3 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; }
.terms ul { margin: 0; color: var(--muted); }
.terms li { margin-bottom: 0.3rem; }
.terms p { margin: var(--space-2) 0 0; color: var(--muted); }

/* Who it's for */
.trades { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.trades li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: var(--step--1);
  font-weight: 600;
}
.split { display: grid; gap: var(--space-4); }
.callouts { display: grid; gap: var(--space-2); }
.callout { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: var(--space-3); }
.callout h3 { margin-bottom: 0.35rem; }
.callout p { margin: 0; color: var(--muted); }

/* About */
.about { max-width: 44rem; }
.about p { font-size: var(--step-1); }
.about .small { font-size: var(--step-0); color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: var(--space-4); }
.contact-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.contact-list li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.5rem; align-items: start; margin-bottom: 0.6rem; }
.contact-list .todo { justify-self: start; }
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}
.field { margin-bottom: var(--space-2); }
.field label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.field .hint { display: block; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid #6b7280; /* 4.8:1 on white, meets 3:1 for UI */
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  min-height: 48px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.req { color: var(--muted); font-weight: 400; font-size: var(--step--1); }
.form-privacy { font-size: var(--step--1); color: var(--muted); margin: var(--space-2) 0 0; }
.hp-field { display: none; } /* honeypot: hidden from people, filled only by bots */

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding-block: var(--space-4); font-size: var(--step--1); }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; gap: var(--space-3); }
.footer-brand { color: var(--on-dark); font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: 0.25rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.footer-nav a { display: inline-block; padding: 0.35rem 0; }
.site-footer .todo { font-size: 0.9em; }
.fineprint { margin: var(--space-3) 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: var(--space-2); }

/* Simple pages (404, thanks) */
.simple { min-height: 60vh; display: grid; align-content: center; }
.simple .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }

/* Tablet */
@media (min-width: 48em) {
  :root { --gutter: 24px; }
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
  .hero-art { width: min(100%, 320px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .addon { grid-template-columns: 1.5fr 1fr; align-items: center; gap: var(--space-4); }
  .split { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

/* Desktop: nav joins the header row */
@media (min-width: 64em) {
  :root { --gutter: 32px; }
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; padding-block: 0.75rem; }
  .site-nav ul { padding: 0; flex-wrap: nowrap; justify-content: flex-end; }
  .site-nav a { white-space: nowrap; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 4.25rem var(--space-3) var(--space-3); }
  .prices { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.25fr; align-items: start; }
}
