/* ============================================================
   PatchPlus — Home
   Implemented from the Claude Design handoff (PatchPlus-Home.dc.html)
   Palette:
     cream #FAF9F5 | ink #1A1A1A | green #89BF4A | deep-green #3D7A1A
     amber #DD7A1A | amber-hover #C56A12 | lime #A8D65A
   Type: Archivo Black (display) / Arimo (body)
   ============================================================ */

:root {
  --cream: #FAF9F5;
  --ink: #1A1A1A;
  --ink-2: #2A2A2A;
  --green: #89BF4A;
  --green-deep: #3D7A1A;
  --amber: #DD7A1A;
  --amber-hover: #C56A12;
  --lime: #A8D65A;
  --text: #1A1A1A;
  --text-soft: #3A3A3A;
  --text-muted: #5F5F5B;
  --line: #E8E8E5;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Arimo', sans-serif;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; }
a { color: inherit; }

/* ---------- Shared display type ---------- */
.h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
.h2--light { color: #fff; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow--green { color: var(--green-deep); }
.eyebrow--lime { color: var(--lime); }

.amber { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  transition: transform .22s cubic-bezier(.2,.7,.2,1),
              box-shadow .22s cubic-bezier(.2,.7,.2,1),
              background .22s ease, color .22s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn--amber {
  color: var(--ink);
  background: var(--amber);
  padding: 16px 30px;
  box-shadow: 0 10px 30px rgba(221,122,26,0.32);
}
.btn--amber:hover { background: var(--amber-hover); box-shadow: 0 16px 36px rgba(221,122,26,0.42); }

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  padding: 14px 28px;
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--dark {
  color: var(--cream);
  background: var(--ink);
  padding: 16px 32px;
  box-shadow: 0 10px 26px rgba(26,26,26,0.3);
}
.btn--dark:hover { background: #000; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(8px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1),
              transform .9s cubic-bezier(.2,.7,.2,1),
              filter .9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }
[data-reveal][data-rd="1"] { transition-delay: .1s; }
[data-reveal][data-rd="2"] { transition-delay: .2s; }
[data-reveal][data-rd="3"] { transition-delay: .3s; }

.lift { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s cubic-bezier(.2,.7,.2,1); }
.lift:hover { transform: translateY(-8px); box-shadow: 0 26px 52px rgba(26,26,26,.17); }

/* keyframes */
@keyframes ppFadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes ppHeroImg { 0% { opacity:0; transform:scale(1.16); } 60% { opacity:1; } 100% { opacity:1; transform:scale(1.04); } }
@keyframes ppRise { from { opacity:0; transform:translateY(115%); } to { opacity:1; transform:translateY(0); } }
@keyframes ppNavDrop { from { opacity:0; transform:translateY(-100%); } to { opacity:1; transform:translateY(0); } }

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,249,245,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  animation: ppNavDrop .65s cubic-bezier(.2,.7,.2,1) both;
  transition: box-shadow .3s ease, background .3s ease;
}
.nav.is-scrolled {
  box-shadow: 0 6px 24px rgba(26,26,26,0.10);
  background: rgba(250,249,245,0.96);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; text-decoration: none; flex: none; color: var(--ink); }
.nav__brand .logo { width: 158px; height: auto; overflow: visible; }

.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--green-deep); }
.nav__link.is-active { color: var(--green-deep); }
.nav__bar {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  opacity: 0;
}
.nav__link.is-active .nav__bar { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__cta {
  display: inline-flex;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--amber);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(221,122,26,0.35);
  transition: background .2s ease;
}
.nav__cta:hover { background: var(--amber-hover); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
}
.nav__burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__mobile {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 8px 24px 18px;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  padding: 14px 4px;
  border-bottom: 1px solid #EFEEE9;
}
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile-cta {
  text-align: center;
  background: var(--amber);
  padding: 14px !important;
  border-radius: 8px;
  margin-top: 14px;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}
.hero__img {
  position: absolute; inset: 0;
  background-image: url('../assets/site/hero-box.jpg');
  background-size: cover;
  background-position: center right;
  animation: ppHeroImg 1.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__fade-h {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,#FAF9F5 0%,#FAF9F5 24%,rgba(250,249,245,0.82) 42%,rgba(250,249,245,0.2) 62%,rgba(250,249,245,0) 78%);
}
.hero__fade-b {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(0deg,rgba(250,249,245,0.55),rgba(250,249,245,0));
}
.hero__stripe {
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background-image: repeating-linear-gradient(180deg,#1A1A1A 0 14px,#89BF4A 14px 28px);
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
  width: 100%;
}
.hero__content { max-width: 640px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 28px;
  animation: ppFadeUp 0.7s ease-out both;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(137,191,74,0.22); }
.badge__label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }

.hero__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 22px;
}
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; animation: ppRise .9s cubic-bezier(.2,.7,.2,1) both; }

.hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 500px;
  margin: 0 0 36px;
  animation: ppFadeUp 0.7s ease-out 0.5s both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: ppFadeUp 0.7s ease-out 0.64s both;
}

/* =====================================================
   STATS STRIP
   ===================================================== */
