/* Webling. Black and white.
   Type:  Bricolage Grotesque (display) + Hanken Grotesk (text).
   One signature move: a hard black offset shadow on framed things and the
   primary button. Everything else is hairlines and whitespace.
*/

:root{
  color-scheme: light;

  --paper:   #ffffff;
  --ink:     #111111;
  --muted:   #5b5b5b;
  --line:    #e4e4e4;
  --wash:    #f4f4f4;

  --wrap: 1060px;
  --pad: clamp(1.25rem, 5vw, 3rem);

  --step--1: clamp(0.84rem, 0.81rem + 0.12vw, 0.92rem);
  --step-0:  clamp(1rem,   0.97rem + 0.18vw, 1.09rem);
  --step-1:  clamp(1.15rem, 1.06rem + 0.4vw, 1.4rem);
  --step-3:  clamp(2rem,   1.62rem + 1.7vw, 3rem);
  --step-4:  clamp(2.4rem, 1.85rem + 2.7vw, 4.1rem);
}

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size:var(--step-0);
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
figure{ margin:0; }

h1,h2,h3{
  font-family:"Bricolage Grotesque","Hanken Grotesk", system-ui, sans-serif;
  font-weight:800;
  line-height:1.07;
  letter-spacing:-0.02em;
  margin:0;
  text-wrap:balance;
}
p{ text-wrap:pretty; }

a{ color:var(--ink); text-underline-offset:2px; text-decoration-thickness:1px; }
a:hover{ text-decoration-color:var(--muted); }

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

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip{
  position:absolute; left:1rem; top:-4rem;
  background:var(--ink); color:#fff; padding:.6rem 1rem; border-radius:8px; z-index:30;
  transition:top .15s;
}
.skip:focus{ top:1rem; }

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

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

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:"Hanken Grotesk", system-ui, sans-serif;
  font-size:var(--step-0); font-weight:700; line-height:1;
  padding:.9em 1.35em;
  border-radius:10px;
  border:2px solid var(--ink);
  text-decoration:none;
  cursor:pointer;
  transition:transform .12s ease, background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.btn--solid{
  background:var(--ink); color:var(--paper);
  box-shadow:5px 5px 0 var(--ink);
}
.btn--solid:hover{ transform:translate(2px,2px); box-shadow:3px 3px 0 var(--ink); color:var(--paper); }
.btn--ghost{ background:var(--paper); color:var(--ink); }
.btn--ghost:hover{ background:var(--ink); color:var(--paper); }
@media (prefers-reduced-motion: reduce){ .btn{ transition:none; } .btn--solid:hover{ transform:none; } }

/* Buttons on the dark band invert */
.band--ink .btn--ghost{ background:transparent; color:var(--paper); border-color:var(--paper); }
.band--ink .btn--ghost:hover{ background:var(--paper); color:var(--ink); }
.band--ink .btn--solid{
  background:var(--paper); color:var(--ink); border-color:var(--paper);
  box-shadow:5px 5px 0 rgba(255,255,255,0.3);
}
.band--ink .btn--solid:hover{ transform:translate(2px,2px); box-shadow:3px 3px 0 rgba(255,255,255,0.3); color:var(--ink); }

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

.site-header{
  position:sticky; top:0; z-index:20;
  background:var(--paper);
  border-bottom:2px solid var(--ink);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  min-height:66px;
}
.brand{
  display:inline-flex; align-items:center; gap:.62rem;
  text-decoration:none; color:var(--ink);
  font-family:"Bricolage Grotesque", system-ui, sans-serif;
  font-weight:800; font-size:1.28rem; letter-spacing:-0.02em;
}
.brand-mark{ width:36px; height:auto; }
.site-footer .brand-mark{ width:30px; }

.site-nav{ display:flex; align-items:center; gap:1.7rem; }
.site-nav a:not(.btn){
  color:var(--muted); text-decoration:none; font-weight:600; font-size:var(--step--1);
}
.site-nav a:not(.btn):hover{ color:var(--ink); }
.site-nav a[aria-current="page"]{ color:var(--ink); text-decoration:underline; text-decoration-thickness:2px; }

