/* TreeCraft Studio — marketing site
   Palette lifted directly from the app UI:
   teal-green primary (#1D9E75, same as the "Craft" wordmark / Generate button),
   warm orange accent (#FFA34B, the Hand-tool icon), mint tint, near-black ink. */

:root{
  --teal:#1D9E75;
  --teal-dark:#157A5A;
  --mint:#E1F5EE;
  --mint-soft:#F3FAF7;
  --orange:#FFA34B;
  --orange-dark:#D07622;
  --ink:#1A1A1A;
  --muted:#6B6E6C;
  --border:#E4E7E5;
  --bg:#FFFFFF;
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Source Sans 3', sans-serif;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none;}

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

/* ---------- pedigree line watermark, shared across pages ---------- */
.pedigree-watermark{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  opacity:0.09;
  pointer-events:none;
}
.pedigree-watermark path{fill:none;stroke:var(--teal);stroke-width:1.4;}
.pedigree-watermark rect{fill:none;stroke:var(--orange-dark);stroke-width:1.2;}

/* ---------- header / nav ---------- */
header.site{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 32px;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--border);
}

.wordmark{
  font-family:'Poppins', sans-serif;
  font-weight:800;
  font-size:1.28rem;
  letter-spacing:-0.01em;
  color:#161513;
  text-shadow:1px 2px 3px rgba(0,0,0,0.15);
  white-space:nowrap;
}
.wordmark .craft{color:var(--teal);}

nav.main-nav{
  display:flex;
  align-items:center;
  gap:30px;
}
nav.main-nav .links{
  display:flex;
  gap:26px;
  font-size:0.94rem;
  font-weight:600;
  color:var(--ink);
}
nav.main-nav .links a{
  padding:6px 2px;
  border-bottom:2px solid transparent;
  transition:border-color .15s ease, color .15s ease;
}
nav.main-nav .links a:hover,
nav.main-nav .links a.active{
  color:var(--teal-dark);
  border-bottom-color:var(--teal);
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:0.92rem;
  padding:10px 20px;
  border-radius:8px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{
  background:var(--teal);
  color:#fff;
  box-shadow:0 2px 8px rgba(29,158,117,0.28);
}
.btn-primary:hover{background:var(--teal-dark);}
.btn-outline{
  background:#fff;
  color:var(--ink);
  border-color:var(--border);
}
.btn-outline:hover{border-color:var(--teal);color:var(--teal-dark);}
.btn-accent{
  background:var(--orange);
  color:#3a2200;
}
.btn-accent:hover{background:var(--orange-dark);color:#fff;}

/* mobile nav toggle */
.nav-toggle{display:none;}

/* ---------- layout helpers ---------- */
.wrap{
  position:relative;
  z-index:1;
  max-width:1080px;
  margin:0 auto;
  padding:0 32px;
}
section{position:relative;z-index:1;}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.72rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--teal-dark);
  margin-bottom:14px;
}
.eyebrow::before,.eyebrow::after{
  content:"";
  width:22px;
  height:1px;
  background:var(--teal);
  opacity:0.6;
}

/* ---------- hero ---------- */
.hero{
  text-align:center;
  padding:88px 32px 70px;
}
.hero h1{
  font-family:'Source Sans 3', sans-serif;
  font-weight:700;
  font-size:clamp(1.9rem, 4vw, 2.7rem);
  line-height:1.28;
  margin:0 0 20px;
  color:var(--ink);
}
.hero p.lede{
  max-width:600px;
  margin:0 auto 34px;
  font-size:1.08rem;
  line-height:1.65;
  color:var(--muted);
}
.hero-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

.footnote{
  max-width:520px;
  margin:-14px auto 30px;
  font-size:0.82rem;
  line-height:1.5;
  color:#A0A39F;
}
.footnote sup{margin-right:2px;}

/* ---------- feature grid ---------- */
.features{
  padding:70px 32px 80px;
  background:var(--mint-soft);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.section-head{
  text-align:center;
  max-width:560px;
  margin:0 auto 48px;
}
.section-head h2{
  font-size:clamp(1.5rem,3vw,1.9rem);
  margin:0 0 12px;
  font-weight:700;
}
.section-head p{color:var(--muted);margin:0;line-height:1.6;}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}
.feature-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:26px 24px;
  transition:box-shadow .15s ease, transform .15s ease;
}
.feature-card:hover{
  box-shadow:0 8px 24px rgba(29,158,117,0.12);
  transform:translateY(-2px);
}
.feature-icon{
  width:42px;
  height:42px;
  margin-bottom:16px;
}
.feature-card h3{
  font-size:1.05rem;
  margin:0 0 8px;
  font-weight:700;
}
.feature-card p{
  margin:0;
  font-size:0.93rem;
  line-height:1.55;
  color:var(--muted);
}

/* ---------- about ---------- */
.about-section{
  padding:78px 32px;
}
.about-section .wrap{max-width:720px;}
.about-section .about-copy p{
  font-size:1.03rem;
  line-height:1.75;
  color:var(--ink);
  opacity:0.9;
  margin:0 0 1.2em;
}
.about-section .about-copy p:last-child{margin-bottom:0;}

