/* Capykraft — Landing page styles.
   Brand identity: ink-on-cream, letterpress, pixel-blueprint.
   Hero layout preserved (cover shelf + dark prompt + wiring).
   Ebook products stay warm — covers are intentionally warm on a cool page.
   ============================================================ */

/* ---- Landing shell ---- */
.landing {
  min-height: 100%;
  /* Dot-grid background across the whole landing */
  background-color: var(--paper-50);
  background-image: radial-gradient(
    circle, rgba(31,27,21,0.08) 1.5px, transparent 1.5px
  );
  background-size: 22px 22px;
  color: var(--text-body);
  overflow-x: hidden;
}

/* ---- Landing Nav ---- */
.lnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper-50) 92%, transparent);
  backdrop-filter: blur(12px);
  /* Blueprint rule at the bottom */
  border-bottom: 1.5px solid rgba(31,27,21,0.18);
}
.lnav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-height, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lnav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lnav__signin {
  background: none;
  border: none;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 120ms ease, background 120ms ease;
}
.lnav__signin:hover {
  color: var(--text-strong);
  background: var(--paper-200);
}

/* ---- Section shell ---- */
.lsection {
  padding: 96px 28px;
}
.lsection__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.lsection__header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
/* Eyebrow: mono small-caps — blueprint label style */
.lsection__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-700);
  opacity: 0.5;
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Pixel bullet before eyebrow */
.lsection__eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--clay-500);
  border-radius: 1px;
  flex: none;
}
/* Title: display-weight grotesk for brand sections */
.lsection__title {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--text-strong);
  margin: 0 0 16px;
}
.lsection__sub {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Hero — full-viewport, centered, prompt-first ---- */
.lhero {
  min-height: calc(100vh - var(--nav-height, 58px));
  display: flex;
  align-items: center;
  padding: 60px 28px 80px;
  /* Brand: ink-on-cream, dot-grid bg bleeds in from .landing, no warm glow */
  background: transparent;
  position: relative;
}
/* Hero top label — blueprint stamp */
.lhero__stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-900);
  opacity: 0.36;
  margin-bottom: 22px;
}
.lhero__stamp::before,
.lhero__stamp::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--ink-900);
  border-radius: 1px;
  opacity: 0.6;
  flex: none;
}
/* Capy-dissolve wrapper in the hero */
.lhero__capy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.lhero__capy-mark {
  width: clamp(52px, 7vw, 76px);
  height: auto;
  display: block;
  filter: contrast(1.1) brightness(0.95);
  position: relative;
  z-index: 2;
}
/* Pixel scatter cloud around the capy */
.lhero__capy-cloud {
  position: absolute;
  inset: -24px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.lhero__px {
  position: absolute;
  background: var(--ink-900);
  border-radius: 1px;
}
.lhero__px:nth-child(1) { width:9px; height:9px; bottom:2px; left:-12px; opacity:0.55; }
.lhero__px:nth-child(2) { width:6px; height:6px; bottom:-4px; left:2px; opacity:0.35; }
.lhero__px:nth-child(3) { width:5px; height:5px; bottom:-8px; left:14px; opacity:0.20; }
.lhero__px:nth-child(4) { width:4px; height:4px; bottom:-12px; left:26px; opacity:0.10; }
.lhero__px:nth-child(5) { width:7px; height:7px; bottom:8px; left:-22px; opacity:0.30; }
.lhero__px:nth-child(6) { width:5px; height:5px; bottom:0; left:-30px; opacity:0.16; }
.lhero__px:nth-child(7) { width:4px; height:4px; bottom:-6px; left:-20px; opacity:0.08; }
.lhero__px:nth-child(8) { width:8px; height:8px; top:50%; right:-14px; opacity:0.22; transform:translateY(-50%); }
.lhero__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  width: 100%;
}
.lhero__text {
  margin-bottom: 40px;
}
/* Display headline: bold grotesk, letterpress weight */
.lhero__headline {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--ink-900);
  margin: 0 0 20px;
}
.lhero__sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 auto;          /* center the max-width box under the headline */
  max-width: 48ch;
}
/* Headline typewriter (rotating closing phrase) */
.lhero__type {
  white-space: nowrap;
  color: var(--clay-500);
  /* clay underline that tracks the typed word */
  background-image: linear-gradient(var(--clay-500), var(--clay-500));
  background-size: 100% 0.09em;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.06em;
}
.lhero__caret {
  display: inline-block;
  width: 0.5em;
  height: 0.78em;
  margin-left: 0.05em;
  background: var(--clay-500);
  vertical-align: baseline;
  transform: translateY(0.06em);
  animation: heroCaret 1.05s steps(1) infinite;
}
@keyframes heroCaret { 0%, 55% { opacity: 1; } 55.01%, 100% { opacity: 0; } }
/* Tagline below sub — mono small-caps */
.lhero__tagline {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-900);
  opacity: 0.38;
  margin: 12px 0 0;
}

