:root {
  --brand: #3d9ea4;
  --brand-dark: #0e1e2e;
  --ink: #12243a;
  --muted: #667684;
  --soft: #8b99a5;
  --line: rgba(14, 30, 46, 0.14);
  --line-strong: rgba(14, 30, 46, 0.24);
  --paper: #fffaf0;
  --canvas: #f3ecdf;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --tea: #dff2ef;
  --clay: #bd7758;
  --gold: #d1a35f;
  --sky: #d8edf4;
  --shadow: 0 24px 64px rgba(14, 30, 46, 0.13);
  --shadow-soft: 0 12px 34px rgba(14, 30, 46, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(61, 158, 164, 0.18), transparent 35rem),
    linear-gradient(236deg, rgba(189, 119, 88, 0.16), transparent 34rem),
    repeating-linear-gradient(0deg, rgba(14, 30, 46, 0.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(14, 30, 46, 0.025) 0 1px, transparent 1px 34px),
    linear-gradient(145deg, #fff9ef 0%, #edf6f4 48%, #f5eadb 100%);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  line-height: 1.45;
}

body[data-auth="in"] .landing-shell {
  display: none;
}

body[data-auth="out"] .app-shell {
  display: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.landing-shell,
.app-shell {
  width: min(1510px, calc(100% - 28px));
  margin: 0 auto;
}

.landing-shell {
  padding: 18px 0 54px;
}

.landing-nav,
.topbar {
  min-height: 64px;
  display: grid;
  align-items: center;
  gap: 18px;
}

.landing-nav {
  grid-template-columns: 220px minmax(0, 1fr) auto;
}

.topbar {
  grid-template-columns: 220px minmax(260px, 1fr) auto;
  padding-top: 16px;
}

.brand,
.landing-links,
.top-actions,
.hero-actions,
.section-title,
.panel-heading,
.board-header,
.budget-meta,
.timeline-item,
.receipt-item,
.check-row,
.handoff-card,
.breakdown-row,
.setting-row,
.expense-row,
.calendar-card,
.today-card,
.discover-card {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark,
.device-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, transparent 42%, #ffffff 43% 55%, transparent 56%),
    linear-gradient(180deg, #8bd7dc 0%, var(--brand) 64%, var(--gold) 65%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(14, 30, 46, 0.18);
}

.landing-links {
  justify-content: center;
  gap: 22px;
}

.landing-links a,
.link-button {
  text-decoration: none;
}

.landing-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(30px, 6vw, 96px);
  padding: 42px 0 68px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(4.8rem, 13vw, 13rem);
  line-height: 0.78;
}

.hero-text {
  max-width: 710px;
  margin: 0 0 24px;
  color: #3b5062;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

.left {
  justify-content: flex-start;
}

.login-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-product {
  display: grid;
  justify-items: center;
}

.phone-frame {
  width: min(100%, 390px);
  min-height: 620px;
  border: 10px solid var(--brand-dark);
  border-radius: 34px;
  padding: 22px;
  background:
    radial-gradient(circle at 78% 8%, rgba(61, 158, 164, 0.24), transparent 9rem),
    linear-gradient(180deg, #fffaf0, #eef7f4);
  box-shadow: var(--shadow);
}

.phone-top {
  width: 82px;
  height: 7px;
  margin: 0 auto 24px;
  border-radius: 99px;
  background: rgba(14, 30, 46, 0.28);
}

.phone-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

.phone-card.strong {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.phone-card span,
.phone-card small {
  display: block;
  color: inherit;
  opacity: 0.78;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phone-card strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.08;
}

.phone-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
  margin: 28px 0;
}

.phone-route::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  border-top: 2px dashed rgba(14, 30, 46, 0.35);
}

.phone-route span {
  position: relative;
  width: 26px;
  height: 26px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 8px 18px rgba(14, 30, 46, 0.14);
}

.phone-row {
  display: grid;
  grid-template-columns: 1fr 0.64fr;
  gap: 12px;
  margin-top: 14px;
}

.phone-row span {
  height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.feature-band,
.sync-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
}

.feature-band article {
  min-height: 240px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.48);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--brand-dark);
  font-weight: 900;
}

.feature-band p,
.sync-band p {
  color: var(--muted);
  font-weight: 700;
}

.sync-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin-top: 18px;
  padding: 28px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(14, 30, 46, 0.45);
  backdrop-filter: blur(10px);
}

.auth-card {
  position: relative;
  width: min(100%, 430px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.auth-card form {
  display: grid;
  gap: 10px;
}

.auth-card label,
.add-stop-form label,
.quick-form label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.close-button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brand-dark);
  background: #ffffff;
  font-weight: 900;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #a94130;
  font-size: 0.84rem;
  font-weight: 900;
}

.app-shell {
  padding: 0 0 24px;
}

.search {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 28px rgba(14, 30, 46, 0.05);
}

.search svg,
.icon-button svg,
.upload-zone svg,
.rail-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.shortcut {
  min-width: 26px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
}

.top-actions {
  justify-content: flex-end;
  gap: 10px;
}

.icon-button,
.profile-button,
.rail-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-grid;
  place-items: center;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
}

