/* Landing Page Variables - Iteration 3: Vintage Swiss Mix */
:root {
  /* Colors from design_tokens.css for consistency */
  --landing-bg: #F6F1E7; /* --paper-base */
  --landing-ink: #2B2A27; /* --ink-primary */
  --landing-secondary: #56514A;
  --landing-border: #D8D1C3;
  --landing-surface: #FCFAF5;
  --landing-accent: #C9A86A; /* --action-primary / Brass */
  --landing-header-height: 76px;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-vintage: Georgia, "Times New Roman", serif;
}

body.landing-page {
  margin: 0;
  background-color: var(--landing-bg);
  /* background-image: url("/assets/vintage_bg-66d03ad1.webp"); Textured background from assets */
  background-blend-mode: multiply;
  background-size: cover;
  color: var(--landing-ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.landing-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.landing-page img {
  opacity: 0.75;
  filter: sepia(0.2) contrast(0.9);
  transition: all 0.4s ease;
}

body.landing-page img:hover {
  opacity: 0.9;
  filter: sepia(0) contrast(1);
}

/* Typography Overrides */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.font-serif {
  font-family: var(--font-vintage);
}

/* Utilities */
.mobile-only { display: inline; }
.desktop-only { display: none; }

@media (min-width: 640px) {
  .mobile-only { display: none; }
  .desktop-only { display: inline; }
}

/* Header - original proportions with stronger contrast */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--landing-surface);
  background: color-mix(in srgb, var(--landing-surface) 94%, transparent);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid var(--sepia-line);
  border-bottom-color: color-mix(in srgb, var(--sepia-line) 72%, transparent);
  box-shadow: var(--shadow-sm);
}

.landing-nav {
  max-width: 80rem;
  min-height: var(--landing-header-height);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

@media (max-width: 640px) {
  :root {
    --landing-header-height: 68px;
  }

  .landing-nav {
    padding: 0.75rem 1rem;
  }
  
  .landing-logo-text {
    font-size: 1.1rem;
  }
  
  .landing-auth-btn, .landing-secondary-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
  
  .landing-nav .flex {
    gap: 0.5rem;
  }
}

.landing-logo-text {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--landing-ink);
  text-decoration: none;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 var(--landing-surface);
  transition: color 0.28s ease, text-shadow 0.28s ease, transform 0.28s ease;
}

.landing-logo-text:hover {
  color: var(--leather-brown);
  text-shadow: 0 4px 14px color-mix(in srgb, var(--landing-accent) 32%, transparent);
  transform: translateY(-1px);
}

.landing-nav-links {
  display: none;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .landing-nav-links {
    display: flex;
    align-items: center;
  }
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: calc(var(--space-xl) + var(--space-sm));
}

.landing-auth-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.landing-nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--landing-ink);
  color: color-mix(in srgb, var(--landing-ink) 78%, var(--landing-surface));
  text-decoration: none;
  text-shadow: 0 1px 0 var(--landing-surface);
  transition: color 0.28s ease, text-shadow 0.28s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.landing-nav-link::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--landing-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.landing-nav-link:hover,
.landing-nav-link:focus-visible {
  color: var(--leather-brown);
  text-shadow: 0 4px 12px color-mix(in srgb, var(--landing-accent) 22%, transparent);
}

.landing-nav-link:hover::after,
.landing-nav-link:focus-visible::after {
  transform: scaleX(1);
}

.landing-auth-btn {
  background-color: var(--landing-ink);
  color: var(--paper-base);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--landing-ink);
  box-shadow: var(--shadow-sm);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.landing-auth-btn:hover {
  background-color: var(--leather-brown);
  border-color: var(--leather-brown);
  transform: translateY(-1px);
}

.landing-secondary-btn {
  color: var(--landing-ink);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--sepia-line);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  background-color: var(--landing-surface);
}

.landing-secondary-btn:hover {
  background-color: var(--paper-warm);
  border-color: var(--leather-brown);
  transform: translateY(-1px);
}

/* Main Container */
.landing-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.landing-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6rem;
}

@media (min-width: 1024px) {
  .hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
  }
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 1;
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
    animation: float 6s ease-in-out infinite;
  }
  
  .hero-visual img {
    width: 500px;
    height: auto;
    max-width: none; /* Override max-w-lg if applied via class */
  }
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 2.5rem;
  color: var(--landing-ink);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--landing-secondary);
  max-width: 32rem;
  margin-bottom: 3.5rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--landing-ink);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--landing-ink);
  transition: all 0.2s;
}

.hero-cta:hover {
  background: transparent;
  color: var(--landing-ink);
}

/* Bento Grid */
.features-section {
  padding: 8rem 0;
}

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

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(320px, auto));
  }
}

.bento-card {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--landing-accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.card-image-box {
  height: 200px;
  margin-bottom: 1.5rem;
}

.card-image-box img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--landing-ink);
}

.card-desc {
  color: var(--landing-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Bento Spans */
.span-2 { grid-column: span 1; }
@media (min-width: 768px) {
  .span-2 { grid-column: span 2; }
}

/* Stats (Serif/Vintage numbers) */
.stats-strip {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--landing-border);
  border-bottom: 1px solid var(--landing-border);
  padding: 4rem 0;
  margin: 6rem 0;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-number {
  font-family: var(--font-vintage);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--landing-ink);
}

.stat-label {
  color: var(--landing-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  display: block;
  font-weight: 600;
}

/* Footer — the journal's closing page */
.landing-footer {
  padding: var(--space-xl) 0 max(var(--space-lg), env(safe-area-inset-bottom));
  background: var(--nav-bg);
  color: var(--paper-base);
}

.landing-footer__inner {
  padding-inline: var(--space-lg);
}

.landing-footer__main {
  display: grid;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.landing-footer__brand {
  max-width: 42rem;
}

.landing-footer__logo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--paper-base);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition: color 180ms ease;
}

.landing-footer__statement {
  display: flex;
  max-width: 16ch;
  flex-direction: column;
  margin: var(--space-sm) 0 var(--space-md);
  color: var(--paper-base);
  font-family: var(--font-vintage);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.landing-footer__statement em {
  color: var(--nav-accent);
  font-weight: 400;
}

.landing-footer__description {
  max-width: 34rem;
  margin: 0;
  color: var(--paper-shadow);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.landing-footer__navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.landing-footer__heading {
  margin: 0 0 var(--space-sm);
  color: var(--nav-accent);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-footer__list,
.landing-footer__social-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-footer__list {
  display: flex;
  flex-direction: column;
}

.landing-footer__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--paper-shadow);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 180ms ease;
}

.landing-footer__social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--ui-border);
}

.landing-footer__social-label {
  color: var(--ink-light);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-footer__social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-md);
}

.landing-footer__social-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--paper-shadow);
  font-size: var(--text-sm);
  text-underline-offset: 0.3em;
  transition: color 180ms ease;
}

.landing-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--ui-border);
  color: var(--ink-light);
  font-size: var(--text-xs);
}

.landing-footer__bottom p {
  margin: 0;
}

@media (hover: hover) {
  .landing-footer__logo:hover,
  .landing-footer__link:hover,
  .landing-footer__social-link:hover {
    color: var(--nav-accent);
  }
}

@media (min-width: 768px) {
  .landing-footer {
    padding-top: calc(var(--space-xl) + var(--space-md));
  }

  .landing-footer__main {
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
    align-items: end;
    gap: clamp(var(--space-xl), 6vw, var(--space-xxl));
    padding-bottom: var(--space-xl);
  }

  .landing-footer__statement {
    font-size: clamp(2.75rem, 4vw, 3.25rem);
  }
}

