:root {
  --font-heading: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-sans: var(--font-body);
  --font-mono: ui-monospace, monospace;

  /* Palette */
  --white: #ffffff;
  --bg: #f4f6f5;
  --ink: #111211;
  --mid: #6b7280;
  --border: #e5e7eb;

  --green: #3db98a;
  --green-dark: #2a9470;
  --green-light: #ebf8f3;

  --card: #ffffff;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);

  /* Semantic aliases */
  --background: var(--bg);
  --surface: var(--card);
  --surface-soft: var(--bg);

  --text-primary: var(--ink);
  --text-secondary: var(--mid);
  --text-muted: var(--mid);
  --text-on-dark: rgba(255, 255, 255, 0.65);

  --brand-primary: var(--green);
  --brand-primary-dark: var(--green-dark);
  --brand-soft: var(--green-light);

  /* Derived tints */
  --brand-primary-border: rgba(61, 185, 138, 0.35);
  --brand-primary-soft-border: rgba(61, 185, 138, 0.22);
  --accent-secondary-soft: rgba(107, 114, 128, 0.12);
  --accent-secondary-border: rgba(107, 114, 128, 0.35);
  --surface-on-dark-border: rgba(255, 255, 255, 0.15);

  /* Layout */
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --glow-brand: 0 0 16px rgba(61, 185, 138, 0.35);
  --glow-text: 0 0 24px rgba(61, 185, 138, 0.22);

  /* Component aliases */
  --color-background-primary: var(--surface);
  --color-background-secondary: var(--surface-soft);
  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-tertiary: var(--text-muted);
  --color-border-tertiary: var(--border);
  --color-border-secondary: var(--border);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f6faf8 14%,
    #eef6f2 26%,
    #e3f0ea 36%,
    #d4e8df 46%,
    #c2d8ce 53%,
    #a8c0b6 59%,
    #8aa399 65%,
    #6d8580 71%,
    #556860 77%,
    #3f4b47 83%,
    #2d3532 89%,
    #1e2422 94%,
    #111211 100%
  );
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

.hero h1,
.how-top h2,
.panel-text h3,
.final-label,
.hero-brand-name {
  font-family: var(--font-heading);
}

.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;
}

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

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  padding: 48px;
  text-align: center;
  background: transparent;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 52px;
}

.hero-brand-icon {
  width: 80px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-brand-name {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(61, 185, 138, 0.2);
}

@keyframes badge-dot-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(61, 185, 138, 0.55);
  }

  50% {
    opacity: 0.25;
    box-shadow: 0 0 0 5px rgba(61, 185, 138, 0);
  }
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: badge-dot-blink 1.8s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  width: 100%;
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: var(--mid);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
  text-align: center;
}

.hero .wl {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 460px;
  width: 100%;
  margin: 0 auto 12px;
}

.hero .wl-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero .wl input {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: 13px 16px;
  border: 1.5px solid rgba(61, 185, 138, 0.18);
  border-radius: 10px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  font-family: inherit;
  box-shadow: 0 2px 16px rgba(23, 32, 51, 0.06);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero .wl input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 185, 138, 0.15);
}

.hero .wl input::placeholder {
  color: var(--mid);
}

