/* Last Tap · shoppable PDP */

:root {
  --paper: #f6f1e8;
  --paper-deep: #efe8db;
  --ink: #1a1612;
  --muted: #4a453f;
  --line: #d4cbbd;
  --cream: #fffdf8;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Geist", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wide: 72rem;
  --measure: 36rem;
  --buy: 22.5rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 20;
  text-decoration: none;
  font-size: 0.9rem;
}
.skip:focus { top: 1rem; }

.visually-hidden,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
}

.narrow { width: min(var(--measure), calc(100% - 2rem)); }

.eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 6.4vw, 2.5rem);
  text-wrap: balance;
  overflow-wrap: break-word;
  max-width: 100%;
}

.buy h1 {
  line-height: 1.12;
  hyphens: none;
  word-break: normal;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
}

.wordmark {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.nav a { text-decoration: none; color: var(--ink); }

.nav-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nav-cta {
  padding-bottom: 0.05rem;
  border-bottom: 1px solid var(--ink);
}

.nav a:hover,
.nav a:focus-visible { opacity: 0.7; }

/* PDP hero */
.pdp { padding: 0.85rem 0 2rem; }

.pdp-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.pdp-grid > * { min-width: 0; }

.gallery { min-width: 0; }

.gallery-main {
  margin: 0;
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-deep);
}

.gallery-main img,
.gallery-main video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 40% 50%;
  background: var(--paper-deep);
}

.gallery-main img[hidden],
.gallery-main video[hidden] {
  display: none;
}

.gallery-toggle {
  appearance: none;
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 40%, transparent);
  color: var(--paper);
  cursor: pointer;
  opacity: 0.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-toggle:hover,
.gallery-toggle:focus-visible {
  opacity: 0.92;
}

.gallery-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.gallery-toggle.is-paused {
  opacity: 0.88;
}

.gallery-toggle .icon-play { display: none; }
.gallery-toggle.is-paused .icon-play { display: block; }
.gallery-toggle.is-paused .icon-pause { display: none; }

.gallery-main.is-still .gallery-toggle {
  display: none;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.thumb {
  appearance: none;
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 0;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  min-width: 0;
}

.thumb-video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -0.28rem 0 0 -0.12rem;
  border-style: solid;
  border-width: 0.28rem 0 0.28rem 0.46rem;
  border-color: transparent transparent transparent var(--paper);
  filter: drop-shadow(0 0 2px var(--ink));
  pointer-events: none;
}

.thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.thumb[aria-current="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.thumb:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.buy {
  min-width: 0;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
}

.price {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 7vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-sep { color: var(--muted); }

.price-meta {
  color: var(--muted);
  font-size: 1rem;
}

.buy-line {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 22rem;
}

.object-line {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 22rem;
}

.form { margin: 0; }

.form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.form-row {
  display: grid;
  gap: 0.5rem;
}

.buy-form input[type="email"] { margin-bottom: 0.5rem; }

input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 2px;
  outline: none;
}

input[type="email"]::placeholder { color: #6d675f; }

input[type="email"]:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 16%, transparent);
}

.btn,
.buy-form button[type="submit"],
button[type="submit"] {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.15rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.buy-form button[type="submit"] { width: 100%; }

.btn:hover,
.btn:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  background: #2a241e;
}

.btn:focus-visible,
button[type="submit"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

button[type="submit"]:disabled { opacity: 0.55; cursor: wait; }

.consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}

.consent input {
  margin-top: 0.15rem;
  accent-color: var(--ink);
  flex: 0 0 auto;
}

.trust-trio {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0.75rem 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 0.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: center;
}

.trust-trio li + li {
  border-left: 1px solid var(--line);
  padding-left: 0.4rem;
}