@media (max-width: 480px) {
  .landing-footer__inner {
    padding-inline: var(--space-md);
  }

  .landing-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-logo-text,
  .landing-nav-link,
  .landing-nav-link::after,
  .landing-auth-btn,
  .landing-secondary-btn,
  .landing-footer__logo,
  .landing-footer__link,
  .landing-footer__social-link {
    transition: none;
  }

  .landing-logo-text:hover,
  .landing-auth-btn:hover,
  .landing-secondary-btn:hover {
    transform: none;
  }
}
/* Pricing Section */
#pricing {
  background-color: var(--landing-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 30rem;
  margin: 0 auto;
}

.pricing-card {
  background: var(--landing-surface);
  border: 3px solid var(--landing-ink);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 8px 8px 0px var(--landing-ink);
  transition: transform 0.2s ease;
}

.pricing-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0px var(--landing-ink);
}

.pricing-badge {
  position: absolute;
  top: -1.125rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--landing-accent);
  color: var(--landing-ink);
  padding: 0.375rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  border: 2px solid var(--landing-ink);
}

.pricing-price {
  margin: 1.5rem 0;
}

.price-amount {
  font-family: var(--font-vintage);
  font-size: 4rem;
  line-height: 1;
  font-weight: 400;
}

.price-period {
  color: var(--landing-secondary);
  font-size: 1.25rem;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  text-align: left;
  display: inline-block;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--landing-ink);
}

.pricing-feature svg {
  color: var(--landing-accent);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.pricing-cta {
  display: block;
  width: 100%;
  background: var(--landing-ink);
  color: white;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--landing-ink);
  transition: all 0.2s;
}

.pricing-cta:hover {
  background: transparent;
  color: var(--landing-ink);
}

.pricing-guarantee {
  margin-top: 1.5rem;
  color: var(--landing-secondary);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .pricing-card {
    padding: 2.5rem 1.5rem;
  }
}

/* Landing home — calm modern editorial */
.landing-home {
  overflow: clip;
}

.landing-hero--modern {
  min-height: 100svh;
  padding-block: calc(var(--landing-header-height) + var(--space-xl)) var(--space-xl);
}

.hero-flex--modern {
  width: 100%;
}

