/* ── Onboarding Flow ────────────────────────────────────────────────── */

.onboarding-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 30% 35%, rgba(194, 105, 122, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 65% 55%, rgba(140, 70, 110, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(120, 50, 70, 0.18) 0%, transparent 100%),
    radial-gradient(ellipse 60% 80% at 80% 85%, rgba(90, 45, 80, 0.14) 0%, transparent 100%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(160, 90, 80, 0.06) 0%, transparent 100%),
    radial-gradient(ellipse 120% 100% at 50% 100%, rgba(40, 20, 30, 0.5) 0%, transparent 60%),
    linear-gradient(160deg, #0e0810 0%, #0c0609 30%, #100a0c 60%, #0a060a 100%);
}

/* ── Progress bar ─────────────────────────────────────────────────── */

.onboarding-progress {
  display: flex;
  gap: 3px;
  padding: 20px 32px 0;
  flex-shrink: 0;
}

.onboarding-progress-segment {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border2);
  transition: background 0.3s ease;
}

.onboarding-progress-segment.filled {
  background: var(--rose);
}

.onboarding-progress-segment.filled.clickable {
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
}

.onboarding-progress-segment.filled.clickable:hover {
  background: var(--rose-l);
  filter: brightness(1.3);
}

.onboarding-progress-segment.active {
  background: var(--rose-l);
}

/* ── Screen area ──────────────────────────────────────────────────── */

.onboarding-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow-y: auto;
  position: relative;
}

.onboarding-screen.slide-enter {
  animation: slideIn 300ms ease-out forwards;
}

.onboarding-screen.slide-exit {
  animation: slideOut 200ms ease-in forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-60px); }
}

/* ── Mission screens (Phase 1) ────────────────────────────────────── */

.onboarding-mission {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  position: relative;
}

/* ── Sparkle particles ───────────────────────────────────────────── */

.ob-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ob-sparkle {
  position: absolute;
  border-radius: 50%;
  background: rgba(240, 232, 224, 0.6);
  animation: sparkleFloat linear infinite, sparklePulse ease-in-out infinite;
}

@keyframes sparkleFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-120vh); }
}

@keyframes sparklePulse {
  0%, 100% { opacity: 0; }
  20%      { opacity: var(--max-o, 0.5); }
  80%      { opacity: var(--max-o, 0.5); }
}

/* ── Noise texture overlay ───────────────────────────────────────── */

.ob-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  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");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Mission text ─────────────────────────────────────────────────── */

.onboarding-mission-text {
  max-width: 520px;
  position: relative;
  z-index: 2;
  /* Soft glow behind text for readability */
  filter: drop-shadow(0 0 80px rgba(194, 105, 122, 0.08));
}

.onboarding-mission-text h1 {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: missionFadeIn 700ms ease forwards;
  text-shadow: 0 0 80px rgba(194, 105, 122, 0.3), 0 0 30px rgba(194, 105, 122, 0.1);
}

/* Pink keyword emphasis — starts white, fades to pink with a scale punch */
.onboarding-mission-text em {
  font-style: normal;
  display: inline-block;
  color: #fff;
  animation: pinkPunch 900ms 900ms ease-out forwards;
}

/* em inside body paragraphs — needs later delay since p's fade in after h1 */
.onboarding-mission-text p em {
  animation-delay: 1.3s;
}

@keyframes pinkPunch {
  0%   { color: #fff; transform: scale(1); }
  55%  { color: var(--rose-l); transform: scale(1); }
  75%  { color: var(--rose-l); transform: scale(1.22); }
  100% { color: var(--rose-l); transform: scale(1); }
}

/* Decorative accent line below title */
.ob-mission-accent {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-l), var(--rose), var(--rose-l), transparent);
  margin: 0 auto 28px;
  opacity: 0;
  animation: missionFadeIn 500ms 150ms ease forwards;
  box-shadow: 0 0 20px rgba(194, 105, 122, 0.3);
}

