/* Clio Photo — waitlist landing (warm minimal) */
:root {
  --bg: #faf8f5;
  --bg-warm: #f5f1eb;
  --text: #1a1612;
  --text-muted: #5c5349;
  --accent: #c96b3d;
  --accent-hover: #b55a31;
  --accent-light: rgba(201, 107, 61, 0.12);
  --border: #e8e3dc;
  --input-bg: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26, 22, 18, 0.06);
  --shadow-hover: 0 8px 32px rgba(26, 22, 18, 0.1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  /* clip avoids horizontal pan without forcing overflow-y:auto on descendants (unlike hidden) */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

/* Subtle noise texture */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero — full above-the-fold */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  width: 100%;
  text-align: center;
}

/* Logo */
.logo {
  width: 140px;
  height: auto;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.7s ease-out;
}

@media (min-width: 768px) {
  .logo {
    width: 180px;
    margin-bottom: 3rem;
  }
}

/* Hero title — bold typography */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.7s ease-out 0.2s both;
}

/* Form — above the fold, conversion-focused */
.waitlist-form {
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .form-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 36rem;
  }
}

.form-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

@media (max-width: 479px) {
  .form-input {
    padding: 1.125rem 1.25rem;
    min-height: 3.625rem;
  }

  .form-button {
    min-height: 3.625rem;
  }
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-input:hover {
  border-color: #d4cfc4;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.form-button:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.form-button:active:not(:disabled) {
  transform: translateY(0);
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.85;
}

.form-button:disabled .btn-arrow {
  visibility: hidden;
  width: 0;
  margin: 0;
  overflow: hidden;
}

.btn-arrow {
  transition: transform var(--transition);
}

.form-button:hover:not(:disabled) .btn-arrow {
  transform: translateX(4px);
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.form-microcopy {
  margin: 0.625rem auto 0;
  padding: 0 0.5rem;
  max-width: 36rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 479px) {
  .form-microcopy {
    font-size: clamp(0.5625rem, 2.65vw, 0.75rem);
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
}

/* Social proof */
.social-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  animation: fadeInUp 0.7s ease-out 0.4s both;
}

.member-avatars {
  display: flex;
  align-items: center;
  margin-right: 0.125rem;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.member-avatar + .member-avatar,
.member-avatar + .member-avatar-more {
  margin-left: -8px;
}

.member-avatar-more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #ddd8cf;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.member-avatar-more.is-hidden {
  display: none;
}

.member-avatars:hover .member-avatar,
.member-avatars:hover .member-avatar-more {
  transform: translateY(-3px);
}

.subscriber-count {
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

/* Hero blob — organic decorative element (kept inside .hero so layout doesn’t widen the page) */
.hero-blob {
  position: absolute;
  bottom: -20%;
  right: 0;
  width: min(70%, 500px);
  max-width: 500px;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at center, var(--accent-light) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.6;
}

/* Showcase — still + demo, split on large screens */
.showcase {
  padding: 3.5rem 1.5rem 4.5rem;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.showcase-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.showcase-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}

.showcase-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.showcase-lede {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.showcase-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
  }
}

.showcase-panel {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow var(--transition);
}

.showcase-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.showcase-grid .showcase-panel:nth-child(1) {
  transition-delay: 0s;
}

.showcase-grid .showcase-panel:nth-child(2) {
  transition-delay: 0.12s;
}

.showcase-panel.visible:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.showcase-panel--still .showcase-media {
  position: relative;
  box-sizing: border-box;
  aspect-ratio: 4 / 3;
  background: var(--bg);
}

.showcase-panel--still .showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.showcase-panel--motion .showcase-media {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2rem 1.5rem 2.25rem;
  min-height: 280px;
  background:
    radial-gradient(ellipse 85% 55% at 50% 35%, var(--accent-light) 0%, transparent 60%),
    linear-gradient(180deg, #ebe6df 0%, var(--bg) 100%);
}

.showcase-device {
  width: 100%;
  max-width: 17.5rem;
  margin: 0 auto;
  padding: 0.5rem;
  border-radius: 2rem;
  background: linear-gradient(155deg, #2e2a26 0%, #12100e 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 48px rgba(26, 22, 18, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
  min-height: 0;
}

.showcase-device-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Two-up: row height = taller of photo vs video; contain + backgrounds fill letterboxing */
@media (min-width: 960px) {
  .showcase-panel--still .showcase-media {
    aspect-ratio: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    background:
      radial-gradient(ellipse 72% 55% at 50% 45%, var(--accent-light) 0%, transparent 62%),
      linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  }

  .showcase-panel--still .showcase-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .showcase-panel--motion .showcase-media {
    aspect-ratio: unset;
    min-height: 0;
    min-width: 0;
    padding: 1rem 1.25rem;
    align-items: center;
    justify-content: center;
  }

  /* Hug the video with even bezel; parent .showcase-media stays full row height */
  .showcase-panel--motion .showcase-device {
    margin-inline: auto;
    width: 100%;
    max-width: 17.5rem;
    height: auto;
    flex: 0 0 auto;
    align-self: center;
    padding: 0.625rem;
  }

  .showcase-device-screen {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

.showcase-caption {
  padding: 1.5rem 1.75rem 1.75rem;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-caption-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.showcase-caption-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.showcase-caption-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* After .showcase-panel flex defaults: sync row heights across columns */
@media (min-width: 960px) {
  @supports (grid-template-rows: subgrid) {
    .showcase-grid {
      grid-template-rows: auto auto;
    }

    .showcase-grid > .showcase-panel {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 2;
      min-width: 0;
    }

    .showcase-grid > .showcase-panel > .showcase-caption {
      flex: unset;
      min-height: 0;
    }
  }
}

/* Features — three-column row on desktop */
.features {
  padding: 4rem 1.5rem 5rem;
  background: var(--bg);
}

.features-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--text);
}

.features-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .features-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
  }
}

.feature-card {
  padding: 2rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Footer — closing beat: readable line + tappable CTA without competing with hero */
.footer {
  padding: clamp(2.75rem, 5vw, 3.5rem) 1.5rem;
  text-align: center;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.footer > p:not(.footer-legal) {
  font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 1rem;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.625rem;
  font-family: inherit;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.footer-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.footer-cta:active {
  transform: translateY(0);
}

.footer-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-legal {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
}

.footer-legal a {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}

.footer-legal a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Form message */
.form-message {
  margin-top: 1rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  text-align: center;
  animation: fadeInUp 0.4s ease-out;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered reveal (JS adds .visible) */
.feature-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow var(--transition);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .feature-card {
    opacity: 1;
    transform: none;
  }

  .showcase-panel {
    opacity: 1;
    transform: none;
  }

  .showcase-panel.visible:hover {
    transform: none;
  }

  .logo,
  .hero-title,
  .hero-subtitle,
  .waitlist-form,
  .social-proof {
    animation: none;
  }

  .footer-cta:hover,
  .footer-cta:active {
    transform: none;
  }
}

/* Legal / privacy page */
.legal-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.legal-header {
  margin-bottom: 2rem;
}

.legal-back {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--accent-hover);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.legal-updated {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

.legal-prose {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.legal-prose h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-prose p {
  margin: 0 0 1rem;
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-prose li {
  margin-bottom: 0.5rem;
}

.legal-prose a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: var(--accent-hover);
}

.legal-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-footer p {
  margin-bottom: 0;
}

.legal-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--accent-hover);
}