/* ---- Cover shelf ---- */
.lhero__shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  width: 100%;
}
.lhero__shelf-item {
  flex: none;
  position: relative;
}
/* Four slightly varied angles for the shelf feel */
.lhero__shelf-item:nth-child(1) { transform: rotate(-4deg) translateY(6px); }
.lhero__shelf-item:nth-child(2) { transform: rotate(-1.5deg) translateY(2px); z-index: 2; }
.lhero__shelf-item:nth-child(3) { transform: rotate(1.5deg) translateY(2px); z-index: 2; }
.lhero__shelf-item:nth-child(4) { transform: rotate(4deg) translateY(6px); }
.lhero__shelf-item img {
  display: block;
  width: clamp(90px, 14vw, 148px);
  border-radius: 3px 8px 8px 3px;
  box-shadow:
    -2px 0 0 rgba(31,27,21,0.14),
    0 8px 24px rgba(31,27,21,0.18),
    0 2px 6px rgba(31,27,21,0.12);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.lhero__shelf-item:hover img {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow:
    -2px 0 0 rgba(31,27,21,0.14),
    0 18px 40px rgba(31,27,21,0.22),
    0 4px 10px rgba(31,27,21,0.14);
}

/* ---- Hero prompt input ---- */
.lhero__input-form {
  width: 100%;
  max-width: 640px;
}
.lhero__input-wrap {
  display: flex;
  align-items: center;
  background: var(--ink-900);
  border-radius: 16px;
  padding: 6px 6px 6px 22px;
  box-shadow:
    0 4px 24px rgba(31,27,21,0.22),
    0 1px 4px rgba(31,27,21,0.14),
    inset 0 1px 0 rgba(250,247,237,0.06);
  transition: box-shadow 200ms ease;
}
.lhero__input-wrap:focus-within {
  box-shadow:
    0 6px 32px rgba(31,27,21,0.28),
    0 0 0 2px var(--clay-500),
    inset 0 1px 0 rgba(250,247,237,0.06);
}
.lhero__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  color: var(--paper-100);
  caret-color: var(--clay-400);
  padding: 14px 12px 14px 0;
  line-height: 1.4;
}
.lhero__input::placeholder {
  color: var(--ink-500);
}
.lhero__input-submit {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--clay-500);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-50);
  transition: background 150ms ease, transform 120ms ease;
}
.lhero__input-submit:hover {
  background: var(--clay-600);
  transform: scale(1.04);
}
.lhero__input-submit:active {
  transform: scale(0.97);
}

/* ---- Example chips below the input ---- */
.lhero__hint {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-faint);
}
.lhero__hint span {
  color: var(--text-faint);
}
.lhero__hint-chip {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill, 999px);
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.lhero__hint-chip:hover {
  background: var(--paper-200);
  border-color: var(--clay-300);
  color: var(--clay-700);
}

