/* Trace landing — redesign (2026) + trip examples + beta form */

:root {
  --teal: #1db5a0;
  --teal-light: #e8f7f5;
  --dark: #0a1a17;
  --dark-soft: #122420;
  --mid: #4a6660;
  --gray: #9aada9;
  --line: #eaeeec;
  --bg: #f2f4f3;
  --white: #ffffff;
  --serif: "Fraunces", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Aliases for trip cards */
  --ink: var(--dark);
  --ink-soft: var(--mid);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
label,
textarea,
select {
  font: inherit;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 0.3s,
    backdrop-filter 0.3s;
}

nav.scrolled {
  background: rgba(10, 26, 23, 0.85);
  backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo em {
  color: var(--teal);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29, 181, 160, 0.3);
}

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 181, 160, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 181, 160, 0.3), transparent);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(29, 181, 160, 0.12);
  border: 1px solid rgba(29, 181, 160, 0.2);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}

.hero-badge span {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  background: var(--teal);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29, 181, 160, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat {
  text-align: left;
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  margin-top: 2px;
}

/* Hero phone mockup */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  height: 580px;
  background: var(--dark-soft);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--dark-soft);
  border-radius: 0 0 20px 20px;
  z-index: 5;
}

.phone-content {
  padding: 40px 14px 14px;
  height: 100%;
  overflow: hidden;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.phone-header-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(10, 26, 23, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
  color: var(--dark);
}

.phone-logo em {
  color: var(--teal);
  font-style: normal;
}

.phone-search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(10, 26, 23, 0.04);
  border-radius: 10px;
  margin-bottom: 10px;
}

.phone-search-bar span {
  font-size: 10px;
  color: var(--gray);
}

.phone-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.phone-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 2px solid transparent;
}

.phone-tab.on {
  color: var(--dark);
  border-bottom-color: var(--teal);
}

.phone-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(10, 26, 23, 0.05);
}

.phone-card-img {
  height: 80px;
  position: relative;
}

.phone-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 23, 0.5), transparent 60%);
}

.phone-card-img-a {
  background: linear-gradient(135deg, #6aadc4, #4a8ba4);
}

.phone-card-img-b {
  background: linear-gradient(135deg, #c49e6a, #a07844);
}

.phone-card-img-c {
  background: linear-gradient(135deg, #ba8a7a, #8a6a5a);
  height: 50px;
}

.phone-card-body {
  padding: 10px 12px;
}

.phone-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.phone-card-author span {
  font-size: 10px;
  color: var(--gray);
}

.phone-card-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: white;
  font-weight: 700;
}

.phone-card-avatar-a {
  background: #1db5a0;
}

.phone-card-avatar-b {
  background: #e87070;
}

.phone-card-title {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 900;
  color: var(--dark);
}

.phone-card-meta {
  font-size: 10px;
  color: var(--gray);
  margin-top: 2px;
}

.phone-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
}

.phone-card-actions {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--gray);
}

.phone-card-view {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
}

.phone-card-dim {
  opacity: 0.6;
}

/* PAIN */
.pain {
  padding: 120px 40px;
  background: var(--white);
}

.pain-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pain-inner h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.pain-inner h2 em {
  font-style: italic;
  color: var(--teal);
}

.pain-sub {
  font-size: 18px;
  color: var(--mid);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.pain-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 28px 24px;
}

.pain-card-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.2;
}

.pain-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.pain-card p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
}

/* HOW */
.how {
  padding: 120px 40px;
  background: var(--bg);
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-label-center {
  text-align: center;
}

.how h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 56px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-step {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.how-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
  opacity: 0;
  transition: opacity 0.3s;
}

.how-step:hover::before {
  opacity: 1;
}

.step-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: var(--dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.how-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.how-step p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
}

/* CREATOR */
.creator {
  padding: 120px 40px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.creator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 181, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.creator-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.creator h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.creator-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 32px;
}

.creator-rates {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.creator-rate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.creator-rate-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.creator-rate-pct {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 900;
  color: var(--teal);
}

.creator-why {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.creator-why h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
}

.creator-why-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.creator-why-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(29, 181, 160, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.creator-why-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.creator-why-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* PROOF */
.proof {
  padding: 80px 40px;
  background: var(--white);
  text-align: center;
}

.proof-inner {
  max-width: 800px;
  margin: 0 auto;
}

.proof-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.proof-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray);
  opacity: 0.5;
}

.proof-text {
  font-size: 14px;
  color: var(--mid);
}

/* TRIP EXAMPLES */
.section-trips {
  padding: 120px 40px;
  background: var(--bg);
}

.trips-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.trips-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.trips-lede {
  font-size: 16px;
  color: var(--mid);
  max-width: 40rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trip-grid-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.trip-card {
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(10, 26, 23, 0.06);
}

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

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

.trip-card-preview-overlay:hover ~ .trip-card-inner .trip-chip-copy,
.trip-card-inner .trip-chip-copy:hover {
  z-index: 3;
}

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

.trip-card-map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  font-size: 3.2rem;
}

.trip-card-map::before,
.trip-card-map::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.trip-card-map::before {
  width: 140px;
  height: 80px;
}

.trip-card-map::after {
  width: 80px;
  height: 54px;
  right: 16%;
  bottom: 18%;
}

.trip-card-map-app {
  position: relative;
  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-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  z-index: 1;
  pointer-events: none;
}

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

.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: 700;
  font-size: 13px;
  color: var(--ink);
}