/* ---------- gallery ---------- */
.gallery-hero{
  padding:64px 32px 20px;
  text-align:center;
}
.gallery-hero h1{
  font-size:clamp(1.7rem,3.6vw,2.3rem);
  font-weight:700;
  margin:0 0 14px;
}
.gallery-hero p{
  color:var(--muted);
  max-width:560px;
  margin:0 auto;
  line-height:1.6;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
  padding:40px 32px 90px;
  max-width:1080px;
  margin:0 auto;
}
.gallery-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  transition:box-shadow .15s ease, transform .15s ease;
}
.gallery-card:hover{
  box-shadow:0 10px 28px rgba(29,158,117,0.14);
  transform:translateY(-3px);
}
.gallery-thumb{
  aspect-ratio:4/3;
  background:var(--mint-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--border);
}
.gallery-thumb svg{width:78%;height:78%;}
.gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.gallery-card-wide{grid-column:1 / -1;}
.gallery-thumb.wide{aspect-ratio:21/9;}
.gallery-thumb.wide img{
  object-fit:contain;
  padding:16px;
  background:#fff;
}
.gallery-label{
  padding:16px 18px 20px;
}
.gallery-label h3{
  margin:0 0 4px;
  font-size:1rem;
  font-weight:700;
}
.gallery-label p{
  margin:0;
  font-size:0.85rem;
  color:var(--muted);
  font-style:italic;
}

/* ---------- footer ---------- */
footer.site{
  position:relative;
  z-index:1;
  border-top:1px solid var(--border);
  padding:34px 32px;
  text-align:center;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.7rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--muted);
}
footer.site .footer-links{
  display:flex;
  justify-content:center;
  gap:22px;
  margin-bottom:12px;
}
footer.site .footer-links a{
  color:var(--muted);
  transition:color .15s ease;
}
footer.site .footer-links a:hover{color:var(--teal-dark);}

.faq-list{
  max-width:720px;
  margin:0 auto;
  padding:10px 32px 90px;
}
.faq-item{
  border-bottom:1px solid var(--border);
  padding:22px 0;
}
.faq-item summary{
  cursor:pointer;
  font-weight:700;
  font-size:1.02rem;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{
  content:"+";
  font-size:1.3rem;
  color:var(--teal);
  flex-shrink:0;
  transition:transform .15s ease;
}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{
  margin:14px 0 0;
  color:var(--muted);
  line-height:1.65;
  font-size:0.97rem;
}

.section-label{
  max-width:720px;
  margin:0 auto;
  padding:10px 32px 20px;
  text-align:center;
}
.section-label h2{
  font-size:clamp(1.3rem,2.6vw,1.6rem);
  font-weight:700;
  margin:0 0 10px;
}
.section-label p{
  color:var(--muted);
  line-height:1.6;
  margin:0 0 6px;
}
.section-label.styles-label{
  max-width:640px;
  padding-top:30px;
}
.stat-line{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.76rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--teal-dark);
  margin-top:14px !important;
}

.subgroup{
  max-width:1080px;
  margin:0 auto;
  padding:8px 32px 56px;
}
.subgroup-heading{
  font-size:1.05rem;
  font-weight:700;
  margin:0 0 20px;
  padding-bottom:10px;
  border-bottom:1px solid var(--border);
}

.style-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:24px;
}
.subgroup-intro{
  color:var(--muted);
  line-height:1.6;
  margin:-10px 0 20px;
  max-width:640px;
}

.style-thumb.preset-sheet{
  aspect-ratio:auto;
  height:auto;
  background:#fff;
}
.style-thumb.preset-sheet img{
  width:100%;
  height:auto;
  display:block;
  object-fit:initial;
  padding:10px;
}

.style-grid-wide{grid-template-columns:1fr;}

.style-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  transition:box-shadow .15s ease, transform .15s ease;
}
.style-card:hover{
  box-shadow:0 10px 28px rgba(29,158,117,0.14);
  transform:translateY(-3px);
}
.style-thumb{
  aspect-ratio:16/10;
  background:var(--mint-soft);
  border-bottom:1px solid var(--border);
  overflow:hidden;
}
.style-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}
.style-thumb.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:20px;
}
.style-thumb.placeholder span{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.75rem;
  letter-spacing:0.05em;
  color:var(--muted);
  opacity:0.75;
}
.style-card-pending{border-style:dashed;}
.style-card-pending .style-thumb{background:#fafaf9;}

.orientation-pair{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:24px;
}
.orientation-note{
  text-align:center;
  color:var(--muted);
  font-size:0.9rem;
  margin:18px 0 0;
}

/* ---------- lightbox ---------- */
.zoomable{cursor:zoom-in;}

.lightbox{
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(20,22,20,0.88);
  padding:40px;
}
.lightbox.open{display:flex;}
.lightbox img{
  max-width:100%;
  max-height:100%;
  border-radius:6px;
  box-shadow:0 20px 60px rgba(0,0,0,0.4);
  cursor:default;
}
.lightbox-close{
  position:absolute;
  top:20px;
  right:28px;
  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.12);
  color:#fff;
  font-size:1.8rem;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease;
}
.lightbox-close:hover{background:rgba(255,255,255,0.22);}

/* ---------- responsive ---------- */
@media (max-width:860px){
  .feature-grid{grid-template-columns:repeat(2,1fr);}
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .style-grid{grid-template-columns:1fr;}
  .orientation-pair{grid-template-columns:1fr;}
}

@media (max-width:640px){
  nav.main-nav .links{
    position:fixed;
    top:60px;
    left:0;
    right:0;
    background:#fff;
    border-bottom:1px solid var(--border);
    flex-direction:column;
    gap:0;
    padding:10px 0;
    display:none;
  }
  nav.main-nav .links.open{display:flex;}
  nav.main-nav .links a{padding:12px 32px;width:100%;border-bottom:none;}
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:36px;height:36px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#fff;
    cursor:pointer;
    font-size:1.1rem;
  }
  .feature-grid{grid-template-columns:1fr;}
  .gallery-grid{grid-template-columns:1fr;}
  header.site{padding:14px 20px;}
}
