/* ==========================================================================
   Garden — landing page styles
   Design tokens: limestone paper ground, ink-green text, moss primary,
   clay accent reserved for the "patch/repair" signature motif.
   ========================================================================== */

:root{
  --ground:      #EAE7DD;
  --ground-2:    #E1DDCF;
  --card:        #F4F2E9;
  --ink:         #1C2620;
  --ink-soft:    #3E4A42;
  --moss:        #3C5A44;
  --moss-deep:   #26392C;
  --moss-bright: #6B8F6E;
  --clay:        #B5502E;
  --clay-soft:   #D98A5F;
  --line:        #C9C4B3;
  --line-strong: #A8A290;

  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --radius: 4px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html{
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.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-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: 12px 20px;
  z-index: 200;
  font-family: var(--font-body);
  font-weight: 600;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  border-radius: var(--radius);
}

a{ color: inherit; }

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

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

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

/* ---------- eyebrow / labels ---------- */

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 14px;
  font-weight: 500;
}

.eyebrow-on-dark{ color: var(--moss-bright); }

/* ---------- buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}

.btn-primary{
  background: var(--moss-deep);
  color: var(--ground);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover{
  background: var(--moss);
  transform: translateY(-1px);
}
.btn-primary:active{ transform: translateY(0); }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover{
  border-color: var(--ink);
  background: rgba(28,38,32,0.04);
}

.btn-nav{ font-size: 14px; padding: 10px 18px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 231, 221, 0.86);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark{
  color: var(--moss-deep);
  display: inline-flex;
  transform: translateY(1px);
}

.logo-word{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.primary-nav{ flex: 1; display: flex; justify-content: center; }

.nav-list{
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a{
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
  position: relative;
}
.nav-list a:hover{ color: var(--ink); }
.nav-list a::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav-list a:hover::after{ transform: scaleX(1); }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle-bar{
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-headline{
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 26px;
}

.hero-sub{
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- hero visual: repair-ticket / patch cards --- */

.hero-visual{
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

.patch-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px 24px;
  position: relative;
  box-shadow: 0 18px 40px -24px rgba(28, 38, 32, 0.35);
}

.patch-before{
  transform: rotate(-1.1deg);
}
.patch-after{
  transform: rotate(0.8deg);
  border-color: var(--moss-bright);
}

.patch-stitch{
  position: absolute;
  top: 0; bottom: 0; left: 14px;
  width: 0;
  border-left: 2px dashed var(--line-strong);
  opacity: 0.9;
}
.patch-after .patch-stitch{ border-left-color: var(--moss-bright); }

.patch-label{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin: 0 0 10px 20px;
  font-weight: 500;
}
.patch-label-repaired{ color: var(--moss); }

.patch-title{
  font-family: var(--font-mono);
  font-size: 14px;
  margin: 0 0 14px 20px;
  color: var(--ink);
  font-weight: 500;
}

