/* ==========================================================================
   find.amalfi.day — Mediterranean Travel Journal
   ========================================================================== */

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

/* --- Design Tokens --- */
:root {
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --color-bg: #faf6f1;
  --color-surface: #ffffff;
  --color-text: #1c2e3a;
  --color-text-secondary: #6b7b86;
  --color-text-inverse: #faf6f1;

  --color-accent: #FF5900;
  --color-accent-hover: #E54F00;
  --color-accent-light: #FFF0E8;
  --color-navy: #1c2e3a;
  --color-amber: #c49a3a;

  --color-border: #e8e0d6;
  --color-border-light: #f0ebe4;

  --shadow-sm: 0 1px 3px rgba(28, 46, 58, 0.08);
  --shadow-md: 0 4px 12px rgba(28, 46, 58, 0.1);
  --shadow-lg: 0 8px 30px rgba(28, 46, 58, 0.12);
  --shadow-photo: 0 2px 20px rgba(28, 46, 58, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  --max-width: 600px;
  --touch-target: 48px;
  --header-height: 56px;
  --footer-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

/* --- Lucide Icon Sizing --- */
.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  vertical-align: -0.125em;
}

/* ==========================================================================
   LANDING PAGES
   ========================================================================== */

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero--full {
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-image--blur img {
  filter: blur(3px);
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(28, 46, 58, 0.15) 50%,
    rgba(28, 46, 58, 0.7) 80%,
    rgba(28, 46, 58, 0.85) 100%
  );
}

.hero-scrim--full {
  background: rgba(28, 46, 58, 0.55);
}

/* Hero centered layout (full-screen variant) */
.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--spacing-lg);
  padding-top: calc(80px + env(safe-area-inset-top));
  padding-bottom: var(--spacing-2xl);
  max-width: 520px;
  margin: 0 auto;
}

/* White card for eyebrow text */
.hero-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  margin-bottom: var(--spacing-xl);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Guest credit line */
.hero-credit {
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  margin-top: var(--spacing-xl);
}

/* Save-to-phone hint */
.hero-save {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  max-width: 380px;
}

.hero-save-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  margin-top: 1px;
}

.hero-save-icon .lucide {
  width: 20px;
  height: 20px;
}

.hero-save-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-save-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

.hero-save-text {
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.hero-save-text strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

/* CTA button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 89, 0, 0.4);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 89, 0, 0.5);
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-cta .lucide {
  width: 18px;
  height: 18px;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Legacy hero content (route pages still use bottom-aligned layout) */
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-2xl);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text-inverse);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(250, 246, 241, 0.85);
  margin-bottom: 0;
}

/* --- Language Switcher (overlay on hero) --- */
.lang-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  padding-top: max(var(--spacing-md), env(safe-area-inset-top));
}

