/* ============================================================
   Deck Studio — Coastal brand system
   Display: Bricolage Grotesque · Body: Hanken Grotesk
   ============================================================ */

:root {
  /* Coastal Teal (default theme) */
  --sand:      #F1E7D4;
  --sand-2:    #EADDC4;
  --cream:     #FBF6EC;
  --ink:       #143638;   /* deep teal — primary text / brand */
  --teal:      #1C4F53;
  --teal-600:  #2A696D;
  --teal-tint: #DCE6E1;
  --muted:     #51686A;
  --accent:    #DB7B40;   /* warm coastal sun */
  --accent-ink:#9E5022;
  --line:      rgba(20, 54, 56, 0.14);
  --card-shadow: 0 1px 2px rgba(20,54,56,.04), 0 18px 40px -24px rgba(20,54,56,.28);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --maxw: 1180px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

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

.accent { color: var(--accent); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: rgba(219, 123, 64, 0.12);
  border: 1px solid rgba(219, 123, 64, 0.22);
  padding: 8px 15px;
  border-radius: var(--r-pill);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 24px -14px rgba(20,54,56,.7);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--teal); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(20,54,56,.04); border-color: rgba(20,54,56,.3); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(219,123,64,.8);
}
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sand) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand .mark {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--ink);
  display: grid; place-items: center;
  flex: none;
}
.brand .mark svg { width: 26px; height: 26px; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.brand .tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav-links a {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--muted);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 6px; }
.nav-links .nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.rating {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; }
.hero h1 {
  font-size: clamp(44px, 6vw, 74px);
  margin-bottom: 22px;
}
.hero .lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--cream) 55%, transparent);
}
.store-badge svg { width: 22px; height: 22px; color: var(--ink); flex: none; }
.store-badge .sb-top { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.store-badge .sb-main { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.1; }
.hero-fine { margin-top: 16px; font-size: 14.5px; color: var(--muted); }

/* hero visual */
.hero-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255,255,255,.6);
}
.preview-tile {
  position: relative;
  background: var(--sand-2);
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
}
.preview-tile .scene { position: absolute; inset: 0; }
.preview-chip {
  position: absolute;
  left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700; font-size: 12.5px;
  letter-spacing: .02em;
  padding: 7px 13px;
  border-radius: var(--r-pill);
}
.preview-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(219,123,64,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(219,123,64,.55)} 70%{box-shadow:0 0 0 9px rgba(219,123,64,0)} 100%{box-shadow:0 0 0 0 rgba(219,123,64,0)} }
.preview-quote {
  position: absolute;
  right: 16px; bottom: 16px;
  background: rgba(251,246,236,.94);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 10px 26px -12px rgba(20,54,56,.5);
  border: 1px solid rgba(20,54,56,.06);
}
.preview-quote .pq-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.preview-quote .pq-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink); line-height: 1.1; }
.preview-quote .pq-sub { font-size: 12px; color: var(--accent-ink); font-weight: 600; }
.hero-card .cap { text-align: center; color: var(--muted); font-size: 15px; font-weight: 500; }
.hero-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--sand); border: 1px solid var(--line); }
.vt-btn { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--muted); background: transparent; border: none; padding: 7px 15px; border-radius: var(--r-pill); cursor: pointer; transition: background .15s ease, color .15s ease; }
.vt-btn.active { background: var(--ink); color: var(--cream); }
.hero-ba { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; display: none; z-index: 2; }
.hero-card.show-photo .hero-ba { display: block; }
.hero-card.show-photo .preview-tile .scene { visibility: hidden; }
.hero-ba .ba-tag { top: auto; bottom: 16px; }
.preview-tile .preview-chip, .preview-tile .preview-quote { z-index: 6; }

/* ---------- Section scaffolding ---------- */
section.band { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); margin: 16px 0 14px; }
.section-head p { font-size: 19px; color: var(--muted); }

/* ---------- Before / After reveal ---------- */
.reveal-band { background: var(--cream); }
.ba-wrap { max-width: 880px; margin: 0 auto; }
.ba {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--sand-2);
  user-select: none;
  touch-action: pan-y;
}
.ba-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-layer::part(slot) { border-radius: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* empty state: pin each placeholder prompt to its own half so they don't overlap */
.ba-before::part(empty) { left: 0; right: 50%; }
.ba-after::part(empty) { left: 50%; right: 0; }
.ba-tag {
  position: absolute; top: 18px; z-index: 4;
  font-family: var(--font-body); font-weight: 800; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: rgba(251,246,236,.92); color: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(20,54,56,.5);
  backdrop-filter: blur(3px); pointer-events: none;
}
.ba-tag-before { left: 18px; }
.ba-tag-after  { right: 18px; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; transform: translateX(-50%);
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(20,54,56,.18);
  z-index: 5; cursor: ew-resize;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream); border: none;
  display: grid; place-items: center; cursor: ew-resize;
  box-shadow: 0 8px 22px -8px rgba(20,54,56,.6), 0 0 0 1px rgba(20,54,56,.08);
  transition: transform .15s ease;
  touch-action: none;
}
.ba-handle:hover { transform: translate(-50%, -50%) scale(1.06); }
.ba-handle:active { cursor: grabbing; }
.ba-handle svg { width: 24px; height: 24px; color: var(--teal); }
.ba.dragging .ba-handle { transform: translate(-50%, -50%) scale(1.06); }
.ba-cap { margin-top: 18px; text-align: center; }