.landing-kicker {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
  color: var(--landing-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-kicker span {
  color: var(--landing-accent);
}

.hero-title--modern {
  max-width: 640px;
  margin-bottom: var(--space-lg);
  font-size: clamp(3.25rem, 6vw, 5.65rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-title--modern span,
.landing-section-heading h2 span {
  color: var(--landing-secondary);
  font-family: var(--font-vintage);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.hero-subtitle--modern {
  max-width: 610px;
  margin-bottom: var(--space-xl);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.landing-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.landing-text-link {
  color: var(--landing-ink);
  font-weight: 600;
  text-underline-offset: 5px;
}

.landing-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin: var(--space-xl) 0 0;
  padding: 0;
  color: var(--landing-secondary);
  font-size: var(--text-sm);
  list-style: none;
}

.landing-trust-list span {
  margin-right: var(--space-xs);
  color: var(--landing-accent);
}

.hero-visual--journal {
  position: relative;
  min-width: 550px;
  animation: none;
}

.landing-memory-story__journey {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 560px);
  margin-left: auto;
}

.landing-memory-story__tabs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: repeat(3, 112px);
  width: 100%;
}

.landing-memory-story__tabs::before,
.landing-memory-story__tabs::after {
  position: absolute;
  z-index: 0;
  top: 56px;
  bottom: 56px;
  left: 7px;
  width: 2px;
  border-radius: 999px;
  content: "";
}

.landing-memory-story__tabs::before {
  background: color-mix(in srgb, var(--landing-secondary) 28%, transparent);
}

.landing-memory-story__tabs::after {
  background: var(--landing-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-memory-story][data-story-state="protected"] .landing-memory-story__tabs::after {
  transform: scaleY(0.5);
}

[data-memory-story][data-story-state="returned"] .landing-memory-story__tabs::after {
  transform: scaleY(1);
}

.is-loop-reset .landing-memory-story__tabs::after {
  opacity: 0;
  transition: none;
}

.landing-memory-story__tab {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--landing-secondary);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color 420ms ease;
}

.landing-memory-story__tab-marker {
  position: relative;
  z-index: 2;
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--landing-secondary) 54%, var(--landing-surface));
  border-radius: 50%;
  background: var(--landing-bg);
  box-shadow: 0 0 0 4px var(--landing-bg);
  transition: background-color 420ms ease, border-color 420ms ease, transform 420ms ease;
}

.landing-memory-story__tab-label,
.landing-memory-story__tab-label strong,
.landing-memory-story__tab-label small {
  display: block;
}

.landing-memory-story__tab-label strong {
  color: inherit;
  font-size: 0.76rem;
  line-height: 1.2;
}

.landing-memory-story__tab-label small {
  margin-top: 4px;
  color: var(--landing-secondary);
  font-size: 0.64rem;
  line-height: 1.25;
  opacity: 0.72;
}

.landing-memory-story__tab[aria-selected="true"] {
  color: var(--landing-ink);
}

.landing-memory-story__tab[aria-selected="true"] .landing-memory-story__tab-marker {
  border-color: var(--landing-accent);
  background: var(--landing-accent);
  box-shadow: 0 0 0 4px var(--landing-bg), 0 0 0 6px color-mix(in srgb, var(--landing-accent) 24%, transparent);
  transform: scale(1.1);
}

[data-memory-story][data-story-state="protected"] #memory-story-tab-today .landing-memory-story__tab-marker,
[data-memory-story][data-story-state="returned"] :is(#memory-story-tab-today, #memory-story-tab-protected) .landing-memory-story__tab-marker {
  border-color: var(--landing-accent);
  background: var(--landing-accent);
}

.landing-memory-story__tab:focus-visible {
  outline: 3px solid var(--landing-accent);
  outline-offset: 4px;
}

.landing-memory-story__stage {
  position: relative;
  width: 100%;
  min-height: 552px;
}

.landing-memory-story__archive-sheet {
  position: absolute;
  inset: 10px 4px 22px 10px;
  z-index: 0;
  border: 1px solid var(--landing-border);
  border-radius: 4px 22px 22px 4px;
  background: color-mix(in srgb, var(--landing-surface) 90%, var(--paper-warm));
  box-shadow: 12px 18px 38px rgba(43, 42, 39, 0.08);
  opacity: 0.22;
  transform-origin: left center;
  transition: opacity 760ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-memory-story__archive-sheet--back {
  transform: translate(4px, 7px) rotate(0.4deg);
}

.landing-memory-story__archive-sheet--middle {
  transform: translate(2px, 4px) rotate(-0.25deg);
}

[data-memory-story][data-story-state="protected"] .landing-memory-story__archive-sheet {
  opacity: 0.4;
}

[data-memory-story][data-story-state="protected"] .landing-memory-story__archive-sheet--back {
  transform: translate(9px, 11px) rotate(0.8deg);
}

[data-memory-story][data-story-state="protected"] .landing-memory-story__archive-sheet--middle {
  transform: translate(5px, 7px) rotate(-0.45deg);
}

[data-memory-story][data-story-state="returned"] .landing-memory-story__archive-sheet {
  opacity: 0.88;
}

[data-memory-story][data-story-state="returned"] .landing-memory-story__archive-sheet--back {
  transform: translate(24px, 23px) rotate(2.1deg);
}

[data-memory-story][data-story-state="returned"] .landing-memory-story__archive-sheet--middle {
  transform: translate(12px, 13px) rotate(0.75deg);
}

.landing-memory-story__bookmark {
  position: absolute;
  z-index: 5;
  top: 54px;
  right: 88px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--landing-accent);
  color: var(--landing-ink);
  font-family: var(--font-vintage);
  font-size: 0.72rem;
  font-style: italic;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 420ms ease, transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

[data-memory-story][data-story-state="returned"] .landing-memory-story__bookmark {
  opacity: 1;
  transform: translateX(0);
}

.landing-journal-preview {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 520px;
  padding: 34px 36px;
  border: 1px solid var(--landing-border);
  border-radius: 4px 24px 24px 4px;
  background:
    linear-gradient(90deg, rgba(90, 62, 43, 0.08) 0, transparent 5%),
    var(--landing-surface);
  box-shadow: 20px 25px 64px rgba(43, 42, 39, 0.15), -7px 0 0 var(--landing-ink);
  transform: translate(0, 7px) rotate(0.9deg);
  transition:
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 620ms ease,
    background-color 620ms ease,
    box-shadow 760ms ease;
}

.landing-journal-preview[data-state="protected"] {
  border-color: color-mix(in srgb, var(--leather-brown) 58%, var(--landing-border));
  box-shadow: 22px 28px 68px rgba(43, 42, 39, 0.16), -7px 0 0 var(--leather-brown);
  transform: translate(-4px, 2px) rotate(0.15deg);
}

.landing-journal-preview[data-state="returned"] {
  background:
    linear-gradient(90deg, rgba(201, 168, 106, 0.12) 0, transparent 7%),
    var(--landing-surface);
  box-shadow: 26px 32px 74px rgba(43, 42, 39, 0.14), -7px 0 0 var(--landing-ink);
  transform: translate(-12px, -7px) rotate(-1deg) scale(0.987);
}

.landing-journal-preview[data-state="today"] .landing-journal-preview__photos img:first-child {
  animation: landing-photo-settle-left 720ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.landing-journal-preview[data-state="today"] .landing-journal-preview__photos img:last-child {
  animation: landing-photo-settle-right 820ms 70ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.landing-journal-preview[data-state="protected"] .landing-journal-preview__stage-mark {
  animation: landing-lock-settle 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.landing-journal-preview[data-state="returned"] .landing-journal-preview__stage-mark {
  animation: landing-return-mark 680ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.landing-journal-preview__stage-mark {
  position: absolute;
  z-index: 3;
  top: 70px;
  right: 38px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--landing-border);
  border-radius: 50%;
  background: var(--paper-warm);
  color: var(--leather-brown);
  box-shadow: var(--shadow-sm);
  transition: background-color 420ms ease, border-color 420ms ease, transform 420ms ease;
}

.landing-memory-story__protection {
  position: absolute;
  z-index: 4;
  right: -18px;
  bottom: 70px;
  display: grid;
  grid-template-columns: auto minmax(42px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(292px, calc(100% - 24px));
  min-height: 54px;
  padding: 9px 11px 9px 14px;
  border: 1px solid color-mix(in srgb, var(--leather-brown) 44%, var(--landing-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--landing-surface) 94%, transparent);
  box-shadow: 0 14px 34px rgba(43, 42, 39, 0.14);
  color: var(--landing-secondary);
  font-size: 0.68rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(38px) scale(0.97);
  transition: opacity 360ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-memory-story__protection-path {
  position: relative;
  display: block;
  height: 1px;
  background: color-mix(in srgb, var(--leather-brown) 38%, transparent);
}

.landing-memory-story__protection-path::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--leather-brown);
  border-right: 1px solid var(--leather-brown);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.landing-memory-story__protection-path i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--landing-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--landing-accent) 18%, transparent);
  transform: translate(0, -50%);
}

.landing-memory-story__protected-copy,
.landing-memory-story__protected-copy b,
.landing-memory-story__protected-copy small {
  display: block;
}

.landing-memory-story__protected-copy {
  min-width: 78px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--landing-ink);
  color: var(--landing-surface);
}

.landing-memory-story__protected-copy b {
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.landing-memory-story__protected-copy small {
  margin-top: 2px;
  font-size: 0.56rem;
  opacity: 0.72;
}

[data-memory-story][data-story-state="protected"] .landing-memory-story__protection {
  opacity: 1;
  transform: translateX(0) scale(1);
}

[data-memory-story][data-story-state="protected"] .landing-memory-story__protection-path i {
  animation: landing-protection-travel 1.35s 260ms cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

[data-memory-story][data-story-state="returned"] .landing-memory-story__protection {
  opacity: 0;
  transform: translate(-20px, -7px) scale(0.96);
}

.landing-memory-story__caption {
  width: min(calc(100% - 102px), 458px);
  min-height: 2.8em;
  margin: var(--space-md) 0 0 auto;
  color: var(--landing-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: center;
}

@keyframes landing-photo-settle-left {
  from { opacity: 0.55; transform: translate(-8px, 7px) rotate(-1.5deg) scale(0.97); }
  to { opacity: 0.9; transform: translate(0, 0) rotate(0) scale(1); }
}

@keyframes landing-photo-settle-right {
  from { opacity: 0.5; transform: translate(8px, 9px) rotate(1.8deg) scale(0.96); }
  to { opacity: 0.9; transform: translate(0, 0) rotate(0) scale(1); }
}

@keyframes landing-lock-settle {
  0% { transform: scale(0.78) rotate(-8deg); }
  55% { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes landing-return-mark {
  from { opacity: 0.35; transform: rotate(-120deg) scale(0.82); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes landing-protection-travel {
  0%, 12% { left: 0; opacity: 0.35; }
  72%, 100% { left: calc(100% - 7px); opacity: 1; }
}

.landing-journal-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: linear-gradient(rgba(90, 62, 43, 0.045) 1px, transparent 1px);
  background-position: 0 122px;
  background-size: 100% 31px;
}

.landing-journal-preview__topline,
.landing-journal-preview__footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  color: var(--landing-secondary);
  font-size: var(--text-xs);
}

.landing-journal-preview__lock {
  color: var(--leather-brown);
  font-weight: 600;
}

.landing-journal-preview__mood {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--landing-secondary);
  font-size: var(--text-sm);
}

.landing-journal-preview__mood strong {
  color: var(--landing-ink);
}

.landing-journal-preview h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-lg);
  font-family: var(--font-vintage);
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1.05;
}

.landing-journal-preview [data-memory-story-title] {
  min-height: 2.1em;
}

.landing-journal-preview > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--landing-ink);
  font-family: var(--font-vintage);
  font-size: 1.14rem;
  line-height: 1.7;
}

.landing-journal-preview [data-memory-story-copy] {
  min-height: 5.1em;
}

.landing-journal-preview__footer {
  height: 54px;
  align-items: flex-start;
  margin-top: var(--space-sm);
  padding: 10px 12px;
  border-top: 1px solid var(--landing-border);
  border-radius: 0 0 10px 10px;
  background: color-mix(in srgb, var(--paper-warm) 82%, var(--landing-surface));
  color: var(--landing-ink);
  line-height: 1.35;
}

.landing-journal-preview__footer span:first-child {
  max-width: 72%;
  font-weight: 650;
}

.landing-journal-preview__footer span:last-child {
  color: var(--landing-secondary);
  text-align: right;
}

.landing-journal-preview__photos {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-sm);
  height: 125px;
  margin: var(--space-lg) 0;
}

body.landing-page .landing-journal-preview__photos img {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  opacity: 0.9;
  object-fit: cover;
  filter: saturate(0.7) sepia(0.12);
  transition: filter 420ms ease, transform 420ms ease;
}

.landing-journal-preview[data-state="protected"] .landing-journal-preview__photos img {
  filter: saturate(0.45) sepia(0.2);
  transform: scale(0.985);
}

.landing-journal-preview[data-state="returned"] .landing-journal-preview__photos img {
  filter: saturate(0.82) sepia(0.2) brightness(1.02);
}

.landing-floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 16px;
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  background: rgba(252, 250, 245, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.landing-floating-note strong,
.landing-floating-note small {
  display: block;
}

.landing-floating-note strong { font-size: var(--text-sm); }
.landing-floating-note small { color: var(--landing-secondary); font-size: 11px; }
.landing-floating-note--privacy { top: 15%; left: -5%; }
.landing-floating-note--memory { right: -8%; bottom: 12%; }

.landing-value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--landing-border);
}