.trip-card-author-meta {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.trip-chip-copy {
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  color: var(--teal);
  font-weight: 600;
}

.trip-chip-copy:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.trip-card-body h3 {
  margin-top: 4px;
}

/* Profile preview trip grid: short route line under title */
.trip-card-subtitle {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.trip-flag {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trip-row {
  margin-top: 18px;
  color: var(--ink-soft);
  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(--teal);
}

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

/* SIGNUP */
.signup {
  padding: 120px 40px;
  background: var(--bg);
  position: relative;
}

.signup-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.signup h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.signup-sub {
  font-size: 16px;
  color: var(--mid);
  margin-bottom: 40px;
  line-height: 1.6;
}

.signup-form-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(10, 26, 23, 0.06);
  text-align: left;
  position: relative;
}

.signup-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-form-fields[hidden] {
  display: none !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group-full {
  margin-bottom: 4px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
}

.form-legend-device {
  margin-bottom: 6px;
  display: block;
  width: 100%;
}

.form-input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-family: var(--sans);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
  width: 100%;
}

.form-input:focus {
  border-color: var(--teal);
}

.device-fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  margin-bottom: 8px;
}

.form-device,
.device-grid {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.form-device-btn,
.device-option {
  position: relative;
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.form-device-btn:hover,
.device-option:hover {
  border-color: rgba(29, 181, 160, 0.35);
}

.device-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.device-label-text {
  pointer-events: none;
}

.device-option:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal);
}

.form-submit {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: var(--teal);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  margin-top: 8px;
}

.form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29, 181, 160, 0.3);
}

.form-submit:disabled {
  opacity: 0.85;
  cursor: wait;
}

.signup-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray);
}

.error-msg {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(187, 58, 58, 0.08);
  color: #9f3030;
  font-weight: 600;
  font-size: 14px;
}

.error-msg.visible {
  display: block;
}

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

.success-state {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.success-state[hidden] {
  display: none !important;
}

.success-state h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--dark);
}

.success-state p {
  color: var(--mid);
  line-height: 1.5;
  max-width: 36ch;
}

.success-icon {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: rgba(29, 143, 125, 0.12);
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.success-icon path {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

/* FOOTER */
footer {
  padding: 40px;
  background: var(--dark);
  text-align: center;
}

footer .nav-logo {
  font-size: 22px;
  display: inline-block;
  margin-bottom: 8px;
}

footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Trip / author preview footers — legal links (light background) */
.preview-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  font-size: 0.8rem;
}

.preview-footer-legal a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.preview-footer-legal a:hover {
  color: var(--ink);
}

.preview-footer-legal span[aria-hidden="true"] {
  color: var(--ink-soft);
  user-select: none;
}

/* ANIMATIONS */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up,
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-up.visible,
.fade-up.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-text > * {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero-text > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-text > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-text > *:nth-child(3) {
  animation-delay: 0.35s;
}

.hero-text > *:nth-child(4) {
  animation-delay: 0.5s;
}

.hero-text > *:nth-child(5) {
  animation-delay: 0.65s;
}

.hero-phone {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.reveal-delay {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-phone {
    display: none;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .pain {
    padding: 80px 20px;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .how {
    padding: 80px 20px;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .creator {
    padding: 80px 20px;
  }

  .creator-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-trips {
    padding: 80px 20px;
  }

  .trip-grid {
    grid-template-columns: 1fr;
  }

  .signup {
    padding: 80px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-device,
  .device-grid {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-text > *,
  .hero-phone {
    animation: none !important;
    opacity: 1 !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   App preview chrome (app.by-trace.com — trip + author HTML previews)
   -------------------------------------------------------------------------- */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell .container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 10px 0;
  flex-wrap: wrap;
  row-gap: 12px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 18px;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-header-legal {
  display: flex;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-header-legal a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-header-legal a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.site-header-legal-sep {
  opacity: 0.65;
  user-select: none;
}

@media (max-width: 520px) {
  .site-header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    align-items: center;
  }
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.site-header .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.site-header .brand-word {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-header .brand-word .brand-accent {
  color: var(--teal);
  font-style: normal;
}

.site-footer {
  margin-top: auto;
  padding: 36px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand-footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.site-footer .brand-footer .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.site-footer .brand-footer .brand-word {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.site-footer .brand-footer .brand-word .brand-accent {
  color: var(--teal);
  font-style: normal;
}

.site-footer .footer-copy {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.site-footer .footer-copy > p {
  margin: 0 0 6px;
}

.site-footer .footer-copy > a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.site-footer .footer-copy > a:hover {
  text-decoration: underline;
}

/* Buttons used on preview / success pages */
a.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

a.button:active,
button.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 181, 160, 0.35);
}

.button-primary:hover {
  opacity: 0.95;
  box-shadow: 0 6px 22px rgba(29, 181, 160, 0.4);
}

.button-small {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 999px;
}

.button-dark {
  background: var(--dark);
  color: #fff;
  box-shadow: none;
}

.button-dark:hover {
  opacity: 0.92;
}