.stats { background: var(--ink); border-top: 1px solid var(--ink-2); }
.stats__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 34px 20px; border-right: 1px solid var(--ink-2); }
.stat--last { border-right: 0; }
.stat__num { font-family: 'Archivo Black', sans-serif; font-size: 40px; color: var(--green); line-height: 1; }
.stat__unit { font-size: 20px; color: var(--cream); }
.stat__label { font-size: 13.5px; color: #B5B5B0; margin-top: 8px; }

/* =====================================================
   SERVICES PREVIEW
   ===================================================== */
.services { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px 40px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}
.section-head__text { max-width: 620px; }
.link-underline {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 3px solid var(--amber);
  padding-bottom: 3px;
  white-space: nowrap;
}

.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card__bar { height: 6px; }
.card__body { padding: 30px; }
.card__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.card__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how { background: var(--cream); padding: 80px 24px 96px; }
.how__inner { max-width: var(--maxw); margin: 0 auto; }
.how__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.how__head .h2 { margin-bottom: 14px; }
.how__sub { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-muted); }

.how__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.how__media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26,26,26,0.18);
  background: var(--ink);
  aspect-ratio: 4 / 3;
}
.how__media video { width: 100%; height: 100%; object-fit: cover; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step--last { border-bottom: 0; }
.step__num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  color: #fff;
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.step__title { font-family: 'Archivo Black', sans-serif; font-size: 18px; text-transform: uppercase; margin: 0 0 5px; }
.step__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }

/* =====================================================
   BEFORE / AFTER
   ===================================================== */
.ba { background: var(--ink); padding: 90px 24px; color: var(--cream); }
.ba__inner { max-width: 1080px; margin: 0 auto; }
.ba__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }

.ba__box {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 640;
  border-radius: 16px;
  overflow: hidden;
  cursor: ew-resize;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  user-select: none;
  touch-action: none;
  outline: none;
}
.ba__box:focus-visible { box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 3px var(--amber); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 48% 0 0); pointer-events: none; }
.ba__tag {
  position: absolute;
  top: 16px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
}
.ba__tag--after { right: 18px; background: var(--green); color: var(--ink); }
.ba__tag--before { left: 18px; background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 52%;
  width: 3px;
  background: var(--amber);
  transform: translateX(-1.5px);
  pointer-events: none;
}
.ba__knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.ba__knob span { color: var(--ink); font-weight: 900; font-size: 16px; }
.ba__caption { text-align: center; font-size: 13.5px; color: #8A8A85; margin: 18px 0 0; }

/* =====================================================
   WHY PATCHPLUS
   ===================================================== */
.why { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.why__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26,26,26,0.16);
  aspect-ratio: 3 / 4;
  max-height: 520px;
}
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__content .h2 { margin: 0 0 32px; }
.why__list { display: flex; flex-direction: column; gap: 22px; }
.why__item { display: flex; gap: 16px; }
.why__chip { width: 12px; height: 12px; border-radius: 3px; margin-top: 6px; flex: none; }
.why__title { font-weight: 700; font-size: 17px; margin: 0 0 4px; font-family: 'Arimo', sans-serif; }
.why__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band { padding: 0 24px 96px; }
.cta-band__box {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--amber);
  border-radius: 22px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.cta-band__hatch {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 160px;
  background-image: repeating-linear-gradient(-45deg,rgba(26,26,26,0.12) 0 14px,transparent 14px 28px);
}
.cta-band__content { position: relative; max-width: 640px; }
.cta-band__title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-transform: uppercase;
  color: var(--ink);
}
.cta-band__text { margin: 0 0 30px; font-size: 17px; line-height: 1.6; color: #3A2A18; max-width: 520px; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--ink); color: var(--cream); }
.footer__rule { height: 8px; background-image: repeating-linear-gradient(-45deg,#1A1A1A 0 8px,#89BF4A 8px 16px); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 300px; }
.footer__brand .logo { width: 178px; height: auto; color: var(--cream); overflow: visible; }
.footer__blurb { margin: 0; font-size: 14px; line-height: 1.65; color: #B5B5B0; }
.footer__powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.footer__powered-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__heading {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A8A85;
  margin-bottom: 4px;
}
.footer__col a { text-decoration: none; color: #D1D1CD; font-size: 14px; transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__addr { font-size: 14px; line-height: 1.6; color: #8A8A85; margin-top: 4px; }

.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #8A8A85;
}

/* =====================================================
   FAQ (Home)
   ===================================================== */
.faq { max-width: 880px; margin: 0 auto; padding: 8px 24px 96px; }
.faq__head { text-align: center; margin-bottom: 36px; }
.faq__head .h2 { margin-top: 6px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 2px;
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink);
  transition: color .2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: 'Archivo Black', sans-serif;
  font-size: 26px;
  line-height: 1;
  color: var(--amber);
  flex: none;
}
.faq__item[open] summary::after { content: "\2013"; }
.faq__item summary:hover { color: var(--green-deep); }
.faq__answer {
  margin: 0;
  padding: 0 2px 26px;
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .how__grid { grid-template-columns: 1fr; gap: 32px; }
  .why__grid { grid-template-columns: 1fr; gap: 36px; }
  .why__media { max-height: 460px; aspect-ratio: 16 / 11; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .footer__brand { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ink-2); }
}

@media (max-width: 620px) {
  .hero { min-height: 86vh; }
  .hero__fade-h { background: linear-gradient(90deg,#FAF9F5 0%,rgba(250,249,245,0.92) 55%,rgba(250,249,245,0.5) 100%); }
  .services { padding: 72px 20px 32px; }
  .how { padding: 64px 20px 72px; }
  .ba { padding: 64px 20px; }
  .why { padding: 72px 20px; }
  .cta-band__box { padding: 44px 28px; }
  .cta-band__hatch { display: none; }
}

@media (max-width: 480px) {
  .stats__inner { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--ink-2); }
  .stat--last { border-bottom: 0; }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__img, .line-mask > span, .nav, .badge, .hero__lede, .hero__cta { animation: none; }
}
