/* =======================
   DRILLBOOK — CUSTOM THEME
   ======================= */

:root {
  --bg: #f7f5f0;
  --fg: #1a1a1a;
  --green: #1a3a2a;
  --green-light: #e8f0eb;
  --copper: #b5673c;
  --copper-light: #f5ebe3;
  --cream: #faf8f4;
  --warm-gray: #8a8275;
  --light-gray: #d8d3ca;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--light-gray);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-block;
  margin-right: 0.3em;
  font-size: 0.85em;
  vertical-align: middle;
}
.nav-tag {
  font-size: 0.75rem;
  color: var(--warm-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  padding: 5rem 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--copper);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green);
}
.price-note {
  font-size: 0.875rem;
  color: var(--warm-gray);
}
.hero-reviews {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.stars {
  color: var(--copper);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.reviews-count {
  font-size: 0.8rem;
  color: var(--warm-gray);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-stat-card {
  background: var(--green);
  color: white;
  padding: 2rem;
  border-radius: 4px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.5;
}
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-feat {
  font-size: 0.875rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.feat-check {
  color: var(--green);
  font-weight: 700;
}

/* PROBLEM */
.problem {
  background: var(--green);
  color: white;
  padding: 5rem 2.5rem;
}
.problem .section-label { color: #7fc4a0; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 2rem 0 3rem;
}
.problem-col {}
.problem-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #c8e6d4;
}
.problem-col p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.65;
}
.problem-quote {
  border-left: 3px solid var(--copper);
  padding-left: 1.5rem;
  max-width: 55ch;
}
.problem-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* SHARED SECTION */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 2.5rem;
  max-width: 22ch;
}

/* WHAT YOU GET */
.what-you-get {
  padding: 5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.deliverable {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.deliv-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--copper-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.deliv-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.deliv-body p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.6;
}
.format-note {
  background: var(--green-light);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.format-icon { font-size: 1.2rem; }

/* SAMPLE PAGE */
.sample-page {
  background: var(--cream);
  padding: 5rem 2.5rem;
}
.sample-page .section-heading {
  max-width: none;
}
.script-block {
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  overflow: hidden;
}
.script-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  border-bottom: 1px solid var(--light-gray);
}
.script-step:last-child { border-bottom: none; }
.step-num {
  background: var(--green);
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 0.75rem;
  line-height: 1;
}
.step-body {
  padding: 1.25rem 1.5rem;
}
.step-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--copper);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.script {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  background: white;
  border: 1px solid var(--light-gray);
  padding: 0.75rem 1rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  line-height: 1.55;
  color: var(--fg);
}
.script-note {
  font-size: 0.78rem;
  color: var(--warm-gray);
  padding: 0.4rem 0 0.4rem 0.75rem;
  border-left: 2px solid var(--light-gray);
  margin-top: 0.4rem;
}
.script-note.alt {
  border-left-color: var(--copper);
  color: var(--copper);
  margin-top: 0.25rem;
}
.sample-cta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--warm-gray);
  font-style: italic;
}