.hero .wl button {
  background: var(--ink);
  color: var(--white);
  border: none;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(23, 32, 51, 0.06);
  transition: background 0.2s, transform 0.15s;
  height: auto;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero .wl button:hover {
  background: #2d3748;
  transform: scale(1.01);
}

.notif-btn.primary,
.a-done {
  background: var(--brand-primary);
  color: var(--surface);
  border: none;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--glow-brand);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.notif-btn.primary:hover,
.a-done:hover {
  background: var(--brand-primary-dark);
}

.hero-sub {
  font-size: 0.78rem;
  color: var(--mid);
  line-height: 1.4;
  text-align: center;
}

/* How it works */
.how {
  position: relative;
  overflow: hidden;
  padding: 96px 48px 128px;
  max-width: none;
  margin: 0;
  background: transparent;
}

.how::before {
  content: "";
  position: absolute;
  top: 12%;
  right: -8%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(61, 185, 138, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.how-top,
.steps-wrap {
  position: relative;
  z-index: 1;
}

.how-top {
  text-align: center;
  max-width: 1040px;
  margin: 0 auto 56px;
}

.how-top p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.how-top h2 {
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.12;
}

.steps-wrap {
  display: flex;
  flex-direction: column;
  max-width: 1060px;
  margin: 0 auto;
  border: 0.5px solid rgba(61, 185, 138, 0.16);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-background-primary);
  box-shadow:
    0 20px 50px rgba(23, 32, 51, 0.07),
    0 4px 14px rgba(23, 32, 51, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.step-nav {
  display: flex;
  flex-direction: row;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-primary);
}

.step-tab {
  flex: 1;
  padding: 16px 20px;
  cursor: pointer;
  border-right: 0.5px solid var(--color-border-tertiary);
  transition: background 0.2s;
  background: none;
  border-left: none;
  border-top: none;
  border-bottom: none;
  text-align: center;
  font-family: inherit;
}

.step-tab:last-child {
  border-right: none;
}

.step-tab:hover {
  background: var(--color-background-secondary);
}

.step-tab.active {
  background: var(--color-background-secondary);
}

.step-tab .tab-num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  margin-bottom: 5px;
}

.step-tab .tab-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

.step-tab.active .tab-num {
  color: var(--brand-primary);
}

.step-tab.active .tab-label {
  color: var(--color-text-primary);
}

.tab-bar {
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 1px;
  margin: 8px auto 0;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-tab.active .tab-bar {
  width: 24px;
}

.step-content {
  --step-panel-height: 480px;
  --step-content-pad: 20px;
  --step-transition-duration: 0.48s;
  --step-transition-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--color-background-secondary);
  padding: var(--step-content-pad);
  position: relative;
  min-height: calc(var(--step-panel-height) + var(--step-content-pad) * 2);
  transition: background-color var(--step-transition-duration) var(--step-transition-ease);
}

.step-panel {
  position: absolute;
  top: var(--step-content-pad);
  left: var(--step-content-pad);
  right: var(--step-content-pad);
  height: var(--step-panel-height);
  display: flex;
  flex-direction: column;
  gap: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  z-index: 1;
  transition:
    opacity var(--step-transition-duration) var(--step-transition-ease),
    transform var(--step-transition-duration) var(--step-transition-ease),
    visibility 0s linear var(--step-transition-duration);
  will-change: opacity, transform;
}

.step-panel.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
  transition:
    opacity var(--step-transition-duration) var(--step-transition-ease),
    transform var(--step-transition-duration) var(--step-transition-ease),
    visibility 0s linear 0s;
}

.step-panel .vis-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.panel-text h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.panel-text {
  flex-shrink: 0;
}

.vis-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.diagram-step-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.diagram-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--background);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.diagram-step-btn:hover {
  border-color: var(--brand-primary-soft-border);
  color: var(--text-primary);
}

.diagram-step-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--surface);
  box-shadow: var(--glow-brand);
}

/* Save flow — step 1 */
.save-flow-card {
  overflow: visible;
  background: var(--surface);
  width: 100%;
}

.save-flow {
  flex: 1;
  min-height: 0;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.save-flow-diagram {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
}

.save-flow-bg {
  position: absolute;
  inset: 4% 4% 12%;
  border-radius: 20px;
  background-image: radial-gradient(circle, rgba(61, 185, 138, 0.1) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 25%, transparent 78%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

#panel-1 .save-flow-bg.visible {
  opacity: 1;
}

#panel-1 .source-icon {
  opacity: 0;
  transform: scale(0.45);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#panel-1 .source-icon.visible {
  opacity: 1;
  transform: scale(1);
}

#panel-1 .content-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

#panel-1 .content-card.visible {
  opacity: 1;
  transform: translateY(0);
}

#panel-1 .content-card.card-tilt-left.visible {
  transform: translateY(0) rotate(-2deg);
}

#panel-1 .content-card.card-tilt-right.visible {
  transform: translateY(0) rotate(2deg);
}

.save-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
  width: 100%;
  flex: 1;
  align-items: stretch;
  position: relative;
  z-index: 4;
}

.save-flow-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.source-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: 0 3px 12px rgba(23, 32, 51, 0.12);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  align-self: center;
}

.source-tiktok {
  background: #000000;
}

.source-reddit {
  background: #ff4500;
}

.source-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #bc1888);
}

.brand-logo {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.brand-logo--meta {
  width: 13px;
  height: 13px;
}

.save-flow-col .content-card {
  width: 88%;
  align-self: center;
}

.content-card {
  width: 100%;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.07);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 158px;
}

.content-card.card-tilt-left {
  transform: rotate(-2deg);
}

.content-card.card-tilt-right {
  transform: rotate(2deg);
}

