/* =========================================================================
   Digital Guestbook — landing page
   One warm theme in two modes. Photography carries the colour; the UI recedes.
   ========================================================================= */

/* --- Tokens ------------------------------------------------------------ */

:root {
  --bg:          oklch(0.180 0.012 60);
  --surface:     oklch(0.235 0.014 60);
  --surface-2:   oklch(0.275 0.014 60);
  --border:      oklch(0.320 0.012 60);
  --text:        oklch(0.960 0.008 80);
  --muted:       oklch(0.700 0.010 70);
  --accent:      oklch(0.680 0.150 45);
  --accent-hover:oklch(0.740 0.150 45);
  --accent-ink:  oklch(0.180 0.012 60);
  --shadow:      0 1px 2px oklch(0 0 0 / 0.4);

  --shell: 76rem;
  --gap: 8px;
  --radius: 6px;

  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.25rem;
  --step-2:  clamp(1.75rem, 3.2vw, 2.25rem);
  --step-3:  clamp(2rem, 3.5vw, 3rem);
  --step-4:  clamp(2.5rem, 5vw, 4rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:          oklch(0.985 0.006 85);
  --surface:     oklch(0.955 0.009 80);
  --surface-2:   oklch(0.925 0.010 80);
  --border:      oklch(0.885 0.010 80);
  --text:        oklch(0.220 0.014 55);
  --muted:       oklch(0.480 0.012 60);
  --accent:      oklch(0.505 0.145 42);
  --accent-hover:oklch(0.450 0.145 42);
  --accent-ink:  oklch(0.990 0.005 85);
  --shadow:      0 1px 2px oklch(0.2 0.01 60 / 0.10);
  color-scheme: light;
}

/* --- Reset -------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.03em;
}
h3 { font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 150ms var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: var(--surface); }
.btn-sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: var(--step--1); }
.btn-block { width: 100%; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 2rem;
  margin-inline-start: auto;
  font-size: var(--step--1);
}
.nav a { color: var(--muted); text-decoration: none; transition: color 150ms var(--ease); }
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.theme-toggle svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme="dark"] .icon-moon,
:root[data-theme="light"] .icon-sun { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  margin: 4px auto;
  background: var(--text);
}

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav a:not(.btn) {
  padding: 0.85rem 0;
  color: var(--muted);
  text-decoration: none;
}
.mobile-nav .btn { margin-top: 0.5rem; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 96rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero-copy {
  padding-inline-start: clamp(1rem, 6vw, 5rem);
  padding-inline-end: 1rem;
  max-width: 40rem;
  justify-self: end;
}

.hero h1 {
  font-size: var(--step-4);
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px 0 0 4px;
}
/* Blend the photograph into the page on the text side. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, var(--bg) 0%, transparent 22%);
}

/* --- Section heads ------------------------------------------------------ */

.section-head {
  max-width: 42rem;
  margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
  padding-inline: 1.25rem;
  text-align: center;
}
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 0.85rem; color: var(--muted); }

/* --- Memory wall -------------------------------------------------------- */

.wall-section { padding-block: clamp(2rem, 4vw, 3.5rem) 0; }

.wall {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(8rem, 11vw, 12rem);
  grid-template-areas:
    "p1 p1 p2 p2 p3 p3"
    "p1 p1 q1 q1 p4 p4"
    "q2 q2 p5 p5 p6 p6"
    "p7 p7 p8 p8 q3 q3";
}

.tile { margin: 0; overflow: hidden; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; }

.t-p1 { grid-area: p1; } .t-p2 { grid-area: p2; } .t-p3 { grid-area: p3; }
.t-p4 { grid-area: p4; } .t-p5 { grid-area: p5; } .t-p6 { grid-area: p6; }
.t-p7 { grid-area: p7; } .t-p8 { grid-area: p8; }
.t-q1 { grid-area: q1; } .t-q2 { grid-area: q2; } .t-q3 { grid-area: q3; }

.quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding: clamp(1.1rem, 2.2vw, 2rem);
  background: var(--surface);
}
.quote p {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}
.quote cite {
  font-size: var(--step--1);
  font-style: normal;
  color: var(--muted);
}

/* --- Steps -------------------------------------------------------------- */

