/* ============================================
   Timeline Scan — "Warm Heirloom Album" Design
   Aesthetic: warm, intimate, textured, timeless
   Audience: older generation, family photo owners
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --bg-primary: #FAF3E8;
  --bg-secondary: #FFFDF8;
  --bg-warm: #F4EBDC;
  --bg-accent: #EDE4D3;
  --text-primary: #3D2B1F;
  --text-secondary: #6B5B4D;
  --text-muted: #9C8E80;
  --accent: #B8860B;
  --accent-hover: #9A7209;
  --accent-light: #F8F0DC;
  --accent-glow: rgba(184, 134, 11, 0.12);
  --green: #5E8A65;
  --green-light: #EAF2EB;
  --red: #B94A3E;
  --red-light: #FAEAE8;
  --border: #DDD4C4;
  --border-light: #EBE4D8;
  --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.06);
  --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.08);
  --shadow-lg: 0 8px 32px rgba(61, 43, 31, 0.1);
  --shadow-warm: 0 4px 20px rgba(184, 134, 11, 0.08);
  --card-bg: #FFFDF8;
  --nav-bg: rgba(250, 243, 232, 0.92);
  --photo-bg: #F0E8D8;
  --photo-border: #D8CDB8;
  --film-strip: #3D2B1F;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'DM Sans', -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #1C1917;
  --bg-secondary: #231F1C;
  --bg-warm: #292421;
  --bg-accent: #302A25;
  --text-primary: #F5F0E8;
  --text-secondary: #B8AFA4;
  --text-muted: #7A7268;
  --accent: #D4A843;
  --accent-hover: #E0BA5A;
  --accent-light: #2E2718;
  --accent-glow: rgba(212, 168, 67, 0.15);
  --green: #7DA882;
  --green-light: #1E2A1F;
  --red: #D4644A;
  --red-light: #2E1F1A;
  --border: #3D3630;
  --border-light: #332D28;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-warm: 0 4px 20px rgba(212, 168, 67, 0.1);
  --card-bg: #262220;
  --nav-bg: rgba(28, 25, 23, 0.92);
  --photo-bg: #2A2520;
  --photo-border: #3D3630;
  --film-strip: #F5F0E8;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.85;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

[data-theme="dark"] body::before {
  opacity: 0.04;
}

main {
  flex: 1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ---------- Layout ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section--warm {
  background-color: var(--bg-warm);
}

.section--accent {
  background-color: var(--bg-accent);
}

/* ---------- Decorative Line Ornament ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.ornament__symbol {
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  transition: background-color 0.4s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

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

.nav__logo-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
}

.nav__link:hover {
  color: var(--accent);
  background-color: var(--accent-glow);
}

.nav__link--active {
  color: var(--accent);
  background-color: var(--accent-glow);
  font-weight: 600;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-primary);
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.08);
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
  position: relative;
  width: 36px;
  height: 36px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  left: 6px;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger span:nth-child(1) { top: 9px; }
.nav__hamburger span:nth-child(2) { top: 17px; }
.nav__hamburger span:nth-child(3) { top: 25px; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Warm radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero__tagline::before,
.hero__tagline::after {
  content: '';
  width: 24px;
  height: 1px;
  background-color: var(--accent);
  opacity: 0.5;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-size: 3rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.hero__slogan {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 2.8rem;
  font-weight: 600;
}

.hero__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #FFFDF8;
}

.btn--primary:hover {
  color: #FFFDF8;
  box-shadow: var(--shadow-warm);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: none;
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

/* ---------- How It Works / Features ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  position: relative;
  counter-increment: step;
}

.step__icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}

.step__number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  display: block;
}

.step__title {
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---------- Demo Section ---------- */
.demo {
  padding: 2rem 0;
}

.demo__intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.demo__toggle-group {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
  width: auto;
  box-shadow: var(--shadow-sm);
}

.demo__toggle-center {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.demo__toggle {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.6rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: calc(var(--radius-lg) - 4px);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.demo__toggle--active {
  background: var(--accent);
  color: #FFFDF8;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.demo__timeline-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 0.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border), var(--accent));
  opacity: 0.4;
}

.timeline__year {
  position: relative;
  padding-left: 60px;
  margin-bottom: 0.25rem;
  animation: fadeSlideIn 0.4s ease both;
}

.timeline__year:nth-child(1) { animation-delay: 0.05s; }
.timeline__year:nth-child(2) { animation-delay: 0.1s; }
.timeline__year:nth-child(3) { animation-delay: 0.15s; }
.timeline__year:nth-child(4) { animation-delay: 0.2s; }
.timeline__year:nth-child(5) { animation-delay: 0.25s; }
.timeline__year:nth-child(6) { animation-delay: 0.3s; }
.timeline__year:nth-child(7) { animation-delay: 0.35s; }
.timeline__year:nth-child(8) { animation-delay: 0.4s; }
.timeline__year:nth-child(9) { animation-delay: 0.45s; }
.timeline__year:nth-child(10) { animation-delay: 0.5s; }
.timeline__year:nth-child(11) { animation-delay: 0.55s; }
.timeline__year:nth-child(12) { animation-delay: 0.6s; }
.timeline__year:nth-child(13) { animation-delay: 0.65s; }

.timeline__year-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  padding-top: 0.4rem;
}

.timeline__dot {
  position: absolute;
  left: 14px;
  top: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--green);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--green);
  z-index: 1;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.timeline__dot--wrong {
  background-color: var(--red);
  box-shadow: 0 0 0 2px var(--red);
}