/* ---------- Trust / process ---------- */
.trust-band { background: var(--sand); }
.trust-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: tstep; }
.t-step { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px 28px; }
.t-step .t-num { position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--teal-tint); }
.t-step .icon-tile { background: var(--sand); margin-bottom: 20px; }
.t-step h3 { font-size: 20px; margin-bottom: 8px; }
.t-step p { color: var(--muted); font-size: 15.5px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.trust-chip { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); padding: 11px 18px; border-radius: var(--r-pill); }
.trust-chip svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
@media (max-width: 940px) { .trust-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-steps { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  position: relative;
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 34px 30px 32px;
  border: 1px solid var(--line);
}
.step .num {
  position: absolute; top: 26px; right: 30px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 17px; color: var(--teal-tint);
}
.icon-tile {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--sand);
  display: grid; place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
}
.icon-tile svg { width: 30px; height: 30px; color: var(--teal); }
.step h3 { font-size: 23px; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 16.5px; }

/* ---------- Features ---------- */
.feature-band { background: var(--cream); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  display: flex; gap: 20px;
  padding: 30px;
  background: var(--sand);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.feature .icon-tile { background: var(--cream); margin-bottom: 0; flex: none; }
.feature h3 { font-size: 21px; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 16px; }

/* ---------- Warranty band ---------- */
.warranty {
  background: var(--ink);
  color: var(--cream);
  border-radius: 0;
}
.warranty .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 44px; align-items: center; }
.warranty .seal {
  width: 132px; height: 132px; flex: none;
  border-radius: 50%;
  border: 2px dashed rgba(251,246,236,.4);
  display: grid; place-items: center;
  text-align: center;
}
.warranty .seal .big { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: .9; color: var(--cream); }
.warranty .seal .lab { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(251,246,236,.75); margin-top: 4px; }
.warranty h2 { color: var(--cream); font-size: clamp(28px, 3.4vw, 40px); }
.warranty h2 .accent { color: var(--accent); }
.warranty p { color: rgba(251,246,236,.78); font-size: 18px; margin-top: 12px; max-width: 40em; }
.warranty .seal-side { display: flex; align-items: center; gap: 18px; }

/* ---------- FAQ ---------- */
.faq-band { background: var(--cream); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev {
  flex: none; width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: transform .25s ease, background .2s ease, border-color .2s ease;
}
.faq .chev svg { width: 15px; height: 15px; color: var(--teal); }
.faq[open] .chev { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); }
.faq[open] .chev svg { color: var(--cream); }
.faq .answer { padding: 0 4px 26px; color: var(--muted); font-size: 17px; max-width: 60ch; }

/* ---------- CTA / waitlist ---------- */
.cta-band { padding: 100px 0; }
.cta-card {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card .glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(219,123,64,.32), transparent 65%);
  top: -180px; right: -120px; pointer-events: none;
}
.cta-card .eyebrow { background: rgba(251,246,236,.1); border-color: rgba(251,246,236,.2); color: #F2C49B; position: relative; }
.cta-card h2 { color: var(--cream); font-size: clamp(32px, 4vw, 50px); margin: 18px auto 14px; max-width: 16ch; position: relative; }
.cta-card p { color: rgba(251,246,236,.8); font-size: 19px; max-width: 44ch; margin: 0 auto 30px; position: relative; }
.waitlist {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  position: relative;
}
.waitlist input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(251,246,236,.22);
  background: rgba(251,246,236,.08);
  color: var(--cream);
  outline: none;
}
.waitlist input::placeholder { color: rgba(251,246,236,.55); }
.waitlist input:focus { border-color: var(--accent); }
.cta-card .micro { position: relative; margin-top: 16px; font-size: 14px; color: rgba(251,246,236,.6); }
.form-success { color: #BFE3CF !important; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer .brand { margin-bottom: 16px; }
.footer .blurb { color: var(--muted); font-size: 15.5px; max-width: 30ch; }
.footer h4 {
  font-family: var(--font-body);
  font-weight: 700; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--ink); font-weight: 500; font-size: 15.5px; opacity: .85; }
.footer ul a:hover { opacity: 1; color: var(--accent-ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding-top: 24px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom-right { display: flex; align-items: center; gap: 22px; }
.mobile-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  border: 1.5px solid var(--line); padding: 9px 16px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--cream) 55%, transparent);
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.mobile-link svg { width: 16px; height: 16px; }
.mobile-link:hover { background: var(--cream); transform: translateY(-1px); border-color: rgba(20,54,56,.3); }
.footer-bottom .socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.footer-bottom .socials a svg { width: 17px; height: 17px; color: var(--ink); }
.footer-bottom .socials a:hover { background: var(--ink); }
.footer-bottom .socials a:hover svg { color: var(--cream); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 64px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .warranty .wrap { grid-template-columns: 1fr; gap: 26px; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--sand); border-bottom: 1px solid var(--line);
    padding: 22px 32px; gap: 18px;
  }
  .nav-links.open .nav-cta { margin-left: 0; margin-top: 4px; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; }
  .nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 22px; }
  section.band { padding: 64px 0; }
  .cta-card { padding: 44px 26px; }
  .waitlist { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

img.ba-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
