/* Trace — bold modern design system */

:root {
  /* core palette: deep navy from app icon */
  --bg: oklch(0.17 0.045 252);
  --bg-2: oklch(0.21 0.045 252);
  --bg-3: oklch(0.25 0.045 252);
  --line: oklch(0.32 0.04 252);
  --line-soft: oklch(0.27 0.04 252);
  --fg: oklch(0.98 0.005 240);
  --fg-2: oklch(0.78 0.015 240);
  --fg-3: oklch(0.58 0.020 240);
  --paper: oklch(0.98 0.005 240);
  --paper-ink: oklch(0.18 0.04 252);

  /* accent — soft icy blue, single hue */
  --accent: oklch(0.82 0.08 235);
  --accent-ink: oklch(0.18 0.04 252);
  --accent-glow: oklch(0.82 0.08 235 / 0.20);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --geist: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --serif: "Instrument Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--geist);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Editorial wordmark */
.wordmark {
  font-family: var(--geist);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.wordmark em {
  font-style: normal;
  font-weight: inherit;
}

/* Logo lockup */
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.logo-lockup img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: block;
  flex-shrink: 0;
}
.logo-lockup .wordmark,
.logo-lockup .nav-brand {
  font-size: 16px;
  margin: 0;
  line-height: 1;
}

/* Monospace metadata label */
.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Hairline */
.hairline { border-top: 1px solid var(--line-soft); }

/* Magnetic CTA */
.magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  font-family: var(--geist);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 1px 0 0 rgba(255,255,255,0.3) inset;
  will-change: transform;
}
.magnetic:hover {
  box-shadow: 0 0 0 8px var(--accent-glow), 0 1px 0 0 rgba(255,255,255,0.3) inset;
}
.magnetic-arrow {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.magnetic:hover .magnetic-arrow { transform: translateX(4px); }

.magnetic.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: none;
}
.magnetic.ghost:hover {
  border-color: var(--fg-2);
  background: var(--bg-2);
}

/* Section structure */
section {
  position: relative;
  padding: 120px 48px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Display headline */
.display {
  font-family: var(--geist);
  font-weight: 500;
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.lede {
  font-family: var(--geist);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 520px;
  margin: 32px 0 0;
  text-wrap: pretty;
}

/* Cards */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

/* Itinerary card (the live, animated one) */
.itin {
  position: absolute;
  width: 320px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  font-family: var(--geist);
  user-select: none;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s;
}
.itin-cover {
  height: 140px;
  border-radius: 10px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.itin-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.itin-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.itin-sub {
  font-size: 13px;
  color: oklch(0.45 0.01 250);
  font-family: var(--mono);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.itin-stops {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  align-items: center;
}
.itin-stop {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.85 0.005 80);
  position: relative;
}
.itin-stop.active { background: var(--accent); }
.itin-line {
  flex: 1;
  height: 1px;
  background: oklch(0.85 0.005 80);
}
.itin-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid oklch(0.92 0.005 80);
  font-size: 12px;
  font-family: var(--mono);
  color: oklch(0.45 0.01 250);
  letter-spacing: 0.02em;
}
.itin-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--geist);
}
.itin-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 11px;
  color: var(--accent-ink);
}

/* gradient covers — using oklch ramps, not photos */
.cover-1 { background: linear-gradient(135deg, oklch(0.62 0.10 245), oklch(0.32 0.08 252)); }
.cover-2 { background: linear-gradient(135deg, oklch(0.55 0.09 220), oklch(0.28 0.06 250)); }
.cover-3 { background: linear-gradient(135deg, oklch(0.70 0.07 230), oklch(0.40 0.08 248)); }
.cover-4 { background: linear-gradient(135deg, oklch(0.50 0.10 240), oklch(0.25 0.07 252)); }
.cover-5 { background: linear-gradient(135deg, oklch(0.65 0.08 215), oklch(0.35 0.07 250)); }

.cover-route {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* Field input */
.field {
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  height: 56px;
  transition: border-color 0.15s, background 0.15s;
}
.field:focus-within {
  border-color: var(--accent);
  background: var(--bg-3);
}
.field input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg);
  font-family: var(--geist);
  font-size: 16px;
  padding: 0 18px;
  height: 100%;
  width: 100%;
}
.field input::placeholder { color: var(--fg-3); }

/* Segmented device picker */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.segmented button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-2);
  padding: 14px 10px;
  border-radius: 8px;
  font-family: var(--geist);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.segmented .device-option {
  position: relative;
}
.segmented .device-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented .device-choice {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-2);
  padding: 14px 10px;
  border-radius: 8px;
  font-family: var(--geist);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.segmented button:hover { color: var(--fg); }
.segmented button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.segmented .device-option input:checked + .device-choice {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Counter */
.counter {
  font-family: var(--geist);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.04em;
}

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll 40s linear infinite;
  will-change: transform;
}
.marquee-item {
  font-family: var(--geist);
  font-weight: 500;
  font-size: 22px;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 64px;
}
.marquee-item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 32px)); }
}

/* Sticky CTA bar */
.sticky-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 24px;
  background: oklch(0.18 0.005 250 / 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sticky-bar.visible {
  transform: translateX(-50%) translateY(0);
}
.sticky-bar-text {
  font-size: 14px;
  color: var(--fg-2);
  white-space: nowrap;
}
.sticky-bar-text strong { color: var(--fg); font-weight: 500; }

.sticky-cta {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--geist);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Nav */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 14px;
  background: oklch(0.17 0.045 252 / 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.nav .logo-lockup {
  margin-right: 12px;
  padding: 2px 0;
}
.nav-brand {
  font-family: var(--geist);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav-brand em {
  font-style: normal;
  font-weight: inherit;
}
.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: var(--fg-2);
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--fg); background: var(--bg-3); }
.nav .nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 9px 16px;
  margin-left: 6px;
}
.nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

