:root {
  --bg: #5a351e;
  --bg-deep: #321b10;
  --card: rgba(255, 248, 237, 0.91);
  --card-soft: rgba(248, 233, 211, 0.88);
  --ink: #1c1a17;
  --muted: #5c564c;
  --accent: #2f5d50;
  --accent-hover: #244a40;
  --accent-soft: #e6efe9;
  --border: rgba(112, 76, 43, 0.42);
  --warn: #8a5a12;
  --ok: #1f6b4a;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(37, 18, 9, 0.28), 0 2px 0 rgba(255, 226, 176, 0.28) inset;
  --shadow-soft: 0 7px 18px rgba(37, 18, 9, 0.2), 0 1px 0 rgba(255, 226, 176, 0.24) inset;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg-deep);
  /* Full-bleed walnut wall: the 320px repeat establishes vertical planks,
     while the walnut map keeps real grain visible instead of washing it out. */
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(35, 16, 8, 0.58) 0 2px,
      rgba(240, 185, 105, 0.12) 2px 5px,
      transparent 5px 316px,
      rgba(35, 16, 8, 0.42) 316px 320px
    ),
    linear-gradient(90deg, rgba(39, 18, 9, 0.38), rgba(170, 103, 46, 0.2) 48%, rgba(37, 17, 8, 0.48)),
    url("textures/walnut.jpg");
  background-size: 320px 100%, 100% 100%, 1040px auto;
  background-position: center top;
  background-repeat: repeat, no-repeat, repeat;
  background-blend-mode: multiply, soft-light, normal;
  line-height: 1.55;
  min-height: 100vh;
}

.wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
}

.wrap-home {
  width: min(880px, calc(100% - 2rem));
}

.site-header {
  padding: 1.25rem 0 0.5rem;
  border-bottom: 1px solid rgba(214, 203, 184, 0.85);
  background: rgba(255, 248, 237, 0.9);
  backdrop-filter: blur(8px) saturate(0.9);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

main { padding: 1.25rem 0 3rem; }

.card {
  background: linear-gradient(145deg, rgba(255, 249, 240, 0.94), rgba(245, 228, 204, 0.88));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px) saturate(0.92);
  padding: 1.45rem 1.35rem 1.6rem;
  margin-bottom: 1.1rem;
}

.pitch { margin: 0 0 1rem; color: var(--ink); }

.bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.bullets li { margin-bottom: 0.35rem; }

.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn.secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #c9d9d2;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.25rem;
}

.nav-row .btn {
  flex: 0 1 auto;
}

/* Page bottom CTAs: consistent pill row, no orphan lonely stretched button */
.cta-row {
  justify-content: flex-start;
  gap: 0.65rem;
}

.hint { color: var(--muted); font-size: 0.9rem; }
.demo-hint code {
  background: #efe9dc;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.file-label input { display: none; }

.thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eee;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb button.remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.9rem 0.9rem;
}

legend {
  font-weight: 600;
  padding: 0 0.35rem;
}

fieldset label {
  display: block;
  margin: 0.4rem 0;
  color: var(--ink);
  cursor: pointer;
}

fieldset input { margin-right: 0.45rem; }

.badge {
  display: inline-block;
  background: #f3e6c8;
  color: var(--warn);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.badge.success {
  background: #d8eee3;
  color: var(--ok);
}

.teaser-line {
  font-size: 1.15rem;
  font-weight: 600;
  background: #eef3f0;
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1rem;
  border-radius: 0 8px 8px 0;
}

.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1rem 0;
}

.unlock-box {
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 1rem;
  background: #f7fbf9;
  margin: 1rem 0;
}

.unlock-box h3 { margin: 0 0 0.4rem; }

.report-body {
  font-size: 1.05rem;
  background: #faf7f0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
}

