/* =========================================================
   Wood Identifier: AI Scanner — Landing page
   Design: warm & natural (walnut · cream · teal accent)
   ========================================================= */

:root {
  /* Palette */
  --cream:      #FBF6EE;
  --cream-2:    #F4EADB;
  --surface:    #FFFFFF;
  --walnut:     #3A2A20;   /* headings / primary text */
  --walnut-2:   #6E5B4E;   /* muted text */
  --bark:       #8A5A3B;   /* wood accent */
  --bark-dark:  #6F4428;
  --teal:       #1B8C81;   /* CTA / accent */
  --teal-dark:  #14726A;
  --teal-soft:  #E4F1EF;
  --line:       #E9DECE;
  --amber:      #E4A548;

  --shadow-sm: 0 2px 8px rgba(58, 42, 32, .07);
  --shadow-md: 0 14px 40px rgba(58, 42, 32, .12);
  --shadow-lg: 0 30px 70px rgba(58, 42, 32, .18);

  --radius: 20px;
  --radius-lg: 30px;
  --maxw: 1140px;

  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--walnut);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--walnut); line-height: 1.12; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 14px;
}

.muted { color: var(--walnut-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(27, 140, 129, .32); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--walnut); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--bark); color: var(--bark-dark); }

/* App Store badge link */
.badge-link { display: inline-block; transition: transform .15s ease; }
.badge-link:hover { transform: translateY(-2px); }
.badge-link img { height: 54px; width: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--walnut); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--walnut-2); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--walnut); text-decoration: none; }
.nav-cta { padding: 10px 20px; font-size: .93rem; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; }
@media (max-width: 820px) { .nav-links .nav-item { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 68px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(228,165,72,.16), transparent 60%),
    radial-gradient(55% 60% at 8% 90%, rgba(27,140,129,.10), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); margin: 0 0 18px; }
