@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Instrument+Serif:ital@0;1&family=Lora:ital,wght@0,400;0,500;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&family=Young+Serif&display=swap');

:root {
  --bg-color: #f6f3eb;
  --text-color: #1c1a17;
  --accent-color: #df5537;
  --accent-hover: #c44327;
  --muted-color: #68635c;
  --white: #ffffff;
  
  --font-serif: 'Instrument Serif', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  --container-width: 1100px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #d8d3c5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c3beb1;
}

/* Layout Containers */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

/* Utility Header Tag */
.header-tag {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(246, 243, 235, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 26, 23, 0.05);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
}

/* flex-basis 0 keeps the logo optically centered no matter how many links each
   side carries — space-between alone would let the wider group push it off-axis. */
.nav-links-left, .nav-links-right {
  display: flex;
  flex: 1 1 0;
  gap: 2.5rem;
}

.nav-links-right {
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  letter-spacing: -0.01em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.logo-center {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.logo-center:hover {
  transform: scale(1.03);
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-block;
  background-color: var(--white);
  border: 1px solid rgba(28, 26, 23, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.hero-desc {
  max-width: 500px;
  font-size: 1.1rem;
  color: var(--muted-color);
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(223, 85, 55, 0.15);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(223, 85, 55, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-color);
  padding: 0.9rem 2.2rem;
  border-radius: 2rem;
  border: 1px solid rgba(28, 26, 23, 0.18);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--text-color);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Apple-style App Store badge, built from type so it stays crisp at any size */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background-color: var(--text-color);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border-radius: 2rem;
  transition: var(--transition-smooth);
}

.btn-appstore:hover {
  background-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(28, 26, 23, 0.22);
}

.btn-appstore:active {
  transform: translateY(0);
}

.appstore-logo {
  width: 1.35rem;
  height: 1.6rem;
  flex-shrink: 0;
}

.appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.appstore-eyebrow {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.appstore-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.appstore-cta {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Waitlist copy sits below the badge, separated by a hairline rule */
.appstore-divider {
  position: relative;
  padding-top: 2.5rem;
  font-size: 0.95rem;
}

.appstore-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 260px;
  border-top: 1px solid rgba(28, 26, 23, 0.1);
}

/* Staggered Grid for How It Works */
.section-title {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 4rem;
  max-width: 700px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.step-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  column-gap: 6.5rem;
  align-items: center;
}

/* Step Styles */
.step-text {
  padding-top: 1rem;
}

.step-description {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-color);
}

.step-img {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.step-img img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  transition: var(--transition-smooth);
}

/* Phone Mockup Frames with Shadows */
.phone-mockup {
  filter: drop-shadow(0 20px 45px rgba(28, 26, 23, 0.08));
}

.phone-mockup img {
  border-radius: 0; /* Let image keep original rounded mock frame */
}

/* Step specific sizes and offsets */
.step-row .step-img {
  max-width: 320px;
  justify-self: start;
}

.step-row .step-3-img {
  max-width: 450px;
}

/* Hover behaviors for images */
.step-img:hover {
  transform: translateY(-8px);
}

.step-img:hover img {
  transform: scale(1.02);
}

/* City-wide Matchmaking Section */
.city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6.5rem;
  row-gap: 2rem;
  align-items: start;
}

.city-col-left, .city-col-right {
  display: flex;
  flex-direction: column;
}

.city-desc {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 440px;
}

.city-desc-muted {
  font-size: 1.1rem;
  color: var(--muted-color);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.city-img {
  border-radius: 1.5rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.city-img img {
  width: 100%;
  border-radius: 1.5rem;
  transition: var(--transition-smooth);
}

.city-img:hover {
  transform: translateY(-8px);
}

.city-img:hover img {
  transform: scale(1.02);
}

.city-col-left .city-img {
  max-width: 90%;
  filter: drop-shadow(0 20px 45px rgba(28, 26, 23, 0.08));
}

.city-col-right .city-img {
  max-width: 95%;
}

/* Mobile Nav Styles & Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  width: 30px;
  height: 20px;
  position: relative;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  transition: var(--transition-fast);
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 9px; }
.menu-btn span:nth-child(3) { top: 18px; }

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Footer */
.site-footer {
  padding: 6rem 0;
  background-color: rgba(28, 26, 23, 0.02);
  border-top: 1px solid rgba(28, 26, 23, 0.05);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-company {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.footer-company .footer-link {
  color: var(--text-color);
  margin-left: 0;
}

.footer-company .footer-link:hover {
  color: var(--accent-color);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted-color);
}

/* Scroll Animation classes */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 900px) {
  .section-title {
    font-size: 2.8rem;
  }
  
  .step-row {
    column-gap: 3rem;
  }
  
  .city-grid {
    column-gap: 3rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .site-header {
    background-color: var(--bg-color);
  }
  
  .nav-container {
    height: 4.5rem;
  }
  
  .menu-btn {
    display: block;
  }
  
  .nav-links-left, .nav-links-right {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
    z-index: 105;
  }
  
  .nav-links-left {
    left: -100vw;
    background-color: var(--bg-color);
    padding-top: 9rem;
  }
  
  /* The two panels stack as one visual list, so this offset must clear the left
     panel's links: 9rem + one 5.02rem slot per link (2.52rem tall + 2.5rem gap).
     Adding a link to the left panel means bumping this by another slot. */
  .nav-links-right {
    left: 100vw;
    background-color: transparent;
    padding-top: 22rem;
    z-index: 106;
  }
  
  .nav-links-left.active {
    left: 0;
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-links-right.active {
    left: 0;
    opacity: 1;
    /* The open right panel is a transparent full-screen overlay stacked above
       the left panel; it must not swallow taps meant for the links beneath it.
       Only its own links take pointer events. */
    pointer-events: none;
  }

  .nav-links-right.active .nav-link {
    pointer-events: auto;
  }
  
  .logo-center {
    font-size: 2.2rem;
    z-index: 106;
  }
  
  .hero {
    padding-top: 8rem;
  }

  /* Stack the step rows */
  .steps-list {
    gap: 4rem;
  }

  .step-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .step-row .step-img {
    max-width: 100% !important;
    width: 100%;
    margin-top: 1rem !important;
  }

  .step-row .step-3-img {
    max-width: 100% !important;
    width: 100%;
  }
  
  .step-text {
    padding-top: 0.5rem;
  }
  
  /* Stack the city grid */
  .city-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  
  .city-col-left .city-img, .city-col-right .city-img {
    max-width: 100% !important;
    margin-top: 1rem !important;
  }
  
  .city-desc {
    margin-bottom: 1.5rem;
  }
  
  .city-desc-muted {
    margin-bottom: 1.5rem;
  }
}

/* Footer Link */
.footer-link {
  color: var(--muted-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
  margin-left: 0.5rem;
}

.footer-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Terms Page Styling */
.terms-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.terms-container {
  max-width: 800px;
  width: 100%;
  margin: 120px auto 80px;
  padding: 0 2rem;
  flex: 1;
}

.terms-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(28, 26, 23, 0.1);
  padding-bottom: 1.5rem;
}

.terms-header h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--text-color);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.terms-meta {
  font-size: 0.9rem;
  color: var(--muted-color);
}

.terms-body {
  font-family: var(--font-sans);
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.7;
}

.terms-body h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-color);
  margin: 2.5rem 0 1rem;
}

.terms-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-color);
  margin: 2rem 0 0.8rem;
}

.terms-body p {
  margin-bottom: 1.2rem;
}

.terms-body ul, .terms-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.terms-body li {
  margin-bottom: 0.6rem;
}

.terms-body a {
  color: var(--accent-color);
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.terms-body a:hover {
  border-bottom-color: var(--accent-color);
}

/* Loading & Error States */
.loading-skeleton {
  padding: 1rem 0;
}

.skeleton-line {
  height: 1rem;
  background-color: rgba(28, 26, 23, 0.05);
  margin-bottom: 1rem;
  border-radius: 4px;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-line.title {
  height: 2.5rem;
  width: 60%;
  margin-bottom: 2rem;
}

.skeleton-line.short {
  width: 40%;
}

@keyframes skeleton-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.error-container {
  padding: 2rem;
  background-color: rgba(223, 85, 55, 0.05);
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  margin-bottom: 2rem;
}

.error-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.error-text {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.btn-retry {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-retry:hover {
  background-color: var(--accent-hover);
}

/* Events Section */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.event-card {
  background-color: var(--white);
  border-radius: 1.5rem;
  border: 1px solid rgba(28, 26, 23, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  transition: var(--transition-smooth);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(28, 26, 23, 0.05);
  border-color: rgba(28, 26, 23, 0.12);
}

.event-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd2c2, #ffe7c2);
}

.event-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.event-card:hover .event-card-image {
  transform: scale(1.05);
}

.event-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.event-card-badge.sold-out {
  background-color: #1c1a17;
  color: var(--white);
}

.event-card-badge.free {
  background-color: var(--accent-color);
  color: var(--white);
}

.event-card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.event-card-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.event-card-description {
  font-size: 0.95rem;
  color: var(--muted-color);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.event-card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(28, 26, 23, 0.06);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-card-location {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.event-card-venue {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
}

.event-card-neighborhood {
  font-size: 0.8rem;
  color: var(--muted-color);
}

.btn-card-cta {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(223, 85, 55, 0.12);
}

.btn-card-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-card-cta:disabled {
  background-color: #e5dfd5;
  color: var(--muted-color);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Skeleton Loading styles */
.skeleton-card {
  background-color: var(--white);
  border-radius: 1.5rem;
  border: 1px solid rgba(28, 26, 23, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background-color: rgba(28, 26, 23, 0.05);
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-card .skeleton-title {
  height: 1.5rem;
  background-color: rgba(28, 26, 23, 0.05);
  margin: 1.8rem 1.8rem 0.8rem 1.8rem;
  border-radius: 4px;
  width: 75%;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-card .skeleton-text {
  height: 1rem;
  background-color: rgba(28, 26, 23, 0.05);
  margin: 0.5rem 1.8rem 0 1.8rem;
  border-radius: 4px;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

.skeleton-card .skeleton-text.short {
  width: 50%;
  margin-bottom: 2rem;
}

.skeleton-card .skeleton-btn {
  height: 2.2rem;
  background-color: rgba(28, 26, 23, 0.05);
  margin: 0 1.8rem 1.8rem 1.8rem;
  border-radius: 2rem;
  width: 40%;
  align-self: flex-start;
  animation: skeleton-glow 1.5s ease-in-out infinite;
}

/* Active Nav Link */
.nav-link.active-nav-link {
  color: var(--accent-color);
}
.nav-link.active-nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Booksellers Hero */
.booksellers-hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  text-align: left;
}

.booksellers-hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.booksellers-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.booksellers-hero-text h1 {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: left;
}

.booksellers-hero-media {
  width: 100%;
  display: flex;
  justify-content: center;
}

.watercolor-frame {
  position: relative;
  border-radius: 1.5rem;
  background-color: var(--white);
  padding: 1.2rem;
  box-shadow: 0 15px 35px rgba(28, 26, 23, 0.06);
  transform: rotate(2deg);
  transition: var(--transition-smooth);
}

.watercolor-frame:hover {
  transform: rotate(-1deg) translateY(-8px);
  box-shadow: 0 25px 45px rgba(28, 26, 23, 0.12);
}

.booksellers-hero-image {
  width: 100%;
  border-radius: 1.05rem;
  display: block;
}

/* Philosophy Section */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.philosophy-card {
  background-color: var(--white);
  border: 1px solid rgba(28, 26, 23, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  transition: var(--transition-smooth);
}

.philosophy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(28, 26, 23, 0.04);
  border-color: rgba(28, 26, 23, 0.1);
}

.philosophy-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(223, 85, 55, 0.08);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.philosophy-card h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.philosophy-card p {
  font-size: 0.95rem;
  color: var(--muted-color);
  line-height: 1.6;
}

/* Timeline/How it works */
.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: rgba(28, 26, 23, 0.06);
}

.timeline-step {
  display: flex;
  gap: 2rem;
  position: relative;
}

.timeline-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 4px solid var(--bg-color);
  z-index: 1;
}

.timeline-content {
  background-color: var(--white);
  border: 1px solid rgba(28, 26, 23, 0.04);
  border-radius: 1.25rem;
  padding: 1.8rem 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.01);
  flex-grow: 1;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--muted-color);
  line-height: 1.6;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.benefit-card {
  background-color: var(--white);
  border: 1px solid rgba(28, 26, 23, 0.04);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(28, 26, 23, 0.04);
  border-color: rgba(28, 26, 23, 0.1);
}

.benefit-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--muted-color);
  line-height: 1.6;
}

/* Contact box & Form styling */
.contact-box {
  background-color: var(--white);
  border: 1px solid rgba(28, 26, 23, 0.06);
  border-radius: 2rem;
  padding: 4.5rem;
  box-shadow: 0 20px 50px rgba(28, 26, 23, 0.04);
  max-width: 850px;
  margin: 0 auto;
}

.contact-subtitle {
  color: var(--muted-color);
  max-width: 500px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.form-container {
  transition: opacity 0.3s ease;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background-color: var(--bg-color);
  border: 1px solid rgba(28, 26, 23, 0.08);
  border-radius: 0.75rem;
  padding: 0.9rem 1.2rem;
  color: var(--text-color);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(223, 85, 55, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a49f96;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #d93838;
  background-color: rgba(217, 56, 56, 0.02);
}

.error-msg {
  font-size: 0.8rem;
  font-weight: 500;
  color: #d93838;
  margin-top: 0.25rem;
  display: none;
}

.btn-submit-form {
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  position: absolute;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Screen animation */
.success-screen {
  text-align: center;
  padding: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.success-screen.active {
  opacity: 1;
  transform: translateY(0);
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(34, 187, 120, 0.08);
  color: #22bb78;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.success-screen h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.success-screen p {
  font-size: 1.05rem;
  color: var(--muted-color);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive adjustments for Booksellers page */
@media (max-width: 900px) {
  .booksellers-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .booksellers-hero-text h1 {
    font-size: 4rem;
    text-align: center;
  }
  .booksellers-hero-text {
    align-items: center;
  }
  .booksellers-hero-text .hero-desc {
    text-align: center;
    margin: 0 auto 2.5rem;
  }
  .philosophy-grid, .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-box {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .booksellers-hero-text h1 {
    font-size: 3.2rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .timeline-wrapper::before {
    left: 18px;
  }
  .timeline-number {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .timeline-step {
    gap: 1rem;
  }
  .timeline-content {
    padding: 1.25rem 1.5rem;
  }
}

/* ============================================
   Utility
   ============================================ */
.text-center {
  text-align: center;
}

/* ============================================
   Get Notified / Launch Waitlist Widget
   ============================================ */
.notify-box {
  max-width: 620px;
}

/* Inline "optional" hint inside a field label */
.field-hint {
  font-weight: 400;
  color: var(--muted-color);
  font-size: 0.82rem;
}

/* A2P 10DLC SMS consent block */
.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0.25rem 0 0.5rem;
  padding: 1rem 1.2rem;
  text-align: left;
  background-color: var(--bg-color);
  border: 1px solid rgba(28, 26, 23, 0.08);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.consent-group:hover {
  border-color: rgba(28, 26, 23, 0.16);
}

.consent-group.invalid {
  border-color: #d93838;
  background-color: rgba(217, 56, 56, 0.03);
}

.consent-group input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.consent-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted-color);
}

.consent-text a {
  color: var(--accent-color);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.consent-text a:hover {
  border-bottom-color: var(--accent-color);
}

/* Consent validation message */
.consent-error {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* Fine print beneath the submit button */
.compliance-note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted-color);
  text-align: center;
  margin: 1.4rem auto 0;
  max-width: 480px;
}

.notify-success-extra {
  font-size: 0.85rem !important;
  color: var(--muted-color);
  margin-top: 1.25rem !important;
}

/* ============================================
   Booksellers: Deal Note, Promises, Conduct,
   Founder Letter & FAQ
   ============================================ */

/* Hero deal note (under the CTA) */
.hero-deal-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-color);
}

/* Timeline: the closing-ritual step */
.timeline-step-highlight .timeline-content {
  border-color: rgba(223, 85, 55, 0.3);
  box-shadow: 0 12px 30px rgba(223, 85, 55, 0.06);
}

.timeline-ritual-tag {
  display: inline-block;
  background-color: rgba(223, 85, 55, 0.08);
  color: var(--accent-color);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 0.9rem;
}

/* What we promise your store */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.promise-card {
  background-color: var(--white);
  border: 1px solid rgba(28, 26, 23, 0.04);
  border-radius: 1.5rem;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
  transition: var(--transition-smooth);
}

.promise-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(28, 26, 23, 0.04);
  border-color: rgba(28, 26, 23, 0.1);
}

.promise-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.promise-card p {
  font-size: 0.98rem;
  color: var(--muted-color);
  line-height: 1.65;
}

/* Safety & conduct panel */
.conduct-panel {
  background-color: var(--white);
  border: 1px solid rgba(223, 85, 55, 0.18);
  border-left: 4px solid var(--accent-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
}

.conduct-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

.conduct-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(223, 85, 55, 0.08);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conduct-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
}

.conduct-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}

.conduct-list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  color: var(--muted-color);
  line-height: 1.55;
}

.conduct-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: 700;
}

.conduct-list a {
  color: var(--accent-color);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.conduct-list a:hover {
  border-bottom-color: var(--accent-color);
}

/* Founder letter */
.founder-letter {
  --letter-serif: 'Lora', Georgia, serif;
  --letter-hand: 'Caveat', cursive;
  background-color: #fffdf7;
  border: 1px solid rgba(28, 26, 23, 0.08);
  border-radius: 0.5rem;
  padding: 4rem 4.5rem;
  box-shadow: 0 1px 2px rgba(28, 26, 23, 0.04), 0 24px 60px rgba(28, 26, 23, 0.06);
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.founder-letterhead {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid rgba(28, 26, 23, 0.08);
}

.founder-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(28, 26, 23, 0.08);
  flex-shrink: 0;
}

.founder-letterhead-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.founder-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--text-color);
}

.founder-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.founder-letter-body p {
  font-family: var(--letter-serif);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-color);
  margin-bottom: 1.4rem;
}

.founder-salutation {
  font-style: italic;
}

.founder-signoff {
  margin-top: 2.25rem;
}

.founder-warmly {
  font-family: var(--letter-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-color);
  margin-bottom: 0.35rem;
}

.founder-signature {
  font-family: var(--letter-hand);
  font-weight: 600;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--accent-color);
  transform: rotate(-2deg);
  transform-origin: left center;
  display: inline-block;
}

.founder-title {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-top: 0.75rem;
}

.founder-title a {
  color: var(--accent-color);
}

.founder-title a:hover {
  text-decoration: underline;
}


/* FAQ */
.faq-list {
  max-width: 820px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid rgba(28, 26, 23, 0.05);
  border-radius: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(28, 26, 23, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
}

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

.faq-item summary::after {
  content: '+';
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent-color);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

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

.faq-answer {
  padding: 0 1.8rem 1.6rem;
}

.faq-answer p {
  font-size: 0.97rem;
  color: var(--muted-color);
  line-height: 1.65;
}

.faq-answer p + p {
  margin-top: 0.9rem;
}

.faq-answer a {
  color: var(--accent-color);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.faq-answer a:hover {
  border-bottom-color: var(--accent-color);
}

/* Responsive: booksellers additions */
@media (max-width: 900px) {
  .promise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .founder-letter {
    padding: 3rem 1.75rem;
  }
  .booksellers-hero-text .hero-deal-note {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .conduct-panel {
    padding: 1.75rem 1.5rem;
  }
  .conduct-list {
    grid-template-columns: 1fr;
  }
  .faq-item summary {
    padding: 1.2rem 1.3rem;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 1.3rem 1.3rem;
  }
}




/* ============================================
   Polaroid Hero — "Polaroids on the Table"
   Five event photos as Polaroid prints in three loose rows, with the
   two Book Crush app-UI cards sitting level between them — the LIVE
   NOW round bar centered in the top row (handwritten aside below it),
   the guest profile card centered in the middle row, and the 9:15
   print closing alone. Photos are CSS backgrounds inside each print —
   never bare <img> tags — so a photo can't be dragged out or
   "Save Image As…"-ed apart from its frame. Each print is its own
   object: hover straightens + lifts it above the cards.
   ============================================ */
.polaroid-hero {
  --ph-cream: #F2EDE1;
  --ph-ink: #262019;
  --ph-caption-ink: #3A3128;
  --ph-muted: #8B8172;
  --ph-accent: #B4531D;
  --ph-accent-hover: #9C4416;
  --ph-cta-ink: #FBF6EA;
  background-color: var(--ph-cream);
  padding: 0;
}

.polaroid-hero .polaroid-hero-inner {
  /* fill the section (the base .hero flex column would otherwise
     shrink-wrap this), capped at the design width */
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  /* 84px of breathing room below the fixed 5.5rem site header */
  padding: calc(5.5rem + 84px) 72px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.polaroid-hero .polaroid-eyebrow {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 3px;
  color: var(--ph-accent);
  text-align: center;
}

.polaroid-hero .polaroid-title {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-size: 76px;
  line-height: 1.05;
  letter-spacing: normal;
  color: var(--ph-ink);
  margin: 18px 0 0;
  max-width: 760px;
  text-align: center;
}

/* Bold two-line value statement under the title */
.polaroid-hero .polaroid-lede {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.4;
  color: var(--ph-ink);
  margin-top: 30px;
  text-align: center;
}

.polaroid-hero .polaroid-sub {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ph-muted);
  margin-top: 18px;
  text-align: center;
}

/* Small label introducing the collage */
.polaroid-hero .polaroid-collage-label {
  margin-top: 36px;
  text-align: center;
  line-height: 1.5;
}

.polaroid-hero .polaroid-collage-label b {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ph-ink);
}

.polaroid-hero .polaroid-collage-label span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--ph-muted);
}

/* The collage: three stacked rows in normal flow */
.polaroid-hero .polaroid-field {
  width: min(1136px, 100%);
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* A row: two prints pushed to the edges, one app card level between them */
.polaroid-hero .polaroid-row {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 28px;
}

.polaroid-hero .polaroid-row-2 {
  margin-top: 44px;
}

/* One Polaroid print. True Polaroid 600 proportions: square image,
   thin side/top border, deep bottom edge (the caption zone). */
.polaroid-hero .polaroid {
  width: min(272px, calc(50% - 12px));
  margin: 0;
  padding: 15px 15px 0;
  background: linear-gradient(172deg, #FEFEFB 0%, #F6F3EA 70%, #EFEBDD 100%);
  border-radius: 0;
  box-shadow: 0 14px 28px rgba(50, 38, 22, .24), 0 2px 5px rgba(50, 38, 22, .16);
  transform: rotate(var(--rot, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* The "pop": straighten, lift, deepen the shadow, ride above the cards */
.polaroid-hero .polaroid:hover {
  transform: rotate(0deg) translateY(-10px);
  box-shadow: 0 24px 46px rgba(50, 38, 22, .3);
  z-index: 20;
  position: relative;
}

/* Print tilts (photos keep their own captions; the times read scattered,
   like prints tossed on a table) */
.polaroid-hero .polaroid-0810 { --rot: -3.5deg; --cap-rot: -1deg; }
.polaroid-hero .polaroid-0730 { --rot: 2.5deg;  --cap-rot: .5deg; }
.polaroid-hero .polaroid-0740 { --rot: 3deg;    --cap-rot: 1deg; }
.polaroid-hero .polaroid-0840 { --rot: -3deg;   --cap-rot: -1deg; }
.polaroid-hero .polaroid-0915 { --rot: 4deg;    --cap-rot: .5deg; margin-top: 44px; }

/* Square photo area — the photo itself is a background layer of the print */
.polaroid-hero .polaroid-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background-color: #17130E;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Emulsion sheen over the photo, so the print reads as one physical object */
.polaroid-hero .polaroid-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 20px rgba(10, 6, 2, .4), inset 0 1px 2px rgba(255, 255, 255, .25);
  background: linear-gradient(112deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 28%);
  pointer-events: none;
}

/* Hand-written caption zone (the deep bottom edge of the print).
   min-height keeps the true Polaroid proportions for short captions
   while letting a long caption deepen the print instead of clipping. */
.polaroid-hero .polaroid-caption {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 14px;
}

.polaroid-hero .polaroid-caption span {
  display: inline-block;
  transform: rotate(var(--cap-rot, 0deg));
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
  color: var(--ph-caption-ink);
  text-align: center;
}

.polaroid-hero .polaroid-caption b {
  font-weight: 700;
  color: var(--ph-accent);
}

/* App-UI cards: level (no tilt — the app is the steady thing on the
   table), centered in the clear gap between the row's two prints.
   Never overlapping a print: the width formula subtracts the prints,
   the row padding, the tilted corners' reach, and breathing room —
   even the PNGs' baked shadow apron stays off the frames. Swap in
   real app exports by replacing the files with the same 46px apron. */
.polaroid-hero .app-card {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.polaroid-hero .app-card-live {
  width: min(488px, calc(100% - 648px));
  aspect-ratio: 772 / 295;
  background-image: url('images/app_clip_live_now.png');
}

.polaroid-hero .app-card-profile {
  width: min(459px, calc(100% - 648px));
  aspect-ratio: 712 / 414;
  background-image: url('images/app_clip_profile.png');
}

/* Handwritten aside under the top row, explaining the round bar */
.polaroid-hero .field-note {
  margin: 26px 0 0;
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 29px;
  line-height: 1.3;
  color: #6E6353;
  text-align: center;
  transform: rotate(-1deg);
}

/* Footer: closing statement + CTA pill */
.polaroid-hero .polaroid-foot {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.polaroid-hero .polaroid-outro {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.4;
  color: var(--ph-ink);
  text-align: center;
}

.polaroid-hero .polaroid-outro-sub {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ph-muted);
  text-align: center;
  max-width: 480px;
}

.polaroid-hero .polaroid-cta {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--ph-accent);
  color: var(--ph-cta-ink);
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
  padding: 17px 36px;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(38, 32, 25, .85);
}

.polaroid-hero .polaroid-cta:hover {
  background-color: var(--ph-accent-hover);
}

/* ≤1200px: same structure, tighter chrome */
@media (max-width: 1200px) {
  .polaroid-hero .polaroid-hero-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .polaroid-hero .polaroid-title {
    font-size: 62px;
  }
}

/* ≤1000px: not enough clear gap between the prints for a readable
   card — each card drops below its pair instead. Still between the
   photos, never over them. */
@media (max-width: 1000px) {
  .polaroid-hero .polaroid-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 56px;
  }

  .polaroid-hero .app-card {
    position: static;
    transform: none;
    order: 3;
  }

  .polaroid-hero .app-card-live {
    width: min(60%, 420px);
  }

  .polaroid-hero .app-card-profile {
    width: min(56%, 400px);
  }

  .polaroid-hero .field-note {
    margin-top: 18px;
  }
}

/* ≤768px: the fixed site header shrinks to 4.5rem */
@media (max-width: 768px) {
  .polaroid-hero .polaroid-hero-inner {
    padding-top: calc(4.5rem + 64px);
  }
}

/* ≤640px: compact prints, cards dominate their rows like the promo */
@media (max-width: 640px) {
  .polaroid-hero .polaroid-hero-inner {
    padding: calc(4.5rem + 56px) 1.5rem 56px;
  }

  .polaroid-hero .polaroid-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .polaroid-hero .polaroid-title {
    font-size: 46px;
  }

  .polaroid-hero .polaroid-lede {
    font-size: 20px;
    margin-top: 22px;
  }

  .polaroid-hero .polaroid-sub {
    font-size: 16px;
  }

  .polaroid-hero .polaroid-collage-label {
    margin-top: 26px;
    padding: 0 8px;
  }

  .polaroid-hero .polaroid-collage-label b {
    font-size: 15px;
  }

  .polaroid-hero .polaroid-collage-label span {
    font-size: 12.5px;
  }

  .polaroid-hero .polaroid-outro {
    font-size: 20px;
  }

  /* let the outro wrap naturally on narrow screens instead of
     forcing the desktop line break */
  .polaroid-hero .polaroid-outro br {
    display: none;
  }

  .polaroid-hero .polaroid-outro-sub {
    font-size: 14px;
  }

  .polaroid-hero .polaroid-field {
    margin-top: 22px;
  }

  .polaroid-hero .polaroid-row {
    justify-content: center;
    gap: 20px;
    padding: 0;
  }

  .polaroid-hero .polaroid-row-2 {
    margin-top: 28px;
  }

  .polaroid-hero .polaroid {
    width: min(156px, calc(50% - 10px));
    padding: 9px 9px 0;
    box-shadow: 0 8px 16px rgba(50, 38, 22, .24), 0 1px 3px rgba(50, 38, 22, .16);
  }

  .polaroid-hero .polaroid:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 14px 26px rgba(50, 38, 22, .3);
  }

  .polaroid-hero .polaroid-photo::after {
    box-shadow: inset 0 0 12px rgba(10, 6, 2, .4), inset 0 1px 2px rgba(255, 255, 255, .25);
  }

  .polaroid-hero .polaroid-caption {
    min-height: 50px;
    padding: 7px 6px 10px;
  }

  .polaroid-hero .polaroid-caption span {
    font-size: 13px;
  }

  /* gentler tilts at small print sizes, still alternating */
  .polaroid-hero .polaroid-0810 { --rot: -2deg; }
  .polaroid-hero .polaroid-0730 { --rot: 2deg; }
  .polaroid-hero .polaroid-0740 { --rot: 2deg; }
  .polaroid-hero .polaroid-0840 { --rot: -2deg; }
  .polaroid-hero .polaroid-0915 { --rot: 2deg; margin-top: 30px; }

  .polaroid-hero .app-card-live {
    width: min(85%, 330px);
  }

  .polaroid-hero .app-card-profile {
    width: min(82%, 310px);
  }

  .polaroid-hero .field-note {
    margin-top: 18px;
    font-size: 19px;
  }
}
