/* ============================================================
   DIY Screens splash - design system
   Fresh, airy, NZ-summer DIY retail. Display: Bricolage Grotesque,
   body: Hanken Grotesk. Boldness spent in one place: the mesh window.
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/fonts/bricolage-grotesque-var.woff2) format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url(/fonts/hanken-grotesk-var.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f5ee; /* fresh off-white, faint green-grey */
  --paper-2: #ffffff;
  --ink: #1b231d; /* warm charcoal-green */
  --muted: #44524a; /* secondary text, AA on paper */
  --green: #15543a; /* deep, primary actions + headings accent */
  --green-bright: #2e9e5b; /* highlights, glass, not small text */
  --apricot: #ef9a43; /* the one warm pop: the magnet */
  --mesh: #c9d3c9; /* sage hairlines / mesh */
  --line: #dfe5da;

  --radius: 14px;
  --radius-lg: 20px;
  --shell: 1140px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

a {
  color: var(--green);
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(1.1rem, 3vw, 1.75rem);
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 5px;
  border: 1.5px solid var(--green);
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(21, 84, 58, 0.45) 3px 3.6px),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(21, 84, 58, 0.45) 3px 3.6px);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand__name b {
  font-weight: 800;
  color: var(--green);
}

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(1.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.headline {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.headline__alt {
  color: var(--green);
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--muted);
}

/* range chips */
.range {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.chip:hover {
  border-color: var(--green-bright);
  transform: translateY(-1px);
}
.chip--lead {
  border-color: transparent;
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
.chip--lead:hover {
  background: #0f3f2c;
  border-color: transparent;
}
.chip__tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--green-bright);
  background: rgba(46, 158, 91, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

/* ---------- capture card ---------- */
.capture {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.7rem);
  box-shadow: 0 1px 0 rgba(27, 35, 29, 0.02), 0 18px 40px -28px rgba(21, 84, 58, 0.4);
  max-width: 30rem;
}

.capture__h {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.field {
  margin-bottom: 0.5rem;
}
.field__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.32rem;
}

.input {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder {
  color: #8a988c;
}
.input:focus-visible {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.22);
}
textarea.input {
  resize: vertical;
  min-height: 3.2rem;
}

.notify__row {
  display: flex;
  gap: 0.55rem;
}
.notify__row .input {
  flex: 1;
  min-width: 0;
}

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover {
  background: #0f3f2c;
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.35);
}

.capture__help {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* honeypot - visually gone, still in the a11y tree off-screen */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* enquire disclosure */
.enquire {
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.95rem;
}
.enquire__summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.enquire__summary::-webkit-details-marker {
  display: none;
}
.enquire__summary::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.enquire[open] .enquire__summary::before {
  transform: rotate(45deg);
}
.enquire__summary:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.enquire__form {
  margin-top: 0.9rem;
}

.formstatus {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.formstatus[data-ok="true"] {
  color: var(--green);
}
.formstatus[data-ok="false"] {
  color: #a4442c;
}

/* ---------- signature: the mesh window ---------- */
.hero__art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.window {
  position: relative;
  width: min(100%, 24rem);
  aspect-ratio: 4 / 5;
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0.8rem;
  box-shadow: 0 30px 60px -34px rgba(21, 84, 58, 0.55);
}

.window__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.window__caption {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-top: 1.4rem;
  padding-bottom: clamp(1.4rem, 4vw, 2.2rem);
  border-top: 1px solid var(--line);
}
.foot__trust {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.foot__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding-top: 1.5rem;
  }
  .hero__art {
    order: -1;
  }
  .window {
    width: min(100%, 19rem);
    aspect-ratio: 5 / 4;
  }
  .lede {
    max-width: none;
  }
  .capture {
    max-width: none;
  }
}

@media (max-width: 460px) {
  .notify__row {
    flex-direction: column;
  }
  .notify__row .btn {
    width: 100%;
  }
}

/* ---------- motion (opt-in only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .reveal:nth-child(1) {
    animation-delay: 0.05s;
  }
  .reveal:nth-child(2) {
    animation-delay: 0.14s;
  }
  .reveal:nth-child(3) {
    animation-delay: 0.23s;
  }
  .reveal:nth-child(4) {
    animation-delay: 0.32s;
  }
  .reveal:nth-child(5) {
    animation-delay: 0.41s;
  }

  .window {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }
}