.nav-toggle{
  display:none;
  width:44px; height:44px; align-items:center; justify-content:center;
  background:transparent; border:2px solid var(--ink); border-radius:9px; cursor:pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after{
  content:""; display:block; width:18px; height:2px; background:var(--ink);
}
.nav-toggle-bar{ position:relative; }
.nav-toggle-bar::before{ position:absolute; top:-6px; }
.nav-toggle-bar::after{ position:absolute; top:6px; }

@media (max-width: 820px){
  .nav-toggle{ display:inline-flex; }
  .site-nav{
    position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:.2rem;
    background:var(--paper); border-bottom:2px solid var(--ink);
    padding:.7rem var(--pad) 1.3rem;
    display:none;
  }
  .site-nav.is-open{ display:flex; }
  .site-nav a:not(.btn){ padding:.75rem 0; font-size:1.05rem; border-bottom:1px solid var(--line); }
  .site-nav .btn{ margin-top:.8rem; }
}

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

.site-footer{
  background:var(--ink); color:#cfcfcf;
  padding-block:2.6rem 3rem;
  border-top:2px solid var(--ink);
}
/* When a page ends on the dark CTA band, flow it straight into the footer */
main:has(> .band--ink:last-child) + .site-footer{ padding-top:1.75rem; }
main > .band--ink:last-child{ padding-bottom:1.75rem; }
.footer-inner{ display:grid; gap:.7rem; }
.site-footer .brand{ color:#fff; }
.site-footer .brand-mark{ filter:invert(1); }
.footer-tag{ margin:.2rem 0 0; color:#cfcfcf; }
.footer-nav{ display:flex; flex-wrap:wrap; gap:.4rem 1.4rem; margin-top:.4rem; }
.footer-nav a{ color:#fff; font-weight:600; font-size:var(--step--1); text-decoration:none; }
.footer-nav a:hover{ text-decoration:underline; }
.footer-contact{ margin:.3rem 0 0; }
.footer-contact a{ color:#fff; }
.footer-legal{ margin:.5rem 0 0; font-size:var(--step--1); color:#8f8f8f; }

/* ---- Page building blocks ------------------------------------- */

.band{ padding-block: clamp(2.5rem, 6vw, 4rem); scroll-margin-top:84px; }
.band--wash{ background:var(--wash); }
.band--ink{ background:var(--ink); color:var(--paper); }
.band--ink h1,.band--ink h2{ color:var(--paper); }

.page-head{ padding-block: clamp(2.25rem, 5vw, 3.25rem) clamp(0.75rem, 2.5vw, 1.25rem); }
.page-head h1{ font-size:var(--step-4); }
.page-head .lede{ margin-top:1rem; }
.page-head + .band{ padding-top: clamp(1.5rem, 4vw, 2.5rem); }

.section-title{ font-size:var(--step-3); }
.section-intro{
  font-size:var(--step-1); color:var(--muted);
  max-width:40rem; margin:.6rem 0 2.4rem;
}
.lede{
  font-size:var(--step-1); color:var(--muted);
  max-width:36rem; margin:0;
}
.band--ink .section-intro,
.band--ink .lede{ color:#cfcfcf; }

.prose{ max-width:60ch; }
.prose p{ margin:0 0 1rem; }

/* Spacing for follow-on elements (replaces one-off inline margins) */
.steps + .prose,
.checklist + .prose{ margin-top:2rem; }
.prose + p{ margin-top:1.25rem; }
.faq + p{ margin-top:2.4rem; }
.page-head > p:not(.lede){ margin-top:1.4rem; }

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

.hero{ padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero-inner{ display:grid; gap: clamp(2.25rem, 5vw, 3.75rem); }
@media (min-width: 900px){
  .hero-inner{ grid-template-columns: 1fr 1.12fr; align-items:center; }
}
.hero-title{ font-size:var(--step-4); margin-bottom:.55em; }
.cta-row{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1.4rem; }
.hero-note{ font-size:var(--step--1); color:var(--muted); margin:1rem 0 0; }

/* ---- Browser frame + embedded example ---------------------- */

.browser{
  border:2px solid var(--ink);
  border-radius:12px;
  overflow:hidden;
  background:var(--paper);
  box-shadow:12px 12px 0 var(--ink);
}
.browser-bar{
  display:flex; align-items:center; gap:.4rem;
  padding:.55rem .8rem;
  background:var(--wash);
  border-bottom:2px solid var(--ink);
}
.browser-bar span{ width:9px; height:9px; border-radius:50%; background:#cdcdcd; }
.browser-bar em{ margin-left:.6rem; font-style:normal; font-size:.78rem; color:var(--muted); }
.browser-view{
  position:relative; overflow:hidden;
  background:var(--wash);
  aspect-ratio: 1240 / 900;
}
.browser-img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:top center;
}
.browser-caption{
  font-size:var(--step--1); color:var(--muted);
  margin:.9rem 0 0;
  display:flex; align-items:center; gap:.75rem; flex-wrap:wrap;
}

/* ---- Steps (a real sequence, so numbered) ------------------ */

.steps{ list-style:none; margin:2.2rem 0 0; padding:0; display:grid; gap:1.8rem; }
@media (min-width: 780px){ .steps{ grid-template-columns:repeat(3,1fr); gap:2.4rem; } }
.step{ border-top:3px solid var(--ink); padding-top:.9rem; }
.step-num{
  font-family:"Bricolage Grotesque", system-ui, sans-serif;
  font-weight:800; font-size:1.9rem; line-height:1; display:block; margin-bottom:.45rem;
}
.step h3{ font-size:var(--step-1); margin-bottom:.35rem; }
.step p{ margin:0; color:var(--muted); }
.band--ink .step{ border-top-color:var(--paper); }
.band--ink .step p{ color:#cfcfcf; }

/* ---- Checklist ------------------------------------------- */

.checklist{
  list-style:none; margin:2rem 0 0; padding:0;
  display:grid; gap:0; max-width:44rem;
}
@media (min-width: 700px){ .checklist{ grid-template-columns:1fr 1fr; column-gap:2.5rem; max-width:none; } }
.checklist li{
  position:relative; padding:.95rem 0 .95rem 1.9rem;
  border-bottom:1px solid var(--line);
}
.checklist li::before{
  content:""; position:absolute; left:0; top:1.15rem;
  width:11px; height:6px;
  border-left:2.5px solid var(--ink); border-bottom:2.5px solid var(--ink);
  transform:rotate(-45deg);
}

/* ---- Slideshow (examples page + hero) ------------------ */

.slideshow{ margin-top:1.4rem; }
.slideshow--hero{ margin-top:0; }
.slide{ display:none; }
.slide.is-active{ display:block; }
@media (prefers-reduced-motion: no-preference){
  .slide.is-active{ animation: slideFade .4s ease both; }
  @keyframes slideFade{ from{ opacity:0; } to{ opacity:1; } }
}
.slide-meta{
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between;
  gap:.5rem 1rem; margin:1rem 0 0;
}
.slide-meta h2{ font-size:var(--step-1); letter-spacing:-0.01em; }
.slide-meta .trade{ color:var(--muted); font-size:var(--step--1); }
.slide-meta a{ font-weight:700; font-size:var(--step--1); }

.slide-controls{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  margin-top:1.4rem;
}
.slide-controls-mid{ display:flex; align-items:center; gap:.9rem; }
.slide-btn{
  width:44px; height:44px; flex:none;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--paper); border:2px solid var(--ink); border-radius:10px;
  cursor:pointer; font-size:1.05rem; line-height:1; color:var(--ink);
}
.slide-btn:hover{ background:var(--ink); color:var(--paper); }
.dots{ display:flex; gap:.5rem; }
.dot{
  width:11px; height:11px; padding:0;
  border:2px solid var(--ink); border-radius:50%;
  background:var(--paper); cursor:pointer;
}
.dot[aria-current="true"]{ background:var(--ink); }

/* play/pause toggle for the hero, sitting in the caption line */
.hero-toggle{
  flex:none;
  width:30px; height:30px;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--paper); border:2px solid var(--ink); border-radius:50%;
  cursor:pointer; font-size:.7rem; color:var(--ink);
}
.hero-toggle:hover{ background:var(--ink); color:var(--paper); }

/* pause/play icon, shared by both toggle buttons */
.slide-btn[data-slide="toggle"]::before,
.hero-toggle::before{ content:"\23F8"; }               /* pause bars */
.slide-btn[data-state="paused"]::before,
.hero-toggle[data-state="paused"]::before{ content:"\25B6"; }  /* play triangle */

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

.price-grid{ display:grid; gap:1.4rem; margin-top:2.2rem; }
@media (min-width: 720px){ .price-grid{ grid-template-columns:1fr 1fr; } }
.price-card{
  border:2px solid var(--ink); border-radius:14px; padding:1.6rem;
  background:var(--paper);
}
.price-card:first-child{ box-shadow:10px 10px 0 var(--ink); }
.price-num{
  font-family:"Bricolage Grotesque", system-ui, sans-serif;
  font-weight:800; font-size:clamp(2.6rem, 2rem + 2.5vw, 3.6rem); line-height:1;
}
.price-unit{ font-size:var(--step-0); color:var(--muted); font-weight:600; }
.price-card h2{ font-size:var(--step-1); margin-bottom:.5rem; }
.price-card p{ margin:.8rem 0 0; color:var(--muted); }

/* ---- FAQ --------------------------------------------- */

.faq{ max-width:46rem; margin-top:2rem; border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item summary{
  list-style:none; cursor:pointer; position:relative;
  padding:1.05rem 2rem 1.05rem 0;
  font-family:"Bricolage Grotesque", system-ui, sans-serif;
  font-weight:700; font-size:var(--step-1);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; position:absolute; right:.1rem; top:.95rem;
  font-size:1.3rem; font-weight:700;
  transition:transform .15s ease;
}
.faq-item[open] summary::after{ transform:rotate(45deg); }
@media (prefers-reduced-motion: reduce){ .faq-item summary::after{ transition:none; } }
.faq-item p{ margin:0; padding:0 0 1.2rem; color:var(--muted); max-width:42rem; }

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

.form-layout{ display:grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 860px){
  .form-layout{ grid-template-columns: 1fr 1fr; align-items:start; }
}
.form-layout .section-intro{ margin-bottom:0; }
.form-layout .form{ margin-top:0; }
.form-layout .contact-lines{ margin-top:1.8rem; }

.form{ display:grid; gap:.85rem; max-width:32rem; margin-top:2rem; }
.botcheck{ display:none; }
.form label{ display:grid; gap:.3rem; font-weight:600; font-size:var(--step--1); }
.form input,
.form textarea{
  font:inherit; font-size:var(--step-0);
  padding:.62rem .75rem;
  border:2px solid var(--ink); border-radius:9px;
  background:var(--paper); color:var(--ink);
}
.form textarea{ resize:vertical; min-height:4.5rem; }
.form .btn{ justify-self:start; margin-top:.5rem; }
.form-status{
  margin:.4rem 0 0;
  padding:.7rem .85rem;
  border:2px solid var(--ink); border-radius:9px;
  font-size:var(--step--1); font-weight:600;
}
.form-note{
  margin:.7rem 0 0; font-size:var(--step--1); color:var(--muted);
}
.contact-lines{ margin:2.4rem 0 0; display:grid; gap:.5rem; font-size:var(--step-1); }
.contact-lines p{ margin:0; }
.contact-lines a{ font-weight:700; }

/* ---- Hero load-in --------------------------------- */

@media (prefers-reduced-motion: no-preference){
  .hero-copy > *, .hero-figure{
    opacity:0; transform:translateY(10px);
    animation:rise .55s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .hero-copy > *:nth-child(1){ animation-delay:.04s; }
  .hero-copy > *:nth-child(2){ animation-delay:.1s; }
  .hero-copy > *:nth-child(3){ animation-delay:.16s; }
  .hero-copy > *:nth-child(4){ animation-delay:.22s; }
  .hero-figure{ animation-delay:.16s; }
  @keyframes rise{ to{ opacity:1; transform:translateY(0); } }
}