/* ---- How it works ---- */
.lhow {
  background: transparent;
  border-top: 1.5px solid rgba(31,27,21,0.14);
  border-bottom: 1.5px solid rgba(31,27,21,0.14);
}
.lhow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.lstep {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Blueprint card framing on each step */
  border: 1px dashed rgba(31,27,21,0.22);
  border-radius: 2px;
  padding: 22px 18px;
  position: relative;
  background: var(--paper-card);
}
/* Corner ticks on each step */
.lstep::before,
.lstep::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
}
.lstep::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--ink-900);
  border-left: 2px solid var(--ink-900);
}
.lstep::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--ink-900);
  border-right: 2px solid var(--ink-900);
}
/* Step number: mono label instead of clay circle */
.lstep__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-900);
  opacity: 0.4;
  flex-shrink: 0;
  /* Remove circle */
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  border: none;
  display: inline;
  padding: 0;
  /* Add pixel bullet before the number */
}
.lstep__num::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--clay-500);
  border-radius: 1px;
  margin-right: 6px;
  vertical-align: middle;
}
.lstep__title {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--ink-900);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lstep__body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Make it yours ---- */
.lyours {
  background: transparent;
}
.lyours__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
.lyours__card {
  background: var(--paper-card);
  border: 1.5px dashed rgba(31,27,21,0.25);
  border-radius: 2px;
  padding: 32px 28px;
  position: relative;
  /* corner ticks */
}
.lyours__card::before,
.lyours__card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.lyours__card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--ink-900);
  border-left: 2px solid var(--ink-900);
}
.lyours__card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--ink-900);
  border-right: 2px solid var(--ink-900);
}
.lyours__card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  /* No clay bubble — raw icon on paper */
  background: none;
  border-radius: 0;
}
.lyours__card-title {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--ink-900);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lyours__card-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* Theme swatches */
.lyours__styles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 560px;
  margin: 8px auto 0;
}
.lstyle-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.lstyle-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.lstyle-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Proof ---- */
.lproof {
  background: transparent;
  border-top: 1.5px solid rgba(31,27,21,0.14);
  border-bottom: 1.5px solid rgba(31,27,21,0.14);
}
.lproof__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lproof__text {
  max-width: 480px;
}
.lproof__text .lsection__eyebrow,
.lproof__text .lsection__title,
.lproof__text .lsection__sub {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.lproof__text .lsection__title { margin-bottom: 16px; }
.lproof__text .lsection__sub { margin-bottom: 32px; }
.lproof__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lproof__book-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
.lproof__book-wrap {
  position: relative;
  display: inline-block;
}
.lproof__open {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #1F1B15;
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.lproof__book-link:hover .lproof__open,
.lproof__book-link:focus-visible .lproof__open {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.lproof__cover {
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.lproof__book-link:hover .lproof__cover {
  transform: translateY(-3px);
}
.lproof__book-wrap::before {
  content: '';
  position: absolute;
  inset: 10px 0 -10px 10px;
  background: var(--paper-400);
  border-radius: 3px 10px 10px 3px;
  z-index: 0;
}
.lproof__cover {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  border-radius: 4px 10px 10px 4px;
  box-shadow: var(--shadow-lg), -3px 0 0 rgba(31,27,21,0.15);
  display: block;
}
.lproof__caption {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-faint);
  margin: 0;
  font-style: italic;
}

/* ---- Final CTA ---- */
.lcta {
  background: transparent;
}
.lcta__card {
  background: var(--ink-900);
  border-radius: 3px;  /* letterpress feel — near-sharp */
  padding: 72px 48px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  /* Faint dot grid on dark */
  background-image:
    radial-gradient(circle, rgba(250,247,237,0.06) 1.5px, transparent 1.5px),
    linear-gradient(var(--ink-900), var(--ink-900));
  background-size: 22px 22px, 100% 100%;
}
.lcta__mark {
  display: inline-flex;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  /* cream mark for the dark card */
  background: url('/assets/capykraft-mark-light.png') center / contain no-repeat;
}
.lcta__mark img {
  opacity: 0;  /* dark mark hidden; cream mark shows via background */
}
.lcta__title {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--paper-50);
  margin: 0 0 14px;
}
.lcta__sub {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--paper-300);
  margin: 0 0 32px;
  line-height: 1.55;
}
.lcta__signin {
  margin: 20px 0 0;
}
.lcta__signin-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--paper-400);
  cursor: pointer;
  transition: color 120ms ease;
}
.lcta__signin-btn:hover {
  color: var(--paper-200);
  text-decoration: underline;
}

/* ---- Footer ---- */
.lfooter {
  background: var(--ink-900);
  border-top: 1.5px solid rgba(250,247,237,0.14);
  padding: 48px 28px;
  margin-top: 0;
}
.lfooter__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
}
.lfooter__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Override nav__brand colors for dark footer */
.lfooter .nav__brand .nav__word {
  color: var(--paper-100);
}
.lfooter__tagline {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-500);
  margin: 0;
}
.lfooter__links {
  display: flex;
  gap: 20px;
}
.lfooter__link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-500);
  text-decoration: none;
  transition: color 120ms ease;
}
.lfooter__link:hover {
  color: var(--paper-300);
}
.lfooter__copy {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-500);
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .lhow__steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .lproof__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .lproof__text {
    max-width: none;
    text-align: center;
  }
  .lproof__text .lsection__eyebrow,
  .lproof__text .lsection__title,
  .lproof__text .lsection__sub {
    text-align: center;
  }
  .lfooter__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lfooter__brand {
    align-items: center;
  }
  .lfooter__links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .lsection {
    padding: 64px 20px;
  }
  .lhero {
    padding: 48px 20px 64px;
    min-height: auto;
  }
  .lhero__shelf {
    gap: 6px;
  }
  .lhero__shelf-item img {
    width: clamp(68px, 20vw, 100px);
  }
  .lhero__hint {
    display: none;
  }
  .lhow__steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .lyours__grid {
    grid-template-columns: 1fr;
  }
  .lyours__styles {
    gap: 10px;
  }
  .lcta__card {
    padding: 48px 24px;
  }
  .lnav__inner {
    padding: 0 20px;
  }
}

/* ---- Fade-in animation ---- */
@keyframes landingFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.lhero__text {
  animation: landingFadeUp 0.45s ease both;
}
.lhero__shelf {
  animation: landingFadeUp 0.45s 0.08s ease both;
}
.lhero__input-form {
  animation: landingFadeUp 0.45s 0.15s ease both;
}
.lhero__hint {
  animation: landingFadeUp 0.45s 0.22s ease both;
}