/* PRICING */
.pricing {
  padding: 5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.pricing .section-heading { max-width: none; margin: 0 auto 3rem; }
.price-card {
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 2.5rem;
  background: var(--cream);
}
.price-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.price-card-price {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.price-card-sub {
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-bottom: 2rem;
}
.price-includes {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 4px;
  border: 1px solid var(--light-gray);
}
.incl-item {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.incl-check { color: var(--green); font-weight: 700; font-size: 0.9rem; }
.price-buy {
  padding: 1.5rem;
  background: var(--green);
  border-radius: 4px;
  color: white;
}
.buy-btn {
  display: inline-block;
  background: white;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: background 0.15s ease;
}
.buy-btn:hover { background: var(--cream); }
.buy-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.buy-note {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}
.buy-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  opacity: 0.8;
}
.price-statement {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--warm-gray);
  font-style: italic;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

/* SUCCESS PAGE */
.success-page {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2.5rem;
  text-align: center;
}
.success-icon {
  width: 5rem;
  height: 5rem;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  color: white;
}
.success-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.success-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1.2;
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}
.success-sub {
  font-size: 1rem;
  color: var(--warm-gray);
  max-width: 48ch;
  line-height: 1.65;
  margin: 0 auto 2.5rem;
}
.success-card {
  background: var(--cream);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  max-width: 480px;
  width: 100%;
}
.success-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.success-card-body {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.success-checklist {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.success-checklist li {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.check-icon { color: var(--green); font-weight: 700; }
.success-email-note {
  font-size: 0.8rem;
  color: var(--copper);
  font-weight: 500;
  margin-top: 1rem;
}
.success-link {
  color: var(--copper);
  text-decoration: underline;
}
.success-fine-print {
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-top: 2rem;
  max-width: 40ch;
}
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2.5rem;
  text-align: center;
}
.error-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 1rem;
}
.error-sub {
  font-size: 1rem;
  color: var(--warm-gray);
  max-width: 44ch;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* CLOSING */
.closing {
  background: var(--green);
  color: white;
  padding: 5rem 2.5rem;
  text-align: center;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.closing-sub {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 52ch;
  margin: 0 auto 3rem;
  line-height: 1.7;
}
.closing-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* CONTACT FORM */
.contact-section {
  padding: 5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--warm-gray);
  letter-spacing: 0.03em;
}
.required { color: var(--copper); }
.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fg);
  background: white;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.contact-submit {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.contact-submit:hover { background: #142d22; }
.contact-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form-error {
  font-size: 0.8rem;
  color: #c0392b;
}
.contact-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--green-light);
  border: 1px solid #c5ddd0;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
}
.success-icon-small {
  width: 2rem;
  height: 2rem;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-success strong {
  display: block;
  font-size: 0.95rem;
  color: var(--green);
  margin-bottom: 0.2rem;
}
.contact-success p {
  font-size: 0.875rem;
  color: var(--warm-gray);
}

/* WAITLIST */
.waitlist-section {
  padding: 5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* FOOTER */
.footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--warm-gray);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--warm-gray);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem 2.5rem; }
  .hero-right { display: none; }
  .problem-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .what-you-get, .pricing { padding: 3rem 1.25rem; }
  .sample-page { padding: 3rem 1.25rem; }
  .closing { padding: 3rem 1.25rem; }
  .price-card { padding: 1.5rem; }
  .price-card-price { font-size: 3rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero-headline { font-size: 2rem; }
  .section-heading { font-size: 1.4rem; }
}

/* ADMIN INBOX */
.admin-inbox {
  padding: 3rem 2.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.admin-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}
.admin-inbox-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--green);
  margin: 0.3rem 0 0.3rem;
  line-height: 1.15;
}
.admin-inbox-sub {
  font-size: 0.85rem;
  color: var(--warm-gray);
  font-family: var(--font-body);
}
.admin-refresh {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.admin-refresh:hover { background: var(--green); color: white; }
.admin-banner {
  background: var(--copper-light);
  border: 1px solid var(--copper);
  border-radius: 4px;
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.admin-empty {
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--warm-gray);
  text-align: center;
}
.admin-inbox-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.admin-inbox-table thead th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-weight: 600;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--light-gray);
  background: var(--cream);
}
.admin-inbox-table tbody td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
}
.admin-inbox-table tbody tr:last-child td { border-bottom: 0; }
.admin-inbox-ts { color: var(--warm-gray); white-space: nowrap; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.admin-inbox-from { color: var(--fg); font-weight: 500; max-width: 18ch; overflow-wrap: anywhere; }
.admin-inbox-subject { color: var(--green); font-weight: 600; max-width: 32ch; overflow-wrap: anywhere; }
.admin-inbox-preview { color: var(--fg); opacity: 0.78; }
.admin-inbox-foot {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--warm-gray);
  text-align: right;
}
.admin-inbox-back {
  margin-top: 2.5rem;
  font-size: 0.9rem;
}
.admin-inbox-back a { color: var(--copper); text-decoration: none; font-weight: 500; }
.admin-inbox-back a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .admin-inbox { padding: 2rem 1.25rem 3rem; }
  .admin-inbox-head { flex-direction: column; align-items: stretch; }
  .admin-inbox-table thead { display: none; }
  .admin-inbox-table, .admin-inbox-table tbody, .admin-inbox-table tr, .admin-inbox-table td { display: block; width: 100%; }
  .admin-inbox-table tr { padding: 1rem 0; border-bottom: 1px solid var(--light-gray); }
  .admin-inbox-table td { padding: 0.35rem 0; border-bottom: 0; }
  .admin-inbox-ts { font-size: 0.75rem; }
  .admin-waitlist-filter { flex-direction: column; align-items: stretch; }
}

/* ADMIN WAITLIST FILTER */
.admin-waitlist-filter {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.admin-waitlist-filter label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.admin-waitlist-filter input[type="date"] {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: white;
}
.admin-waitlist-filter button {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--green);
  background: white;
  color: var(--green);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.admin-waitlist-filter button:hover { background: var(--green); color: white; }