/* Language toggle (EN / IT) */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  margin-right: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
}
.nav-lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.nav-lang-btn:hover {
  color: var(--fg);
  background: var(--bg-3);
}
.nav-lang-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}
.nav-lang-btn.is-active:hover {
  color: var(--accent-ink);
}

/* Footer */
footer {
  padding: 64px 48px 48px;
  border-top: 1px solid var(--line-soft);
  color: var(--fg-3);
  font-size: 13px;
}
footer a:hover { color: var(--fg); }

/* Numbered list (problem section) */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 64px;
}
.problem-cell {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.problem-cell .big {
  font-family: var(--serif);
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.problem-cell h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.problem-cell p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 64px;
  border: 1px solid var(--line-soft);
}
.how-cell {
  background: var(--bg);
  padding: 32px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.how-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}
.how-cell h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  line-height: 1.1;
}
.how-cell p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 24px;
}
.how-visual {
  margin-top: auto;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 220px;
  position: relative;
}

/* Signup section — bold full bleed */
.signup-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.signup-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Page-specific reset for feedback */
.page-feedback {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 120px;
  min-height: 100vh;
}
.feedback-shell {
  width: 100%;
  max-width: 640px;
}
.feedback-back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  cursor: pointer;
}
.feedback-back:hover { color: var(--fg); }

textarea.field-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--geist);
  font-size: 16px;
  line-height: 1.5;
  padding: 16px 18px;
  outline: 0;
  resize: vertical;
  min-height: 180px;
  transition: border-color 0.15s, background 0.15s;
}
textarea.field-textarea:focus {
  border-color: var(--accent);
  background: var(--bg-3);
}
textarea.field-textarea::placeholder { color: var(--fg-3); }

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-2);
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.dropzone:hover, .dropzone.dragging {
  border-color: var(--accent);
  background: var(--bg-3);
}
.dropzone-icon {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.dropzone-prim {
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
}
.dropzone-sec {
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 4px;
}

.attached-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.attached-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
}
.attached-item-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--fg-3);
  flex-shrink: 0;
  overflow: hidden;
}
.attached-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.attached-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.attached-item-size { color: var(--fg-3); }
.attached-item-x {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--fg-3);
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.attached-item-x:hover { color: var(--fg); background: var(--bg-3); }

/* Success state */
.success-card {
  text-align: center;
  padding: 60px 32px;
}
.success-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-size: 28px;
  font-weight: 600;
}
.success-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.success-title em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.success-sub {
  font-size: 16px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}

/* Examples grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.example-card {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
  cursor: pointer;
}
.example-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
}
.example-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.example-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.4));
}
.example-meta {
  padding: 20px;
}
.example-meta h4 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.example-meta .mono-label {
  font-size: 10px;
  margin-bottom: 12px;
  display: block;
}
.example-meta p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
}
.example-stat-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 80px;
}
.stat-cell {
  background: var(--bg);
  padding: 32px 24px;
}
.stat-num {
  font-family: var(--geist);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.stat-num em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Hero specific */
.hero {
  padding: 180px 48px 120px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-stack {
  position: relative;
  height: 540px;
  width: 100%;
}

/* recent signup ticker */
.signup-ticker {
  position: relative;
  height: 28px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.signup-ticker .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.78 0.16 150);
  box-shadow: 0 0 8px oklch(0.78 0.16 150);
  animation: pulse 1.8s ease-in-out infinite;
}
.signup-ticker-track {
  position: relative;
  flex: 1;
  height: 100%;
}
.signup-ticker-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s;
}

/* Background ambient gradient blob */
.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ambient::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  top: -300px;
  right: -200px;
  filter: blur(40px);
}

.section-content { position: relative; z-index: 1; }

/* Section heading row */
.section-h {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.section-h h2 {
  font-family: var(--geist);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
}
.section-h h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.section-h p {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
  text-wrap: pretty;
}

/* Form footer note */
.form-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-3);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* responsive */
@media (max-width: 700px) {
  section { padding: 80px 24px; }
  .hero { padding: 140px 24px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stack { height: 460px; }
  .signup-wrap { grid-template-columns: 1fr; gap: 48px; }
  .problem-grid, .how-grid, .examples-grid, .stats-row { grid-template-columns: 1fr; }
  .section-h { grid-template-columns: 1fr; gap: 24px; }
  .nav a:not(.nav-cta):not(.logo-lockup) { display: none; }
}

/* Original itinerary cards (from trips-render.js), recolored for redesign theme */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.trip-grid-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--fg-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.trip-card {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
}

.trip-card-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.trip-card-inner {
  position: relative;
  z-index: 2;
}

.trip-card-inner .trip-chip-copy {
  position: relative;
  z-index: 3;
}

.trip-card-map {
  position: relative;
  min-height: 190px;
}

.trip-card-map-app {
  background: #bed8e2;
}

.trip-card-map-app svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-card-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.trip-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.08) 0%, rgba(10, 22, 40, 0.28) 100%);
}

.trip-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.trip-card-body {
  padding: 20px;
}

.trip-card-author-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.trip-card-author-text {
  min-width: 0;
  flex: 1;
}

.trip-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.trip-card-author-name {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
}

.trip-card-author-meta {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--fg-3);
}

.trip-card-body h3 {
  margin-top: 4px;
  color: var(--fg);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.trip-row {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 0.93rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trip-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.trip-chip-copy:hover {
  opacity: 0.9;
}

.trip-author {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--fg-3);
}

@media (max-width: 700px) {
  .trip-grid {
    grid-template-columns: 1fr;
  }
}