.caption {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.trust {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Band + shop sections */
.photo-band { padding: 0; }

.bleed { margin: 0; }

.bleed img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  object-position: 30% 50%;
}

.bleed figcaption {
  width: min(var(--wide), calc(100% - 2rem));
  margin: 0.7rem auto 1.75rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.how,
.inbox,
.faq,
.repeat { padding: 2.4rem 0; }

.inbox { background: var(--paper-deep); }

.shop-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.shop-card {
  margin: 0;
  padding: 1.05rem 1.1rem 1.15rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
}

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

.card-n {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.inbox-grid {
  display: grid;
  gap: 2rem;
}

.contents {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contents li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.contents li:last-child { border-bottom: 1px solid var(--line); }

.contents strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.contents span { color: var(--muted); font-size: 0.95rem; }

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.specs th,
.specs td {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.specs tr:last-child th,
.specs tr:last-child td { border-bottom: 1px solid var(--line); }

.specs th {
  font-weight: 500;
  width: 38%;
  padding-right: 1rem;
}

.specs td { color: var(--muted); }

.faq-wrap { width: min(36rem, calc(100% - 2rem)); }

.faq-list { margin-top: 0.35rem; }

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}

.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  font-size: 0.98rem;
}

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

.faq-list summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.faq-list details p {
  margin: 0.5rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.repeat { padding-bottom: 2.75rem; }

.repeat-box {
  width: min(24rem, calc(100% - 2rem));
}

.repeat-box .price-block { margin-bottom: 1rem; }

.site-footer {
  padding: 2.25rem 0 6.25rem;
  border-top: 1px solid var(--line);
}

.footer-grid { display: grid; gap: 0.7rem; }

.disclaimer,
.fine {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.fine { font-size: 0.78rem; }
.fine a { text-decoration: underline; text-underline-offset: 0.15em; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.sticky-cta[hidden] { display: none; }

.sticky-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  width: min(40rem, 100%);
  margin-inline: auto;
}

.sticky-form input[type="email"] { padding: 0.75rem 0.85rem; }
.sticky-form button { white-space: nowrap; }

/* Thanks / legal */
.thanks-page .thanks-main {
  min-height: calc(100vh - 14rem);
  display: grid;
  align-items: center;
  padding: 3rem 0;
}

.thanks-card h1 { margin-bottom: 0.9rem; }

.lede {
  margin: 0 0 1.1rem;
  max-width: 28rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.greet {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: 1rem;
}

.error {
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 500;
}

.thanks-home {
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

.thanks-home a { color: var(--muted); }

.intent { margin: 1.6rem 0 0; }
.intent-q { margin: 0 0 0.7rem; font-size: 0.95rem; color: var(--muted); }
.intent-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.intent-row button {
  font: inherit;
  background: var(--paper-deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.intent-ok { margin: 0.8rem 0 0; color: var(--muted); }

.legal-block { margin: 0 0 1.4rem; }
.legal-block h2 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}
.legal-block p,
.legal-block address {
  margin: 0 0 0.45rem;
  font-style: normal;
  color: var(--muted);
}

/* Tap log */
.log-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.log-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: min(26rem, calc(100% - 2rem));
  margin: 1.4rem auto 0;
}

.log-place {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.log-main {
  width: min(26rem, calc(100% - 2rem));
  margin: 2.75rem auto 4rem;
}

.log-now {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.log-sub {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.log-privacy {
  margin: 0 0 1.6rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.log-list {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.log-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.log-list .log-day {
  padding-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 0;
}

.log-note {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.log-cta { margin: 0; }

@media (min-width: 860px) {
  .wrap { width: min(var(--wide), calc(100% - 3.25rem)); }
  .narrow { width: min(var(--measure), calc(100% - 3.25rem)); }
  .pdp { padding: 1.5rem 0 2.75rem; }
  .pdp-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(var(--buy), 0.72fr);
    gap: 2.75rem;
    align-items: start;
  }
  .buy { position: sticky; top: 4.1rem; }
  .shop-cards { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .inbox-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 3.25rem; }
  .how, .inbox, .faq, .repeat { padding: 3rem 0; }
  .sticky-cta { display: none !important; }
  .site-footer { padding-bottom: 2.5rem; }
}

@media (min-width: 1100px) {
  .pdp-grid { gap: 3.5rem; }
  h1 { letter-spacing: -0.03em; }
}

@media (max-width: 859px) {
  .gallery-main {
    width: 100%;
    margin-left: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .trust-trio {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.45rem;
  }
  .trust-trio li + li {
    border-left: 0;
    padding-left: 0;
    padding-top: 0.45rem;
    border-top: 1px solid var(--line);
  }
  .sticky-form {
    grid-template-columns: 1fr;
  }
  .sticky-form button { width: 100%; }
  .specs th { width: auto; padding-right: 0.75rem; }
  .specs { font-size: 0.88rem; }
  body.sticky-on { padding-bottom: 7.5rem; }
  .site-footer { padding-bottom: 8rem; }
  h1 { font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .buy h1 { font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .eyebrow,
  .card-n,
  .wordmark { font-size: 0.75rem; }
  .trust-trio { font-size: 0.8rem; }
  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .consent input {
    width: 22px;
    height: 22px;
    margin-top: 0;
  }
  .fine a {
    display: inline-block;
    padding: 0.45rem 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-contrast: more) {
  :root { --muted: #2e2a26; --line: #8a8174; }
  input[type="email"]::placeholder { color: #3d3934; }
}
