/* Corrowick Roofing & Exteriors (a made-up roofer, redesigned by Undefault).
   Owner 2026-11-07, direction B "the inspection report is the home page": report white, ink,
   highlighter lime as the one solid colour, slate blue for links; IBM Plex Sans Condensed and
   IBM Plex Mono. The first screen is a sample report photo with three numbered notes. */

@font-face {
  font-family: 'IBM Plex Sans Condensed';
  src: url('/demos/corrowick/after/fonts/plex-sans-condensed-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans Condensed';
  src: url('/demos/corrowick/after/fonts/plex-sans-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/demos/corrowick/after/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbfbf8;
  --paper-2: #f0f0ea;
  --ink: #1a1c1e;
  --ink-2: #3a3e42;
  --muted: #595e63;
  --lime: #c7f25a;
  --lime-deep: #a9d63a;
  --slate: #3d5a80;
  --line: #dcdcd4;
  --sans: 'IBM Plex Sans Condensed', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 3.6vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: var(--slate);
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus {
  top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.ink {
  background: var(--ink);
  color: var(--paper);
}
.button.ink:hover {
  background: #000;
}
.button.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.button.wide {
  width: 100%;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.wordmark {
  display: grid;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark span {
  font: 400 0.7rem/1.4 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.top nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}
.nav-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover {
  text-decoration: underline;
}
.nav-leak {
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}
.nav-leak span {
  padding: 2px 6px;
  margin-right: 4px;
  background: var(--lime);
  font-size: 0.78rem;
}
.nav-cta {
  min-height: 42px;
}

/* Hero: the report page and the pitch */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 52px);
  padding: clamp(16px, 2.4vw, 32px) 0 clamp(40px, 5vw, 72px);
  align-items: start;
}
.report {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(26, 28, 30, 0.35);
}
.report-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.report-head span:first-child {
  color: var(--ink);
  background: var(--lime);
  padding: 0 6px;
}
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #9fb4c8;
}
.zoom {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transition: transform 0.6s var(--ease);
}
.zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pin {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font: 700 1.1rem/1 var(--mono);
  cursor: pointer;
  transition: left 0.6s var(--ease), top 0.6s var(--ease), transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.pin:hover {
  transform: scale(1.08);
}
.pin[aria-pressed='true'] {
  box-shadow: 0 0 0 6px rgba(199, 242, 90, 0.55), 0 2px 10px rgba(0, 0, 0, 0.35);
}
.pin.lit {
  animation: lit 1.2s var(--ease) 3;
}
@keyframes lit {
  50% {
    box-shadow: 0 0 0 14px rgba(199, 242, 90, 0.7);
  }
}
.pin-1 {
  left: 62.3%;
  top: 44.4%;
}
.pin-2 {
  left: 24.1%;
  top: 60.2%;
}
.pin-3 {
  left: 91.1%;
  top: 59.6%;
}
.photo.zoomed .pin:not([aria-pressed='true']) {
  opacity: 0;
  pointer-events: none;
}
.unzoom {
  position: absolute;
  left: 10px;
  top: 10px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: rgba(26, 28, 30, 0.85);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}
.note {
  padding-top: 12px;
}
.items {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.items li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.items .n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 0.8rem;
}
.items li.on {
  background: linear-gradient(transparent 55%, rgba(199, 242, 90, 0.55) 55%);
}
.items .v {
  font-size: 0.95rem;
}
.detail {
  min-height: 3em;
  padding: 10px 0 6px;
  color: var(--ink-2);
}
.detail button {
  margin-top: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.total {
  padding-top: 8px;
  border-top: 2px solid var(--ink);
  font-size: 0.92rem;
}
.total b {
  font-size: 1.2rem;
  padding: 0 4px;
  background: var(--lime);
}

.pitch {
  padding-top: clamp(4px, 2vw, 28px);
}
.kicker {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero h1 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 4.2vw, 3.9rem);
  text-wrap: balance;
}
.lede {
  margin-top: 14px;
  max-width: 30em;
  color: var(--ink-2);
}
.slots-title {
  margin-top: 26px;
  font: 400 0.8rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.slot {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.15;
}
.slot span {
  font-weight: 400;
  font-size: 0.92rem;
}
.slot:hover,
.slot:focus-visible {
  background: var(--lime);
}
.licence {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.leak {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--ink);
  color: #e6e7e8;
  font-size: 0.95rem;
}
.leak a {
  color: var(--lime);
  font-weight: 400;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: clamp(52px, 7vw, 96px) 0;
}
.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}
.check {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.sub {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 34em;
}
.ask {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.ask label {
  font-weight: 700;
}
.ask-row {
  display: flex;
  gap: 8px;
}
.ask input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #a8aba6;
  border-radius: 4px;
  background: #fff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips button,
.chips label span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #a8aba6;
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}
.chips button:hover {
  border-color: var(--ink);
}
.chips label {
  position: relative;
}
.chips label input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}
.chips label input:checked + span {
  background: var(--lime);
  border-color: var(--ink);
}
.chips label input:focus-visible + span {
  outline: 3px solid var(--slate);
  outline-offset: 2px;
}
.demo {
  font-size: 0.78rem;
  color: var(--muted);
}
.answer {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.answer-empty {
  color: var(--muted);
}
.answer h3 {
  font-size: 1.5rem;
}
.answer dl {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}
.answer dl div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 10px;
}
.answer dt {
  font: 400 0.82rem/1.6 var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}
.answer dd {
  margin: 0;
}
.answer .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.answer .actions .button {
  min-height: 44px;
}
.get-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: 24px;
}
.get-grid figure,
.aerial {
  margin: 0;
}
.get-grid img,
.aerial img {
  width: 100%;
  height: auto;
}
.get-grid figcaption {
  margin-top: 8px;
  color: var(--ink-2);
}
.get-grid figcaption .mono {
  margin-right: 8px;
  padding: 0 5px;
  background: var(--lime);
  font-size: 0.82rem;
}
.prices {
  background: var(--ink);
  color: #e9eaea;
}
.prices a {
  color: var(--lime);
}
.aerial {
  margin-top: 24px;
}
.aerial figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #c4c7c9;
}
.aerial figcaption b {
  color: var(--ink);
  background: var(--lime);
  padding: 0 4px;
}
.rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 28px 0 0;
}
.rates div {
  padding: 14px 0;
  border-bottom: 1px solid #3a3e42;
}
.rates dt {
  font-weight: 700;
  font-size: 1.1rem;
}
.rates dd {
  margin: 4px 0 0;
  display: grid;
  gap: 2px;
}
.rates dd b {
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--lime);
}
.rates dd span {
  color: #b6babd;
  font-size: 0.95rem;
}
.prices .fine {
  margin-top: 20px;
  color: #b6babd;
  font-size: 0.92rem;
  max-width: 60em;
}
.crew-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
}
.crew-grid > div > p {
  margin-top: 14px;
  max-width: 36em;
}
.people {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.people li {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.people span {
  color: var(--ink-2);
}
.quotes {
  display: grid;
  gap: 16px;
  align-content: start;
}
.quotes blockquote {
  margin: 0;
  padding: 20px;
  background: var(--paper-2);
}
.quotes p {
  font-size: 1.15rem;
}
.quotes footer {
  margin-top: 10px;
  font: 400 0.85rem/1.4 var(--mono);
  color: var(--muted);
}
.sos {
  background: var(--lime);
}
.sos-in {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.sos p {
  max-width: 40em;
}
.sos .button.lime {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}
.foot {
  padding: 36px 0 110px;
  background: var(--ink);
  color: #c4c7c9;
  font-size: 0.92rem;
}
.foot a {
  color: #dfe2e4;
}
.foot-in {
  display: grid;
  gap: 6px;
}
.foot-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
.foot-demo {
  margin-top: 10px;
  max-width: 54em;
}
.dock {
  display: none;
}

/* Inspection page */
.book {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(20px, 3vw, 40px) 0 clamp(48px, 6vw, 88px);
  align-items: start;
}
.book h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.leak-box {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--ink);
  color: #e6e7e8;
}
.leak-box a {
  color: var(--lime);
}
.booking {
  display: grid;
  gap: 26px;
  margin-top: 26px;
}
.booking legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.3rem;
}
.booking legend .n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 0.9rem;
  font-weight: 400;
}
.hint {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.windows,
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.choices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.window {
  display: grid;
  gap: 2px;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid #a8aba6;
  border-radius: 4px;
  background: #fff;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.window span {
  font: 400 0.88rem/1.3 var(--mono);
}
.window[aria-pressed='true'] {
  background: var(--lime);
  border: 2px solid var(--ink);
}
.choices label {
  position: relative;
}
.choices input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choices span {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 6px;
  border: 1px solid #a8aba6;
  border-radius: 4px;
  background: #fff;
  font-weight: 700;
  text-align: center;
}
.choices input:checked + span {
  background: var(--lime);
  border: 2px solid var(--ink);
}
.choices input:focus-visible + span {
  outline: 3px solid var(--slate);
  outline-offset: 2px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fields .full {
  grid-column: 1 / -1;
}
.fields label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}
.fields input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #a8aba6;
  border-radius: 4px;
  background: #fff;
}
.more {
  margin-top: 14px;
}
.more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--slate);
  font-weight: 700;
  cursor: pointer;
}
.form-error {
  color: #9b2b1f;
  font-weight: 700;
}
.booked {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 22px;
  border: 2px solid var(--ink);
  background: #fff;
}
.booked h2 {
  font-size: 2rem;
}
.book-side {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
}
.book-side h2 {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.summary {
  margin: 10px 0 0;
}
.summary div {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.summary dt {
  color: var(--muted);
}
.summary dd {
  margin: 0;
  font-weight: 700;
}
.side-note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .hero,
  .check-grid,
  .crew-grid,
  .book {
    grid-template-columns: 1fr;
  }
  .rates {
    grid-template-columns: 1fr;
  }
  .book-side {
    position: static;
  }
}

@media (max-width: 767px) {
  .nav-link,
  .nav-cta {
    display: none;
  }
  .wordmark span {
    display: none;
  }
  .top-in {
    min-height: 54px;
  }
  .hero {
    padding-top: 8px;
    gap: 12px;
  }
  .report {
    margin: 0 calc(-1 * var(--gutter));
    padding: 8px var(--gutter) 6px;
    border-width: 0 0 1px;
    box-shadow: none;
  }
  .report-head {
    font-size: 0.7rem;
    padding-bottom: 6px;
    gap: 2px 10px;
  }
  .photo {
    margin: 0 calc(-1 * var(--gutter));
  }
  .pin {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
  }
  .items,
  .detail {
    display: none;
  }
  .report.open .items,
  .report.open .detail {
    display: block;
  }
  .report.open .items li {
    display: grid;
  }
  .note {
    padding-top: 6px;
  }
  .total {
    border-top: 0;
    padding-top: 0;
    font-size: 0.82rem;
  }
  .kicker,
  .lede {
    display: none;
  }
  .pitch {
    padding-top: 0;
  }
  .hero h1 {
    margin-top: 0;
    font-size: clamp(1.75rem, 7.6vw, 2.1rem);
  }
  .slots-title {
    margin-top: 12px;
  }
  .slots {
    gap: 6px;
    margin-top: 6px;
  }
  .slot {
    min-height: 56px;
    padding: 6px 8px;
    font-size: 0.92rem;
  }
  .slot span {
    font-size: 0.8rem;
  }
  .licence {
    display: none;
  }
  .leak {
    margin-top: 10px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }
  .get-grid {
    grid-template-columns: 1fr;
  }
  .people li,
  .answer dl div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .windows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 251, 248, 0.96);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.25s var(--ease);
  }
  .dock.show {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .photo.zoomed .pin {
    opacity: 1;
    pointer-events: auto;
  }
}