.icon-button,
.profile-button {
  width: 42px;
  height: 42px;
}

.profile-button {
  color: #ffffff;
  background: var(--brand-dark);
  font-weight: 900;
}

.sync-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 12px;
  color: #0d7378;
  background: var(--tea);
  font-size: 0.78rem;
  font-weight: 900;
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.button.primary {
  color: #ffffff;
  background: var(--brand-dark);
  box-shadow: 0 14px 32px rgba(14, 30, 46, 0.18);
}

.button.secondary {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.wide {
  width: 100%;
}

.compact-button {
  min-height: 38px;
}

.workspace {
  display: grid;
  grid-template-columns: 78px 236px minmax(0, 1fr) 306px;
  gap: 16px;
  margin-top: 18px;
}

.workspace > *,
.board-grid > *,
.insights > * {
  min-width: 0;
}

.rail,
.sidebar,
.trip-board,
.insights {
  min-height: calc(100vh - 122px);
}

.rail,
.sidebar,
.trip-board,
.insight-panel,
.sync-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px;
}

.rail-button {
  width: 60px;
  min-height: 58px;
  grid-template-rows: 22px auto;
  gap: 4px;
  color: var(--muted);
  background: transparent;
}

.rail-button span {
  font-size: 0.68rem;
  font-weight: 900;
}

.rail-button.active {
  color: #ffffff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.section-title,
.panel-heading,
.board-header,
.budget-meta,
.receipt-item,
.check-row,
.handoff-card,
.breakdown-row,
.setting-row,
.expense-row,
.calendar-card,
.today-card,
.discover-card {
  justify-content: space-between;
  gap: 14px;
}

.section-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.text-button {
  border: 0;
  color: #0d7378;
  background: transparent;
  font-weight: 900;
}

.trip-list {
  display: grid;
  gap: 8px;
}

.trip-button {
  width: 100%;
  min-height: 82px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--brand-dark);
  background: transparent;
  text-align: left;
}

.trip-button:hover,
.trip-button[aria-current="true"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(14, 30, 46, 0.06);
}

.trip-art {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background:
    linear-gradient(135deg, rgba(61, 158, 164, 0.16), rgba(189, 119, 88, 0.18)),
    #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.trip-button strong,
.trip-button span {
  display: block;
}

.trip-button strong {
  overflow: hidden;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-button span span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.create-trip {
  min-height: 48px;
  margin-top: auto;
  border: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 16px 34px rgba(14, 30, 46, 0.18);
}

.create-trip span {
  font-size: 1.5rem;
  line-height: 1;
}

.trip-board {
  padding: 22px;
}

.label {
  margin: 0 0 6px;
  color: #0d7378;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(2.3rem, 4vw, 4.05rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: 1.48rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.route-card,
.timeline-panel,
.context-panel,
.tool-panel,
.mini-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.route-card {
  margin: 24px 0 16px;
  padding: 14px;
}

.route-map {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(61, 158, 164, 0.2), transparent 54%),
    radial-gradient(circle at 82% 24%, rgba(189, 119, 88, 0.16), transparent 18rem),
    repeating-linear-gradient(32deg, rgba(14, 30, 46, 0.06) 0 1px, transparent 1px 22px),
    #f9f1e2;
}

.route-map::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 34%;
  height: 42%;
  border-top: 3px dashed rgba(14, 30, 46, 0.55);
  border-radius: 50%;
  transform: rotate(-3deg);
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 99px;
  background: var(--clay);
  box-shadow: 0 8px 20px rgba(14, 30, 46, 0.18);
}

.map-pin.active {
  background: var(--brand);
  box-shadow: 0 0 0 7px rgba(61, 158, 164, 0.18), 0 8px 20px rgba(14, 30, 46, 0.18);
}

.route-strip,
.view-tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.city-chip,
.tab-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 900;
  font-size: 0.82rem;
}

