/* Sitebound: site styles, built on base.css */

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

:root {
  /* Brand palette, taken from Sitebound's own colours */
  --primary:      #1F4A3A;
  --primary-mid:  #2D6650;
  --primary-dark: #153528;
  --accent:       #C4A35A;
  --accent-mid:   #DCC48E;
  --mint:         #D3E6DC;

  /* Neutrals */
  --bg:         #F2EEE6;
  --surface:    #FBF9F4;
  --border:     #D8D1C3;
  --text:       #151A16;
  --text-soft:  #3F4842;
  --text-muted: #565E58;
  --ink:        #151A16;
  --on-dark:    #F2EEE6;
  --on-dark-soft: #D4CEC2;

  /* Typography */
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --container:   1200px;
  --radius:      12px;
  --radius-lg:   24px;

  /* base.css hooks */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-muted: var(--text-muted);
  --color-accent: var(--primary);
  --color-accent-text: #F2EEE6;
  --color-line: var(--border);
  --focus: #7A5212;

  /* The layout grid that runs through the site */
  --cols: 4;
  --grid-line: rgba(31, 74, 58, 0.12);
  --grid-fill: rgba(31, 74, 58, 0.025);
}
@media (min-width: 768px)  { :root { --cols: 8; } }
@media (min-width: 1024px) { :root { --cols: 12; } }

/* ---------- Base type ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem); }
h3 { font-size: var(--step-2); }
p + p { margin-top: 1em; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--text-soft); }

/* Emails only break at the @ */
.email-link, a.email-link[href^="mailto:"] {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.section { padding-block: var(--section-pad); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.8em 1.6em;
  background: var(--primary);
  color: #F2EEE6;
  transition: background-color 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--primary-dark); color: #F2EEE6; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 999px; }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #F2EEE6; }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: var(--accent-mid); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #F2EEE6; /* fully opaque */
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-icon { width: 2rem; height: auto; flex: none; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.nav-toggle:hover { background: var(--ink); color: #F2EEE6; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel (its visibility is set at the end of this file) */
.nav-links {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: #F2EEE6;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 20px rgba(21, 26, 22, 0.08);
}
.nav-links a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 800; }
.nav-links a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.6rem;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: 0.1em;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(0.25rem, 1.2vw, 1rem);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-links a {
    position: relative;
    padding: 0.5rem 0.4rem;
    border: 0;
    font-size: 0.98rem;
  }
  .nav-links a[aria-current="page"]::before { display: none; }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
  }
  .nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-links a[aria-current="page"]::after { height: 3px; background: var(--accent); }
}