.patch-facts{
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.patch-facts li{
  font-size: 13.5px;
  color: var(--ink-soft);
  position: relative;
  padding-left: 14px;
}
.patch-facts li::before{
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  background: var(--line-strong);
  border-radius: 50%;
}
.patch-after .patch-facts li::before{ background: var(--moss-bright); }

.patch-arrow{
  align-self: center;
  color: var(--line-strong);
  transform: rotate(90deg);
}

@media (min-width: 700px){
  .patch-arrow{ transform: none; align-self: flex-start; margin-left: 40%; }
}

/* horizontal stitch divider used between sections */
.patch-stitch-h{
  height: 0;
  width: 64px;
  border-top: 2px dashed var(--line-strong);
  margin: 0 auto 22px;
}
.cta-section .patch-stitch-h{ border-top-color: rgba(107,143,110,0.55); }

/* ==========================================================================
   Section shell
   ========================================================================== */

.section{
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head{
  max-width: 62ch;
  margin-bottom: 52px;
}

.section-head h2{
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.16;
  margin-bottom: 14px;
}

.section-dek{
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ==========================================================================
   Problem
   ========================================================================== */

.problem-lede{
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 74ch;
  margin-bottom: 44px;
}

.problem-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.problem-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
}

.problem-card-mono{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clay);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.problem-card h3{
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.problem-card p{
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ==========================================================================
   How it works — flow
   ========================================================================== */

.flow{
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.flow-step{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.flow-marker{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}
.flow-marker span{
  font-family: var(--font-mono);
  font-size: 14px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--moss);
  background: var(--card);
}

.flow-body h3{
  font-size: 21px;
  margin-bottom: 8px;
}
.flow-body p{
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.65;
}

.roadmap-note{
  text-align: center;
  max-width: 62ch;
  margin: 0 auto;
}
.roadmap-eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.roadmap-note p:last-child{
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ==========================================================================
   Differentiation — compare columns
   ========================================================================== */

.compare{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.compare-col{
  padding: 38px 38px 40px;
}

.compare-them{
  background: var(--ground-2);
}

.compare-us{
  background: var(--moss-deep);
  color: var(--ground);
}

.compare-heading{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--clay);
}
.compare-us .compare-heading{ color: var(--moss-bright); }

.compare-col ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compare-col li{
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.compare-col li::before{
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--line-strong);
}
.compare-us li{ color: rgba(234,231,221,0.86); }
.compare-us li::before{ color: var(--moss-bright); }
.compare-us li strong{ color: var(--ground); }
.compare-them li strong{ color: var(--ink); }

/* ==========================================================================
   Trust / security
   ========================================================================== */

.trust{ background: var(--ground-2); }

.trust-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.trust-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.trust-mono{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--moss);
  margin-bottom: 14px;
}

.trust-card h3{
  font-size: 19px;
  margin-bottom: 10px;
}

.trust-card p{
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.cta-section{
  background: var(--moss-deep);
  color: var(--ground);
  text-align: center;
  border-top: none;
}

.cta-inner{
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section h2{
  color: var(--ground);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 18px;
}

.cta-sub{
  font-size: 17px;
  color: rgba(234,231,221,0.78);
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta-form{
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-input{
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(234,231,221,0.3);
  background: rgba(234,231,221,0.06);
  color: var(--ground);
  font-family: var(--font-body);
  font-size: 15px;
}
.cta-input::placeholder{ color: rgba(234,231,221,0.45); }
.cta-input:focus{
  outline: 2px solid var(--moss-bright);
  outline-offset: 2px;
  background: rgba(234,231,221,0.1);
}

.btn-cta{
  background: var(--clay);
  color: var(--ground);
  flex: 0 0 auto;
}
.btn-cta:hover{ background: var(--clay-soft); }

.cta-note{
  margin-top: 16px;
  font-size: 14px;
  color: var(--moss-bright);
  min-height: 1.4em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.footer-brand .logo-mark{ color: var(--moss-deep); }

.footer-copy{
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-meta{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-meta a{
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-meta a:hover{ color: var(--moss); text-decoration: underline; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal]{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px){
  .problem-cards{ grid-template-columns: 1fr; }
  .trust-grid{ grid-template-columns: 1fr; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 480px; }
}

@media (max-width: 860px){
  .primary-nav{
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .primary-nav.is-open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-list{
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
  }
  .nav-list li{ border-bottom: 1px solid var(--line); }
  .nav-list a{
    display: block;
    padding: 14px 0;
  }
  .nav-list a::after{ display: none; }
  .nav-toggle{ display: flex; }
  .btn-nav{ display: none; }
}

@media (max-width: 700px){
  .wrap{ padding: 0 20px; }
  .hero{ padding: 52px 0 64px; }
  .section{ padding: 64px 0; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content: center; }
  .compare{ grid-template-columns: 1fr; }
  .compare-col{ padding: 30px 24px; }
  .flow-step{ grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; }
  .flow-marker span{ width: 32px; height: 32px; font-size: 12.5px; }
  .cta-form{ flex-direction: column; }
  .btn-cta{ width: 100%; justify-content: center; }
  .footer-inner{ flex-direction: column; align-items: flex-start; gap: 12px; }
}