.city-chip.active,
.tab-chip.active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.74fr);
  gap: 16px;
}

.timeline-panel,
.context-panel,
.tool-panel {
  min-height: 400px;
  padding: 18px;
}

.mini-panel {
  padding: 16px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading.compact {
  margin-bottom: 14px;
}

select,
input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.82);
}

.timeline,
.notes,
.receipt-list,
.checklist,
.budget-breakdown,
.calendar-grid,
.today-stack,
.discover-grid,
.settings-list,
.expense-list,
.quick-form {
  display: grid;
  gap: 10px;
}

.timeline-item {
  position: relative;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.timeline-item.done {
  opacity: 0.66;
}

.timeline-item.done .stop-content strong {
  text-decoration: line-through;
}

.time {
  width: 58px;
  color: var(--clay);
  font-weight: 900;
}

.stop-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #0d7378;
  background: var(--tea);
  font-size: 0.95rem;
  font-weight: 900;
}

.stop-content {
  flex: 1;
}

.stop-content strong,
.stop-content span {
  display: block;
}

.stop-content span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.done-button {
  min-width: 72px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brand-dark);
  background: #ffffff;
  font-weight: 900;
}

.add-stop-form,
.quick-form {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.add-stop-form {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.add-stop-form:not([hidden]) {
  display: grid;
}

.quick-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.add-stop-form input,
.add-stop-form select,
.quick-form input,
.quick-form select {
  width: 100%;
}

.note-line {
  display: flex;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.note-line span {
  color: #0d7378;
}

.handoff-card {
  align-items: flex-start;
  margin-top: 18px;
  border: 1px solid rgba(61, 158, 164, 0.22);
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(135deg, rgba(223, 242, 239, 0.86), rgba(255, 255, 255, 0.72));
}

.handoff-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.insights {
  display: grid;
  align-content: start;
  gap: 14px;
}

.insight-panel,
.sync-panel {
  padding: 16px;
}

.budget-track {
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(14, 30, 46, 0.09);
}

.budget-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--clay));
  transition: width 280ms ease;
}

.budget-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.budget-breakdown {
  margin-top: 14px;
}

.breakdown-row {
  color: var(--muted);
  font-size: 0.84rem;
}

.breakdown-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breakdown-row i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--brand);
}

.upload-zone {
  width: 100%;
  min-height: 82px;
  border: 1px dashed rgba(61, 158, 164, 0.58);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  gap: 6px;
  color: #0d7378;
  background: rgba(223, 242, 239, 0.5);
  font-weight: 900;
}

.receipt-list,
.checklist {
  margin-top: 12px;
}

.receipt-item,
.check-row,
.expense-row,
.setting-row,
.calendar-card,
.today-card,
.discover-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

.expense-row,
.calendar-card,
.today-card,
.discover-card {
  align-items: flex-start;
}

.expense-row strong,
.calendar-card strong,
.today-card strong,
.discover-card strong {
  display: block;
}

.expense-row span,
.calendar-card span,
.today-card span,
.discover-card span,
.setting-row span {
  color: var(--muted);
  font-weight: 800;
}

.check-row {
  justify-content: flex-start;
}

.check-row input {
  min-height: auto;
}

.check-row.done span {
  color: var(--muted);
  text-decoration: line-through;
}

.sync-panel {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(61, 158, 164, 0.92), rgba(14, 30, 46, 0.97)),
    var(--brand-dark);
}

.sync-panel .label,
.sync-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.sync-panel h2 {
  margin-bottom: 10px;
  color: #ffffff;
}