.landing-value-strip > div {
  padding: var(--space-xl);
}

.landing-value-strip > div + div {
  border-left: 1px solid var(--landing-border);
}

.landing-value-strip span,
.landing-feature__number {
  display: block;
  margin-bottom: var(--space-lg);
  color: var(--landing-secondary);
  font-family: var(--font-vintage);
  font-size: var(--text-sm);
}

.landing-value-strip strong {
  display: block;
  font-size: 1.1rem;
}

.landing-value-strip p {
  margin: var(--space-sm) 0 0;
  color: var(--landing-secondary);
}

.features-section--modern {
  padding-block: var(--space-xxl);
}

.landing-section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  margin-bottom: var(--space-xl);
}

.landing-section-heading .landing-kicker {
  grid-column: 1 / -1;
}

.landing-section-heading h2,
.landing-privacy h2,
.landing-final-cta h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.landing-section-heading > p:last-child {
  margin: 0;
  color: var(--landing-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.landing-privacy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xxl);
  padding: var(--space-xxl) clamp(28px, 6vw, 80px);
  border-radius: 22px;
  background: var(--paper-warm);
}

.landing-publishing {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-xxl);
  padding: var(--space-xxl) 0;
  border-top: 1px solid var(--landing-border);
}

.landing-publishing__heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.landing-publishing__heading h2 span {
  color: var(--landing-secondary);
  font-family: var(--font-vintage);
  font-weight: 400;
}

.landing-publishing__heading > p:last-child {
  max-width: 620px;
  margin: var(--space-lg) 0 0;
  color: var(--landing-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.landing-publishing__choices {
  display: grid;
  align-content: end;
  gap: var(--space-md);
}

.landing-publishing__choices article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--landing-border);
  border-radius: 14px;
  background: var(--landing-surface);
}

.landing-motion-ready .landing-publishing.is-visible .landing-publishing__choices article {
  animation: landing-choice-arrive 760ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.landing-motion-ready .landing-publishing.is-visible .landing-publishing__choices article:first-child {
  animation-delay: 360ms;
}

.landing-motion-ready .landing-publishing.is-visible .landing-publishing__choices article:nth-child(2) {
  animation-delay: 560ms;
}

.landing-publishing__choices article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-warm);
}

.landing-motion-ready .landing-publishing.is-visible .landing-publishing__choices article > span {
  animation:
    landing-choice-mark 620ms 760ms cubic-bezier(0.2, 0.75, 0.25, 1) both,
    landing-choice-breathe 5.4s 1.7s ease-in-out infinite;
}

@keyframes landing-choice-arrive {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes landing-choice-mark {
  from { transform: scale(0.72) rotate(-8deg); }
  to { transform: scale(1) rotate(0); }
}

@keyframes landing-choice-breathe {
  0%, 76%, 100% { box-shadow: none; transform: scale(1) rotate(0); }
  84% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--landing-accent) 12%, transparent); transform: scale(1.06) rotate(2deg); }
}

.landing-publishing__choices h3 {
  margin: 0 0 var(--space-xs);
  color: var(--landing-ink);
  font-size: 1rem;
}