.onboarding-mission-text p {
  font-family: var(--ff-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--cream);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(12px);
}

.onboarding-mission-text p:nth-child(3) { animation: missionFadeIn 500ms 300ms ease forwards; }
.onboarding-mission-text p:nth-child(4) { animation: missionFadeIn 500ms 550ms ease forwards; }
.onboarding-mission-text p:nth-child(5) { animation: missionFadeIn 500ms 800ms ease forwards; }
.onboarding-mission-text p:nth-child(6) { animation: missionFadeIn 500ms 1050ms ease forwards; }

.onboarding-mission-continue {
  margin-top: 48px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: missionFadeIn 500ms 1400ms ease forwards, continuePulse 3s 2.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes missionFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes continuePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ── Skip bar ─────────────────────────────────────────────────────── */

.onboarding-skip-bar {
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px 0;
  flex-shrink: 0;
}

.onboarding-skip-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.onboarding-skip-btn:hover {
  color: var(--dim);
}

/* ── Question screens (Phase 4) ───────────────────────────────────── */

.onboarding-question {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.onboarding-question h2 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
}

.onboarding-question-why {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 32px;
  font-style: italic;
}

/* ── Option cards (vertical, alternating text) ───────────────────── */

.onboarding-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.onboarding-option-card {
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Text always left-aligned */
.onboarding-option-card {
  text-align: left;
}

/* Text stays above sticker */
.onboarding-option-card .option-label,
.onboarding-option-card .option-desc {
  position: relative;
  z-index: 1;
}

/* ── Decorative stickers inside cards ────────────────────────────── */

.ob-card-sticker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Sticker always on the right */
.ob-card-sticker {
  right: 14px;
}

/* Hover: wiggle */
.onboarding-option-card:hover .ob-card-sticker {
  animation: stickerWiggle 600ms ease-in-out;
}

@keyframes stickerWiggle {
  0%   { transform: translateY(-50%) rotate(0deg); }
  20%  { transform: translateY(-50%) rotate(-12deg); }
  40%  { transform: translateY(-50%) rotate(10deg); }
  60%  { transform: translateY(-50%) rotate(-8deg); }
  80%  { transform: translateY(-50%) rotate(4deg); }
  100% { transform: translateY(-50%) rotate(0deg); }
}

/* Narrow viewports: hide stickers */
@media (max-width: 480px) {
  .ob-card-sticker {
    display: none;
  }
}

.onboarding-option-card:hover {
  border-color: var(--rose-dim);
  background: var(--rose-bg);
}

.onboarding-option-card.selected {
  border-color: var(--rose);
  background: var(--rose-bg);
  animation: optionSelect 150ms ease;
}

.onboarding-option-card .option-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.onboarding-option-card .option-desc {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.4;
}

@keyframes optionSelect {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ── Grid options (compact cards) ─────────────────────────────────── */

.onboarding-chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.onboarding-chip-grid.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.onboarding-chip {
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}

.onboarding-chip:hover {
  border-color: var(--rose-dim);
  background: var(--rose-bg);
}

.onboarding-chip.selected {
  border-color: var(--rose);
  background: var(--rose-bg);
  color: var(--rose-l);
  animation: optionSelect 150ms ease;
}

.onboarding-chip.full-width {
  grid-column: 1 / -1;
}
.onboarding-chip-grid > .onboarding-chip:last-child:nth-child(odd) {
  grid-column: 1 / -1; max-width: calc(50% - 5px); justify-self: center;
}
.onboarding-chip-grid.cols-3 > .onboarding-chip:last-child:nth-child(3n+1) {
  grid-column: 2;
}

/* ── Photo upload (Phase 3) ───────────────────────────────────────── */

.onboarding-photo-upload {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto 24px;
  overflow: hidden;
  transition: border-color 0.3s;
  position: relative;
  background: var(--panel);
}

.onboarding-photo-upload:hover {
  border-color: var(--rose-dim);
}

.onboarding-photo-upload.has-photo {
  border-style: solid;
  border-color: var(--rose);
}

.onboarding-photo-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboarding-photo-upload .photo-icon {
  font-size: 2rem;
  color: var(--muted);
}

.onboarding-photo-upload .photo-label {
  position: absolute;
  bottom: -24px;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Birthday picker ─────────────────────────────────────────────── */

.ob-birthday-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.ob-bd-input {
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--ff-body);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  color-scheme: dark;
}
.ob-bd-input:focus {
  border-color: var(--rose-dim);
}

.ob-bd-col {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ob-bd-col-sm {
  flex: 1;
}

.ob-bd-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ob-bd-select {
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--ff-body);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.ob-bd-select:focus {
  border-color: var(--rose-dim);
}

.ob-bd-select option {
  background: var(--bg);
  color: var(--text);
}

/* ── Form fields (Phase 3) ────────────────────────────────────────── */

.onboarding-form {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.onboarding-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.onboarding-field label {
  font-size: 0.85rem;
  color: var(--dim);
  font-weight: 500;
}

.onboarding-field input,
.onboarding-field select,
.onboarding-field textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--ff-body);
  outline: none;
  transition: border-color 0.2s;
}

.onboarding-field input:focus,
.onboarding-field select:focus,
.onboarding-field textarea:focus {
  border-color: var(--rose-dim);
}

.onboarding-field-row {
  display: flex;
  gap: 12px;
}

.onboarding-field-row .onboarding-field {
  flex: 1;
}

.onboarding-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.85rem;
  color: var(--dim);
}

.onboarding-checkbox input[type="checkbox"] {
  margin: 0;
  accent-color: var(--rose);
}

/* ── Custom dropdown & autocomplete ─────────────────────────────────── */

.ob-dropdown {
  position: relative;
  width: 100%;
}

.ob-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: border-color 0.2s;
}

.ob-dropdown-trigger:hover,
.ob-dropdown-trigger.open {
  border-color: var(--rose-dim);
}

.ob-dropdown-placeholder {
  color: var(--muted);
}

.ob-dropdown-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s;
}

