/* Brave & Gentle Publishing — neo-brutalist styles (Bruddle tokens) */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fredoka-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto Flex";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/roboto-flex-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/roboto-flex-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #faf4f0;
  --surface: #ffffff;
  --ink: #000000;
  --ink-soft: #2a2d33;
  --ink-faint: #5f646d;
  --violet: #ae7aff;
  --violet-deep: #5b21c9;
  --violet-soft: #efe4ff;
  --salmon: #e99898;
  --salmon-soft: #faeaea;
  --salmon-deep: #b03a3a;
  --green: #98e9ab;
  --green-soft: #eafaee;
  --yellow: #fae8a4;
  --yellow-soft: #fefaec;
  --gray-soft: #e7e7e9;

  --radius: 10px;
  --pill: 100px;
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --shadow-xl: 10px 10px 0 var(--ink);

  --font-display: "Fredoka", "Roboto Flex", system-ui, sans-serif;
  --font-body: "Roboto Flex", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 6vw, 120px);
  --section-y: clamp(64px, 9vw, 112px);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--violet-deep); }
:focus-visible { outline: 3px solid var(--violet-deep); outline-offset: 3px; }

h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); border-bottom: 1px solid var(--ink); }
.section--white { background: var(--surface); }
.section--violet { background: var(--violet-soft); }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.h1 { font-size: clamp(48px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.015em; }
.h2 { font-size: clamp(38px, 5vw, 64px); }
.h3 { font-family: var(--font-body); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }

.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-soft); }
.body { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--pill);
}
.tag--yellow { background: var(--yellow); }
.tag--green { background: var(--green-soft); }
.tag--violet { background: var(--violet-soft); }
.tag--salmon { background: var(--salmon-soft); }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn--primary { background: var(--violet); }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 16px; box-shadow: var(--shadow-sm); }
.btn--sm:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--sm:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--lg { min-height: 56px; padding: 18px 32px; font-size: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--ink);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding-block: 14px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--pill);
}
.nav__link:hover { background: var(--violet-soft); color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(56px, 8vw, 112px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__copy .lede { max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.hero__art { display: flex; justify-content: center; }
.logo-card {
  width: 100%;
  max-width: 460px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 12px 12px 0 var(--violet), 12px 12px 0 1px var(--ink);
}
.logo-card img { width: 100%; height: auto; }

/* ---------- Cards ---------- */

.card {
  padding: clamp(28px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.card--violet { background: var(--violet-soft); }
.card--green { background: var(--green-soft); }
.card--yellow { background: var(--yellow-soft); }

.icon-box {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}
.icon-box svg { width: 32px; height: 32px; }
.icon-box--violet { background: var(--violet); }
.icon-box--green { background: var(--green); }
.icon-box--yellow { background: var(--yellow); }
.icon-box--salmon { background: var(--salmon); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.service { display: flex; flex-direction: column; gap: 20px; }
.service__text { display: flex; flex-direction: column; gap: 12px; }
.service p { font-size: 18px; color: var(--ink-soft); }

.service--optional {
  margin-top: 32px;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  border-style: dashed;
}
.service__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.service--optional p { max-width: 880px; }

/* ---------- Who ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.stack { display: flex; flex-direction: column; gap: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.chip {
  padding: 16px 26px;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.chip--violet { background: var(--violet-soft); }
.chip--yellow { background: var(--yellow); }
.chip--green { background: var(--green); }
.chip--salmon { background: var(--salmon-soft); }

/* ---------- Pricing ---------- */

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 72px);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}
.band__copy { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.band .btn { flex-shrink: 0; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step--done { background: var(--green); }
.step__num {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  background: var(--violet);
  border: 1px solid var(--ink);
  border-radius: var(--pill);
}
.step--done .step__num { background: var(--surface); }
.step h3 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.step p { font-size: 17px; color: var(--ink-soft); }
.step--done p { color: var(--ink); }

/* ---------- Contact ---------- */

.contact .split { align-items: start; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.email-card {
  margin-top: 8px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.email-card span { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.email-card a { font-size: 20px; font-weight: 700; word-break: break-word; }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}
.form { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { font-size: 16px; font-weight: 700; line-height: 1.3; }
.label .optional { font-weight: 400; color: var(--ink-faint); }
.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
}
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.textarea { min-height: 160px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--violet); outline-offset: 2px; }

.fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 12px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 17px;
  line-height: 1.3;
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.check input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--violet-deep); }
.check:has(input:checked) { background: var(--violet-soft); }
.check--wide { grid-column: 1 / -1; }

.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.form__error {
  padding: 14px 18px;
  font-size: 16px;
  background: var(--salmon-soft);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}
.form__error a { font-weight: 700; }

.thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 24px; }
.thanks__mark {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  border: 1px solid var(--ink);
  border-radius: var(--pill);
}
.thanks__mark svg { width: 36px; height: 36px; }
.thanks h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4vw, 40px); line-height: 1.05; }

[hidden] { display: none !important; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #ffffff; padding-top: clamp(48px, 6vw, 64px); padding-bottom: 32px; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--violet); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.footer__logo { width: 160px; }
.footer__info { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.footer__email { font-size: 17px; font-weight: 700; }
.footer__small { font-size: 15px; color: var(--gray-soft); }
.footer__legal { font-size: 14px; color: var(--gray-soft); font-style: italic; max-width: 560px; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-faint);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
}

/* ---------- Simple pages (privacy, thank you, 404) ---------- */

.page { padding-block: clamp(56px, 8vw, 104px); }
.page .wrap { max-width: calc(820px + var(--gutter) * 2); }
.page__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; margin-top: 16px; }
.prose p, .prose li { font-size: 18px; color: var(--ink-soft); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Tablet (≤ 1023px) ---------- */

@media (max-width: 1023px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; }
  .logo-card { max-width: 300px; padding: 28px; box-shadow: 10px 10px 0 var(--violet), 10px 10px 0 1px var(--ink); }

  .services { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service { flex-direction: row; align-items: flex-start; gap: 24px; }
  .service--optional { margin-top: 24px; }

  .split,
  .contact .split { grid-template-columns: minmax(0, 1fr); }

  .band { flex-direction: column; align-items: flex-start; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone (≤ 639px) ---------- */

@media (max-width: 639px) {
  body { font-size: 17px; }

  .site-header .wrap { min-height: 68px; padding-block: 12px; }
  .nav__link--secondary { display: none; }

  .wordmark { font-size: 18px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero__art { justify-content: flex-start; }
  .hero__actions .btn { width: 100%; }
  .logo-card { max-width: 300px; margin-left: 4px; box-shadow: 8px 8px 0 var(--violet), 8px 8px 0 1px var(--ink); }

  .service,
  .service--optional { flex-direction: column; gap: 18px; }
  .card { box-shadow: var(--shadow); }

  .chips { gap: 12px; }
  .chip { padding: 12px 20px; }

  .band { box-shadow: var(--shadow-lg); }
  .band .btn { width: 100%; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .step { padding: 24px; flex-direction: row; align-items: flex-start; gap: 18px; }
  .step__num { flex-shrink: 0; width: 48px; height: 48px; font-size: 22px; }
  .step__text { display: flex; flex-direction: column; gap: 6px; }

  .form__row, .checks { grid-template-columns: minmax(0, 1fr); }
  .check--wide { grid-column: auto; }
  .form__actions .btn { width: 100%; }
  .form-card { box-shadow: var(--shadow-lg); }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__info { align-items: flex-start; text-align: left; }
  .footer__logo { width: 130px; }
}

@media (min-width: 640px) {
  .step__text { display: flex; flex-direction: column; gap: 18px; }
}