.calendar-grid,
.discover-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.view-table th,
.view-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px;
  text-align: left;
}

.view-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  font-weight: 800;
}

@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: 190px 1fr;
  }

  .search {
    order: 3;
    grid-column: 1 / -1;
  }

  .workspace {
    grid-template-columns: 78px 220px minmax(0, 1fr);
  }

  .insights {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 0;
  }

  .sync-panel h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 980px) {
  .landing-nav {
    grid-template-columns: 1fr auto;
  }

  .landing-links {
    display: none;
  }

  .hero,
  .feature-band,
  .sync-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .phone-frame {
    min-height: 520px;
  }
}

@media (max-width: 900px) {
  .landing-shell,
  .app-shell {
    width: min(100% - 18px, 690px);
  }

  .topbar,
  .workspace,
  .board-grid,
  .insights,
  .quick-form,
  .calendar-grid,
  .discover-grid {
    grid-template-columns: 1fr;
  }

  .rail {
    min-height: 0;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: start;
    overflow-x: auto;
  }

  .rail-button {
    width: 70px;
  }

  .top-actions {
    justify-content: space-between;
  }

  .sidebar,
  .trip-board,
  .insights {
    min-height: 0;
  }

  .board-header,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .button {
    flex: 1;
  }

  .create-trip {
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(4rem, 24vw, 6.2rem);
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.15rem);
  }

  h2 {
    font-size: 1.28rem;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .sync-pill {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .trip-board,
  .sidebar,
  .insight-panel,
  .sync-panel {
    padding: 14px;
  }

  .route-map {
    min-height: 144px;
  }

  .add-stop-form:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .trip-button {
    min-height: 74px;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 54px 34px minmax(0, 1fr);
  }

  .done-button {
    grid-column: 1 / -1;
  }

  .phone-frame {
    min-height: 470px;
    padding: 18px;
  }
}

/* Voyva landing refresh: photo-first, glass panels, and visible login feedback. */
.landing-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0e1e2e;
}

.landing-shell::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(14, 30, 46, 0.78), rgba(14, 30, 46, 0.28) 50%, rgba(14, 30, 46, 0.82)),
    linear-gradient(180deg, rgba(14, 30, 46, 0.1), rgba(14, 30, 46, 0.92)),
    url("https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?auto=format&fit=crop&w=2400&q=82") center/cover no-repeat;
}

.landing-shell::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(61, 158, 164, 0.28), transparent 34%),
    linear-gradient(180deg, transparent 0 76vh, #f5f0ec 76vh 100%);
}

.landing-shell .landing-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(245, 240, 236, 0.78);
  box-shadow: 0 18px 50px rgba(14, 30, 46, 0.18);
  backdrop-filter: blur(22px);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(14, 30, 46, 0.22);
}

.brand-mark {
  display: none;
}

.landing-shell .hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 128px 0 88px;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
}

.landing-shell .hero-copy,
.journey-preview .floating-card,
.landing-shell .feature-band article,
.landing-shell .sync-band,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(245, 240, 236, 0.72);
  box-shadow: 0 24px 72px rgba(14, 30, 46, 0.24);
  backdrop-filter: blur(28px);
}

.landing-shell .hero-copy {
  max-width: 760px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 32px;
  color: #ffffff;
  background: rgba(14, 30, 46, 0.48);
}

.landing-shell .hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(4.4rem, 12vw, 9.4rem);
  line-height: 0.82;
  text-shadow: 0 18px 62px rgba(0, 0, 0, 0.34);
}

.landing-shell .hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.landing-shell .login-hint {
  width: fit-content;
  margin-top: 18px;
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(14, 30, 46, 0.34);
}

.journey-preview {
  position: relative;
  min-height: 560px;
}

.journey-preview .floating-card {
  position: absolute;
  border-radius: 30px;
  color: var(--brand-dark);
}

.itinerary-card {
  top: 42px;
  right: 10px;
  left: 22px;
  padding: 28px;
}

