/* =========================================================
   Those Times — Landing styles
   Warm, cinematic, intentionally restrained.
   ========================================================= */

:root {
  --bg: #f0ede4;
  --bg-tinted: #e8e4d6;
  --surface: #ffffff;
  --surface-2: #faf7ee;
  --ink: #1a1614;
  --ink-soft: #4a423b;
  --ink-muted: #7a716a;
  --ink-subtle: #a8a298;
  --accent: #7d6b3d;
  --accent-dark: #5c4e2e;
  --accent-light: #9b8558;
  --accent-soft: #7d6b3d22;
  --border: #d6cfc0;
  --border-soft: #d6cfc066;

  --shadow-sm: 0 1px 2px rgba(26, 22, 20, 0.06);
  --shadow-md: 0 12px 32px -16px rgba(26, 22, 20, 0.18);
  --shadow-lg: 0 32px 64px -32px rgba(26, 22, 20, 0.28);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --font-serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle paper grain */
  background-image:
    radial-gradient(rgba(125, 107, 61, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(240, 237, 228, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--border-soft);
  background: rgba(240, 237, 228, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--accent-light),
    var(--accent-dark) 70%
  );
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4),
    0 4px 8px -4px rgba(125, 107, 61, 0.5);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav a {
  color: inherit;
  position: relative;
}

.site-nav a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Language switcher ---------- */

.lang-switcher {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.lang-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 60;
}

.lang-menu li {
  margin: 0;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: var(--bg-tinted);
  color: var(--ink);
}

.lang-option.is-active {
  color: var(--accent-dark);
  font-weight: 600;
}

.lang-option .lang-code {
  font-size: 11px;
  color: var(--ink-subtle);
  letter-spacing: 0.05em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #f7f3e7;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 18px 36px -16px rgba(92, 78, 46, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 16px 0;
}

.display,
.display-sm {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.display {
  font-size: clamp(40px, 6vw, 76px);
}

.display em {
  font-style: italic;
  color: var(--accent-dark);
}

.display-sm {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

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

.hero {
  padding: clamp(40px, 6vw, 96px) 0 clamp(40px, 6vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy .lead {
  margin-top: 20px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  list-style: none;
  margin: 32px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-size: 14px;
  color: var(--ink-muted);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Hero art (polaroid stack) ---------- */

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.polaroid-stack {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
}

.polaroid {
  position: absolute;
  background: #fdfaf2;
  padding: 14px 14px 36px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin: 0;
  cursor: pointer;
}

.polaroid figcaption {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-size: 14px;
  color: var(--ink-muted);
  font-style: italic;
}

.polaroid-image {
  width: 220px;
  height: 220px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  filter: sepia(0.16) contrast(1.02);
  background: linear-gradient(135deg, #d6cfc0 0%, #8c8782 100%);
  transition: filter 0.4s ease;
}

.polaroid-poster,
.polaroid-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-video {
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.polaroid-1 {
  top: 8%;
  left: 8%;
  transform: rotate(-4deg);
  z-index: 3;
}

.polaroid-2 {
  top: 18%;
  right: 4%;
  transform: rotate(5deg);
  z-index: 2;
}

.polaroid-3 {
  bottom: 4%;
  left: 28%;
  transform: rotate(-1deg);
  z-index: 1;
}

.polaroid:hover,
.polaroid.is-active {
  z-index: 10;
  box-shadow: 0 40px 72px -28px rgba(26, 22, 20, 0.4);
}

.polaroid-1:hover,
.polaroid-1.is-active {
  transform: rotate(-2deg) translateY(-10px) scale(1.06);
}

.polaroid-2:hover,
.polaroid-2.is-active {
  transform: rotate(2deg) translateY(-10px) scale(1.06);
}

.polaroid-3:hover,
.polaroid-3.is-active {
  transform: rotate(0deg) translateY(-10px) scale(1.06);
}

.polaroid:hover .polaroid-image,
.polaroid.is-active .polaroid-image {
  filter: sepia(0.04) contrast(1.0);
}

.polaroid:hover .polaroid-video,
.polaroid.is-active .polaroid-video {
  opacity: 1;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.polaroid:hover .play-badge,
.polaroid.is-active .play-badge {
  opacity: 0;
}

.play-badge svg {
  width: 56px;
  height: 56px;
  color: #fdfaf2;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  opacity: 0.92;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.hero-art-caption {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  max-width: 32ch;
}

/* ---------- Quote band ---------- */

.quote-band {
  padding: clamp(40px, 6vw, 80px) 0;
  text-align: center;
}

.quote-band p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 32ch;
}

.quote-band em {
  color: var(--accent);
  font-style: normal;
  font-size: 1.4em;
  vertical-align: -0.05em;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.section-tinted {
  background: var(--bg-tinted);
  border-block: 1px solid var(--border-soft);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-header .lead {
  margin-top: 18px;
}

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.step-number {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.step h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--ink);
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Showcase ---------- */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.showcase-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  filter: sepia(0.12) contrast(1.04);
}

.showcase-thumb .ken-burns {
  position: absolute;
  inset: -8%;
  background-size: cover;
  animation: kenBurns 16s ease-in-out infinite alternate;
}

.showcase-thumb-1 .ken-burns {
  background-image:
    radial-gradient(circle at 50% 40%, #f5b95a 0%, transparent 45%),
    linear-gradient(135deg, #e0a060 0%, #6e3924 100%);
}

.showcase-thumb-2 .ken-burns {
  background-image:
    radial-gradient(circle at 30% 70%, #f7e6b3 0%, transparent 55%),
    linear-gradient(160deg, #b4d7d7 0%, #2d5050 100%);
}

.showcase-thumb-3 .ken-burns {
  background-image:
    radial-gradient(circle at 40% 60%, #e0b48a 0%, transparent 50%),
    linear-gradient(180deg, #6b5c50 0%, #2a221d 100%);
}

.showcase-thumb-4 .ken-burns {
  background-image:
    radial-gradient(circle at 70% 40%, #f5d4a3 0%, transparent 55%),
    linear-gradient(135deg, #c8956b 0%, #5a3a28 100%);
}

.showcase-card h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 6px;
  color: var(--ink);
}

.showcase-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.plan-range {
  margin: 6px 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.plan-duration {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}

.plan-tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex-grow: 1;
}

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

.plan-featured {
  background: linear-gradient(180deg, #fffaee 0%, #fff 100%);
  border: 1.5px solid var(--accent);
  box-shadow: 0 18px 36px -18px rgba(125, 107, 61, 0.35);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #f7f3e7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px;
}

.plan-price {
  margin: 0;
  font-family: var(--font-serif);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price span {
  font-size: 36px;
  color: var(--ink);
}

.plan-price small {
  font-size: 14px;
  color: var(--ink-muted);
  font-family: var(--font-sans);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.pricing-bulk {
  text-align: center;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-subtle);
}

.pricing-bulk a {
  margin-left: 6px;
  color: var(--accent-dark);
  font-weight: 600;
}

.pricing-bulk a:hover {
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq-container {
  max-width: 760px;
}

.faq {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq dt {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 8px;
}

.faq dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Final CTA ---------- */

.cta-band {
  padding: clamp(64px, 8vw, 120px) 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(125, 107, 61, 0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(155, 133, 88, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #ebe5d3 100%);
  border-top: 1px solid var(--border-soft);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner p {
  margin: 14px 0 28px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #ebe6d6;
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-meta {
  flex-basis: 100%;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .ken-burns,
  .play-badge svg {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