/* ---------- Layout grid lines (signature) ---------- */
.gridlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.gridlines .cols {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
}
.gridlines span {
  border-inline: 1px solid var(--grid-line);
  background: var(--grid-fill);
  transform-origin: top;
}
.gridlines span:nth-child(n+5) { display: none; }
@media (min-width: 768px) {
  .gridlines span:nth-child(n+5) { display: block; }
  .gridlines span:nth-child(n+9) { display: none; }
}
@media (min-width: 1024px) {
  .gridlines span:nth-child(n+9) { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero-layout {
  position: relative;
  z-index: 1;
  align-items: center;
  row-gap: 2.5rem;
}
.hero-copy { grid-column: 1 / -1; }
.slot { position: relative; }
.slot + .slot { margin-top: 1.4rem; }
.hero h1 { max-width: 16ch; }
.hero-lead { font-size: var(--step-1); line-height: 1.6; color: var(--text-soft); max-width: 36em; }
.hero-actions { display: grid; gap: 0.75rem; }
.hero-actions .btn { text-align: center; }
@media (min-width: 520px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
}
.hero-lead, .page-intro { text-wrap: pretty; }
.slot.hero-actions-slot { margin-top: 2rem; }
.hero-mock { display: none; }

@media (min-width: 1024px) {
  .hero-copy { grid-column: 1 / span 7; }
  .hero-mock { display: block; grid-column: 8 / -1; }
}

/* Browser window, echoing the Sitebound logo */
.browser {
  background: #FFFDF8;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(31, 74, 58, 0.14);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid var(--ink);
  background: #FFFDF8;
}
.browser-bar i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  flex: none;
}
.browser-url {
  flex: 1;
  min-width: 0;
  margin-left: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #EFEAE0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .tilt-left { transform: rotate(-2deg); }
  .tilt-right { transform: rotate(1.5deg); }
}

/* Hero mock page */
.mock-page { padding: 1.1rem 1.25rem 1.4rem; display: grid; gap: 0.9rem; }
.mk { position: relative; }
.mk-nav { display: flex; align-items: center; gap: 0.5rem; }
.mk-nav b { display: block; height: 0.45rem; width: 2.2rem; border-radius: 4px; background: #D9D3C6; }
.mk-nav b.mk-logo { width: 4.5rem; height: 0.8rem; background: var(--ink); margin-right: auto; }
.mk-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
  max-width: 14ch;
}
.mk-lines { display: grid; gap: 0.4rem; }
.mk-lines b { display: block; height: 0.5rem; border-radius: 4px; background: #DDD7CB; }
.mk-lines b:last-child { width: 70%; }
.mk-btn {
  justify-self: start;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--primary);
  color: #F2EEE6;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
}
.mk-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.6rem; margin-top: 0.3rem; }
.mk-tile { height: 5.5rem; border-radius: 8px; }
.mk-tile.t1 { background: repeating-linear-gradient(135deg, var(--primary) 0 10px, var(--primary-mid) 10px 20px); }
.mk-tile.t2 { background: var(--mint); }
.mk-tile.t3 { background: radial-gradient(circle at 70% 30%, var(--accent-mid) 0 30%, transparent 31%), #EFE4CC; }

/* ---------- Entrance: wireframe becoming a finished page ---------- */
@keyframes draw-col { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wire-box { 0% { opacity: 0; } 20% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; } }
@keyframes snap-in {
  0%   { opacity: 0; transform: translateX(-18px); }
  65%  { opacity: 1; transform: translateX(3px); }
  100% { opacity: 1; transform: none; }
}
@keyframes mock-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes unwire { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .gridlines span {
    animation: draw-col 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 0.04s);
  }
  .hero .slot::before {
    content: "";
    position: absolute;
    inset: -0.4rem -0.6rem;
    border: 1.5px dashed var(--primary-mid);
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    animation: wire-box 1.2s ease both;
  }
  .hero .slot-1::before { animation-delay: 0.1s; }
  .hero .slot-2::before { animation-delay: 0.3s; }
  .hero .slot-3::before { animation-delay: 0.5s; }
  .hero .slot > * { animation: snap-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero .slot-1 > * { animation-delay: 0.35s; }
  .hero .slot-2 > * { animation-delay: 0.6s; }
  .hero .slot-3 > * { animation-delay: 0.85s; }
  .hero-mock { animation: mock-in 0.5s ease 0.3s both; }
  .hero .mk::after {
    content: "";
    position: absolute;
    inset: -3px;
    background: #FFFDF8;
    border: 1.5px dashed rgba(31, 74, 58, 0.55);
    border-radius: 6px;
    animation: unwire 0.45s ease both;
    animation-delay: var(--d, 1.2s);
  }
}

/* ---------- Trust facts strip ---------- */
.facts { position: relative; isolation: isolate; overflow: hidden; }
.facts > .facts-inner { position: relative; z-index: 1; }
.facts .gridlines span { border-inline-color: rgba(242, 238, 230, 0.1); background: rgba(242, 238, 230, 0.02); }
.facts {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
}
.facts-list { display: grid; gap: 0; }
.fact {
  position: relative;
  padding: 1.4rem 0;
  display: grid;
  gap: 0.4rem;
}
.fact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
}
.fact-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.15;
  color: var(--on-dark);
  text-wrap: balance;
}
.fact-note { color: var(--on-dark-soft); font-size: 1.05rem; line-height: 1.6; max-width: 26ch; }
@media (min-width: 768px) {
  .facts-list { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
}
@media (min-width: 1024px) {
  .facts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { padding: 0.5rem 0 0.5rem 1.25rem; align-content: start; }
  .fact::before { width: 1px; height: 100%; transform-origin: top; }
  .fact-big { font-size: clamp(1.9rem, 0.9rem + 1.7vw, 2.6rem); }
}

/* Lines that draw when they come into view (decoration only; text is always visible) */
.io-ready .draw-x::before { transform: scaleX(0); transition: transform 0.4s ease; }
.io-ready .draw-y::before { transform: scaleY(0); transition: transform 0.4s ease; }
.io-ready .draw-x.drawn::before { transform: scaleX(1); }
.io-ready .draw-y.drawn::before { transform: scaleY(1); }
@media (min-width: 1024px) {
  .io-ready .fact.draw-x::before { transform: scaleY(0); }
  .io-ready .fact.draw-x.drawn::before { transform: scaleY(1); }
}

/* ---------- Home: sketch section ---------- */
.sketch-layout { row-gap: 2.5rem; align-items: center; }
.sketch-figure { grid-column: 1 / -1; width: 100%; max-width: 26rem; padding: 1.1rem; }
.sketch-copy { grid-column: 1 / -1; }
.sketch-copy h2 { margin-bottom: 1.25rem; }
.sketch-copy p { color: var(--text-soft); }
@media (min-width: 768px) {
  .sketch-figure { grid-column: 1 / span 4; max-width: none; }
  .sketch-copy { grid-column: 5 / -1; }
}
@media (min-width: 1024px) {
  .sketch-figure { grid-column: 1 / span 5; }
  .sketch-copy { grid-column: 7 / -1; }
}

/* Crop marks, like a layout sheet */
.crop { position: relative; padding: 0.85rem; }
.crop::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  --m: var(--primary);
  background:
    linear-gradient(var(--m), var(--m)) top left / 1.1rem 2px no-repeat,
    linear-gradient(var(--m), var(--m)) top left / 2px 1.1rem no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 1.1rem 2px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 2px 1.1rem no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 1.1rem 2px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 2px 1.1rem no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 1.1rem 2px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 2px 1.1rem no-repeat;
}
.sketch-browser { box-shadow: 8px 8px 0 rgba(31, 74, 58, 0.14); }
.sketch-browser .mock-page { padding: 1.1rem 1.1rem 1.3rem; }
.sketch-browser .mk-title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.sketch-browser .mk-tile { height: clamp(4.5rem, 12vw, 6.5rem); }

