/* Underground Recovery — shared styles */
:root {
  --ink: #143222;
  --ink-2: #1a3d2a;
  --navy: #182538;
  --forest: #22302a;
  --brown: #3a2f2a;
  --cream: #eaf4e1;
  --cream-2: #dcebcf;
  --paper: #ffffff;
  --text: #1b2a20;
  --muted: #56665a;
  --line: #d5e4cb;
  --copper: #2f7a34;
  --copper-light: #a9dc84;
  --green: #4f9b33;
  --green-dark: #2a6a2e;
  --on-dark: #f3f8ee;
  --on-dark-muted: rgba(243,248,238,0.72);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--paper); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.logo span { color: var(--copper); }
.logo img { width: 36px; height: 36px; }
footer .logo { color: var(--on-dark); }
footer .logo span { color: var(--copper-light); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: #fff; background: var(--copper); padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.nav-links .nav-cta:hover { color: #fff; background: var(--green-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px; transition: transform .12s, background .15s, border-color .15s; border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(239,233,222,0.28); color: var(--on-dark); }
.btn-ghost:hover { border-color: rgba(239,233,222,0.6); }
.btn-dark { background: var(--copper); color: #fff; }
.btn-dark:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn small { display: block; font-size: 10.5px; font-weight: 500; opacity: .7; letter-spacing: .04em; line-height: 1.1; }
.btn .btn-stack { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }

/* TYPE */
.eyebrow { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: 14px; }
.dark .eyebrow { color: var(--copper-light); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.lead { font-size: 17.5px; color: var(--muted); max-width: 560px; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-muted); }
section { padding: 96px 0; }

/* QUICK GET */
.quick { padding: 28px 0 8px; background: #fff; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; }
.qcard { aspect-ratio: 1; border-radius: 24px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; position: relative; transition: transform .18s, box-shadow .18s; box-shadow: 0 10px 30px rgba(20,50,34,0.12); }
.qcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,50,34,0.2); }
.qcard-app { background: linear-gradient(160deg, #2f7a34 0%, #143222 100%); color: #fff; }
.qcard-book { background: linear-gradient(160deg, #eaf4e1 0%, #cfe6bd 100%); color: var(--ink); }
.qart { flex: 1; position: relative; min-height: 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding-top: 7%; }
.qphone { width: 46%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px 22px 0 0; border: 5px solid #0b0d10; border-bottom: 0; box-shadow: 0 -6px 30px rgba(0,0,0,0.3); }
.qicon { position: absolute; top: 9%; left: 8%; width: 18%; border-radius: 22%; box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.qcover { height: 88%; width: auto; align-self: center; box-shadow: 10px 14px 28px rgba(20,50,34,0.35); border-radius: 2px 6px 6px 2px; transform: rotate(-3deg); }
.qtext { padding: 4% 7% 7%; display: flex; flex-direction: column; gap: 2px; }
.qkicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.qtext b { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 3vw, 30px); line-height: 1.1; }
.qsub { font-size: 14px; opacity: .8; }
.qbtn { margin-top: 10px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; }
.qbtn svg { width: 16px; height: 16px; }
.qcard-app .qbtn { background: #fff; color: var(--ink); }
.qcard-book .qbtn { background: var(--copper); color: #fff; }
@media (max-width: 680px) {
  .quick { padding: 16px 0 4px; }
  .quick-grid { gap: 12px; }
  .qcard { border-radius: 18px; }
  .qtext { padding: 6% 9% 9%; align-items: center; text-align: center; }
  .qkicker { display: none; }
  .qart { padding-top: 9%; }
  .qtext b { font-size: 16px; }
  .qsub { display: none; }
  .qbtn { align-self: center; margin-top: 6px; font-size: 12.5px; padding: 6px 12px; }
  .qbtn svg { width: 13px; height: 13px; }
  .qphone { border-width: 3px; border-radius: 12px 12px 0 0; width: 52%; }
  .qicon { width: 20%; top: 8%; left: 7%; }
}

/* HERO */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; background: radial-gradient(900px 600px at 80% 20%, #d9efc6 0%, transparent 60%), linear-gradient(180deg, #ffffff 0%, #f1f8ea 100%); color: var(--text); }
.hero .lead { color: var(--muted); }
.hero .eyebrow { color: var(--copper); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 22px; }
.hero h1 { color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--copper); }
.hero .lead { margin-bottom: 32px; font-size: 18.5px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13.5px; color: var(--muted); list-style: none; }
.hero-notes li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 9px; vertical-align: 2px; }

/* PHONE MOCKUP */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(79,155,51,0.28), transparent 65%); top: 50%; left: 50%; transform: translate(-50%,-50%); }
.phone { position: relative; width: 290px; aspect-ratio: 1320 / 2868; background: #0b0d10; border-radius: 46px; padding: 11px; box-shadow: 0 0 0 1.5px #2b3038, 0 40px 80px rgba(20,50,34,0.35); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #1c2a3f 0%, #141a24 55%, #121418 100%); color: var(--on-dark); padding: 54px 20px 22px; display: flex; flex-direction: column; }
.phone-screen img.screenshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; background: #0b0d10; border-radius: 20px; z-index: 2; }
.ps-label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-light); font-weight: 700; }
.ps-title { font-family: var(--serif); font-size: 22px; margin: 4px 0 18px; }
.ps-big { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 16px; text-align: center; margin-bottom: 10px; }
.ps-big strong { font-family: var(--serif); font-size: 52px; line-height: 1; display: block; }
.ps-big span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
.ps-cell { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 9px 4px; text-align: center; }
.ps-cell strong { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-cell span { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.ps-quote { margin-top: auto; background: var(--cream); color: var(--ink); border-radius: 16px; padding: 14px; font-size: 13px; line-height: 1.45; font-weight: 500; }
.ps-quote b { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: 5px; }

/* STRIP */
.strip { background: var(--copper); padding: 20px 0; }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; list-style: none; color: var(--on-dark-muted); font-size: 14px; }
.strip b { color: #fff; font-weight: 700; }

/* FEATURES */
.section-head { margin-bottom: 52px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: #fbfdf9; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--copper); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }
.feature .tag { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); background: #e3f3ec; padding: 3px 10px; border-radius: 999px; }
.feature .tag.premium { color: #fff; background: var(--copper); }

/* SCREENSHOTS */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-top: 40px; }
.shot { aspect-ratio: 1320/2868; border-radius: 30px; background: #0b0d10; padding: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.shot-inner { width: 100%; height: 100%; border-radius: 23px; padding: 0 !important; overflow: hidden; background: linear-gradient(180deg, #1c2a3f, #121418); display: grid; place-items: center; color: var(--on-dark-muted); font-size: 12px; text-align: center; padding: 20px; }
.shot-inner img { width: 100%; height: 100%; object-fit: cover; }

.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.app-id img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 6px 18px rgba(20,50,34,0.25); }
.app-id b { display: block; font-weight: 600; color: var(--text); }
.app-id span { font-size: 13px; color: var(--muted); }
.shot-fig { flex: 0 0 230px; scroll-snap-align: start; text-align: center; }
.shot-fig .shot { width: 100%; }
.shot-fig figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--text); }
@media (min-width: 1000px) { .shots { justify-content: space-between; overflow: visible; } .shot-fig { flex: 0 1 240px; } }

/* DECKS */
.decks { overflow: hidden; }
.decks { background: linear-gradient(160deg, #1f4a2c 0%, #143222 75%); }
.decks .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.deck-fan { position: relative; height: 440px; }
.deck-fan img { position: absolute; width: 210px; border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,0.45); transition: transform .3s; }
.deck-fan img:nth-child(1) { left: 0; top: 40px; transform: rotate(-12deg); }
.deck-fan img:nth-child(2) { left: 22%; top: 12px; transform: rotate(-4deg); }
.deck-fan img:nth-child(3) { left: 44%; top: 12px; transform: rotate(4deg); }
.deck-fan img:nth-child(4) { left: 66%; top: 40px; transform: rotate(12deg); }
.deck-fan:hover img:nth-child(1) { transform: rotate(-16deg) translateX(-14px); }
.deck-fan:hover img:nth-child(4) { transform: rotate(16deg) translateX(14px); }
.deck-list { list-style: none; margin: 28px 0 32px; display: grid; gap: 12px; }
.deck-list li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; align-items: baseline; }
.deck-list li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); transform: translateY(1px); box-shadow: 0 0 0 3px rgba(255,255,255,0.06); }
.deck-list b { font-weight: 600; color: var(--on-dark); }
.deck-list span { color: var(--on-dark-muted); font-size: 14.5px; }
.pill-note { display: inline-block; font-size: 13px; color: var(--copper-light); border: 1px solid rgba(169,220,132,0.4); border-radius: 999px; padding: 6px 14px; }

/* BOOK */
.book .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.book-cover-wrap { display: flex; justify-content: center; perspective: 1400px; }
.book-cover { width: 300px; aspect-ratio: 1320 / 2048; border-radius: 3px 8px 8px 3px; background: #000 !important; position: relative; transform: rotateY(-14deg); box-shadow: 30px 30px 60px rgba(20,50,34,0.25), 6px 6px 0 #e4eedb, 8px 8px 0 #cfdfc2; overflow: hidden; background: linear-gradient(160deg, #182538 0%, #14171c 100%); color: var(--on-dark); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; }
.book-cover { transition: transform .3s; }
.book-cover:hover { transform: rotateY(-6deg); }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-cover .bc-top { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-light); margin-bottom: 18px; }
.book-cover .bc-num { font-family: var(--serif); font-size: 76px; line-height: .9; }
.book-cover .bc-title { font-family: var(--serif); font-size: 24px; margin: 8px 0 14px; }
.book-cover .bc-rule { width: 40px; height: 1px; background: var(--copper-light); margin-bottom: 14px; }
.book-cover .bc-by { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.book-points { list-style: none; margin: 26px 0 32px; display: grid; gap: 10px; }
.book-points li { padding-left: 26px; position: relative; color: var(--muted); }
.book-points li::before { content: ''; position: absolute; left: 0; top: 11px; width: 14px; height: 1.5px; background: var(--copper); }
.book-points b { color: var(--text); font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ABOUT */
.about { background: var(--cream); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about p { color: var(--muted); margin-bottom: 14px; font-size: 16.5px; }
.about-card { background: var(--copper); color: var(--on-dark); border-radius: var(--radius-lg); padding: 32px; }
.about-card blockquote { font-family: var(--serif); font-size: 26px; line-height: 1.3; margin-bottom: 18px; }
.about-card p { color: var(--on-dark-muted); font-size: 14px; margin: 0; }

/* CTA */
.cta { text-align: center; padding: 100px 0; background: radial-gradient(700px 400px at 50% 0%, rgba(169,220,132,0.22), transparent 70%), var(--ink); }
.cta h2 { max-width: 700px; margin: 0 auto 16px; }
.cta .lead { margin: 0 auto 32px; }
.cta .btn-row { justify-content: center; }

/* HELP NOTE */
.help-note { background: var(--paper); border-top: 1px solid var(--line); padding: 26px 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.help-note a { color: var(--green-dark); font-weight: 600; }

/* DOC PAGES */
.page-head { background: linear-gradient(180deg, #ffffff, #eaf4e1); color: var(--text); border-bottom: 1px solid var(--line); padding: 72px 0 56px; }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 10px; }
.page-head h1 { color: var(--ink); }
.page-head p { color: var(--muted); max-width: 560px; }
.doc { max-width: 760px; margin: 0 auto; padding: 64px 28px 96px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; }
.doc p { margin-bottom: 12px; }
.doc ul { margin: 6px 0 12px 20px; }
.doc li { margin-bottom: 6px; }
.callout { background: var(--cream); border-left: 3px solid var(--copper); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 32px; color: var(--text) !important; }
.callout.warn { background: #fbf3e2; border-color: #d8a548; }
.contact-box { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 28px; }
.contact-box a { color: var(--green-dark); font-weight: 600; text-decoration: none; }

/* CONTACT */
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; text-decoration: none; transition: border-color .15s, transform .12s; }
.contact-card:hover { border-color: var(--copper); transform: translateY(-2px); }
.contact-card .ci { width: 46px; height: 46px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; flex-shrink: 0; }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card b { display: block; font-weight: 600; color: var(--text); }
.contact-card span { font-size: 14px; color: var(--muted); }
.contact-card .arrow { margin-left: auto; color: var(--line); font-size: 20px; }

/* FOOTER */
footer { background: #0f2418; color: var(--on-dark-muted); padding: 56px 0 32px; font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 24px; }
.foot-top p { max-width: 280px; margin-top: 12px; font-size: 13.5px; }
footer h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 9px; }
footer a { text-decoration: none; color: var(--on-dark-muted); transition: color .15s; }
footer a:hover { color: var(--on-dark); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.07); display: grid; place-items: center; }
.socials a:hover { background: rgba(255,255,255,0.14); }
.socials svg { width: 16px; height: 16px; fill: rgba(239,233,222,0.7); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero .wrap, .decks .wrap, .book .wrap, .about .wrap { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .deck-fan { height: 380px; max-width: 520px; margin: 0 auto; width: 100%; }
  .deck-fan img { width: 38%; }
  .book .book-cover-wrap { order: -1; }
}
@media (max-width: 680px) {
  section { padding: 72px 0; }
  .wrap { padding: 0 20px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0 18px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 22px; font-size: 16px; }
  .nav-links .nav-cta { margin: 8px 20px 0; text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 72px; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .deck-fan { height: 300px; }
  .book-cover { width: 240px; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
}
