/* Yabadoo! Trip page. Same visual language as the app's join page: cream scene with dunes,
   white cards, ink pills, Roboto and DM Mono. Coral and teal come from the logo */

:root {
  --scene: #FEF0DD;
  --outline: #A0610D;
  --ink: #3D3D3D;
  --surface: #FFFFFF;
  --text-secondary: #5E5E5E;
  --coral: #F2714B;
  --teal: #1FA9A8;
  --radius-pill: 32px;
  --radius-card: 20px;
  --shadow: 0 2px 14px rgba(61, 61, 61, .1);
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--scene);
  color: var(--ink);
  font-family: 'Roboto', -apple-system, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 4px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h2, h3 { font-weight: 500; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.15;
}

.title--small { font-size: clamp(22px, 2.4vw, 28px); }

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  text-decoration: none;
}

.pill--store {
  padding: 12px 22px;
  background: var(--surface);
  border-color: var(--outline);
  color: var(--ink);
  cursor: default;
}

.pill--store small {
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--outline);
}

.pill--small {
  padding: 10px 18px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
}

/* Top bar */

.topbar {
  display: flex;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px var(--gutter);
  font-size: 15px;
}

.topbar a { text-decoration: none; color: var(--text-secondary); }

.topbar a:hover { color: var(--ink); text-decoration: underline; }

.topbar__end { display: flex; align-items: center; gap: 20px; }

/* Language picker: <details> so it works without JS */

.langs { position: relative; }

.langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.langs summary::-webkit-details-marker { display: none; }

.langs summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.langs summary:hover,
.langs[open] summary { color: var(--ink); }

.langs__list {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 10;
  min-width: 190px;
  max-height: 70vh;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.topbar .langs__list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink);
}

.topbar .langs__list a:hover { background: var(--scene); text-decoration: none; }

.langs__list a[aria-current] { font-weight: 500; }

/* Hero: the scene with dunes, copy on the left, the day plan on the right */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) var(--gutter) clamp(64px, 8vw, 112px);
}

body::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: min(1100px, 130vh);
  background: url('/images/trip/background.svg') center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

.hero__logo { width: 236px; max-width: 70%; margin: 0 0 28px -8px; }

.hero__title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero__lead { max-width: 52ch; margin: 20px 0 28px; color: var(--text-secondary); }

/* Short facts about the trip catalogue, as small tags */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 28px;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 14px;
}

.hero__facts li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.hero__facts li:nth-child(2)::before { background: var(--coral); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* Day plan */

.plan { position: relative; max-width: 420px; justify-self: center; width: 100%; }

.plan__toast {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px -14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: var(--shadow);
}

.plan__toast-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.plan__card { padding: 34px 24px 24px; }

.plan__trip { margin: -2px 0 18px; font-size: 24px; font-weight: 500; line-height: 1.2; }

.timeline { margin: 0 0 20px; padding: 0; list-style: none; }

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 0 0 18px;
}

/* The line connecting the stops */
.timeline__item::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 8px;
  bottom: -6px;
  width: 2px;
  background: var(--scene);
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item:last-child::before { display: none; }

.timeline__item::after {
  content: '';
  position: absolute;
  left: 56px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--teal);
}

.timeline__item--meet::after { background: var(--coral); border-color: var(--coral); }

.timeline time {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.timeline time s { display: block; opacity: .6; }

.timeline__item--changed time { color: var(--coral); }

.timeline__item div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  padding-left: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.timeline strong { font-weight: 500; }

.weather {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.weather svg { position: relative; top: 3px; }

.tag {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.tag--meet { background: #FDE3DA; color: #A33B1C; }

/* Content bands */

.band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 7vw, 96px);
}

.band__head { margin-bottom: 28px; }

.band h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }

.band p { margin: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step { padding: 28px; }

.band .steps__group { margin: 0 0 16px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 500; }

.steps + .steps__group { margin-top: 40px; }

.step .step__title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.step__no {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--scene);
  font-family: var(--mono);
  font-size: 14px;
}

.step p,
.feature p { color: var(--text-secondary); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature { padding: 24px; border-top: 4px solid; }

.feature--coral { border-top-color: var(--coral); }

.feature--teal { border-top-color: var(--teal); }

.band--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pair { padding: 32px; }

.pair .title { margin-bottom: 14px; }

.pair > p:last-child { color: var(--text-secondary); }

.pair__list { margin: 0; }

.pair__list dt { margin-top: 14px; font-weight: 500; }

.pair__list dd { margin: 2px 0 0; color: var(--text-secondary); }

.organizers {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink);
  color: #FFFFFF;
}

.organizers .eyebrow { color: #FFC9B5; }

.organizers__list { margin: 0; padding: 0; list-style: none; }

.organizers__list li {
  padding: 12px 0 12px 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  position: relative;
}

.organizers__list li:first-child { border-top: 0; padding-top: 0; }

.organizers__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.organizers__list li:first-child::before { top: 9px; }

.privacy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy li {
  padding: 20px 0 0;
  border-top: 1px solid rgba(61, 61, 61, .2);
  color: var(--text-secondary);
}

.privacy strong { display: block; font-weight: 500; color: var(--ink); }

/* Body copy */

.hero__lead,
.step p,
.feature p,
.pair > p,
.pair__list dd,
.organizers__list li {
  text-align: justify;
  hyphens: auto;
}

/* Closing */

.closing {
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 104px);
  text-align: center;
}

.closing__mark { width: 180px; margin: 0 auto 16px; }

.closing__line {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  /* Darker than the logo teal, so it passes contrast on the cream scene */
  color: #138584;
}

.closing__note { margin: 10px 0 0; color: var(--text-secondary); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid rgba(61, 61, 61, .2);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer p { margin: 0; }

/* Entrance, as on the join page */

.rise { animation: rise 340ms cubic-bezier(.2, .7, .3, 1) backwards; }

.rise--2 { animation-delay: 80ms; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 900px) {
  .hero,
  .organizers { grid-template-columns: 1fr; }

  .plan { justify-self: start; }
}

@media (max-width: 680px) {
  .steps,
  .band--pair,
  .privacy { grid-template-columns: 1fr; }
}

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