.itinerary-card span,
.today-card-preview span,
.budget-card-preview span {
  display: block;
  margin-bottom: 8px;
  color: rgba(14, 30, 46, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.itinerary-card strong,
.today-card-preview strong,
.budget-card-preview strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric-row span {
  margin: 0;
  border-radius: 20px;
  padding: 14px;
  color: rgba(14, 30, 46, 0.72);
  background: rgba(255, 255, 255, 0.58);
  text-transform: none;
  letter-spacing: 0;
}

.metric-row strong {
  color: var(--brand);
  font-size: 2.4rem;
}

.today-card-preview {
  right: 76px;
  bottom: 116px;
  width: min(290px, 72%);
  padding: 24px;
  transform: rotate(-2deg);
}

.today-card-preview p {
  margin: 16px 0 0;
  color: rgba(14, 30, 46, 0.68);
  line-height: 1.8;
}

.budget-card-preview {
  right: 0;
  bottom: 24px;
  width: min(240px, 64%);
  padding: 22px;
  background: rgba(14, 30, 46, 0.72) !important;
  color: #ffffff !important;
  transform: rotate(3deg);
}

.budget-card-preview span {
  color: rgba(255, 255, 255, 0.6);
}

.mini-progress {
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.mini-progress i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d9ea4, #c8a264);
}

.landing-shell .feature-band,
.landing-shell .sync-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 42px;
}

.landing-shell .feature-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 18px;
}

.landing-shell .feature-band article {
  min-height: 220px;
  border-radius: 26px;
}

.landing-shell .feature-band code {
  border-radius: 8px;
  padding: 2px 6px;
  background: rgba(61, 158, 164, 0.13);
  color: var(--brand-dark);
  font-weight: 900;
}

.landing-shell .sync-band {
  border-radius: 30px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(14, 30, 46, 0.92), rgba(61, 158, 164, 0.82)),
    rgba(14, 30, 46, 0.88);
}

.landing-shell .sync-band h2,
.landing-shell .sync-band p,
.landing-shell .sync-band .label {
  color: #ffffff;
}

.auth-modal {
  z-index: 60;
  background: rgba(14, 30, 46, 0.46);
  backdrop-filter: blur(12px);
}

.auth-modal:not([hidden]) .auth-card {
  animation: modalRise 220ms ease-out both;
}

body[data-modal="login"] .landing-shell .landing-nav {
  transform: translateX(-50%) translateY(-4px);
}

.button.is-busy {
  transform: translateY(1px) scale(0.98);
  opacity: 0.82;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100% - 44px));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 14px 18px;
  color: #ffffff;
  background: rgba(14, 30, 46, 0.88);
  box-shadow: 0 20px 52px rgba(14, 30, 46, 0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .landing-shell .landing-nav {
    position: sticky;
    top: 10px;
    transform: none;
    width: min(100% - 20px, 720px);
    margin: 10px auto 0;
  }

  body[data-modal="login"] .landing-shell .landing-nav {
    transform: none;
  }

  .landing-shell .hero {
    min-height: auto;
    padding: 34px 0 68px;
    grid-template-columns: 1fr;
  }

  .journey-preview {
    min-height: 430px;
  }

  .landing-shell .feature-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .landing-shell::after {
    background:
      radial-gradient(circle at 20% 16%, rgba(61, 158, 164, 0.22), transparent 40%),
      linear-gradient(180deg, transparent 0 68vh, #f5f0ec 68vh 100%);
  }

  .landing-shell .hero {
    width: min(100% - 20px, 560px);
    padding-top: 22px;
  }

  .landing-shell .hero-copy {
    padding: 26px;
    border-radius: 26px;
  }

  .landing-shell .hero h1 {
    font-size: clamp(4.1rem, 24vw, 6.2rem);
  }

  .landing-shell .hero-actions .button {
    min-width: 100%;
  }

  .journey-preview {
    min-height: 480px;
  }

  .itinerary-card {
    top: 0;
    right: 0;
    left: 0;
  }

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

  .today-card-preview {
    right: 42px;
    bottom: 84px;
  }

  .budget-card-preview {
    right: 8px;
    bottom: 0;
  }

  .landing-shell .feature-band,
  .landing-shell .sync-band {
    width: min(100% - 20px, 560px);
    grid-template-columns: 1fr;
  }
}