.where-to-buy {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.where-to-buy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.where-to-buy > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.retailer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.retailer-links a {
  display: block;
  padding: 0.65rem 0.9rem;
  background: #eef3f0;
  border: 1px solid #c9d9d2;
  border-radius: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.retailer-links a:hover { background: #e2ebe6; }

.local-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.local-search label {
  width: 100%;
  font-weight: 600;
  font-size: 0.92rem;
}

.local-search input[type="text"] {
  flex: 1 1 140px;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.local-search .btn { flex: 0 0 auto; }

.geo-status {
  width: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  /* Light text on dark walnut plank background for readable contrast */
  color: #f0e2cf;
  font-size: 0.85rem;
  border-top: 1px solid rgba(240, 226, 207, 0.28);
}

@media (min-width: 520px) {
  .retailer-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .retailer-links li { flex: 1 1 auto; }
  .retailer-links a { text-align: center; }
}

/* Room measurement tips */
.measure-steps {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--ink);
}

.measure-steps li {
  margin-bottom: 0.85rem;
}

.example-box {
  background: #eef3f0;
  border: 1px solid #c9d9d2;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

.example-box h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.example-box p { margin: 0.35rem 0; }

.example-result {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed #c9d9d2;
}

.measure-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.measure-link:hover { text-decoration: underline; }

.site-footer,
.site-footer p,
.site-footer a,
.site-footer a:visited {
  color: #f0e2cf;
}
.site-footer a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.site-footer a:hover,
.site-footer a:focus {
  color: #fff8ef;
}

/* Wider wrap for pros hub */
.wrap.wide {
  width: min(860px, calc(100% - 2rem));
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}

.account-status {
  background: #d8eee3;
  color: var(--ok);
  border: 1px solid #b5d9c8;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1rem;
}

@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.form-grid textarea { resize: vertical; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
}

.pricing-table th,
.pricing-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table th {
  background: #eef3f0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-table tr:last-child td { border-bottom: none; }

.download-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.download-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  background: #eef3f0;
  border: 1px solid #c9d9d2;
  border-radius: 8px;
}

.download-list a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.download-list a:hover { text-decoration: underline; }

.download-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.quote-result {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f7fbf9;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
}

.quote-result h3 { margin: 0 0 0.5rem; }

.quote-summary {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
  max-height: 280px;
  overflow: auto;
}

.card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.card h3 .badge {
  margin-left: 0.35rem;
  vertical-align: middle;
}


@media (min-width: 640px) {
  .pro-tools-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pro-tool-card.full { grid-column: 1 / -1; }
}


.lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 234, 0.88);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  z-index: 2;
}

.lock-overlay[hidden] { display: none !important; }

.file-store-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.file-store-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.file-store-list .btn.ghost {
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
}

/* Project gallery */
.gallery-grid { margin-top: 0.5rem; }

.gallery-section-title {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.gallery-card.featured {
  border: 2px solid var(--accent);
  background: #f7fbf9;
  box-shadow: 0 8px 28px rgba(47, 93, 80, 0.14);
}

.gallery-card h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.gallery-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.gallery-badges .badge { margin: 0; }

.ba-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

@media (min-width: 520px) {
  .ba-row { grid-template-columns: 1fr 1fr; }
}

.ba-col h4 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-shot {
  margin: 0 0 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eee;
}

.gallery-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-shot figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  background: #fff;
}

.gallery-demo {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-demo span {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  z-index: 1;
}

.gallery-demo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.demo-before-a {
  background: linear-gradient(135deg, #6b6358, #3d3832);
}
.demo-before-b {
  background: linear-gradient(135deg, #7a8a8e, #4a5558);
}
.demo-before-c {
  background: linear-gradient(135deg, #8a7a68, #52483c);
}

.gallery-ph {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efe9dc;
  color: var(--muted);
  border-radius: 8px;
  border: 1px dashed var(--border);
}


/* DIY-first homepage */
.landing {
  position: relative;
  z-index: 0;
  margin-bottom: 0.5rem;
}

/* Keep the homepage gutters on the same walnut wall as every other page;
   only the cards below provide the readable warm-white scrim. */
.landing::before {
  content: "";
  position: absolute;
  inset: -0.35rem -0.5rem 0;
  z-index: -1;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(43, 20, 9, 0.3), rgba(177, 111, 51, 0.14) 50%, rgba(43, 20, 9, 0.34)),
    url("textures/dark-walnut.jpg") center / 960px auto repeat;
  box-shadow: inset 0 0 0 1px rgba(241, 190, 112, 0.18), 0 12px 32px rgba(37, 18, 9, 0.26);
}

.eyebrow,
.tool-kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-banner {
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.hero-media {
  position: relative;
  min-height: clamp(320px, 52vw, 440px);
  background: #3a342c;
}

.hero-image {
  display: block;
  width: 100%;
  height: clamp(320px, 52vw, 440px);
  object-fit: cover;
  object-position: center 60%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(28, 26, 23, 0.78) 0%, rgba(28, 26, 23, 0.55) 42%, rgba(28, 26, 23, 0.22) 72%, rgba(28, 26, 23, 0.08) 100%),
    linear-gradient(0deg, rgba(28, 26, 23, 0.35) 0%, transparent 45%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.15rem, 3.5vw, 2rem);
  color: #fffaf2;
  max-width: 34rem;
}

.hero-copy .eyebrow {
  color: #c8e0d4;
}

.hero-copy h1 {
  margin: 0 0 0.65rem;
  max-width: 16ch;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fffaf2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.hero-copy .pitch {
  margin: 0 0 1.15rem;
  max-width: 42ch;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  line-height: 1.5;
  color: rgba(255, 250, 242, 0.92);
}

.hero-cta {
  align-self: flex-start;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.homeowner-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0 0 1.15rem;
}

.homeowner-tool {
  display: block;
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 0;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.homeowner-tool:hover {
  border-color: #b7c9bf;
  box-shadow: var(--shadow);
}

.homeowner-tool:active { transform: scale(0.99); }

.homeowner-tool-featured {
  background: linear-gradient(160deg, #eef4f0 0%, var(--card) 70%);
  border-color: #b7c9bf;
  box-shadow: var(--shadow);
}

.homeowner-tool h2 {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.homeowner-tool p:not(.tool-kicker) {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.homeowner-tool:not(.homeowner-tool-featured) p:not(.tool-kicker) { margin-bottom: 0; }

.homeowner-tool .btn { margin-top: 0.15rem; }

.trust-card {
  padding: 1.15rem 1.25rem 1.25rem;
}

.trust-card .bullets {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}


@media (min-width: 640px) {
  .homeowner-tools { grid-template-columns: 1.25fr 1fr 1fr; }
  .homeowner-tool-featured { grid-row: span 2; }
  .hero-copy { justify-content: center; padding-bottom: 2.25rem; }
}

@media (max-width: 520px) {
  /* Stack hero so headline/pitch aren't clipped by overflow:hidden */
  .hero-banner {
    overflow: visible;
  }
  .hero-media {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-image {
    height: 200px;
    flex-shrink: 0;
  }
  .hero-scrim {
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background:
      linear-gradient(180deg, rgba(28, 26, 23, 0.15) 0%, rgba(28, 26, 23, 0.45) 100%);
  }
  .hero-copy {
    position: relative;
    inset: auto;
    max-width: none;
    justify-content: flex-start;
    padding: 1.15rem 1.15rem 1.35rem;
    background: #2f2a24;
  }
  .hero-copy h1 {
    max-width: none;
  }
  .hero-copy .pitch {
    max-width: none;
  }
}

/* —— Beginner-to-expert guide —— */
.guide-path {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  counter-reset: guide-step;
  list-style: none;
  padding: 0;
}

.guide-path li { margin: 0; }

.guide-path a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.guide-path a:hover {
  border-color: #b7c9bf;
  box-shadow: var(--shadow);
}

.guide-path a::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.guide-path strong {
  display: block;
  color: var(--accent);
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.guide-path span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-mission {
  background: linear-gradient(160deg, #eef4f0 0%, var(--card) 70%);
  border: 1px solid #b7c9bf;
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 0 0 1.25rem;
}

.guide-mission h2 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.guide-mission p { margin: 0 0 0.65rem; color: var(--ink); }
.guide-mission p:last-child { margin-bottom: 0; }

.guide-tools-fit {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.guide-tools-fit a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.guide-tools-fit a:hover { text-decoration: underline; }

.guide-chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  margin: 1.5rem 0 0.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.guide-site-tools {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  background: #eef3f0;
  border: 1px solid #c9d9d2;
  border-radius: var(--radius);
}

.guide-site-tools h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.guide-site-tools ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.guide-site-tools li { margin-bottom: 0.35rem; }

.guide-site-tools a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.guide-site-tools a:hover { text-decoration: underline; }

.guide-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0 1.35rem;
}

@media (min-width: 560px) {
  .guide-tool-grid { grid-template-columns: 1fr 1fr; }
  .guide-path { grid-template-columns: 1fr 1fr; }
}

.guide-tool-card {
  background: #faf7f0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.guide-tool-card h3 {
  margin: 0 0 0.35rem !important;
  font-size: 1rem !important;
  color: var(--accent);
}

.guide-tool-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.guide-tool-card .when {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 600;
}

.guide-callout {
  background: #f3e6c8;
  border-left: 4px solid var(--warn);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  color: var(--ink);
  font-size: 0.94rem;
}

.guide-callout.ok {
  background: #d8eee3;
  border-left-color: var(--ok);
}

.guide-steps {
  margin: 0.75rem 0 1.1rem;
  padding-left: 1.25rem;
}

.guide-steps li { margin-bottom: 0.7rem; }

.guide-compare {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 560px) {
  .guide-compare { grid-template-columns: 1fr 1fr; }
}

.guide-compare article {
  background: #faf7f0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.guide-compare h3 {
  margin: 0 0 0.4rem !important;
  font-size: 1rem !important;
}

.guide-crumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.guide-crumb a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.guide-crumb a:hover { text-decoration: underline; }

.next-steps-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.next-steps-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.next-steps-cta .cta-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.next-steps-cta .cta-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  background: var(--accent-soft);
  border: 1px solid #c9d9d2;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.next-steps-cta .cta-links a:hover { background: #e2ebe6; }

/* Shared flooring-style title treatment */
h1,
h2,
h3 {
  font-family: Rockwell, "Roboto Slab", "Courier New", Georgia, serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-title {
  display: inline-block;
  margin-top: 0;
  padding-bottom: 0.2rem;
  color: #2a2924;
  text-shadow: 1px 2px 0 rgba(111, 79, 42, 0.16);
  border-bottom: 0.22rem solid #b7834f;
}

.logo {
  font-family: Rockwell, "Roboto Slab", "Courier New", Georgia, serif;
  font-weight: 900;
  text-shadow: 1px 2px 0 rgba(111, 79, 42, 0.14);
}

/* Tools tab: warm, practical cards with descriptions only */
.tools-intro {
  border-top: 0.35rem solid #b7834f;
}

.tools-intro .hint a {
  color: var(--accent);
  font-weight: 700;
}

.tools-section {
  margin: 1.35rem 0;
}

.tools-section h2 {
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.tools-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.tools-card {
  padding: 1rem 1.05rem;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(241, 226, 202, 0.9)),
    url("textures/warm-oak.jpg") center / cover;
  border: 1px solid #cdb99d;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.tools-card h3 {
  margin: 0 0 0.35rem;
  color: #704d2d;
  font-size: 1.06rem;
}

.tools-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tools-next {
  margin-top: 1.5rem;
  border-left: 0.35rem solid var(--accent);
}

.tools-next h2 {
  margin-top: 0;
}

.tools-next p {
  color: var(--muted);
}

@media (min-width: 560px) {
  .tools-card-grid { grid-template-columns: 1fr 1fr; }
}


/* Prominent Tools entry on Guide hub */
.guide-tools-spotlight {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--accent);
  background: rgba(255, 250, 242, 0.97);
  margin: 1.25rem 0 1.5rem;
  transition: transform 0.12s, box-shadow 0.12s;
}
.guide-tools-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(40, 32, 22, 0.14);
}
.guide-tools-spotlight p { margin: 0 0 0.55rem; color: var(--muted); }
.guide-tools-spotlight .tool-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}


/* Shared-mode / status notices */
.notice-banner {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  background: #f3e6c8;
  border: 1px solid #e2d0a8;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}
.notice-banner[hidden] { display: none !important; }
.notice-banner code {
  font-size: 0.88em;
  background: rgba(0,0,0,0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}


/* DIY install shop links */
.shop-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}
.shop-list li { margin-bottom: 0.45rem; }