/* ---------- Home: page index ---------- */
.index-layout { row-gap: 2rem; }
.index-head { grid-column: 1 / -1; }
.index-head p { margin-top: 1rem; color: var(--text-soft); }
.index-list { grid-column: 1 / -1; border-top: 2px solid var(--ink); }
@media (min-width: 1024px) {
  .index-head { grid-column: 1 / span 4; }
  .index-list { grid-column: 6 / -1; }
}
.index-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: start;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.2s, padding 0.2s;
}
.index-list a:hover { background: var(--mint); padding-inline: 1rem; color: var(--text); }
.index-icon { width: 1.75rem; margin-top: 0.35rem; color: var(--primary); }
.index-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.2; }
.index-desc { grid-column: 2; color: var(--text-soft); margin-top: 0.25rem; }

/* ---------- Call to action band ---------- */
.cta-band { background: var(--mint); }
.cta-layout { row-gap: 1.75rem; align-items: end; }
.cta-copy { grid-column: 1 / -1; }
.cta-copy h2 { margin-bottom: 1rem; }
.cta-copy p { color: var(--text-soft); }
.cta-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 1024px) {
  .cta-copy { grid-column: 1 / span 7; }
  .cta-actions { grid-column: 9 / -1; justify-content: flex-end; }
}

/* ---------- Inner page header ---------- */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.page-head-inner { position: relative; z-index: 1; }
.page-head h1 { max-width: 18ch; }
.page-intro { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.6; color: var(--text-soft); max-width: 40em; }