.steps-section { padding-block: clamp(3rem, 6vw, 5rem); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.step {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.step h3 {
  margin: 1.35rem 1.35rem 0.6rem;
  font-size: var(--step-1);
}
.step p {
  margin: 0 1.35rem 1.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}

/* --- Features bento ----------------------------------------------------- */

.features-section { padding-bottom: clamp(3rem, 6vw, 5rem); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.cell {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.cell h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.cell p { color: var(--muted); font-size: var(--step--1); }
.cell .ico {
  width: 26px; height: 26px;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cell-wide { grid-column: span 2; }

/* The printable QR card is a real artifact, not a decorative graphic. */
.cell-media {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface-2);
}
.qr-card {
  flex: 0 0 auto;
  width: clamp(7rem, 12vw, 9rem);
  padding: 0.8rem 0.8rem 0.6rem;
  background: oklch(0.985 0.008 85);
  border-radius: 3px;
  box-shadow: var(--shadow);
  text-align: center;
}
.qr-card img { width: 100%; }
.qr-card-label {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(0.35 0.02 55);
}
.cell-media-copy { min-width: 0; }

.cell-photo { flex-direction: row; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.cell-photo img { width: 52%; object-fit: cover; }
.cell-photo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  min-width: 0;
}

/* --- Photographers ------------------------------------------------------ */

.photographers {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.photographers-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 0.8fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.photographers h2 { font-size: var(--step-3); }
.photographers .lede { margin-top: 1.25rem; }
.economics {
  margin-top: 1.75rem;
  color: var(--accent);
  font-size: var(--step-1);
  line-height: 1.45;
}
.photographers .btn { margin-top: 1.75rem; }

.benefit-groups { display: grid; gap: 1.75rem; padding-top: 2.75rem; }
.benefit-group h3 {
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.benefit-group li {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  line-height: 1.5;
}

.photographers-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

/* --- Pricing ------------------------------------------------------------ */

.pricing { padding-block: clamp(3rem, 6vw, 5rem); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.plan-featured { border-color: var(--accent); }
.plan-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.plan h3 { font-size: var(--step-1); }
.price { margin-top: 0.6rem; display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.price .amount {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.price .per { color: var(--muted); font-size: var(--step--1); }
.plan-for { color: var(--muted); font-size: var(--step--1); }
.plan-features {
  margin: 1.5rem 0;
  display: grid;
  gap: 0.55rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.plan-features li { padding-inline-start: 1.1rem; position: relative; line-height: 1.45; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.plan .btn { margin-top: auto; }

.faq { display: grid; align-content: start; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: var(--step--1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
  padding: 0 0.25rem 1.25rem;
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 46ch;
}

/* --- Closing + footer --------------------------------------------------- */

.closing {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing h2 { font-size: var(--step-3); }
.closing p { margin-top: 1rem; color: var(--muted); }
.closing .btn { margin-top: 2rem; }

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer-inner a:hover { color: var(--text); }
.disclaimer {
  max-width: var(--shell);
  margin: 1.75rem auto 0;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* --- Motion ------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(8px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .photographers-inner { grid-template-columns: 1fr 1fr; }
  .benefit-groups { padding-top: 0; }
  .photographers-media { grid-column: 1 / -1; }
  .photographers-media img { aspect-ratio: 21 / 9; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .faq { grid-column: 1 / -1; margin-top: 1rem; }
}

@media (min-width: 901px) {
  .mobile-nav { display: none; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(2rem, 5vw, 3rem);
    gap: 2rem;
  }
  .hero-copy {
    justify-self: stretch;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
    max-width: none;
  }
  .hero-media img { aspect-ratio: 16 / 10; border-radius: 0; }
  .hero-media::after { background: linear-gradient(to bottom, var(--bg) 0%, transparent 18%); }

  .wall {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "p1 p1 p2 p2"
      "p1 p1 q1 q1"
      "p3 p3 p4 p4"
      "q2 q2 p5 p5"
      "p6 p6 p7 p7"
      "p8 p8 q3 q3";
  }

  /* Three stacked identical cards read as filler; a swipeable strip does not. */
  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(1rem, 4vw, 2.5rem);
    padding-bottom: 0.5rem;
    margin-inline: calc(clamp(1rem, 4vw, 2.5rem) * -1);
    padding-inline: clamp(1rem, 4vw, 2.5rem);
    scrollbar-width: thin;
  }
  .step {
    flex: 0 0 min(78%, 21rem);
    scroll-snap-align: start;
  }

  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.25rem); }

  .wall {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(7.5rem, 30vw, 11rem);
    grid-template-areas:
      "p1 p1"
      "q1 q1"
      "p2 p3"
      "p4 p5"
      "q2 q2"
      "p6 p7"
      "q3 q3"
      "p8 p8";
  }

  .bento { grid-template-columns: 1fr; }
  .cell-wide { grid-column: span 1; }
  .cell-media { flex-direction: column; align-items: flex-start; }
  .cell-photo { flex-direction: column; }
  .cell-photo img { width: 100%; aspect-ratio: 16 / 9; }

  .photographers-inner, .pricing-grid { grid-template-columns: 1fr; }
  .photographers-media img { aspect-ratio: 16 / 10; }
  .plan-featured { margin-top: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