.hero h1 .accent { color: var(--bark-dark); }
.hero-lead { font-size: 1.18rem; color: var(--walnut-2); max-width: 33ch; margin: 0 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.rating { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--walnut-2); font-size: .93rem; }
.stars {
  display: inline-block; font-size: 1.08rem; line-height: 1; letter-spacing: 2px;
  white-space: nowrap;
  background: linear-gradient(90deg,
    var(--amber) 0 var(--pct, 84%),
    #D9C7B5 var(--pct, 84%) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.rating strong { color: var(--walnut); }

/* Phones */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 400px; }
.phone { position: absolute; }
.phone img { width: 100%; height: auto; border-radius: 30px; filter: drop-shadow(0 22px 40px rgba(58,42,32,.26)); }
.phone-front { width: 218px; z-index: 3; transform: translateX(22px) rotate(3deg); }
.phone-back  { width: 198px; z-index: 2; transform: translateX(-94px) rotate(-5deg); opacity: .97; }
.hero-blob {
  position: absolute; z-index: 0; width: 440px; height: 440px; border-radius: 46% 54% 58% 42%;
  background: radial-gradient(circle at 40% 35%, #fff 0%, var(--teal-soft) 45%, rgba(228,165,72,.20) 100%);
  filter: blur(2px); top: 50%; left: 50%; transform: translate(-50%, -50%);
}

/* ---------- Section shell ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 14px; }
.section-head p { font-size: 1.1rem; color: var(--walnut-2); margin: 0; }

/* ---------- Modes ---------- */
.modes { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mode-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 38px 34px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.mode-card.wood { background: linear-gradient(160deg, #FBEFE2 0%, #F3DFC9 100%); }
.mode-card.tree { background: linear-gradient(160deg, #E7F1EC 0%, #D4E7DE 100%); }
.mode-tag { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.7); color: var(--bark-dark); margin-bottom: 14px; }
.mode-card.tree .mode-tag { color: var(--teal-dark); }
.mode-card h3 { font-size: 1.6rem; margin: 0 0 10px; }
.mode-card p { color: var(--walnut-2); margin: 0 0 8px; max-width: 34ch; }
.mode-illus { position: absolute; right: -18px; bottom: -10px; width: 210px; pointer-events: none; opacity: .96; }
.mode-card .mode-body { position: relative; z-index: 1; padding-right: 90px; min-height: 200px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 18px;
}
.feature.warm .icon { background: #F6E6D3; color: var(--bark-dark); }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; margin: 0 0 8px; }
.feature p { color: var(--walnut-2); margin: 0; font-size: .98rem; }

/* ---------- How it works ---------- */
.how { background: var(--surface); border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 56px; align-items: center; }
.steps { display: flex; flex-direction: column; gap: 30px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(27,140,129,.3);
}
.step h3 { font-size: 1.22rem; margin: 4px 0 6px; }
.step p { color: var(--walnut-2); margin: 0; }
.how-phone { display: flex; justify-content: center; }
.how-phone img { width: 260px; height: auto; border-radius: 36px; filter: drop-shadow(0 26px 50px rgba(58,42,32,.26)); }

/* ---------- Experts ---------- */
.experts { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.expert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 900px; margin-inline: auto; }
.expert-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.expert-card img { width: 92px; height: 92px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; box-shadow: var(--shadow-sm); }
.expert-card h3 { font-size: 1.2rem; margin: 0 0 4px; }
.expert-card p { margin: 0; color: var(--walnut-2); font-size: .96rem; }

/* ---------- Photo band ---------- */
.photoband { position: relative; overflow: hidden; }
.photoband img { width: 100%; height: 380px; object-fit: cover; }
.photoband .overlay {
  position: absolute; inset: 0; display: grid; align-items: center;
  background: linear-gradient(90deg, rgba(58,42,32,.82) 0%, rgba(58,42,32,.5) 55%, rgba(58,42,32,.15) 100%);
}
.photoband .overlay .wrap { width: 100%; }
.photoband blockquote { margin: 0; max-width: 30ch; }
.photoband blockquote p { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; line-height: 1.25; margin: 0 0 10px; }
.photoband blockquote cite { color: #F2E4D3; font-style: normal; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 2px 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease;
}
.faq-list details[open] { box-shadow: var(--shadow-md); }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 20px 0; margin: 0;
  font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--walnut);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark);
  font-family: var(--sans); font-size: 1.3rem; font-weight: 400; line-height: 1;
  display: grid; place-items: center;
  transition: transform .2s ease, background .2s ease;
}
.faq-list details[open] summary::after { content: "\2013"; transform: rotate(180deg); }
.faq-list details p { margin: 0 0 20px; color: var(--walnut-2); }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; text-align: center; }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--bark) 0%, var(--bark-dark) 100%);
  border-radius: var(--radius-lg); padding: 64px 30px; box-shadow: var(--shadow-lg);
}
.cta-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 85% 0%, rgba(228,165,72,.35), transparent 60%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 14px; }
.cta-card p { color: #F4E6D6; font-size: 1.12rem; max-width: 42ch; margin: 0 auto 30px; }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-card .btn-primary { background: #fff; color: var(--bark-dark); }
.cta-card .btn-primary:hover { background: #fff; color: var(--bark-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--walnut); color: #D8C9BB; padding: 54px 0 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-brand img { width: 38px; height: 38px; border-radius: 10px; }
.footer-brand + p { margin: 14px 0 0; max-width: 34ch; color: #B9A796; font-size: .95rem; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #9A897A; margin: 0 0 14px; }
.footer-col a { display: block; color: #D8C9BB; margin-bottom: 10px; font-size: .96rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .87rem; color: #9A897A;
}
.footer-bottom a { color: #9A897A; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal { padding: 46px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal .back { display: inline-block; margin-bottom: 26px; font-weight: 600; color: var(--teal-dark); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 26px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--walnut-2); }
.legal a { color: var(--teal-dark); }
.legal .note {
  background: var(--teal-soft); border: 1px solid #CDE6E2; border-radius: 14px;
  padding: 16px 18px; margin-bottom: 20px; color: var(--walnut); font-size: .96rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .rating { justify-content: center; }
  .hero-visual { margin-top: 30px; min-height: 520px; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-phone { order: -1; }
}
@media (max-width: 780px) {
  .section { padding: 62px 0; }
  .mode-grid, .feature-grid, .expert-grid { grid-template-columns: 1fr; }
  .mode-card .mode-body { padding-right: 0; min-height: 0; }
  .mode-illus { position: static; margin: 18px auto 0; width: 170px; }
  .photoband .overlay { background: linear-gradient(90deg, rgba(58,42,32,.85) 0%, rgba(58,42,32,.55) 100%); }
  .footer-top { flex-direction: column; }
}
@media (max-width: 460px) {
  .phone-front { width: 196px; transform: translateX(16px) rotate(3deg); }
  .phone-back  { width: 176px; transform: translateX(-80px) rotate(-5deg); }
  .hero-blob { width: 340px; height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