/* ---------- Services ---------- */
.spec-row { row-gap: 1.25rem; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--border); }
.spec-row:first-child { border-top: 0; padding-top: 0; }
.spec-title { grid-column: 1 / -1; position: relative; padding-top: 1.1rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.spec-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.spec-body { grid-column: 1 / -1; }
.spec-body > p { color: var(--text-soft); }
@media (min-width: 768px) {
  .spec-title { grid-column: 1 / span 3; }
  .spec-body { grid-column: 4 / -1; }
}
@media (min-width: 1024px) {
  .spec-title { grid-column: 1 / span 4; }
  .spec-body { grid-column: 6 / -1; }
}

/* Homepage anatomy diagram */
.anatomy { margin-top: 2rem; max-width: 34rem; }
.anatomy-page { padding: 1rem; display: grid; gap: 0.6rem; }
.anatomy-block {
  border: 1.5px dashed rgba(31, 74, 58, 0.5);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--primary-dark);
  background: rgba(211, 230, 220, 0.45);
}
.anatomy-block.solid { background: var(--primary); color: #F2EEE6; border: 0; }
.anatomy-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.anatomy figcaption { margin-top: 0.85rem; font-size: 0.95rem; color: var(--text-muted); }

/* Plan terms table */
.terms { margin-top: 1.75rem; border-top: 2px solid var(--ink); }
.terms-row { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.terms dt { font-family: var(--font-display); font-weight: 600; color: var(--text-muted); font-size: 1rem; }
.terms dd { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.25; color: var(--text); margin-top: 0.2rem; }
@media (min-width: 768px) {
  .terms-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gutter); align-items: baseline; }
  .terms dd { margin-top: 0; }
}

/* ---------- Portfolio ---------- */
.examples { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.example { row-gap: 1.75rem; align-items: center; }
.example-figure { grid-column: 1 / -1; }
.example-copy { grid-column: 1 / -1; }
.example-copy h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 0.9rem; }
.example-copy p { color: var(--text-soft); }
.example-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}
.example-label::before { content: ""; width: 0.75rem; height: 0.75rem; border: 2px solid currentColor; border-radius: 3px; }
@media (min-width: 768px) {
  .example-figure { grid-column: 1 / span 5; }
  .example-copy { grid-column: 6 / -1; }
  .example:nth-child(even) .example-figure { grid-column: 4 / -1; grid-row: 1; }
  .example:nth-child(even) .example-copy { grid-column: 1 / span 3; grid-row: 1; }
}
@media (min-width: 1024px) {
  .example-figure { grid-column: 1 / span 7; }
  .example-copy { grid-column: 9 / -1; }
  .example:nth-child(even) .example-figure { grid-column: 6 / -1; }
  .example:nth-child(even) .example-copy { grid-column: 1 / span 4; }
}

/* Mini sites inside the example browsers */
.mini { min-height: 15rem; padding: 1rem; display: grid; gap: 0.7rem; align-content: start; font-family: var(--font-display); }
@media (min-width: 768px) { .mini { min-height: 19rem; padding: 1.4rem; } }
.mini b { display: block; border-radius: 4px; }
.mini-nav { display: flex; gap: 0.45rem; align-items: center; }
.mini-nav b { height: 0.4rem; width: 1.8rem; }
.mini-nav b:first-child { width: 4rem; height: 0.7rem; margin-right: auto; }
.mini-h { font-weight: 800; font-size: 1.25rem; line-height: 1.2; max-width: 15ch; }
.mini-pill { justify-self: start; padding: 0.35rem 0.85rem; border-radius: 999px; font-weight: 700; font-size: 0.72rem; }
.mini-lines { display: grid; gap: 0.35rem; }
.mini-lines b { height: 0.45rem; }
.mini-lines b:nth-child(2) { width: 85%; }
.mini-lines b:nth-child(3) { width: 60%; }