.timeline__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
}

/* Polaroid-style photo placeholder */
.timeline__photo-placeholder {
  width: 82px;
  height: 96px;
  border-radius: 3px;
  background-color: var(--card-bg);
  border: 1px solid var(--photo-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 6px 16px 6px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline__photo-placeholder:hover {
  transform: rotate(-2deg) translateY(-3px);
  box-shadow: var(--shadow-md);
}

.timeline__photo-placeholder .photo-frame {
  width: 100%;
  flex: 1;
  background-color: var(--photo-bg);
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__photo-placeholder .photo-icon {
  font-size: 1.8rem;
}

.timeline__photo-placeholder .photo-label {
  position: absolute;
  bottom: 2px;
  font-size: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  line-height: 1.2;
  padding: 0 2px;
}

/* Scanned photo border indicator */
.timeline__photo-placeholder--scanned {
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.timeline__photo-placeholder--wrong {
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(185, 74, 62, 0.15);
}

/* Callout */
.demo__callout {
  background-color: var(--red-light);
  color: var(--red);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.92rem;
  font-family: var(--font-body);
  line-height: 1.7;
  border: 1px solid transparent;
  animation: fadeSlideIn 0.5s ease both;
  animation-delay: 0.3s;
}

.demo__callout strong {
  font-weight: 600;
}

.demo__callout--success {
  background-color: var(--green-light);
  color: var(--green);
}

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.pricing-card {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Decorative corner flourish on featured card */
.pricing-card--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-warm);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pricing-card__badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #FFFDF8;
  padding: 0.3rem 2.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(45deg);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
  line-height: 1;
}

.pricing-card__unit {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pricing-card__details {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
  font-size: 0.92rem;
}

.pricing-card__details li {
  padding: 0.55rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-card__details li:last-child {
  border-bottom: none;
}

.pricing-card__details li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing__note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Same experience callout */
.pricing__same-experience {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: var(--green-light);
  border: 1px solid rgba(94, 138, 101, 0.25);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pricing__same-icon {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* 4-column pricing grid */
.pricing__grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Capacity line (photo count) */
.pricing-card__capacity {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

/* Per-photo rate comparison */
.pricing-card__rate {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Savings badge */
.pricing-card__savings {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* Push button to bottom when no savings badge */
.pricing-card__spacer {
  flex: 1;
  min-height: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Bulk card */
.pricing-card--bulk {
  border-style: dashed;
  border-color: var(--border);
}

.pricing-card__bulk-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

/* Rate-style amount (for bulk $0.048 display) */
.pricing-card__amount--rate {
  font-size: 2.4rem;
}

.pricing__estimator-cta {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-accent);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing__estimator-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.pricing__estimator-cta a:hover {
  text-decoration: underline;
}

/* ---------- Waitlist Button ---------- */
.btn--waitlist {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  position: relative;
}

.btn--waitlist:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: none;
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  margin-left: 0.15rem;
}

.btn--waitlist:hover .btn__arrow,
.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Early Access ---------- */
.early-access {
  margin: 3.5rem auto 0;
  max-width: 560px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-warm);
  position: relative;
  overflow: hidden;
}

.early-access::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.early-access__ornament {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.9rem;
}

.early-access__badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 1.1rem;
}

.early-access__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.early-access__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.early-access__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.early-access__input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.early-access__input::placeholder {
  color: var(--text-muted);
}

.early-access__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.early-access__input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.early-access__submit {
  white-space: nowrap;
}

.early-access__submit:disabled {
  opacity: 0.75;
  cursor: default;
  background: var(--green);
  pointer-events: none;
}

.early-access__note {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---------- Features Grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature__title {
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 780px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border-light);
}

.faq__item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 1.4rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  line-height: 1.4;
  transition: color 0.2s;
}

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

.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  transition: transform 0.35s ease, background-color 0.25s;
  font-family: var(--font-ui);
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
  background-color: var(--accent);
  color: #FFFDF8;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq__item--open .faq__answer {
  max-height: 600px;
  padding-bottom: 1.5rem;
}

.faq__answer p {
  font-size: 1rem;
  line-height: 1.85;
}

/* ---------- About ---------- */
.about__content {
  max-width: 720px;
  margin: 0 auto;
}

.about__story {
  font-size: 1.05rem;
  line-height: 2;
}

.about__story p {
  margin-bottom: 1.5rem;
}

.about__pullquote {
  position: relative;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.7;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}

.about__pullquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.2;
  font-family: var(--font-display);
  line-height: 1;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer__links a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer__divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 auto 1rem;
}

.footer__copy {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Page Header ---------- */
.page-header {
  text-align: center;
  padding: 4rem 0 2rem;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header__subtitle {
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-secondary);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .fade-in--visible {
    opacity: 1;
    transform: translateY(0);
  }

  .stagger-1 { transition-delay: 0.1s; }
  .stagger-2 { transition-delay: 0.2s; }
  .stagger-3 { transition-delay: 0.3s; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; }
  .timeline__year { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .pricing__grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .hero h1 { font-size: 2.2rem; }

  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .page-header { padding: 3rem 0 1.5rem; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }

  .nav__links--open { display: flex; }

  .nav__link {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
  }

  .nav__hamburger { display: block; }

  .steps, .features { grid-template-columns: 1fr; gap: 1rem; }
  .pricing__grid { grid-template-columns: 1fr; }
  .pricing__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { border-width: 2px; }

  .hero__buttons { flex-direction: column; align-items: center; }
  .btn--large { padding: 0.9rem 2rem; font-size: 0.95rem; width: 100%; max-width: 300px; }

  .timeline__photo-placeholder {
    width: 68px;
    height: 80px;
    padding: 4px 4px 14px 4px;
  }

  .timeline__photo-placeholder .photo-icon { font-size: 1.5rem; }

  .demo__toggle { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .pricing__grid--4 { grid-template-columns: 1fr; }

  .hero h1 { font-size: 1.85rem; }

  .timeline__photo-placeholder {
    width: 58px;
    height: 70px;
    padding: 3px 3px 12px 3px;
  }

  .timeline__photo-placeholder .photo-icon { font-size: 1.3rem; }
  .timeline__photo-placeholder .photo-label { font-size: 0.45rem; }

  .about__pullquote { padding: 1.2rem 1.5rem 1.2rem 1.8rem; font-size: 1.05rem; }
}

/* ---------- Quote Tool ---------- */
.quote-tool {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-warm);
  position: relative;
  overflow: hidden;
}

.quote-tool::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.quote-tool__ornament {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.9rem;
}

.quote-tool__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.quote-tool__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.quote-tool__convention {
  margin-bottom: 1.5rem;
  position: relative;
}

.quote-tool__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.quote-tool__suffix-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.quote-tool__suffix-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.quote-tool__suffix-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quote-tool__input {
  width: 100px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-tool__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.quote-tool__example {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.quote-tool__example code {
  font-size: 0.8rem;
  background: var(--bg-accent);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--text-secondary);
}

.quote-tool__picker {
  margin-bottom: 1.5rem;
  position: relative;
}

.quote-tool__browse {
  cursor: pointer;
  display: inline-flex;
}

.quote-tool__folder-name {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.quote-tool__loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0 1.5rem;
}

.quote-tool__loading.is-visible {
  display: flex;
}

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

.quote-tool__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ts-spin 0.75s linear infinite;
}

.quote-tool__loading-text {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.quote-tool__results {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  position: relative;
}

.quote-tool__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.quote-tool__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-tool__stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.quote-tool__stat--highlight .quote-tool__stat-value {
  color: var(--accent);
  font-size: 1.8rem;
}

.quote-tool__stat-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.quote-tool__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.quote-tool__price-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.quote-tool__price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.quote-tool__price-breakdown {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.quote-tool__error {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.quote-tool__error a {
  font-weight: 600;
}

.quote-tool__cta {
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .quote-tool {
    padding: 1.5rem 1.2rem 1.2rem;
  }

  .quote-tool__stats {
    gap: 1rem;
  }

  .quote-tool__stat-value {
    font-size: 1.3rem;
  }

  .quote-tool__stat--highlight .quote-tool__stat-value {
    font-size: 1.5rem;
  }

  .quote-tool__price-amount {
    font-size: 2.2rem;
  }

  .quote-tool__suffix-row {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
}

/* ---------- Auto dark mode from OS ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #1C1917;
    --bg-secondary: #231F1C;
    --bg-warm: #292421;
    --bg-accent: #302A25;
    --text-primary: #F5F0E8;
    --text-secondary: #B8AFA4;
    --text-muted: #7A7268;
    --accent: #D4A843;
    --accent-hover: #E0BA5A;
    --accent-light: #2E2718;
    --accent-glow: rgba(212, 168, 67, 0.15);
    --green: #7DA882;
    --green-light: #1E2A1F;
    --red: #D4644A;
    --red-light: #2E1F1A;
    --border: #3D3630;
    --border-light: #332D28;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-warm: 0 4px 20px rgba(212, 168, 67, 0.1);
    --card-bg: #262220;
    --nav-bg: rgba(28, 25, 23, 0.92);
    --photo-bg: #2A2520;
    --photo-border: #3D3630;
    --film-strip: #F5F0E8;
  }
}