.content-card-media {
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.content-card-media--amalfi {
  background: linear-gradient(145deg, #7eb8da 0%, #4a90a4 45%, #2d6a7a 100%);
}

.content-card-media--rome {
  background: linear-gradient(145deg, #e8b88a 0%, #c9784a 50%, #8b4a32 100%);
}

.content-card-media--kyoto {
  background: linear-gradient(145deg, #d4c4b0 0%, #a89080 50%, #6b5d52 100%);
}

.content-card-media.has-photo {
  background: var(--surface-soft);
}

.content-card-media img:not([hidden]) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-card-pin {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(23, 32, 51, 0.1);
  z-index: 1;
}

.content-card-pin i {
  font-size: 9px;
  color: var(--green);
}

.content-card-media--video .content-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 32, 51, 0.08);
  z-index: 1;
}

.content-card-media--video .content-card-play i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.14);
}

.content-card-body {
  padding: 12px 14px 14px;
  font-family: var(--font-body);
  flex: 1;
  min-height: 80px;
  display: flex;
  flex-direction: column;
}

.content-card-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 3px;
  min-height: 13px;
  flex-shrink: 0;
}

.content-card-sub--spacer {
  visibility: hidden;
}

.content-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
  min-height: 28px;
  flex: 1;
}

.content-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.content-card-meta i {
  font-size: 13px;
}

.content-card-meta .ti-arrow-big-up {
  color: var(--green);
}

.save-flow-dest-wrap {
  position: relative;
  width: 100%;
  margin-top: 16px;
  flex-shrink: 0;
  z-index: 3;
}

.save-flow-dest-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  background-color: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.06);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

#panel-1 .save-flow-dest-bar.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#panel-1 .save-flow-dest-bar.saved {
  box-shadow: 0 6px 28px rgba(61, 185, 138, 0.22);
}

.dest-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.06);
}

.dest-avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.dest-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-body);
}

.dest-copy strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.dest-copy span {
  font-size: 12px;
  color: var(--text-secondary);
}

.dest-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(61, 185, 138, 0.35);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#panel-1 .save-flow-dest-bar.saved .dest-check {
  transform: scale(1);
}

.dest-check i {
  font-size: 16px;
  font-weight: 700;
}

#panel-1 .panel-text h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

/* Overlap visualization */
.step-content:has(#panel-2.active) {
  background: var(--white);
}

.overlap-wrap {
  flex: 1;
  min-height: 0;
  padding: 14px;
  background: var(--color-background-secondary);
  display: flex;
  flex-direction: column;
}

#panel-2 .overlap-wrap {
  background: var(--white);
}

.stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px) minmax(0, 1fr);
  column-gap: 28px;
  row-gap: 12px;
  align-items: stretch;
}

.col-left,
.col-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.col-left .saves,
.col-right .saves {
  align-items: center;
}

.col-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  height: 28px;
}

.col-head.right {
  justify-content: center;
}

.av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.av-z {
  background: var(--brand-soft);
  color: var(--brand-primary-dark);
}

.av-r {
  background: var(--accent-secondary-soft);
  color: var(--mid);
}

.col-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.saves {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  justify-content: space-between;
}

.save-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 170px;
  min-width: 140px;
  padding: 7px 12px;
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  font-size: 11px;
  color: var(--color-text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.save-item .lbl {
  text-align: center;
  line-height: 1.25;
}

.save-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.save-item i {
  font-size: 13px;
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}

.save-item.match {
  border-color: var(--brand-primary-border);
  background: var(--brand-soft);
}

.save-item.match i {
  color: var(--brand-primary);
}

.save-item.match .lbl {
  color: var(--brand-primary-dark);
  font-weight: 500;
}

.save-item.match-r {
  border-color: var(--accent-secondary-border);
  background: var(--accent-secondary-soft);
}

.save-item.match-r i {
  color: var(--mid);
}

.save-item.match-r .lbl {
  color: var(--ink);
  font-weight: 500;
}

.mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: 100%;
  align-self: stretch;
}

.mid-label {
  height: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-tertiary);
}

.svg-area {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#line-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

#line-svg .overlap-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0;
  transition:
    stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot {
    animation: none;
  }

  .step-panel,
  .step-content,
  .step-tab .tab-bar,
  #panel-1 .save-flow-bg,
  #panel-1 .source-icon,
  #panel-1 .content-card,
  #panel-1 .save-flow-dest-bar,
  #panel-1 .dest-check,
  .save-item,
  .itin-card,
  .day-row,
  .notif-wrap,
  #line-svg .overlap-line {
    transition-duration: 0.01ms !important;
  }
}