.lang-globe {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.lang-switcher {
  display: flex;
  gap: var(--spacing-xs);
  background: rgba(28, 46, 58, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: var(--spacing-xs);
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 100px;
  transition: all 0.2s ease;
  min-width: var(--touch-target);
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
  color: #fff;
  background: var(--color-accent);
}

/* --- Main Content (below hero) --- */
.landing-body {
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- TLDR Card --- */
.tldr {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.tldr-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tldr-label .lucide {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.tldr-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}

/* --- Route Selector --- */
.route-select-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.route-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.route-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: linear-gradient(135deg, #FF5900, #E54F00);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg) var(--spacing-lg);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  min-height: 80px;
}

.route-card:hover,
.route-card:focus-visible {
  background: linear-gradient(135deg, #E54F00, #CC4500);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.route-card:active {
  transform: translateY(0);
}

.route-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.route-card-icon .lucide {
  width: 22px;
  height: 22px;
}

.route-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.route-card-from {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.route-card-time {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 4px;
}

.route-card-time .lucide {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.route-card-arrow {
  font-size: 1.25rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
}

.route-card-arrow .lucide {
  width: 24px;
  height: 24px;
}

.route-card:hover .route-card-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* --- Inline Route (Atrani -> Meeting Point on /a landing) --- */
.inline-route {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.inline-route-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.inline-route-desc {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.inline-route-photos {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.inline-route-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
}

.inline-route-photo img {
  width: 100%;
  height: auto;
}

.inline-route-caption {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding: var(--spacing-sm) 0;
  font-style: italic;
}

/* --- Offline Status --- */
.offline-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-accent);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  margin-top: var(--spacing-xl);
  border-radius: var(--radius-sm);
}

.offline-banner.visible {
  display: flex;
  flex-wrap: wrap;
}

.offline-banner.downloading {
  background: var(--color-navy);
}

.download-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--spacing-xs);
}

.download-progress-fill {
  height: 100%;
  background: white;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* --- Footer Link --- */
.landing-footer {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.landing-footer a {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

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

/* ==========================================================================
   ROUTE PAGES
   ========================================================================== */

/* --- Route Header --- */
.route-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--spacing-md);
  padding-top: env(safe-area-inset-top);
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}

.back-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  min-height: var(--touch-target);
  min-width: var(--touch-target);
  padding: 0 var(--spacing-sm);
}

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

.back-link .lucide {
  width: 20px;
  height: 20px;
}

.route-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-header .lang-switcher {
  background: rgba(28, 46, 58, 0.06);
  padding: 2px;
}

.route-header .lang-btn {
  color: var(--color-text-secondary);
  font-size: 12px;
  padding: 4px 8px;
  min-width: 36px;
  min-height: 32px;
}

.route-header .lang-btn:hover,
.route-header .lang-btn:focus-visible {
  color: var(--color-text);
  background: rgba(28, 46, 58, 0.08);
}

.route-header .lang-btn.active {
  color: var(--color-surface);
  background: var(--color-accent);
}

/* --- Progress Bar --- */
.progress-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  height: 3px;
  background: var(--color-border-light);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF5900, #FF7A33);
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
  width: 0%;
}

/* --- Steps Container --- */
.steps {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
  padding-bottom: calc(var(--footer-height) + var(--spacing-xl) + env(safe-area-inset-bottom));
}

/* --- Segment Divider --- */
.segment-divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
}

.segment-divider::before,
.segment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.segment-divider-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-accent);
  white-space: nowrap;
}

/* --- Step Card --- */
.step {
  margin-bottom: var(--spacing-xl);
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.step-number {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.step-number .lucide {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.step-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  margin-bottom: var(--spacing-md);
  background: var(--color-border-light);
  aspect-ratio: 800 / 537;
}

.step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* --- Geo-Pin Step Badge --- */
.step-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  font-family: var(--font-body);
}

.step-badge svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.step-caption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}

/* --- Arrival Card --- */
.arrival-card {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-lg);
}

.arrival-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  line-height: 1;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrival-icon .lucide {
  width: 48px;
  height: 48px;
}

.arrival-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.arrival-text {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Route Footer (Fixed Bottom Bar) --- */
.route-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  height: var(--footer-height);
  padding: 0 var(--spacing-md);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-light);
}

.btn-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  min-width: 100px;
  min-height: var(--touch-target);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  background: rgba(28, 46, 58, 0.08);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-nav .lucide {
  width: 18px;
  height: 18px;
}

.btn-nav:hover,
.btn-nav:focus-visible {
  background: rgba(28, 46, 58, 0.15);
}

.btn-nav:active {
  background: rgba(28, 46, 58, 0.2);
  transform: scale(0.97);
}

.btn-nav:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.btn-next {
  color: #fff;
  background: var(--color-accent);
}

.btn-next:hover,
.btn-next:focus-visible {
  background: var(--color-accent-hover);
}

.btn-next:active {
  background: var(--color-accent-hover);
  transform: scale(0.97);
}

.btn-next:disabled {
  opacity: 0.35;
  pointer-events: none;
  background: var(--color-accent);
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--touch-target);
  min-width: var(--touch-target);
  padding: var(--spacing-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-download .lucide {
  width: 18px;
  height: 18px;
}

.btn-download:hover,
.btn-download:focus-visible {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* ==========================================================================
   SHARED / GLOBAL
   ========================================================================== */

/* --- Focus States --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: rgba(255, 89, 0, 0.15);
  color: var(--color-text);
}

/* --- Scrollbar (subtle on desktop) --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

/* --- Loading shimmer for lazy images --- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.step-photo {
  background: linear-gradient(
    90deg,
    var(--color-border-light) 25%,
    var(--color-bg) 50%,
    var(--color-border-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.step-photo:has(img[complete]) {
  animation: none;
  background: none;
}

/* --- Print Styles --- */
@media print {
  .route-header,
  .route-footer,
  .progress-bar,
  .lang-bar,
  .offline-banner {
    display: none !important;
  }

  .steps {
    padding-bottom: 0;
  }

  .step {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 24pt;
  }

  .step-photo {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .step-badge {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

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

.hero-content,
.hero-center {
  animation: fadeInUp 0.6s ease-out;
}

.tldr,
.route-cards,
.inline-route {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.tldr { animation-delay: 0.1s; }
.route-cards { animation-delay: 0.2s; }
.inline-route { animation-delay: 0.3s; }

/* Step cards fade in on scroll (JS adds .visible) */
.step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* No-JS fallback: show all steps */
.no-js .step {
  opacity: 1;
  transform: none;
}