.landing-publishing__choices p,
.landing-publishing__note {
  margin: 0;
  color: var(--landing-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.landing-publishing__note {
  grid-column: 2;
}

.landing-publishing--compact {
  gap: var(--space-xl);
  padding-block: var(--space-xl);
}

.landing-publishing--compact .landing-publishing__heading h2 {
  font-size: clamp(2.35rem, 4vw, 3.7rem);
}

.landing-publishing--compact .landing-publishing__choices article {
  padding: var(--space-md);
}

.landing-motion-ready .landing-reveal > * {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 780ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 780ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.landing-motion-ready .landing-reveal.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.landing-motion-ready .landing-reveal.is-visible > :nth-child(2) { transition-delay: 140ms; }
.landing-motion-ready .landing-reveal.is-visible > :nth-child(3) { transition-delay: 280ms; }
.landing-motion-ready .landing-reveal.is-visible > :nth-child(n + 4) { transition-delay: 400ms; }

.landing-privacy__copy {
  align-self: end;
}

.landing-privacy__copy p {
  margin: 0 0 var(--space-lg);
  color: var(--landing-secondary);
  font-size: 1.12rem;
  line-height: 1.7;
}

.landing-testimonials {
  padding-block: var(--space-xxl);
}

.landing-testimonial-slider {
  --testimonial-slide-gap: clamp(18px, 2.5vw, 30px);
  margin-inline: calc(var(--testimonial-slide-gap) * -1);
}

.landing-testimonial-slider__viewport {
  overflow: hidden;
  padding: 10px var(--testimonial-slide-gap) 16px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.landing-testimonial-slider__track,
.landing-testimonial-slider__set {
  display: flex;
}

.landing-testimonial-slider__track {
  width: max-content;
  animation: landing-testimonial-scroll 48s linear infinite;
}

.landing-testimonial-slider:hover .landing-testimonial-slider__track {
  animation-play-state: paused;
}

.landing-testimonial-slider__set {
  flex: none;
  gap: var(--testimonial-slide-gap);
  padding-right: var(--testimonial-slide-gap);
}

.landing-testimonial-card {
  position: relative;
  display: flex;
  width: clamp(260px, 27vw, 340px);
  min-height: 276px;
  flex: 0 0 auto;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--landing-border);
  border-radius: 5px 22px 22px 5px;
  background:
    linear-gradient(90deg, rgba(90, 62, 43, 0.08), transparent 18px),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 30px,
      rgba(110, 107, 101, 0.07) 31px
    ),
    var(--landing-surface);
  box-shadow:
    -5px 0 0 var(--landing-ink),
    0 20px 48px rgba(43, 42, 39, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.landing-testimonial-card::before {
  position: absolute;
  top: 42px;
  right: 20px;
  color: color-mix(in srgb, var(--landing-accent) 34%, transparent);
  content: "“";
  font-family: var(--font-vintage);
  font-size: 5.5rem;
  line-height: 1;
  pointer-events: none;
}

.landing-testimonial-card:hover {
  border-color: color-mix(in srgb, var(--landing-accent) 62%, var(--landing-border));
  box-shadow:
    -5px 0 0 var(--landing-ink),
    0 26px 58px rgba(43, 42, 39, 0.12);
  transform: translateY(-4px);
}

.landing-testimonial-card__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.landing-testimonial-card__rating {
  margin: 0;
  color: var(--leather-brown);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
}

.landing-testimonial-card__label {
  color: var(--landing-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-testimonial-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-lg);
  max-width: 70ch;
  color: var(--landing-ink);
  font-family: var(--font-vintage);
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  font-style: italic;
  line-height: 1.5;
}

.landing-testimonial-card blockquote p {
  margin: 0;
}

.landing-testimonial-card footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: auto;
  color: var(--landing-secondary);
  font-size: var(--text-sm);
}

.landing-testimonial-card__avatar {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid color-mix(in srgb, var(--landing-accent) 55%, var(--landing-border));
  border-radius: 50%;
  object-fit: cover;
}

.landing-testimonial-card__author,
.landing-testimonial-card__author strong,
.landing-testimonial-card__author span {
  display: block;
}

.landing-testimonial-card__author strong {
  color: var(--landing-ink);
  font-weight: 600;
}

.landing-testimonial-card__author span {
  margin-top: 2px;
}

.landing-testimonials__empty {
  padding: var(--space-xl);
  border-block: 1px solid var(--landing-border);
  color: var(--landing-secondary);
  text-align: center;
}

.landing-testimonials__action {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.landing-testimonials__action p {
  max-width: 560px;
  margin: 0;
  color: var(--landing-secondary);
  font-size: var(--text-sm);
}

.landing-testimonial-trigger {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

@keyframes landing-testimonial-scroll {
  to {
    transform: translateX(-50%);
  }
}

.landing-final-cta {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-block: var(--space-xxl);
  text-align: center;
}

.landing-final-cta::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(160px, 38vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--landing-accent), var(--sepia-line), var(--landing-accent));
  background-size: 220% 100%;
  content: "";
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
}

.landing-motion-ready .landing-final-cta:not(.is-visible)::before {
  transform: translateX(-50%) scaleX(0);
}

.landing-motion-ready .landing-final-cta.is-visible::before {
  animation:
    landing-closing-line 980ms 220ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards,
    landing-closing-sheen 5.2s 1.6s linear infinite;
}

.landing-motion-ready .landing-final-cta.is-visible .hero-cta span[aria-hidden="true"] {
  animation:
    landing-cta-arrow 860ms 980ms cubic-bezier(0.2, 0.75, 0.25, 1) both,
    landing-cta-nudge 4.8s 2.2s ease-in-out infinite;
}

@keyframes landing-closing-line {
  to { transform: translateX(-50%) scaleX(1); }
}

@keyframes landing-closing-sheen {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@keyframes landing-cta-arrow {
  0% { opacity: 0.45; transform: translateX(-8px); }
  65% { opacity: 1; transform: translateX(3px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes landing-cta-nudge {
  0%, 74%, 100% { transform: translateX(0); }
  84% { transform: translateX(6px); }
  92% { transform: translateX(1px); }
}

.landing-final-cta .landing-kicker {
  justify-content: center;
}

.landing-final-cta > p:not(.landing-kicker) {
  margin: var(--space-lg) 0 var(--space-xl);
  color: var(--landing-secondary);
  font-size: 1.2rem;
}

@media (max-width: 1179px) {
  .hero-flex--modern { display: block; }
  .hero-visual--journal { display: block; min-width: 0; margin: 6rem auto 0; }
  .landing-memory-story__journey { margin-inline: auto; }
  .landing-journal-preview { margin-inline: auto; }
  .landing-memory-story__caption { margin-inline: auto; }
  .landing-floating-note--privacy { left: 0; }
  .landing-floating-note--memory { right: 0; }
}

@media (max-width: 700px) {
  .landing-hero--modern { padding-block: calc(var(--landing-header-height) + var(--space-xl)) var(--space-xl); }
  .hero-title--modern { font-size: clamp(3rem, 14vw, 4.5rem); }
  .landing-hero-actions { align-items: stretch; flex-direction: column; }
  .landing-hero-actions .hero-cta { justify-content: center; }
  .landing-trust-list { align-items: flex-start; flex-direction: column; gap: var(--space-sm); }
  .hero-visual--journal { margin-top: 4rem; }
  .landing-memory-story__journey { display: block; width: min(100%, 510px); }
  .landing-memory-story__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; margin: 0 auto var(--space-lg); }
  .landing-memory-story__tabs::before,
  .landing-memory-story__tabs::after { top: 7px; right: 16.666%; bottom: auto; left: 16.666%; width: auto; height: 2px; }
  .landing-memory-story__tabs::after { transform: scaleX(0); transform-origin: left; }
  [data-memory-story][data-story-state="protected"] .landing-memory-story__tabs::after { transform: scaleX(0.5); }
  [data-memory-story][data-story-state="returned"] .landing-memory-story__tabs::after { transform: scaleX(1); }
  .is-loop-reset .landing-memory-story__tabs::after { opacity: 0; transition: none; }
  .landing-memory-story__tab { grid-template-columns: 1fr; grid-template-rows: 16px auto; align-content: start; justify-items: center; gap: 8px; min-height: 70px; padding: 0 2px; text-align: center; }
  .landing-memory-story__tab-label strong { font-size: 0.72rem; }
  .landing-memory-story__tab-label small { font-size: 0.59rem; }
  .landing-memory-story__stage { min-height: 570px; }
  .landing-journal-preview { min-height: 540px; padding: 30px 24px; box-shadow: 12px 16px 45px rgba(43, 42, 39, 0.14), -5px 0 0 var(--landing-ink); }
  .landing-journal-preview [data-memory-story-title] { min-height: 3.15em; }
  .landing-journal-preview [data-memory-story-copy] { min-height: 7.2em; }
  .landing-journal-preview__footer { height: 94px; }
  .landing-journal-preview__footer span:first-child { max-width: 100%; }
  .landing-journal-preview__footer span:last-child { text-align: left; }
  .landing-journal-preview__stage-mark { top: 72px; right: 20px; }
  .landing-memory-story__protection { right: 12px; bottom: 104px; left: 12px; width: auto; }
  .landing-memory-story__bookmark { right: 70px; }
  .landing-memory-story__caption { width: min(100%, 510px); margin-inline: auto; }
  .landing-floating-note { display: none; }
  .landing-value-strip { grid-template-columns: 1fr; }
  .landing-value-strip > div { padding: var(--space-lg) 0; }
  .landing-value-strip > div + div { border-top: 1px solid var(--landing-border); border-left: 0; }
  .features-section--modern { padding-block: var(--space-xl); }
  .landing-testimonials { padding-block: var(--space-xl); }
  .landing-testimonial-slider { margin-inline: calc(var(--space-md) * -1); }
  .landing-testimonial-card { width: min(78vw, 330px); min-height: 0; }
  .landing-testimonials__action { align-items: flex-start; flex-direction: column; }
  .landing-section-heading,
  .landing-privacy,
  .landing-publishing { grid-template-columns: 1fr; }
  .landing-section-heading { gap: var(--space-lg); }
  .landing-privacy { gap: var(--space-xl); padding: var(--space-xl) var(--space-lg); }
  .landing-publishing { gap: var(--space-xl); padding-block: var(--space-xl); }
  .landing-publishing__note { grid-column: 1; }
  .landing-final-cta { padding-block: var(--space-xl); }
}

@media (min-width: 1180px) and (max-height: 820px) {
  .landing-hero--modern {
    min-height: auto;
    padding-block: 7rem 3rem;
  }

  .hero-title--modern {
    font-size: clamp(4.5rem, 6vw, 5.5rem);
  }

  .hero-subtitle--modern {
    margin-bottom: var(--space-lg);
  }

  .landing-trust-list {
    margin-top: var(--space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-home *,
  .landing-home *::before,
  .landing-home *::after {
    scroll-behavior: auto !important;
    animation-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .landing-testimonial-card:hover {
    transform: none;
  }

  .landing-testimonial-slider__track {
    animation: none;
  }

  .landing-motion-ready .landing-reveal > * {
    opacity: 1;
    transform: none;
  }

}

/* Landing conversion journey */
.landing-skip-link {
  position: fixed;
  z-index: 100;
  top: var(--space-md);
  left: var(--space-md);
  min-height: 44px;
  padding: 11px var(--space-md);
  background: var(--landing-ink);
  color: var(--landing-surface);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-xl)));
  transition: transform 160ms ease;
}

.landing-skip-link:focus {
  transform: translateY(0);
}

#main-content:focus {
  outline: none;
}

.landing-page :is(
  .landing-logo-text,
  .landing-nav-link,
  .landing-auth-btn,
  .landing-secondary-btn,
  .hero-cta,
  .landing-text-link,
  .landing-footer a
):focus-visible {
  outline: 3px solid var(--landing-accent);
  outline-offset: 4px;
}

.landing-page :is(.landing-auth-btn, .landing-secondary-btn, .hero-cta) {
  min-height: 44px;
}

.landing-home :is(#how-it-starts, #features, #privacy, #pricing) {
  scroll-margin-top: 96px;
}

.hero-title--modern span {
  display: block;
}

.landing-action-note {
  max-width: 560px;
  margin: var(--space-md) 0 0;
  color: var(--landing-secondary);
  font-size: var(--text-sm);
}

.landing-journal-preview__journal {
  position: relative;
  z-index: 1;
  margin: var(--space-xl) 0 var(--space-sm) !important;
  color: var(--landing-secondary) !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.landing-journal-preview__journal + h2 {
  margin-top: 0;
}

.landing-floating-note {
  max-width: 270px;
}

.landing-start-section {
  padding-block: var(--space-xxl);
}

.landing-section-heading--start,
.landing-section-heading--pricing {
  align-items: start;
}

.landing-start-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--landing-border);
  list-style: none;
}

.landing-start-steps::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--landing-accent), var(--sepia-line), var(--landing-accent));
  background-size: 220% 100%;
  content: "";
  transform: scaleX(1);
  transform-origin: left;
}

.landing-motion-ready .landing-start-section:not(.is-visible) .landing-start-steps::before {
  transform: scaleX(0);
}

.landing-motion-ready .landing-start-section.is-visible .landing-start-steps::before {
  animation:
    landing-start-line 1.2s 340ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards,
    landing-start-sheen 5.5s 1.8s linear infinite;
}

.landing-start-steps li {
  display: grid;
  align-content: start;
  min-height: 310px;
  padding: var(--space-xl) var(--space-lg);
}

.landing-start-steps li + li {
  border-left: 1px solid var(--landing-border);
}

.landing-start-step__number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 4rem;
  border: 1px solid var(--landing-border);
  border-radius: 50%;
  color: var(--landing-secondary);
  font-family: var(--font-vintage);
  font-size: var(--text-sm);
}

