@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Karla:wght@400;500;600&display=swap');

:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Karla, Helvetica, sans-serif;
  --ink: oklch(0.36 0.03 25);
  --ink-soft: oklch(0.5 0.03 25);
  --heading: oklch(0.4 0.06 20);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #f7efe9; }
body { font-family: var(--sans); color: var(--ink); }
a { color: oklch(0.62 0.11 18); }
a:hover { color: oklch(0.55 0.13 18); }

@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes softPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

.stage {
  position: relative; min-height: 100vh; width: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px 56px;
}

/* blurred photo backdrop — JS sets background-image per active step */
.backdrop {
  position: absolute; inset: -60px; background-size: cover; background-position: center;
  filter: blur(30px) saturate(1.1); transform: scale(1.08); opacity: 0.6;
  transition: background-image 600ms ease;
}
.overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 10%, oklch(0.95 0.045 30 / 0.92), transparent 60%),
    radial-gradient(110% 90% at 85% 90%, oklch(0.93 0.04 320 / 0.9), transparent 62%),
    linear-gradient(160deg, oklch(0.97 0.02 60 / 0.8), oklch(0.95 0.03 20 / 0.72));
}

.panel { position: relative; width: 100%; max-width: 780px;
  display: flex; flex-direction: column; align-items: center; gap: 30px; }

/* progress dots */
.dots { display: flex; gap: 9px; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 999px;
  background: oklch(0.68 0.12 18 / 0.22); transition: all 400ms ease; }
.dot.active { background: oklch(0.68 0.12 18); }
.dot.current { width: 26px; }

/* step container */
.step { display: flex; flex-direction: column; align-items: center; gap: 26px;
  text-align: center; width: 100%; animation: riseIn 700ms ease both; }
.step[hidden] { display: none; }

.eyebrow { font-family: var(--serif); font-size: 15px; letter-spacing: 0.34em;
  text-transform: uppercase; color: oklch(0.6 0.09 20); }
h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 58px;
  line-height: 1.05; color: var(--heading); }
h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 44px;
  line-height: 1.1; color: var(--heading); }
.lede { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.75; text-wrap: pretty;
  color: oklch(0.44 0.03 25); }
.quote { margin: 0; max-width: 500px; font-family: var(--serif); font-style: italic;
  font-size: 27px; line-height: 1.5; color: oklch(0.42 0.05 22); }

/* photo frames */
.photo-ring { border-radius: 50%; padding: 10px;
  background: linear-gradient(140deg, oklch(0.97 0.02 40 / 0.9), oklch(0.9 0.06 340 / 0.75));
  box-shadow: 0 26px 60px oklch(0.6 0.08 20 / 0.22); }
.photo-ring img { display: block; border-radius: 50%; object-fit: cover; }
.photo-card { padding: 12px; border-radius: 26px; background: oklch(0.99 0.01 40 / 0.72);
  box-shadow: 0 24px 56px oklch(0.6 0.08 20 / 0.22); backdrop-filter: blur(6px); }
.photo-card img { display: block; border-radius: 18px; object-fit: cover; }

/* buttons */
.btn-primary {
  border: none; cursor: pointer; margin-top: 6px; font-family: var(--sans);
  font-size: 17px; font-weight: 600; color: oklch(0.99 0.01 40);
  padding: 17px 38px; border-radius: 999px; transition: all 220ms ease;
  background: linear-gradient(135deg, oklch(0.7 0.13 18), oklch(0.68 0.12 350));
  box-shadow: 0 16px 34px oklch(0.6 0.11 18 / 0.3);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.42; box-shadow: none; cursor: not-allowed; }
.btn-link { background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-size: 14px; color: oklch(0.58 0.04 25); text-decoration: underline;
  text-underline-offset: 4px; }

/* chip / time / card selectors */
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  cursor: pointer; font-family: var(--sans); display: flex; flex-direction: column;
  gap: 3px; align-items: center; padding: 14px 20px; min-width: 104px; border-radius: 20px;
  transition: all 220ms ease; border: 1.5px solid oklch(0.85 0.03 30 / 0.7);
  background: oklch(0.99 0.01 40 / 0.68); color: oklch(0.46 0.03 25);
  box-shadow: 0 6px 16px oklch(0.6 0.05 20 / 0.1);
}
.chip:hover { transform: translateY(-2px); }
.chip.selected {
  border-color: oklch(0.7 0.12 18); color: oklch(0.38 0.07 20);
  background: linear-gradient(150deg, oklch(0.94 0.05 20 / 0.95), oklch(0.93 0.05 340 / 0.9));
  box-shadow: 0 14px 30px oklch(0.6 0.1 18 / 0.22);
}
.chip .num { font-family: var(--serif); font-size: 30px; line-height: 1; }
.chip .mon { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.chip .wd { font-size: 14.5px; font-weight: 500; }

.time {
  cursor: pointer; font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 11px 20px; border-radius: 999px; transition: all 200ms ease;
  border: 1.5px solid oklch(0.86 0.03 320 / 0.7); background: oklch(0.99 0.01 40 / 0.6);
  color: oklch(0.48 0.03 25);
}
.time.selected { border-color: oklch(0.68 0.12 350); background: oklch(0.92 0.06 340 / 0.95);
  color: oklch(0.38 0.07 340); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px; width: 100%; }
.card {
  cursor: pointer; text-align: left; font-family: var(--sans); display: flex;
  flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 24px;
  transition: all 240ms ease; border: 1.5px solid oklch(0.87 0.03 30 / 0.7);
  background: oklch(0.99 0.01 40 / 0.66); box-shadow: 0 8px 22px oklch(0.6 0.05 20 / 0.1);
}
.card:hover { transform: translateY(-3px); }
.card.selected {
  border-color: oklch(0.7 0.12 18);
  background: linear-gradient(150deg, oklch(0.95 0.04 25 / 0.95), oklch(0.94 0.05 340 / 0.88));
  box-shadow: 0 18px 40px oklch(0.6 0.1 18 / 0.22);
}
.card .title { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--heading); }
.card .desc { font-size: 14.5px; line-height: 1.6; color: oklch(0.52 0.03 25); text-wrap: pretty; }

/* email input */
.email-input {
  width: 100%; max-width: 400px; padding: 17px 20px; border-radius: 999px;
  border: 1px solid oklch(0.78 0.05 20 / 0.55); background: oklch(0.99 0.01 40 / 0.8);
  font-family: var(--sans); font-size: 16px; color: var(--ink); outline: none; text-align: center;
}
.email-input:focus { border-color: oklch(0.7 0.12 18); box-shadow: 0 0 0 4px oklch(0.7 0.12 18 / 0.14); }
.hint { font-size: 13.5px; color: oklch(0.62 0.06 25); min-height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* done screen */
.heart { font-size: 46px; color: oklch(0.68 0.13 18); animation: softPulse 2600ms ease-in-out infinite; }
.summary-card {
  padding: 26px 32px; border-radius: 22px; background: oklch(0.99 0.01 40 / 0.72);
  box-shadow: 0 20px 46px oklch(0.6 0.08 20 / 0.18); display: flex; flex-direction: column;
  gap: 12px; font-size: 17px; line-height: 1.6; color: oklch(0.42 0.04 22);
}

@media (max-width: 560px) {
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  .lede { font-size: 17px; }
}