/* Joiner */
.mini-joiner { background: #F7F3EC; }
.mini-joiner .mini-nav b { background: #3A2E22; }
.mini-joiner .mini-nav b + b { background: #C9BBA6; }
.mini-joiner .wood {
  position: relative;
  height: 9rem;
  border-radius: 6px;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,0.06) 0 3px, transparent 3px 14px),
    repeating-linear-gradient(90deg, #8A6440 0 38px, #7A5634 38px 40px, #94704B 40px 82px, #6F4E2F 82px 84px);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.mini-joiner .wood-panel { background: #2A2219; color: #F7F3EC; padding: 0.6rem 0.8rem; border-radius: 4px; display: grid; gap: 0.45rem; }
.mini-joiner .mini-h { color: #F7F3EC; font-size: 1.1rem; }
.mini-joiner .mini-pill { background: #D7B46A; color: #2A2219; }
.mini-joiner .mini-lines b { background: #D9CFBF; }

/* Café */
.mini-cafe { background: #F6E6D2; grid-template-columns: 1fr auto; }
.mini-cafe .mini-nav { grid-column: 1 / -1; }
.mini-cafe .mini-nav b { background: #7A2E2A; }
.mini-cafe .mini-nav b + b { background: #D9B99A; }
.mini-cafe .mini-h { color: #7A2E2A; font-family: var(--font-body); font-weight: 600; font-size: 1.4rem; }
.mini-cafe .cup { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: radial-gradient(circle, #5B3424 0 38%, #F3E3CF 39% 47%, #E3C9AB 48% 100%); grid-row: 2 / span 2; grid-column: 2; }
.mini-cafe .menu { grid-column: 1 / -1; display: grid; gap: 0.45rem; margin-top: 0.3rem; }
.mini-cafe .menu-row { display: flex; align-items: center; gap: 0.4rem; }
.mini-cafe .menu-row b { height: 0.45rem; background: #7A2E2A; width: 4.5rem; }
.mini-cafe .menu-row i { flex: 1; border-bottom: 2px dotted #B98E73; }
.mini-cafe .menu-row b:last-child { width: 1.6rem; background: #B98E73; }

/* Accountant */
.mini-accounts { background: #FFFFFF; grid-template-columns: 1fr 1.5fr; column-gap: 1rem; }
.mini-accounts .mini-nav { grid-column: 1 / -1; padding-bottom: 0.5rem; border-bottom: 2px solid #1D2B4A; }
.mini-accounts .mini-nav b { background: #1D2B4A; }
.mini-accounts .mini-nav b + b { background: #B7C0D3; }
.mini-accounts .mini-h { color: #1D2B4A; font-size: 1.15rem; grid-column: 1 / -1; max-width: 22ch; }
.mini-accounts .side { display: grid; gap: 0.45rem; align-content: start; }
.mini-accounts .side b { height: 1.4rem; background: #EEF1F7; border-left: 3px solid #1D2B4A; }
.mini-accounts .table { display: grid; gap: 0; border: 1px solid #C9D0DE; border-radius: 4px; overflow: hidden; align-content: start; }
.mini-accounts .table span { display: flex; justify-content: space-between; padding: 0.45rem 0.6rem; border-bottom: 1px solid #DCE1EA; }
.mini-accounts .table span:last-child { border-bottom: 0; }
.mini-accounts .table b { height: 0.4rem; width: 45%; background: #B7C0D3; }
.mini-accounts .table b + b { width: 18%; background: #1D2B4A; }
.mini-accounts .mini-pill { background: #1D2B4A; color: #FFFFFF; grid-column: 1 / -1; }

/* Dog groomer */
.mini-groom { background: #E7F0F5; position: relative; overflow: hidden; }
.mini-groom::before { content: ""; position: absolute; width: 11rem; height: 11rem; right: -3rem; top: 2.5rem; border-radius: 50%; background: #F5C9D2; }
.mini-groom::after { content: ""; position: absolute; width: 6rem; height: 6rem; right: 4.5rem; bottom: -2rem; border-radius: 50%; background: #9FD3CB; }
.mini-groom > * { position: relative; z-index: 1; }
.mini-groom .mini-nav b { background: #2E4A5C; }
.mini-groom .mini-nav b + b { background: #A9C2D0; }
.mini-groom .mini-h { color: #2E4A5C; font-size: 1.35rem; max-width: 11ch; }
.mini-groom .pills { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.mini-groom .mini-pill { background: #2E4A5C; color: #FFFFFF; }
.mini-groom .mini-pill.alt { background: #FFFFFF; color: #2E4A5C; }
.mini-groom .mini-lines { max-width: 60%; }
.mini-groom .mini-lines b { background: #B9CEDA; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 0; counter-reset: none; }
.step {
  position: relative;
  padding: 0 0 2.25rem 3.5rem;
}
.step::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.6rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--accent);
  transform-origin: top;
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #F2EEE6;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}
.step h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); margin-bottom: 0.6rem; padding-top: 0.1rem; }
.step p { color: var(--text-soft); max-width: 34ch; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
  .step { padding: 3.5rem 1rem 0 0; }
  .step::before { left: 2.25rem; right: 0; top: 1.1rem; bottom: auto; width: auto; height: 2px; transform-origin: left; }
  .step:last-child::before { display: block; right: 1rem; }
}
.io-ready .step.draw-y::before { transform: scaleY(0); }
.io-ready .step.draw-y.drawn::before { transform: scaleY(1); }
@media (min-width: 1024px) {
  .io-ready .step.draw-y::before { transform: scaleX(0); }
  .io-ready .step.draw-y.drawn::before { transform: scaleX(1); }
}

.faq-layout { row-gap: 2rem; }
.faq-head { grid-column: 1 / -1; }
.faq-head p { margin-top: 1rem; color: var(--text-soft); }
.qa { grid-column: 1 / -1; border-top: 2px solid var(--ink); }
.qa-row { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.qa dt { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.35; }
.qa dd { margin-top: 0.5rem; color: var(--text-soft); }
@media (min-width: 768px) {
  .qa-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--gutter); }
  .qa dd { margin-top: 0; }
}
@media (min-width: 1024px) {
  .faq-head { grid-column: 1 / span 4; }
  .qa { grid-column: 5 / -1; }
}
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

/* ---------- Contact ---------- */
.contact-layout { row-gap: 2.5rem; align-items: start; }
.contact-form-wrap { grid-column: 1 / -1; }
.contact-aside { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .contact-form-wrap { grid-column: 1 / span 7; }
  .contact-aside { grid-column: 9 / -1; }
}
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
label { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); }
.optional { font-weight: 500; color: var(--text-muted); }
input:not([type="checkbox"]):not([type="radio"]), textarea {
  background: #FFFDF8;
  border: 1.5px solid #A9A190;
  font-family: var(--font-display);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:not([type="checkbox"]):not([type="radio"]):hover, textarea:hover { border-color: var(--primary); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); border-color: var(--primary); }
textarea { min-height: 10rem; }
.form-actions { margin-top: 1.75rem; }
.form-thanks {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--mint);
}
.form-thanks h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 0.6rem; }
.form-thanks p { color: var(--text-soft); }
.form-thanks:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

.panel-dark {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.panel-dark h2 { color: var(--on-dark); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-bottom: 1.25rem; }
.details { display: grid; gap: 0; }
.details-row { padding: 0.9rem 0; border-top: 1px solid rgba(220, 196, 142, 0.45); }
.details dt { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--on-dark-soft); }
.details dd { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.45; color: var(--on-dark); margin-top: 0.15rem; }
.details dd a { color: var(--on-dark); }
.details dd a:hover { color: var(--accent-mid); }
.panel-dark :focus-visible { outline-color: var(--accent-mid); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem); margin: 2.25rem 0 0.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: var(--on-dark);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.site-footer p, .site-footer li, .site-footer span { color: var(--on-dark); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--accent-mid); }
.site-footer :focus-visible { outline-color: var(--accent-mid); }
.footer-grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }
.site-footer .logo { color: var(--on-dark); }
.footer-tagline { margin-top: 0.9rem; color: #DCE7E1; max-width: 28ch; }
.footer-heading { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--on-dark); margin-bottom: 0.75rem; }
.footer-links { display: grid; gap: 0.35rem; }
.footer-links a, .footer-contact a { font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-contact { display: grid; gap: 0.35rem; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(242, 238, 230, 0.3);
  font-size: 0.95rem;
}
.footer-base p { color: #DCE7E1; }
.credit a { text-decoration: underline; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Mobile menu visibility: keep last ---------- */
@media (min-width: 768px) {
  .site-header .nav-links { display: flex; }
}
@media (max-width: 767.98px) {
  .site-header .nav-links { display: none; }
  .site-header .nav-links.is-open { display: flex; }
}