.landing-motion-ready .landing-start-section.is-visible .landing-start-step__number {
  animation:
    landing-step-stamp 640ms var(--step-delay) cubic-bezier(0.2, 0.75, 0.25, 1) both,
    landing-step-breathe 6s calc(var(--step-delay) + 1.4s) ease-in-out infinite;
}

.landing-start-steps li:nth-child(1) .landing-start-step__number { --step-delay: 480ms; }
.landing-start-steps li:nth-child(2) .landing-start-step__number { --step-delay: 700ms; }
.landing-start-steps li:nth-child(3) .landing-start-step__number { --step-delay: 920ms; }
.landing-start-steps li:nth-child(4) .landing-start-step__number { --step-delay: 1.14s; }

@keyframes landing-start-line {
  to { transform: scaleX(1); }
}

@keyframes landing-start-sheen {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@keyframes landing-step-stamp {
  0% { border-color: var(--landing-border); opacity: 0.35; transform: scale(0.72); }
  65% { border-color: var(--landing-accent); opacity: 1; transform: scale(1.08); }
  100% { border-color: var(--landing-border); opacity: 1; transform: scale(1); }
}

@keyframes landing-step-breathe {
  0%, 76%, 100% {
    border-color: var(--landing-border);
    box-shadow: none;
    color: var(--landing-secondary);
  }
  84% {
    border-color: var(--landing-accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--landing-accent) 12%, transparent);
    color: var(--landing-ink);
  }
}

.landing-start-steps h3 {
  margin: 0 0 var(--space-md);
  font-size: 1.45rem;
  line-height: 1.15;
}

.landing-start-steps p {
  margin: 0;
  color: var(--landing-secondary);
  line-height: 1.65;
}

.landing-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.landing-story-card {
  display: flex;
  min-height: 590px;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-radius: 18px;
  background: var(--landing-surface);
  transition:
    opacity 820ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 820ms cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 220ms ease;
}

.landing-motion-ready .features-section--modern:not(.is-visible) .landing-story-card {
  opacity: 0;
  transform: translateY(48px) rotate(1deg);
}

.landing-motion-ready .features-section--modern.is-visible .landing-story-card {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.landing-motion-ready .features-section--modern.is-visible .landing-story-card:nth-child(1) { transition-delay: 300ms; }
.landing-motion-ready .features-section--modern.is-visible .landing-story-card:nth-child(2) { transition-delay: 480ms; }
.landing-motion-ready .features-section--modern.is-visible .landing-story-card:nth-child(3) { transition-delay: 660ms; }

.landing-story-card h3 {
  margin: 0 0 var(--space-lg);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.landing-story-card > p {
  margin: 0;
  color: var(--landing-secondary);
  line-height: 1.7;
}

.landing-story-card__visual {
  margin-top: auto;
}

.landing-story-card__visual--checkin {
  display: grid;
  gap: var(--space-md);
  margin-inline: -10px;
  padding: var(--space-lg);
  border-radius: 14px;
  background: var(--paper-aged);
  box-shadow: -5px 0 0 var(--leather-brown), var(--shadow-md);
  font-family: var(--font-vintage);
  transform: rotate(-1deg);
}

.landing-story-card__visual--checkin strong {
  font-size: 1.25rem;
  font-weight: 500;
}

.landing-story-card__visual--checkin div {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: var(--paper-shadow);
}

.landing-story-card__visual--checkin div::before,
.landing-story-card__visual--checkin div::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
}

.landing-story-card__visual--checkin div::before {
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--danger), var(--landing-accent), var(--success));
}

.landing-story-card__visual--checkin div::after {
  left: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid var(--landing-surface);
  background: var(--landing-ink);
}

.landing-motion-ready .features-section--modern.is-visible .landing-story-card__visual--checkin div::after {
  animation: landing-checkin-marker 5.4s 720ms cubic-bezier(0.2, 0.75, 0.25, 1) infinite both;
}

.landing-story-card__visual--checkin small {
  color: var(--landing-secondary);
}

.landing-story-card--private {
  border-color: var(--landing-ink);
  background: var(--landing-ink);
  color: var(--landing-bg);
}

.landing-story-card--private > :is(p, .landing-feature__number) {
  color: var(--landing-border);
}

.landing-story-card__visual--lock {
  display: grid;
  gap: var(--space-md);
}

.landing-story-card__visual--lock span {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(246, 241, 231, 0.3);
  border-radius: 999px;
  color: var(--landing-border);
  text-align: center;
}

.landing-story-card__visual--lock span:last-child {
  border-color: var(--landing-accent);
  color: var(--landing-bg);
  font-family: var(--font-vintage);
  letter-spacing: 0.04em;
}