.ob-dropdown-trigger.open .ob-dropdown-arrow {
  transform: rotate(180deg);
}

.ob-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 10px;
  z-index: 100;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.onboarding-field .ob-dropdown-search {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border2);
  border-radius: 0;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--ff-body);
  outline: none;
  width: 100%;
}

.ob-dropdown-search::placeholder {
  color: var(--muted);
}

.ob-dropdown-options {
  overflow-y: auto;
  flex: 1;
}

.ob-dropdown-option {
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.ob-dropdown-option:hover {
  background: var(--rose-bg);
}

.ob-dropdown-option.selected {
  color: var(--rose-l);
}

/* ── Inline field validation ────────────────────────────────────────── */

.ob-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--rose-l);
  font-size: 0.78rem;
  margin-top: 4px;
  animation: fieldErrorIn 200ms ease-out;
}

.ob-field-error::before {
  content: '\26A0';
  font-size: 0.85rem;
}

.ob-field-invalid input:not(.ob-dropdown-search),
.ob-field-invalid select,
.ob-field-invalid .ob-dropdown-trigger {
  border-color: var(--rose) !important;
}

@keyframes fieldErrorIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reflection screen (Phase 6) ──────────────────────────────────── */

.onboarding-reflection {
  max-width: 480px;
  text-align: center;
}

.onboarding-reflection-text {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--cream);
  margin-bottom: 24px;
  font-style: italic;
}

.onboarding-reflection-closing {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── Loading spinner ──────────────────────────────────────────────── */

.onboarding-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.onboarding-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border2);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.onboarding-loading-text {
  font-size: 0.9rem;
  color: var(--dim);
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.onboarding-btn {
  background: var(--rose);
  color: var(--bg);
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  min-width: 200px;
}

.onboarding-btn:hover {
  background: var(--rose-hover);
}

.onboarding-btn:active {
  transform: scale(0.98);
}

.onboarding-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.onboarding-btn-secondary {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--border2);
}

