:root {
  color-scheme: light;
  --bg: #f6f2e9;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #18212f;
  --muted: #5d6674;
  --line: rgba(24, 33, 47, 0.12);
  --tint: #7bae9b;
  --tint-strong: #355e54;
  --sand: #e8d8ba;
  --shadow: 0 24px 80px rgba(24, 33, 47, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 174, 155, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(232, 216, 186, 0.44), transparent 36%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.92em;
  background: rgba(24, 33, 47, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.hero {
  padding: 18px 0 24px;
}

.hero-grid,
.share-layout,
.feature-grid,
.deeplink-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  align-items: center;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.94;
}

.hero-body,
.section-copy,
.feature-card p,
.contract-card p,
.meta-note {
  color: var(--muted);
  line-height: 1.65;
}

.hero-body {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: 1.06rem;
}

.eyebrow,
.card-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tint-strong);
}

.cta-row,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-row {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(24, 33, 47, 0.08);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--tint-strong), var(--tint));
  border-color: transparent;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}

.is-hidden {
  display: none !important;
}

body.has-shared-trip {
  background:
    radial-gradient(circle at top left, rgba(123, 174, 155, 0.14), transparent 28%),
    var(--bg);
}

body.has-shared-trip .hero,
body.has-shared-trip #features,
body.has-shared-trip #app-highlights,
body.has-shared-trip #how-it-works {
  display: none;
}

body.has-shared-trip .page-shell {
  width: min(860px, calc(100% - 24px));
  padding-top: 32px;
}

body.has-shared-trip .share-section {
  padding-top: 0;
}

body.has-shared-trip .section-heading {
  max-width: 100%;
}

body.has-shared-trip .share-layout {
  grid-template-columns: 1fr;
}

body.has-shared-trip .contract-card {
  display: none;
}

body.has-shared-trip .share-card {
  background: rgba(255, 255, 255, 0.86);
}

.hero-card,
.feature-card,
.share-card,
.contract-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.hero-mascot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}

.hero-mascot-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(123, 174, 155, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 242, 233, 0.8));
  overflow: hidden;
}

.hero-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 33, 47, 0.08);
  box-shadow: 0 8px 24px rgba(24, 33, 47, 0.08);
  color: var(--tint-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-pill-top {
  top: 18px;
  left: 18px;
}

.hero-pill-right {
  top: 86px;
  right: 18px;
}

.hero-pill-bottom {
  left: 18px;
  bottom: 18px;
}

.hero-mascot-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
}

.hero-mascot-copy {
  min-width: 0;
}

.hero-card h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.hero-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.hero-card-body {
  margin-top: 12px;
  line-height: 1.65;
}

.hero-feature-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hero-feature-row {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid rgba(24, 33, 47, 0.08);
}

.hero-feature-row strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.hero-feature-row span {
  color: var(--muted);
  line-height: 1.55;
}

.hero-list,
.contract-list,
.item-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.hero-list li,
.item-list li,
.contract-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.section {
  padding-top: 88px;
}

.policy-shell {
  display: grid;
  gap: 24px;
}

.policy-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.policy-hero .hero-body {
  margin-top: 18px;
  max-width: 70ch;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 28px;
}

.legal-section + .legal-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(24, 33, 47, 0.08);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-section p + p,
.legal-section ul + p,
.legal-section p + ul {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(24, 33, 47, 0.08);
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.share-section {
  display: none;
}

body.has-shared-trip .share-section {
  display: block;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.feature-grid,
.deeplink-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  padding: 24px;
}

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

.highlight-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
  box-shadow: var(--shadow);
}

.highlight-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-card h3,
.contract-card h3,
.share-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.share-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.share-card,
.contract-card {
  padding: 26px;
}

.share-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.share-card-header p,
.share-card-header h3 {
  margin-top: 0;
}

.pill {
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tint-strong);
  background: rgba(123, 174, 155, 0.18);
}

.trip-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
}

.trip-summary div {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(24, 33, 47, 0.08);
}

.trip-summary dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trip-summary dd {
  margin: 0;
  font-weight: 700;
}

.trip-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.trip-lists h4 {
  margin: 0;
  font-size: 1rem;
}

.item-list {
  margin-top: 12px;
}

.share-actions {
  margin-top: 24px;
}

.contract-card {
  align-self: start;
  background: var(--surface-strong);
}

.contract-list {
  padding-left: 18px;
}

.deeplink-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .hero-grid,
  .share-layout,
  .feature-grid,
  .deeplink-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    margin-bottom: 36px;
  }

  .hero {
    padding-top: 8px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.8rem, 9vw, 4.4rem);
  }

  .hero-body {
    max-width: 100%;
  }

  .hero-mascot-card {
    max-width: 680px;
  }

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

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
    padding-bottom: 52px;
  }

  .topbar {
    gap: 14px;
    margin-bottom: 28px;
  }

  .topbar-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.94rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 14vw, 3.7rem);
    line-height: 0.95;
  }

  .hero-body {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.6;
  }

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

  .button {
    width: 100%;
  }

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

  .hero-card,
  .feature-card,
  .share-card,
  .contract-card {
    border-radius: 22px;
  }

  .hero-mascot-stage {
    min-height: 240px;
  }

  .hero-pill {
    font-size: 0.74rem;
    min-height: 30px;
    padding: 0 10px;
  }

  .hero-pill-right {
    top: 18px;
    right: 18px;
  }

  .hero-feature-stack {
    gap: 10px;
  }

  .hero-feature-row {
    padding-top: 10px;
  }

  .section {
    padding-top: 68px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
    line-height: 1.04;
  }

  .feature-card,
  .highlight-card {
    padding: 22px;
  }
}