.landing-motion-ready .features-section--modern.is-visible .landing-story-card__visual--lock span {
  animation: landing-lock-layer 680ms 760ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.landing-motion-ready .features-section--modern.is-visible .landing-story-card__visual--lock span:last-child {
  animation:
    landing-lock-layer 680ms 940ms cubic-bezier(0.2, 0.75, 0.25, 1) both,
    landing-lock-glow 4.8s 2s ease-in-out infinite;
}

.landing-story-card__visual--lock b {
  color: var(--landing-accent);
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
}

.landing-motion-ready .features-section--modern.is-visible .landing-story-card__visual--lock b {
  animation:
    landing-lock-confirm 620ms 1.08s cubic-bezier(0.2, 0.75, 0.25, 1) both,
    landing-lock-flow 4.8s 1.9s ease-in-out infinite;
}

.landing-story-card__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.landing-story-card__list li {
  min-height: 78px;
  padding: var(--space-md);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  background: var(--paper-warm);
  color: var(--landing-secondary);
  font-size: var(--text-sm);
}

.landing-motion-ready .features-section--modern.is-visible .landing-story-card__list li {
  animation:
    landing-memory-chip 560ms var(--memory-chip-delay) cubic-bezier(0.2, 0.75, 0.25, 1) both,
    landing-memory-chip-pulse 5.6s calc(var(--memory-chip-delay) + 1.2s) ease-in-out infinite;
}

.landing-story-card__list li:nth-child(1) { --memory-chip-delay: 820ms; }
.landing-story-card__list li:nth-child(2) { --memory-chip-delay: 960ms; }
.landing-story-card__list li:nth-child(3) { --memory-chip-delay: 1.1s; }
.landing-story-card__list li:nth-child(4) { --memory-chip-delay: 1.24s; }

@keyframes landing-checkin-marker {
  0% { left: 12%; opacity: 0.45; transform: translateY(-50%) scale(0.78); }
  14% { left: 50%; opacity: 1; transform: translateY(-50%) scale(1); }
  38% { left: 56%; opacity: 1; transform: translateY(-50%) scale(1); }
  62% { left: 46%; opacity: 1; transform: translateY(-50%) scale(1); }
  82%, 100% { left: 50%; opacity: 1; transform: translateY(-50%) scale(1); }
}

@keyframes landing-lock-layer {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes landing-lock-confirm {
  from { opacity: 0; transform: scale(0.65) rotate(-9deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes landing-lock-flow {
  0%, 72%, 100% { transform: translateX(0); }
  82% { transform: translateX(7px); }
  90% { transform: translateX(-2px); }
}

@keyframes landing-lock-glow {
  0%, 72%, 100% { box-shadow: 0 0 0 rgba(201, 168, 106, 0); }
  84% { box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.14); }
}

@keyframes landing-memory-chip {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes landing-memory-chip-pulse {
  0%, 76%, 100% {
    border-color: var(--landing-border);
    background: var(--paper-warm);
    box-shadow: none;
  }
  84% {
    border-color: color-mix(in srgb, var(--landing-accent) 55%, var(--landing-border));
    background: color-mix(in srgb, var(--paper-warm) 84%, var(--landing-accent));
    box-shadow: var(--shadow-sm);
  }
}

.landing-features-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) 0 0;
}

.landing-features-action p {
  margin: 0;
  color: var(--landing-secondary);
  line-height: 1.6;
}

.features-page {
  padding-top: calc(var(--landing-header-height) + var(--space-lg));
  padding-bottom: var(--space-xxl);
}

.features-page__hero {
  max-width: 660px;
  padding: var(--space-md) 0 var(--space-lg);
  border-bottom: 1px solid var(--landing-border);
}

.features-page__hero h1 {
  max-width: 580px;
  margin: 0 0 var(--space-md);
  font-size: clamp(2.35rem, 4.75vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.features-page__hero > p:not(.landing-kicker) {
  max-width: 650px;
  margin: 0;
  color: var(--landing-secondary);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.features-page__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.features-page__intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: end;
  padding: var(--space-lg) 0;
}

.features-page__intro .landing-kicker {
  grid-column: 1 / -1;
  margin: 0;
}

.features-page__intro h2,
.features-page__closing h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.features-page__intro > p:last-child,
.features-page__closing p {
  margin: 0;
  color: var(--landing-secondary);
  line-height: 1.7;
}

.features-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--landing-border);
  border-left: 1px solid var(--landing-border);
}

.feature-hub-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--landing-border);
  border-bottom: 1px solid var(--landing-border);
  background: var(--landing-surface);
}

.feature-hub-card--privacy {
  background: var(--landing-ink);
  color: var(--landing-bg);
}

.feature-hub-card__eyebrow {
  margin: 0 0 var(--space-xl);
  color: var(--landing-secondary);
  font-family: var(--font-vintage);
  font-size: var(--text-sm);
}

.feature-hub-card--privacy .feature-hub-card__eyebrow,
.feature-hub-card--privacy > p:not(.feature-hub-card__eyebrow),
.feature-hub-card--privacy li {
  color: var(--landing-border);
}

.feature-hub-card h2 {
  max-width: 530px;
  margin: 0 0 var(--space-md);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.feature-hub-card > p:not(.feature-hub-card__eyebrow) {
  max-width: 580px;
  margin: 0;
  color: var(--landing-secondary);
  line-height: 1.7;
}

.feature-hub-card--privacy > p:not(.feature-hub-card__eyebrow) {
  color: var(--landing-border);
}

.feature-hub-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
  padding: 0;
  list-style: none;
}

.feature-hub-card li {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--landing-border);
  border-radius: 999px;
  color: var(--landing-secondary);
  font-size: var(--text-sm);
}

.feature-hub-card--privacy li {
  border-color: rgba(246, 241, 231, 0.35);
  color: var(--landing-border);
}

.feature-hub-card__link {
  min-height: 44px;
  margin-top: auto;
  color: var(--landing-ink);
  font-weight: 700;
  text-decoration-color: var(--landing-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.feature-hub-card--privacy .feature-hub-card__link {
  color: var(--landing-bg);
}

.feature-hub-card--direction {
  grid-column: 1 / -1;
  min-height: 330px;
}

.feature-hub-card__link:hover {
  color: var(--landing-accent);
}

.feature-hub-card__link:focus-visible {
  outline: 2px solid var(--landing-accent);
  outline-offset: 4px;
}

.features-page__closing {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xxl);
  margin-top: var(--space-xxl);
  padding: clamp(32px, 6vw, 72px);
  border-radius: 20px;
  background: var(--paper-warm);
}

.features-page__closing .landing-kicker {
  margin: 0 0 var(--space-md);
}

.features-page__closing > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xl);
}

.landing-privacy__facts {
  display: grid;
  gap: var(--space-md);
  margin: 0 0 var(--space-xl);
  padding: 0;
  list-style: none;
}

.landing-privacy__facts li {
  display: grid;
  gap: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 1px solid var(--sepia-line);
}

.landing-motion-ready .landing-privacy.is-visible .landing-privacy__facts li {
  animation:
    landing-privacy-fact 720ms var(--privacy-delay) cubic-bezier(0.2, 0.75, 0.25, 1) both,
    landing-privacy-pulse 6.2s calc(var(--privacy-delay) + 1.5s) ease-in-out infinite;
}

.landing-privacy__facts li:nth-child(1) { --privacy-delay: 380ms; }
.landing-privacy__facts li:nth-child(2) { --privacy-delay: 600ms; }
.landing-privacy__facts li:nth-child(3) { --privacy-delay: 820ms; }

@keyframes landing-privacy-fact {
  from { border-top-color: transparent; opacity: 0; transform: translateX(18px); }
  to { border-top-color: var(--sepia-line); opacity: 1; transform: translateX(0); }
}

@keyframes landing-privacy-pulse {
  0%, 78%, 100% { border-top-color: var(--sepia-line); }
  86% { border-top-color: var(--landing-accent); }
}

