/* ============================================================
   DeckJack.diy — warm workshop palette, editorial type
   ============================================================ */

:root {
  --bg: #FAF6F0;
  --bg-raised: #FFFFFF;
  --bg-deep: #201A15;
  --ink: #241E18;
  --ink-soft: #5C5248;
  --ink-faint: #8A7E71;
  --cedar: #B4521E;
  --cedar-deep: #934014;
  --cedar-tint: #F6E3D6;
  --line: #E7DDD1;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 24px 60px -24px rgba(36, 30, 24, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(36, 30, 24, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { text-wrap: pretty; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- eyebrow / section heads ---------- */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 46rem;
  margin: 0 auto 3.25rem;
  text-align: center;
  padding: 0 var(--pad-x);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--cedar);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(180, 82, 30, 0.55);
}
.btn-primary:hover { background: var(--cedar-deep); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-faint); }

.btn-light {
  background: #fff;
  color: var(--cedar-deep);
}
.btn-light:hover { background: var(--cedar-tint); }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.85rem var(--pad-x);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.3rem;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.brand:hover { color: var(--cedar-deep); }

.brand-logo {
  height: 1.9rem;
  width: calc(1.9rem * 1136 / 281);
  fill: currentColor;
  display: block;
}

.brand-logo-footer {
  height: 1.3rem;
  width: calc(1.3rem * 1136 / 281);
}

.brand-tld {
  color: var(--cedar);
  font-size: 1.05rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.btn-nav { padding: 0.6rem 1.3rem; font-size: 0.95rem; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--cedar);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.9rem;
}

.hero-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.hero-proof li::before {
  content: "✓";
  color: var(--cedar);
  font-weight: 700;
  margin-right: 0.45rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.badge-float {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.badge-float strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* ---------- statement ---------- */

.statement {
  background: var(--bg-deep);
  color: #F3EDE5;
  padding: clamp(4rem, 9vw, 7rem) var(--pad-x);
}

.statement-inner {
  max-width: 54rem;
  margin: 0 auto;
  text-align: center;
}

.statement h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 1.5rem;
}

.statement h2 span { color: #E8935B; }

.statement p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(243, 237, 229, 0.75);
  max-width: 46rem;
  margin: 0 auto;
}

/* ---------- how it works ---------- */

.how {
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x);
  max-width: 78rem;
  margin: 0 auto;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--cedar-tint);
  -webkit-text-stroke: 1.5px var(--cedar);
  display: block;
  margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- split sections ---------- */

.split {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split-reverse .split-media { order: 2; }

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-copy h2 { margin-bottom: 1.1rem; }
.split-copy > p { color: var(--ink-soft); margin-bottom: 1.4rem; max-width: var(--measure); }

.checks {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.checks li {
  padding-left: 1.9rem;
  position: relative;
  font-weight: 500;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--cedar-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5' stroke='%23B4521E' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
}

/* ---------- feature grid ---------- */

.features {
  background: linear-gradient(var(--bg) 0%, #F3EBE0 100%);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.feature-grid {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--cedar-tint);
  color: var(--cedar);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--ink-soft); font-size: 0.96rem; }

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */

.gallery {
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x);
  max-width: 78rem;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid figure:hover img { transform: scale(1.03); }

.figure-render {
  background: #475162;
}

.figure-render img {
  object-fit: contain;
  padding: 1rem 0;
}

.gallery-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

@media (max-width: 620px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- shop ---------- */

.shop {
  background: linear-gradient(#F3EBE0 0%, var(--bg) 100%);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.shop-grid {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.product {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.product-featured {
  border: 2px solid var(--cedar);
  box-shadow: 0 18px 44px -18px rgba(180, 82, 30, 0.35);
}

.product-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cedar-deep);
  background: var(--cedar-tint);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.product-featured .product-badge {
  color: #fff;
  background: var(--cedar);
}

.product > p { color: var(--ink-soft); font-size: 0.97rem; }

.product .checks { font-size: 0.93rem; gap: 0.5rem; }

.product-footer {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
}

.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}

.btn-buy { width: 100%; }

.btn-buy:disabled {
  background: var(--line);
  color: var(--ink-faint);
  cursor: not-allowed;
  box-shadow: none;
}

.shop-note {
  text-align: center;
  margin-top: 2rem;
  padding: 0 var(--pad-x);
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.shop-note a { color: var(--cedar-deep); }

@media (max-width: 960px) { .shop-grid { grid-template-columns: 1fr; max-width: 30rem; } }

/* ---------- specs ---------- */

.specs {
  background: var(--bg-deep);
  color: #F3EDE5;
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x);
}

.specs .section-head h2 { color: #F3EDE5; }

.spec-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(243, 237, 229, 0.14);
  border: 1px solid rgba(243, 237, 229, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec {
  background: var(--bg-deep);
  padding: 1.6rem 1.5rem;
}

.spec dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8935B;
  margin-bottom: 0.4rem;
}

.spec dd { color: rgba(243, 237, 229, 0.85); font-size: 0.98rem; }

.fineprint {
  max-width: 64rem;
  margin: 1.75rem auto 0;
  font-size: 0.82rem;
  color: rgba(243, 237, 229, 0.5);
}

@media (max-width: 860px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */

.faq {
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x);
  max-width: 78rem;
  margin: 0 auto;
}

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  transition: box-shadow 0.2s ease;
}

.faq-list details[open] { box-shadow: var(--shadow-sm); }

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cedar);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- CTA ---------- */

.cta {
  padding: 0 var(--pad-x) clamp(4rem, 8vw, 6.5rem);
}

.cta-inner {
  max-width: 64rem;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--cedar) 0%, var(--cedar-deep) 100%);
  border-radius: calc(var(--radius) + 6px);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 30px 70px -30px rgba(147, 64, 20, 0.6);
}

.cta h2 { margin-bottom: 0.75rem; }
.cta-inner > p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.9rem; }

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.cta-form input {
  flex: 1 1 15rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-size: 1rem;
}

.cta-form input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.cta-sub { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--pad-x) 3rem;
}

.footer-inner {
  max-width: 78rem;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.brand-footer { justify-content: center; font-size: 1.2rem; color: var(--ink); }

.copyright { font-size: 0.82rem; }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature, .gallery-grid img { transition: none; }
}