.onboarding-btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
  background: transparent;
}

/* ── Visual style cards (Phase 5) ─────────────────────────────────── */

/* ── Visual style cards (Phase 5) ─────────────────────────────────── */

.onboarding-style-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.onboarding-style-card {
  background: var(--panel);
  border: 2px solid var(--border2);
  border-radius: 16px;
  padding: 20px 16px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.onboarding-style-card:hover {
  border-color: var(--rose-dim);
}

.onboarding-style-card.selected {
  border-color: var(--rose);
  background: var(--rose-bg);
}

.style-card-previews {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.style-card-previews img {
  width: 64px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.onboarding-style-card .style-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.onboarding-style-card .style-desc {
  font-size: 0.8rem;
  color: var(--dim);
}

/* ── Footer nav ───────────────────────────────────────────────────── */

.onboarding-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px 32px;
  flex-shrink: 0;
}

/* Raise toast above onboarding footer */
body.onboarding-active #toast {
  bottom: 90px;
}

/* ── Home banner (skipped users) ──────────────────────────────────── */

.onboarding-resume-banner {
  background: var(--rose-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.onboarding-resume-banner .banner-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text);
}

.onboarding-resume-banner .banner-cta {
  color: var(--rose-l);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.onboarding-resume-banner .banner-dismiss {
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 4px;
}

/* ── luvNote screen (Phase 6, screen 1) ─────────────────────────── */

.luvnote-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  animation: luvnoteFadeIn 800ms ease-out;
}

.luvnote-paper {
  position: relative;
  width: 100%;
  background-color: #1a1518;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(175deg, #1e181c 0%, #1a1518 40%, #151114 100%);
  background-blend-mode: overlay, normal;
  border: 1px solid var(--rose-20);
  border-radius: 4px;
  padding: 48px 40px 44px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(194, 105, 122, 0.06);
  transform: rotate(-0.8deg);
}

/* Fold crease at the top */
.luvnote-fold {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 5%,
    rgba(194, 105, 122, 0.15) 20%,
    rgba(194, 105, 122, 0.25) 50%,
    rgba(194, 105, 122, 0.15) 80%,
    transparent 95%
  );
}

.luvnote-header {
  font-family: var(--ff-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  opacity: 0;
  animation: luvnoteLineIn 600ms 400ms ease forwards;
}

.luvnote-pink {
  color: var(--rose);
  font-style: italic;
}

.luvnote-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(194, 105, 122, 0.4), rgba(194, 105, 122, 0.08));
  margin-bottom: 28px;
  opacity: 0;
  animation: luvnoteLineIn 400ms 700ms ease forwards;
}

.luvnote-body {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--dim);
}

.luvnote-body p {
  margin-bottom: 18px;
  opacity: 0;
  animation: luvnoteLineIn 500ms ease forwards;
}

.luvnote-body p:nth-child(1) { animation-delay: 900ms; }
.luvnote-body p:nth-child(2) { animation-delay: 1200ms; }
.luvnote-body p:nth-child(3) {
  animation-delay: 1500ms;
  margin-bottom: 0;
  font-style: italic;
  color: var(--rose-dim);
}

/* Wax seal accent */
.luvnote-seal {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #e08898 0%, #d4788a 25%, var(--rose) 55%, #8a3f50 100%);
  margin-top: 28px;
  margin-left: auto;
  opacity: 0;
  box-shadow:
    0 2px 6px rgba(138, 63, 80, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    inset 0 -1px 3px rgba(80, 30, 45, 0.3);
  animation: luvnoteSealIn 500ms 1900ms ease forwards;
}

/* Embossed ring + heart */
.luvnote-seal::after {
  content: '\2665';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

@keyframes luvnoteFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes luvnoteLineIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes luvnoteSealIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