.landing-privacy__facts strong {
  color: var(--landing-ink);
}

.landing-privacy__facts span {
  color: var(--landing-secondary);
  line-height: 1.55;
}

.landing-pricing {
  padding-block: var(--space-xxl) var(--space-xl);
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--space-lg);
}

.landing-plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--landing-border);
  border-radius: 18px;
  background: var(--landing-surface);
  box-shadow: var(--shadow-sm);
}

.landing-motion-ready .landing-pricing.is-visible .landing-plan-card {
  animation: landing-plan-arrive 860ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.landing-motion-ready .landing-pricing.is-visible .landing-plan-card:first-child {
  animation-delay: 320ms;
}

.landing-motion-ready .landing-pricing.is-visible .landing-plan-card:nth-child(2) {
  animation-delay: 520ms;
}

.landing-plan-card--premium {
  border: 2px solid var(--landing-accent);
  background: var(--landing-ink);
  color: var(--landing-bg);
  box-shadow: var(--shadow-lg);
}

.landing-plan-card--premium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--landing-accent), var(--sepia-line), var(--landing-accent));
  background-size: 220% 100%;
  transform: scaleX(1);
  transform-origin: left;
}

.landing-motion-ready .landing-pricing:not(.is-visible) .landing-plan-card--premium::before {
  transform: scaleX(0);
}

.landing-motion-ready .landing-pricing.is-visible .landing-plan-card--premium::before {
  animation:
    landing-plan-accent 920ms 940ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards,
    landing-plan-sheen 5.8s 2s linear infinite;
}

@keyframes landing-plan-arrive {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes landing-plan-accent {
  to { transform: scaleX(1); }
}

@keyframes landing-plan-sheen {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

.landing-plan-card__eyebrow {
  margin: 0 0 var(--space-md);
  color: var(--leather-brown);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.landing-plan-card--premium .landing-plan-card__eyebrow {
  color: var(--landing-accent);
}

.landing-plan-card h3 {
  max-width: 420px;
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.1;
}

@media (min-width: 701px) {
  .landing-plan-card h3 {
    min-height: 2.3em;
  }
}

.landing-plan-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 0;
}

.landing-plan-card__price strong {
  font-family: var(--font-vintage);
  font-size: clamp(2.75rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
}

.landing-plan-card__price span {
  color: var(--landing-secondary);
}

.landing-plan-card--premium .landing-plan-card__price span,
.landing-plan-card--premium .landing-plan-card__billing,
.landing-plan-card--premium ul {
  color: var(--landing-border);
}

.landing-plan-card__billing {
  margin: var(--space-xs) 0 var(--space-lg);
  color: var(--landing-secondary);
  font-size: var(--text-sm);
}

.landing-plan-card ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  color: var(--landing-ink);
  list-style: none;
}

.landing-plan-card li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--landing-border);
  line-height: 1.35;
}

.landing-plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 13px;
  color: var(--success);
  font-size: var(--text-md);
  font-weight: 700;
}

.landing-plan-card li strong,
.landing-plan-card li a {
  color: inherit;
  font-size: var(--text-md);
  font-weight: 700;
}

.landing-plan-card li a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 2px;
}

.landing-plan-card li a:hover {
  text-decoration-color: currentColor;
}

.landing-plan-card li span {
  color: var(--landing-secondary);
  font-size: var(--text-sm);
}

.landing-plan-card--premium li {
  border-top-color: color-mix(in srgb, var(--landing-border) 28%, transparent);
}

.landing-plan-card--premium li span {
  color: var(--landing-border);
}

.landing-plan-card--premium li strong,
.landing-plan-card--premium li a {
  color: var(--landing-bg);
}

.landing-plan-card--premium li::before {
  color: var(--landing-accent);
}

.landing-plan-card__cta {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-lg);
  padding: 0.75rem var(--space-md);
  border: 2px solid var(--landing-ink);
  border-radius: var(--radius-compact);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.landing-plan-card__cta--essential {
  background: transparent;
  color: var(--landing-ink);
}

.landing-plan-card__cta--essential:hover {
  background: var(--landing-ink);
  color: var(--landing-surface);
  transform: translateY(-1px);
}

.landing-plan-card__cta--premium {
  border-color: var(--landing-accent);
  background: var(--landing-accent);
  color: var(--landing-ink);
  box-shadow: var(--shadow-md);
}

.landing-plan-card__cta--premium:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
  transform: translateY(-1px);
}

.landing-plan-card__cta:focus-visible {
  outline: 3px solid var(--landing-accent);
  outline-offset: 4px;
}

.landing-plan-card--premium .landing-plan-card__cta:focus-visible {
  outline-color: var(--landing-surface);
}

.landing-pricing__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.landing-pricing__action p {
  margin: 0;
  color: var(--landing-secondary);
  font-size: var(--text-sm);
  text-align: right;
}

@media (max-width: 1100px) {
  .landing-start-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-start-steps li:nth-child(3) {
    border-left: 0;
  }

  .landing-start-steps li:nth-child(n + 3) {
    border-top: 1px solid var(--landing-border);
  }

  .landing-story-grid {
    grid-template-columns: 1fr;
  }

  .features-page__grid {
    grid-template-columns: 1fr;
  }

  .landing-story-card {
    min-height: 480px;
  }
}

@media (max-width: 700px) {
  .landing-header-actions {
    gap: var(--space-sm);
  }

  .landing-auth-group {
    gap: var(--space-sm);
  }

  .landing-auth-btn,
  .landing-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.8rem;
  }

  .hero-title--modern {
    font-size: clamp(2.65rem, 13vw, 4.5rem);
  }

  .landing-hero-actions .landing-text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .landing-action-note {
    text-align: center;
  }

  .landing-journal-preview__topline,
  .landing-journal-preview__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-start-section,
  .landing-pricing {
    padding-block: var(--space-xl);
  }

  .landing-start-steps,
  .landing-pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-start-steps li {
    min-height: auto;
    padding-inline: 0;
  }

  .landing-start-steps li + li,
  .landing-start-steps li:nth-child(3) {
    border-top: 1px solid var(--landing-border);
    border-left: 0;
  }

  .landing-start-step__number {
    margin-bottom: var(--space-xl);
  }

  .landing-story-card {
    min-height: 520px;
  }

  .landing-story-card__list {
    grid-template-columns: 1fr;
  }

  .landing-features-action,
  .features-page__intro,
  .features-page__closing {
    grid-template-columns: 1fr;
  }

  .landing-features-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .features-page {
    padding-top: calc(var(--landing-header-height) + var(--space-md));
  }

  .features-page__hero {
    padding: var(--space-md) 0 var(--space-lg);
  }

  .features-page__hero h1 {
    font-size: clamp(2.35rem, 10vw, 2.9rem);
  }

  .features-page__intro,
  .features-page__closing {
    gap: var(--space-lg);
  }

  .feature-hub-card {
    min-height: 0;
  }

  .feature-hub-card--direction {
    grid-column: auto;
  }

  .landing-privacy {
    padding-inline: var(--space-lg);
  }

  .landing-pricing__action {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-pricing__action p {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .landing-nav {
    padding-inline: 12px;
  }

  .landing-logo-text {
    font-size: 1rem;
  }

  .landing-auth-btn,
  .landing-secondary-btn {
    padding-inline: 0.65rem;
    font-size: var(--text-xs);
  }

  .landing-hero--modern {
    padding-top: 7rem;
  }

  .landing-journal-preview {
    min-height: 540px;
    padding-inline: 20px;
  }

  .landing-plan-card,
  .landing-story-card {
    padding-inline: var(--space-lg);
  }
}