.itin-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.itin-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.itin-title {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.itin-days {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.itin-day {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.day-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-text-secondary);
  padding: 2px 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.day-row.show {
  opacity: 1;
  transform: translateY(0);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dz { background: var(--green); }
.dr { background: var(--mid); }
.db { background: var(--green-dark); }

.itin-divider {
  height: 0.5px;
  background: var(--color-border-tertiary);
  margin: 8px 0;
  flex-shrink: 0;
}

.notif-wrap {
  margin-top: 12px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.notif-wrap.show {
  opacity: 1;
  transform: translateY(0);
}

.notif {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notif-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon img {
  width: 18px;
  height: 18px;
}

.notif-text p {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.55;
}

.notif-text p strong {
  font-weight: 600;
  color: var(--text-primary);
}

.notif-text span {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.notif-btn {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  border-radius: var(--border-radius-md);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid var(--color-border-secondary);
  color: var(--color-text-secondary);
  background: var(--color-background-secondary);
  font-family: inherit;
}

.notif-btn.primary {
  border-color: transparent;
}

/* Agent UI */
#panel-3 .vis-card {
  width: 100%;
}

.agent-ui {
  flex: 1;
  min-height: 0;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.agent-head {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
  padding: 0 4px;
}

.a-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-md);
  background: var(--surface);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.a-item.show {
  opacity: 1;
  transform: translateY(0);
}

.a-ico {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.ic-b { background: var(--green-light); }
.ic-b i { color: var(--green); }
.ic-g { background: var(--accent-secondary-soft); }
.ic-g i { color: var(--mid); }
.ic-a { background: var(--green-light); }
.ic-a i { color: var(--green-dark); }
.ic-p { background: var(--accent-secondary-soft); }
.ic-p i { color: var(--ink); }

.a-detail { flex: 1; min-width: 0; }
.a-detail .lbl { font-size: 17px; font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.a-detail .sub { font-size: 14px; color: var(--text-muted); line-height: 1.35; margin-top: 2px; }

.a-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  flex-shrink: 0;
}

.a-check i { font-size: 13px; color: var(--green-dark); }
.a-check.show { opacity: 1; }

.a-done {
  border-radius: var(--border-radius-md);
  width: 100%;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.15s ease;
  margin-top: 4px;
}

.a-done.show { opacity: 1; }
.a-done span,
.a-done strong {
  font-size: 16px;
  color: var(--surface);
}

.a-done strong { font-weight: 600; }

/* Launch banner */
.final {
  position: relative;
  overflow: hidden;
  padding: 96px 48px 88px;
  text-align: center;
  background: transparent;
}

.final-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.final-label {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.final-tagline {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--surface);
  margin-bottom: 10px;
}

.final-attribution {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
}

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-top: 0.5px solid var(--color-border-tertiary);
}

.foot-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.foot-logo img {
  width: 20px;
  height: 20px;
}

.foot-copy {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text-primary);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero,
  .how,
  .final,
  .foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: 100dvh;
    padding: 40px 20px;
  }

  .hero-brand {
    margin-bottom: 36px;
  }

  .hero h1 {
    margin-bottom: 20px;
  }

  .hero-desc {
    margin-bottom: 32px;
  }

  .hero .wl {
    flex-direction: column;
    gap: 10px;
  }

  .hero .wl input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem; /* >=16px keeps iOS from auto-zooming on focus */
  }

  .hero .wl button {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .how {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .how-top {
    margin-bottom: 36px;
  }

  .steps-wrap {
    border-radius: var(--border-radius-md);
    max-width: none;
  }

  .step-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 6px;
  }

  .step-tab .tab-num {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .step-tab .tab-label {
    font-size: 12px;
    line-height: 1.25;
  }

  .step-content {
    --step-panel-height: 420px;
    --step-content-pad: 14px;
    min-height: calc(var(--step-panel-height) + var(--step-content-pad) * 2);
  }

  .step-panel {
    top: var(--step-content-pad);
    left: var(--step-content-pad);
    right: var(--step-content-pad);
  }

  /* Step 2 — keep the desktop side-by-side composition (two people +
     itinerary with connector lines), just scaled down to fit a phone. */
  .overlap-wrap {
    padding: 10px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    column-gap: 6px;
    row-gap: 8px;
  }

  /* On phones the connector lines are skipped (too cramped to read);
     the match highlights already convey the overlap. */
  #line-svg {
    display: none;
  }

  .col-head {
    gap: 4px;
    margin-bottom: 6px;
    height: 22px;
  }

  .av {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .col-name {
    font-size: 10px;
  }

  .saves {
    gap: 4px;
  }

  .save-item {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 6px;
    font-size: 9px;
    gap: 4px;
    border-radius: 6px;
  }

  .save-item i {
    font-size: 10px;
  }

  /* Slightly thicker lines so the fan reads clearly at phone scale. */
  #line-svg .overlap-line {
    stroke-width: 2;
  }

  .mid-label {
    height: 22px;
    margin-bottom: 6px;
    font-size: 9px;
  }

  .itin-card {
    padding: 8px;
    border-radius: 8px;
  }

  .itin-title {
    font-size: 8px;
    margin-bottom: 6px;
    gap: 3px;
  }

  .itin-day {
    gap: 2px;
  }

  .day-label {
    font-size: 8px;
    margin-bottom: 1px;
  }

  .day-row {
    font-size: 9px;
    gap: 4px;
    padding: 0;
    line-height: 1.45;
  }

  .itin-divider {
    margin: 4px 0;
  }

  .notif-wrap {
    margin-top: 10px;
  }

  .notif {
    padding: 10px;
    gap: 8px;
  }

  .notif-icon {
    width: 28px;
    height: 28px;
  }

  .notif-icon img {
    width: 15px;
    height: 15px;
  }

  .notif-text p {
    font-size: 11px;
    line-height: 1.4;
  }

  .notif-text span {
    font-size: 10px;
  }

  .notif-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .notif-btn {
    font-size: 11px;
    padding: 7px 0;
  }

  .save-flow {
    padding: 20px 14px 16px;
  }

  /* Don't let the cards stretch to fill the shared (step-2-driven) panel
     height — size them to their content and center the whole module so the
     cards stay compact and evenly sized instead of tall and half-empty. */
  .save-flow-diagram {
    justify-content: center;
    gap: 18px;
  }

  .save-flow-grid {
    flex: 0 0 auto;
    gap: 0 8px;
  }

  .save-flow-col {
    gap: 8px;
  }

  .source-icon {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    width: 20px;
    height: 20px;
  }

  .save-flow-col .content-card {
    width: 100%;
  }

  .content-card {
    min-height: 132px;
    max-width: none;
  }

  .content-card-body {
    padding: 9px 10px 11px;
    min-height: 64px;
  }

  .content-card-title {
    font-size: 11px;
    min-height: 24px;
  }

  .content-card-sub,
  .content-card-meta {
    font-size: 10px;
  }

  .save-flow-dest-bar {
    padding: 12px 14px;
    gap: 10px;
  }

  .dest-copy strong {
    font-size: 12px;
  }

  .dest-copy span {
    font-size: 11px;
  }

  .agent-ui {
    padding: 16px 10px 18px;
    gap: 10px;
  }

  .agent-head {
    font-size: 14px;
  }

  .a-item {
    padding: 13px 14px;
    gap: 12px;
  }

  .a-detail .lbl {
    font-size: 15px;
  }

  .a-detail .sub {
    font-size: 12px;
  }

  .a-done span,
  .a-done strong {
    font-size: 14px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero {
    padding: 32px 16px;
  }

  .hero,
  .how,
  .final,
  .foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .save-flow {
    padding: 16px 10px 14px;
  }

  .save-flow-grid {
    gap: 0 6px;
  }

  .source-icon {
    width: 34px;
    height: 34px;
  }

  .brand-logo {
    width: 17px;
    height: 17px;
  }

  .content-card {
    min-height: 118px;
    border-radius: 9px;
  }

  .content-card-body {
    padding: 7px 8px 9px;
    min-height: 54px;
  }

  .content-card-pin {
    font-size: 9px;
    padding: 3px 7px;
  }

  .content-card-title {
    font-size: 10px;
    line-height: 1.3;
  }

  /* Step 2 — tighten the side-by-side scale a touch more on tiny screens. */
  .overlap-wrap {
    padding: 8px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
    column-gap: 4px;
  }

  .save-item {
    font-size: 8px;
    padding: 4px;
    gap: 3px;
  }

  .save-item i {
    font-size: 9px;
  }

  .itin-card {
    padding: 6px;
  }

  .itin-title {
    font-size: 7px;
  }

  .day-row,
  .day-label {
    font-size: 8px;
  }
}
