@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@500;600;700&display=swap');@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.invisible{visibility:hidden}.visible{visibility:visible}.fixed{position:fixed}.static{position:static}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.lowercase{text-transform:lowercase}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}:root {
  --blue: #1a73e8;
  --blue-dark: #1765cc;
  --text: #202124;
  --text-secondary: #5f6368;
  --border: #dadce0;
  --surface: #ffffff;
  --hover: #f1f3f4;
  --green: #0f9d58;
  --red: #ea4335;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  font-family:
    Gudea,
    Roboto,
    Arial,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: var(--text);
}
#map {
  position: fixed;
  inset: 0;
}
body:not(.map-open) #map,
body:not(.map-open) #search-card,
body:not(.map-open) #maptype-toggle,
body:not(.map-open) #trips-toggle,
body:not(.map-open) #trips-panel,
body:not(.map-open) #maneuver-banner,
body:not(.map-open) #journey-sheet,
body:not(.map-open) #resume-prompt,
body:not(.map-open) #add-place-banner,
body:not(.map-open) #shape-draw-toggle,
body:not(.map-open) #shape-draw-banner,
body:not(.map-open) #new-shape-card,
body:not(.map-open) #user-bar,
body:not(.map-open) #logout-modal,
body:not(.map-open) #category-delete-modal,
body:not(.map-open) #admin-panel {
  visibility: hidden;
  pointer-events: none;
}
body.map-open #map,
body.map-open #search-card,
body.map-open #maptype-toggle,
body.map-open #trips-toggle,
body.map-open #trips-panel,
body.map-open #maneuver-banner,
body.map-open #journey-sheet,
body.map-open #resume-prompt,
body.map-open #add-place-banner,
body.map-open #shape-draw-toggle,
body.map-open #shape-draw-banner,
body.map-open #new-shape-card,
body.map-open #user-bar,
body.map-open #logout-modal,
body.map-open #category-delete-modal,
body.map-open #admin-panel {
  visibility: visible;
}
body.auth-required #search-card,
body.auth-required #maptype-toggle,
body.auth-required #trips-toggle,
body.auth-required #trips-panel,
body.auth-required #maneuver-banner,
body.auth-required #journey-sheet,
body.auth-required #resume-prompt,
body.auth-required #add-place-banner,
body.auth-required #shape-draw-toggle,
body.auth-required #shape-draw-banner,
body.auth-required #new-shape-card,
body.auth-required #user-bar,
body.auth-required #logout-modal,
body.auth-required #category-delete-modal,
body.auth-required #admin-panel {
  visibility: hidden;
  pointer-events: none;
}
button,
input,
textarea,
select {
  font-family: inherit;
}

/* ---------- Auth + admin ---------- */
#login-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(14, 77, 59, 0.95), rgba(16, 42, 36, 0.87)),
    url('/image1.png') center / cover;
}
#login-gate.visible {
  display: flex;
}
.auth-card {
  width: 430px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  padding: 30px;
}
.auth-brand {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-card h1 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
}
.auth-card label {
  display: block;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}
.auth-card input {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.auth-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}
.auth-card input::placeholder {
  color: #9aa0a6;
}
.auth-error {
  min-height: 20px;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 13px;
}
#login-submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 16px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
#login-submit:hover {
  background: var(--blue-dark);
  box-shadow: 0 10px 22px rgba(26, 115, 232, 0.24);
  transform: translateY(-1px);
}
#login-submit:disabled {
  background: #9aa0a6;
  cursor: default;
}

#user-bar {
  position: absolute;
  top: 12px;
  right: 60px;
  z-index: 11;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 460px);
  background: var(--surface);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  padding: 4px 6px 4px 12px;
}
#user-bar.visible {
  display: flex;
}
#user-name {
  max-width: 240px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#user-bar button,
#admin-check-api,
#admin-refresh-gaps,
.admin-form button {
  border: none;
  border-radius: 16px;
  background: #e8f0fe;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
}
#logout-btn {
  background: var(--hover);
  color: var(--text-secondary);
}

#logout-modal,
#category-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 42, 36, 0.52);
}
#logout-modal.visible,
#category-delete-modal.visible {
  display: flex;
}
.logout-dialog {
  width: 360px;
  max-width: 100%;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.logout-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: #fce8e6;
  color: #c5221f;
}
.logout-icon svg {
  width: 24px;
  height: 24px;
}
.logout-dialog h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}
.logout-dialog p {
  margin: 10px 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}
.logout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
#logout-cancel,
#logout-confirm,
#category-delete-cancel,
#category-delete-confirm {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
}
#logout-cancel,
#category-delete-cancel {
  background: var(--hover);
  color: var(--text-secondary);
}
#logout-confirm,
#category-delete-confirm {
  background: #c5221f;
  color: #fff;
}
#logout-confirm:disabled,
#category-delete-confirm:disabled {
  background: #9aa0a6;
  cursor: default;
}

#admin-panel {
  position: absolute;
  top: 62px;
  right: 12px;
  z-index: 30;
  display: none;
  width: 420px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 86px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(60, 64, 67, 0.32);
}
#admin-panel.visible {
  display: block;
}
.admin-header,
.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-header {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 12px 12px 16px;
}
.admin-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-title {
  font-size: 18px;
  font-weight: 700;
}
#admin-status {
  min-height: 18px;
  padding: 10px 16px 0;
  color: var(--green);
  font-size: 13px;
}
#admin-status.error {
  color: var(--red);
}
.admin-section {
  padding: 14px 16px 18px;
  border-bottom: 1px solid var(--border);
}
.admin-section h2 {
  margin: 0 0 10px;
  font-size: 15px;
}
.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-form input,
.admin-inline input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 9px;
  font-size: 13px;
  outline: none;
}
.admin-form input:focus,
.admin-inline input:focus {
  border-color: var(--blue);
}
.admin-form input:nth-child(3) {
  grid-column: span 2;
}
.admin-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.admin-list:empty {
  display: none;
}
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.admin-row:last-child {
  border-bottom: none;
}
.admin-row-body {
  min-width: 0;
}
.admin-row-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-row-meta {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
}
.admin-danger {
  border: none;
  border-radius: 14px;
  background: #fce8e6;
  color: #c5221f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}
.admin-inline {
  display: flex;
  gap: 8px;
}
.admin-inline input {
  width: 70px;
}
.admin-empty {
  padding: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}
/* ---------- Search pill ---------- */
#search-card {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 380px;
  max-width: calc(100% - 24px);
  z-index: 10;
}
.surface-row {
  background: var(--surface);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 48px;
}
#search-card .surface-row {
  border-radius: 24px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--hover);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

#search-input,
.directions-input input {
  border: none;
  outline: none;
  font-size: 15px;
  flex: 1;
  background: transparent;
  color: var(--text);
  min-width: 0;
  padding: 0 4px;
}
#search-input::placeholder,
.directions-input input::placeholder {
  color: var(--text-secondary);
}

/* ---------- Dropdown / autocomplete ---------- */
.dropdown {
  background: var(--surface);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  margin-top: 8px;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.dropdown:empty {
  display: none;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f1f3f4;
}
.dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-item:hover {
  background: var(--hover);
}
.dropdown-item .pin {
  color: var(--text-secondary);
  flex-shrink: 0;
}
.dropdown-item .pin[data-kind='saved'] {
  color: #0e4d3b;
}
.dropdown-item .pin[data-kind='food'] {
  color: #c45d27;
}
.dropdown-item .pin[data-kind='transport'] {
  color: var(--blue);
}
.dropdown-item .pin[data-kind='building'] {
  color: #6f5bd6;
}
.dropdown-item .pin[data-kind='nature'] {
  color: var(--green);
}
.dropdown-item .pin[data-kind='recent'] {
  color: #7b8190;
}
.dropdown-item .label {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-item.muted {
  color: var(--text-secondary);
  cursor: default;
}
.dropdown-item.muted:hover {
  background: none;
}
.dropdown-item.add-new {
  color: var(--blue);
  font-weight: 500;
}
.dropdown-item.add-new .pin {
  color: var(--blue);
}

/* ---------- Add-place banner + form ---------- */
#add-place-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: var(--text);
  color: #fff;
  border-radius: 20px;
  padding: 10px 10px 10px 18px;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
#add-place-banner.visible {
  display: flex;
}
#add-place-banner button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#add-place-banner button svg {
  width: 14px;
  height: 14px;
}

#new-place-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  margin-top: 8px;
  padding: 14px;
  display: none;
}
#new-place-card.visible {
  display: block;
}
#new-place-card .label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
#new-place-card input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
}
#new-place-card input:focus {
  border-color: var(--blue);
}
#new-place-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}
#new-place-card .actions button {
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
#new-place-card .save-btn {
  background: var(--blue);
  color: #fff;
}
#new-place-card .save-btn:hover {
  background: var(--blue-dark);
}
#new-place-card .save-btn:disabled {
  background: #9aa0a6;
  cursor: default;
}
#new-place-card .cancel-btn {
  background: transparent;
  color: var(--text-secondary);
}
#new-place-card .cancel-btn:hover {
  background: var(--hover);
}
#new-place-category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.category-chip {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.category-chip:hover {
  background: var(--hover);
}
.category-chip.active {
  background: #e8f0fe;
  color: var(--blue);
  border-color: #e8f0fe;
}

/* ---------- Place card ---------- */
#place-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  margin-top: 8px;
  padding: 14px;
  display: none;
}
#place-card.visible {
  display: block;
}
#place-card .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
#place-card .name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
#place-card .directions-btn {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
#place-card .directions-btn:hover {
  background: var(--blue-dark);
}
#place-card .directions-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ---------- Directions panel ---------- */
#directions-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  display: none;
  overflow: visible;
}
#directions-card.visible {
  display: block;
}

.directions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 4px 12px;
}
.directions-header .title {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
}

.directions-inputs {
  padding: 4px 12px 8px;
  position: relative;
}
.directions-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding: 8px 4px;
}
.directions-input .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.directions-input .dot.start {
  background: var(--green);
}
.directions-input .dot.end {
  background: var(--red);
  border-radius: 2px;
  transform: rotate(45deg);
}

.swap-btn {
  position: absolute;
  right: 14px;
  top: 44px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  z-index: 2;
}
.swap-btn:hover {
  background: var(--hover);
}
.swap-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- trips history ---------- */
#trips-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 11;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  cursor: pointer;
}
#trips-toggle:hover {
  background: var(--hover);
}
#trips-toggle svg {
  width: 20px;
  height: 20px;
}

#trips-panel {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 13;
  width: 340px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  background: var(--surface);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 2px 6px 2px rgba(60, 64, 67, 0.15);
  overflow: hidden;
  flex-direction: column;
}
#trips-panel.visible {
  display: flex;
}
.trips-header {
  display: flex;
  align-items: center;
  padding: 10px 8px 10px 16px;
  border-bottom: 1px solid var(--border);
}
.trips-title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}
#trips-list {
  overflow-y: auto;
}

.trip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.trip-row:hover {
  background: var(--hover);
}
.trip-row:last-child {
  border-bottom: none;
}
.trip-mode {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.trip-body {
  flex: 1;
  min-width: 0;
}
.trip-ends {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trip-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.trip-meta .abandoned {
  color: #c5221f;
}
.trip-delete {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.trip-delete:hover {
  background: var(--border);
}
.trip-delete svg {
  width: 16px;
  height: 16px;
  display: block;
}
.trips-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- dev-only simulation panel (?dev=1) ---------- */
#sim-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 210px;
  background: rgba(32, 33, 36, 0.92);
  color: #e8eaed;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.sim-title {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 8px;
}
.sim-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.sim-row button {
  flex: 1;
  padding: 5px 8px;
  cursor: pointer;
  border: 1px solid #5f6368;
  border-radius: 4px;
  background: #3c4043;
  color: #e8eaed;
  font: inherit;
}
.sim-row button:hover {
  background: #494c50;
}
.sim-row input[type='range'] {
  flex: 1;
  min-width: 0;
}

/* ---------- live journey HUD ---------- */
#start-journey {
  display: none;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
#start-journey:hover {
  background: var(--blue-dark);
}
#start-journey.visible {
  display: block;
}

#maneuver-banner {
  display: none;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  min-width: 280px;
  max-width: calc(100% - 24px);
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.4);
  padding: 12px 16px;
  align-items: center;
  gap: 14px;
}
#maneuver-banner.visible {
  display: flex;
}
#maneuver-banner.off-route {
  background: var(--red);
}
.maneuver-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.maneuver-distance {
  font-size: 19px;
  font-weight: 500;
}
.maneuver-road {
  font-size: 13px;
  opacity: 0.9;
}

#journey-sheet {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 12;
  background: var(--surface);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -1px 3px rgba(60, 64, 67, 0.3);
  padding: 14px 16px 16px;
}
#journey-sheet.visible {
  display: block;
}
.journey-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.journey-eta {
  font-size: 24px;
  font-weight: 500;
  color: var(--green);
}
.journey-sub {
  font-size: 14px;
  color: var(--text-secondary);
}
.journey-progress {
  height: 4px;
  margin: 10px 0 12px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.journey-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.4s ease;
}
.journey-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.journey-flag {
  flex: 1;
  font-size: 12px;
  color: var(--text-secondary);
}
#journey-stop {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
#journey-stop:hover {
  background: var(--hover);
}

#resume-prompt {
  display: none;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
  width: 360px;
  max-width: calc(100% - 24px);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.4);
  padding: 14px 16px;
}
#resume-prompt.visible {
  display: block;
}
.resume-text {
  font-size: 14px;
  margin-bottom: 12px;
}
.resume-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.resume-actions button {
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: var(--blue);
  color: #fff;
}
.resume-actions button.ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ---------- use-my-location + geo status ---------- */
#use-my-location {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 24px);
  margin: 0 12px 4px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
}
#use-my-location:hover {
  background: var(--hover);
}
#use-my-location:disabled {
  color: var(--text-secondary);
  cursor: default;
}
#use-my-location svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#geo-status {
  display: none;
  margin: 0 12px 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 6px;
  background: var(--hover);
  color: var(--text-secondary);
}
#geo-status.error {
  background: #fce8e6;
  color: #c5221f;
}

.mode-tabs {
  display: flex;
  gap: 4px;
  padding: 4px 12px 10px;
}
.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.mode-tab:hover {
  background: var(--hover);
}
.mode-tab.active {
  background: #e8f0fe;
  color: var(--blue);
}
.mode-tab svg {
  width: 18px;
  height: 18px;
}

#route-summary {
  margin: 0 12px 12px;
  padding: 12px;
  background: var(--hover);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
#route-summary .big {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}
#route-summary .distance {
  font-size: 13px;
}

/* ---------- Map type control ---------- */
#maptype-toggle {
  position: absolute;
  bottom: 24px;
  left: 12px;
  z-index: 10;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  color: var(--text);
}
#maptype-toggle:hover {
  background: var(--hover);
}

/* ---------- Rwanda Map visual system refresh ---------- */
body.map-open {
  --blue: #0878f9;
  --blue-dark: #0567dc;
  --green: #0a9b70;
  --text: #0a211b;
  --text-secondary: #61716b;
  --border: #dce5df;
  --surface: rgba(255, 255, 255, 0.94);
  --hover: #edf4ef;
  font-family: 'DM Sans', Gudea, sans-serif;
}

body.map-open button:focus-visible,
body.map-open input:focus-visible,
body.map-open [role='button']:focus-visible {
  outline: 3px solid rgba(8, 120, 249, 0.28);
  outline-offset: 2px;
}

body.map-open .surface-row,
body.map-open .dropdown,
body.map-open #place-card,
body.map-open #new-place-card,
body.map-open #directions-card,
body.map-open #trips-panel,
body.map-open #admin-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  box-shadow:
    0 18px 55px rgba(10, 33, 27, 0.16),
    0 2px 8px rgba(10, 33, 27, 0.08);
  backdrop-filter: blur(22px) saturate(1.15);
}

body.map-open #search-card {
  top: 18px;
  left: 18px;
  width: 420px;
}

body.map-open .surface-row {
  height: 58px;
  padding: 0 11px;
  border-radius: 19px;
}

body.map-open #search-card .surface-row {
  border-radius: 20px;
}

body.map-open .icon-btn {
  width: 40px;
  height: 40px;
  color: #465b54;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

body.map-open .icon-btn:hover {
  background: #e9f2ec;
  color: #083f31;
  transform: scale(1.04);
}

body.map-open #search-input,
body.map-open .directions-input input {
  font-size: 16px;
  font-weight: 500;
}

body.map-open .dropdown,
body.map-open #place-card,
body.map-open #new-place-card {
  margin-top: 10px;
  border-radius: 18px;
}

body.map-open .dropdown-item {
  min-height: 52px;
  padding: 12px 16px;
  border-bottom-color: #edf1ee;
  font-size: 14px;
  transition:
    background 160ms ease,
    padding-left 160ms ease;
}

body.map-open .dropdown-item:hover {
  padding-left: 19px;
  background: #eef5f0;
}

body.map-open #directions-card {
  overflow: hidden;
  border-radius: 22px;
}

body.map-open .directions-header {
  min-height: 58px;
  padding: 9px 10px 6px 14px;
  border-bottom: 1px solid #edf1ee;
}

body.map-open .directions-header .title {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.map-open .directions-inputs {
  padding: 10px 17px 10px;
}

body.map-open .directions-input {
  min-height: 52px;
  padding: 9px 6px;
  border-bottom-color: #e6ede8;
}

body.map-open .mode-tabs {
  gap: 7px;
  padding: 8px 14px 4px;
}

body.map-open .mode-tab {
  border-radius: 13px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

body.map-open .mode-tab.active {
  background: #082a21;
  color: #d9ff57;
}

body.map-open #start-journey,
body.map-open #place-card .directions-btn,
body.map-open #login-submit {
  border-radius: 15px;
  background: #082a21;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(8, 42, 33, 0.18);
}

body.map-open #start-journey:hover,
body.map-open #place-card .directions-btn:hover,
body.map-open #login-submit:hover {
  background: #0d4c3b;
  transform: translateY(-1px);
}

body.map-open #trips-toggle,
body.map-open #maptype-toggle,
body.map-open .maplibregl-ctrl-group {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(10, 33, 27, 0.16);
  backdrop-filter: blur(18px);
}

body.map-open #trips-toggle {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #0b4f3d;
}

body.map-open #maptype-toggle {
  left: 18px;
  bottom: 18px;
  padding: 9px 15px;
  border-radius: 13px;
  color: #15382e;
  font-weight: 700;
}

body.map-open #user-bar {
  top: 18px;
  right: 76px;
  min-height: 46px;
  padding: 5px 7px 5px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: rgba(6, 24, 19, 0.9);
  box-shadow: 0 14px 35px rgba(6, 24, 19, 0.24);
  backdrop-filter: blur(18px);
}

body.map-open #user-name {
  color: rgba(255, 255, 255, 0.76);
}
body.map-open #user-bar button {
  background: rgba(255, 255, 255, 0.1);
  color: #d9ff57;
}

body.map-open #maneuver-banner {
  top: 18px;
  border-radius: 18px;
  background: #0878f9;
  box-shadow: 0 18px 45px rgba(8, 120, 249, 0.28);
}

body.map-open #journey-sheet {
  left: 50%;
  right: auto;
  bottom: 18px;
  width: min(620px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 55px rgba(10, 33, 27, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
}

body.map-open .auth-card {
  border-radius: 26px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
}

@media (max-width: 680px) {
  body.map-open #search-card {
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
  }

  body.map-open #user-bar {
    top: auto;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 98px);
  }

  body.map-open #trips-toggle {
    top: auto;
    right: 12px;
    bottom: 69px;
  }

  body.map-open #maptype-toggle {
    left: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.map-open *,
  body.map-open *::before,
  body.map-open *::after {
    scroll-behavior: auto !important;
  }
}

/* ---------- draw a shape (operator) ---------- */
/* Drawing roads and zones is admin-only on the server; everyone else would only
   reach an error, so the controls are not offered. */
body:not(.can-edit-map) #shape-draw-toggle {
  display: none;
}
#shape-draw-toggle {
  position: absolute;
  bottom: 60px;
  left: 12px;
  z-index: 10;
  display: flex;
  gap: 4px;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  padding: 4px;
}
#shape-draw-toggle button {
  background: none;
  border: none;
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
#shape-draw-toggle button:hover {
  background: var(--hover);
}

#shape-draw-banner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: var(--text);
  color: #fff;
  border-radius: 20px;
  padding: 8px 8px 8px 16px;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 10px;
}
#shape-draw-banner.visible {
  display: flex;
}
#shape-point-count {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 1px 8px;
  font-variant-numeric: tabular-nums;
}
#shape-draw-banner button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
}
#shape-draw-banner button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#shape-cancel-btn {
  border-radius: 50% !important;
  width: 26px;
  padding: 0 !important;
  height: 26px;
}

#new-shape-card {
  position: absolute;
  top: 74px;
  left: 12px;
  width: 280px;
  z-index: 20;
  background: var(--surface);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  padding: 14px;
  display: none;
}
#new-shape-card.visible {
  display: block;
}
#new-shape-card input[type='text'] {
  width: 100%;
  margin: 6px 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}
#new-shape-card .shape-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
#new-shape-card .shape-color-row input {
  width: 40px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
}
#new-shape-coords {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
#new-shape-coords summary {
  cursor: pointer;
}
#new-shape-coords-text {
  width: 100%;
  margin-top: 6px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  resize: vertical;
}
#new-shape-copy-btn {
  margin-top: 4px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  font-size: 12px;
  cursor: pointer;
}
#new-shape-card .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
#new-shape-card .actions button {
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#new-shape-card .cancel-btn {
  background: var(--hover);
  color: var(--text);
}
#new-shape-card .save-btn {
  background: var(--blue);
  color: #fff;
}
/* The "Get an API key" page. Sits inside .developer-docs__article, so it inherits
   the guide's type scale, tokens (--docs-*) and heading styles. */

.developer-keys__panel {
  margin: 26px 0 34px;
  padding: 24px;
  border: 1px solid var(--docs-line);
  border-radius: 16px;
  background: #fff;
}

.developer-keys__panel > p:last-of-type {
  margin-bottom: 18px;
}

.developer-keys__switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid var(--docs-line);
  border-radius: 999px;
  background: var(--docs-paper);
}

.developer-keys__switch button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #29473d;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.developer-keys__switch button[aria-pressed='true'] {
  background: var(--docs-forest);
  color: #fff;
}

.developer-keys__form {
  display: grid;
  gap: 18px;
}

.developer-keys__form.is-inline {
  margin-top: 14px;
}

.developer-keys__form label {
  display: grid;
  gap: 7px;
  color: #0b261e;
  font-size: 0.92rem;
  font-weight: 600;
}

.developer-keys__form input:not([type='radio']):not([type='checkbox']),
.developer-keys__form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #c9d5cd;
  border-radius: 10px;
  background: #fff;
  color: #0b261e;
  font: inherit;
  font-weight: 400;
}

.developer-keys__form textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  resize: vertical;
}

.developer-keys__form input:focus-visible,
.developer-keys__form textarea:focus-visible,
.developer-keys__key input:focus-visible {
  border-color: var(--docs-forest);
  outline: 3px solid rgb(12 78 61 / 18%);
}

.developer-keys__form small,
.developer-keys__choice small {
  color: #5a7168;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
}

.developer-keys__choice {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.developer-keys__choice legend {
  margin-bottom: 8px;
  color: #0b261e;
  font-size: 0.92rem;
  font-weight: 600;
}

.developer-keys__choice label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--docs-line);
  border-radius: 12px;
  cursor: pointer;
}

.developer-keys__choice label:has(input:checked) {
  border-color: var(--docs-forest);
  background: #f1f7f2;
}

.developer-keys__choice input {
  margin-top: 4px;
  accent-color: var(--docs-forest);
}

.developer-keys__choice span {
  display: grid;
  gap: 3px;
}

.developer-keys__primary,
.developer-keys__secondary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
}

.developer-keys__primary {
  border: 1px solid var(--docs-forest);
  background: var(--docs-forest);
  color: #fff;
}

.developer-keys__primary:hover {
  background: #093b2e;
}

.developer-keys__secondary {
  border: 1px solid #c9d5cd;
  background: #fff;
  color: var(--docs-forest);
}

.developer-keys__secondary:hover {
  border-color: var(--docs-forest);
}

.developer-keys__secondary.is-danger {
  color: #b3261e;
}

.developer-keys__secondary.is-danger:hover {
  border-color: #b3261e;
}

.developer-keys__primary:disabled,
.developer-keys__secondary:disabled {
  cursor: progress;
  opacity: 0.6;
}

.developer-keys__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: #086d52;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(8 109 82 / 36%);
  text-underline-offset: 3px;
}

.developer-keys__muted {
  color: #5a7168;
  font-size: 0.9rem;
}

.developer-docs__article .developer-keys__error {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #f1c4bf;
  border-radius: 10px;
  background: #fdf1ef;
  color: #8c1d15;
  font-size: 0.9rem;
}

.developer-keys__account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 8px;
  padding: 14px 18px;
  border: 1px solid var(--docs-line);
  border-radius: 14px;
  background: #fff;
  font-size: 0.93rem;
}

.developer-keys__new {
  margin: 26px 0 10px;
  padding: 24px;
  border: 1px solid rgb(12 78 61 / 28%);
  border-radius: 16px;
  background: #f2fbdc;
  scroll-margin-top: 96px;
}

/* Scoped under the article: the guide's own h2, ul and p rules are as specific
   as these and load later, so an unscoped override would lose. */
.developer-docs__article .developer-keys__new h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.developer-keys__new .developer-docs__code {
  margin: 14px 0;
}

.developer-keys__key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.developer-keys__key input {
  min-width: 0;
  flex: 1 1 320px;
  padding: 12px 14px;
  border: 1px solid #b9cbbf;
  border-radius: 10px;
  background: #fff;
  color: #0b261e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.developer-docs__article .developer-keys__key p {
  flex-basis: 100%;
  margin: 0;
}

.developer-keys__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 16px;
}

.developer-docs__article .developer-keys__list {
  display: grid;
  gap: 14px;
  margin: 20px 0 10px;
  padding: 0;
  list-style: none;
}

.developer-keys__item {
  padding: 18px 20px;
  border: 1px solid var(--docs-line);
  border-radius: 14px;
  background: #fff;
}

.developer-keys__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.developer-keys__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #e5efe8;
  color: #1d4a3c;
  font-size: 0.75rem;
  font-weight: 700;
}

.developer-keys__badge.is-test {
  background: #fff3cf;
  color: #7a5700;
}

.developer-keys__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 18px;
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.developer-keys__facts dt {
  color: #5a7168;
}

.developer-keys__facts dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Unrestricted keys work anywhere; Google flags them the same way. */
.developer-keys__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.developer-keys__badge.is-warning {
  background: #fdecc8;
  color: #7a4b00;
}

.developer-keys__item.is-unrestricted {
  border-color: #efcf8a;
}

.developer-keys__warning-text {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: #7a4b00;
}

.developer-keys__warning-text svg {
  flex: none;
  margin-top: 3px;
}

.developer-keys__choice label.is-warning:has(input:checked) {
  border-color: #d9a441;
  background: #fff8e6;
}

.developer-keys__masked {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.developer-keys__shown {
  display: grid;
  width: 100%;
  gap: 4px;
}

.developer-keys__shown .developer-keys__key {
  margin: 0;
}

.developer-docs__article .developer-keys__masked .developer-keys__error {
  padding: 4px 8px;
}

.developer-keys__services {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.developer-keys__services legend {
  margin-bottom: 8px;
  color: #0b261e;
  font-size: 0.92rem;
  font-weight: 600;
}

.developer-keys__form .developer-keys__services label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.developer-keys__services input {
  accent-color: var(--docs-forest);
}

.developer-keys__services small {
  margin-left: 4px;
}

@media (max-width: 680px) {
  .developer-keys__panel,
  .developer-keys__new {
    padding: 18px;
  }

  .developer-keys__primary,
  .developer-keys__secondary {
    width: 100%;
  }
}


.developer-docs {
  --docs-ink: #061813;
  --docs-forest: #0c4e3d;
  --docs-lime: #d9ff57;
  --docs-paper: #f6f8f3;
  --docs-line: #dce4de;
  min-height: 100vh;
  background: var(--docs-paper);
  color: #183129;
  font-family: 'DM Sans', sans-serif;
}

.developer-docs-open {
  margin: 0;
  background: var(--docs-paper);
}

.developer-docs__topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - 1400px) / 2));
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  background: rgb(6 24 19 / 96%);
  color: #f7fbf8;
  backdrop-filter: blur(16px);
}

.developer-docs__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.developer-docs__brand > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px 11px 11px 3px;
  background: var(--docs-lime);
  color: var(--docs-ink);
}

.developer-docs__brand b {
  color: var(--docs-lime);
}

.developer-docs__top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.developer-docs__top-actions a,
.developer-docs__footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(247 251 248 / 72%);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.developer-docs__top-actions a:hover,
.developer-docs__footer a:hover {
  color: #fff;
}

.developer-docs__top-actions .developer-docs__swagger {
  padding: 10px 14px;
  border: 1px solid rgb(217 255 87 / 38%);
  border-radius: 999px;
  color: var(--docs-lime);
}

.developer-docs__top-actions .developer-docs__get-key {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--docs-lime);
  color: var(--docs-ink);
}

.developer-docs__top-actions .developer-docs__get-key:hover {
  background: #e6ff8a;
  color: var(--docs-ink);
}

.developer-docs__layout {
  display: grid;
  width: min(100% - 56px, 1400px);
  grid-template-columns: 250px minmax(0, 830px);
  justify-content: center;
  gap: 84px;
  margin: 0 auto;
  padding: 66px 0 120px;
}

.developer-docs__sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
}

.developer-docs__sidebar > p {
  margin: 0 0 18px;
  color: #6b7e76;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.developer-docs__sidebar nav {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--docs-line);
}

.developer-docs__sidebar nav a {
  padding: 7px 11px;
  border-radius: 8px;
  color: #536a61;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: 150ms ease;
}

.developer-docs__sidebar nav a:hover {
  background: #e9eee9;
  color: var(--docs-forest);
}

.developer-docs__scope-note {
  display: grid;
  gap: 4px;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid #cfdad2;
  border-radius: 16px;
  background: #eef3ed;
}

.developer-docs__scope-note span {
  color: #71837b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.developer-docs__scope-note strong {
  color: var(--docs-ink);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
}

.developer-docs__scope-note small {
  color: #65786f;
  font-size: 0.78rem;
}

.developer-docs__article {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.developer-docs__article h1,
.developer-docs__article h2,
.developer-docs__article h3 {
  color: var(--docs-ink);
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.035em;
  scroll-margin-top: 104px;
}

.developer-docs__article h1 {
  max-width: 700px;
  margin: 0 0 28px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1;
}

.developer-docs__article h1 + p {
  max-width: 720px;
  margin-bottom: 36px;
  color: #536a61;
  font-size: 1.13rem;
  line-height: 1.7;
}

.developer-docs__article h2 {
  margin: 76px 0 22px;
  padding-top: 8px;
  border-top: 1px solid var(--docs-line);
  font-size: 1.9rem;
  line-height: 1.2;
}

.developer-docs__article h3 {
  margin: 44px 0 14px;
  font-size: 1.28rem;
  line-height: 1.3;
}

.developer-docs__anchor {
  margin-left: 8px;
  color: transparent;
  font-size: 0.8em;
  text-decoration: none;
}

.developer-docs__article h2:hover .developer-docs__anchor,
.developer-docs__article h3:hover .developer-docs__anchor,
.developer-docs__anchor:focus {
  color: #7b9187;
}

.developer-docs__article p {
  margin: 0 0 18px;
}

.developer-docs__article a {
  color: #086d52;
  font-weight: 600;
  text-decoration-color: rgb(8 109 82 / 36%);
  text-underline-offset: 3px;
}

.developer-docs__article a:hover {
  text-decoration-color: currentcolor;
}

.developer-docs__article code,
.developer-docs__file-ref {
  padding: 0.15em 0.38em;
  border: 1px solid #d8e0da;
  border-radius: 6px;
  background: #e9eee9;
  color: #14513f;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86em;
}

.developer-docs__article strong {
  color: #0b261e;
  font-weight: 700;
}

.developer-docs__article ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 24px;
  padding-left: 24px;
}

.developer-docs__article li::marker {
  color: #0a8a65;
}

.developer-docs__code {
  overflow: hidden;
  margin: 22px 0 28px;
  border: 1px solid #19382f;
  border-radius: 16px;
  background: #071b15;
  box-shadow: 0 14px 38px rgb(6 24 19 / 10%);
}

.developer-docs__code-bar {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 17px;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  color: rgb(255 255 255 / 47%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.developer-docs__code-bar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgb(255 255 255 / 66%);
  cursor: pointer;
  font: inherit;
  text-transform: none;
}

.developer-docs__code-bar button:hover {
  background: rgb(255 255 255 / 8%);
  color: var(--docs-lime);
}

.developer-docs__code pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  color: #dff5e9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem;
  line-height: 1.65;
  tab-size: 2;
}

.developer-docs__code pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.developer-docs__table-wrap {
  overflow-x: auto;
  margin: 22px 0 30px;
  border: 1px solid var(--docs-line);
  border-radius: 14px;
  background: #fff;
}

.developer-docs__article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}

.developer-docs__article th,
.developer-docs__article td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--docs-line);
  text-align: left;
  vertical-align: top;
}

.developer-docs__article th {
  background: #edf2ed;
  color: #29473d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.developer-docs__article tbody tr:last-child td {
  border-bottom: 0;
}

.developer-docs__footer {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(28px, calc((100vw - 1400px) / 2));
  background: var(--docs-ink);
  color: rgb(247 251 248 / 50%);
  font-size: 0.82rem;
}

@media (max-width: 940px) {
  .developer-docs__layout {
    width: min(100% - 40px, 830px);
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 36px;
  }

  .developer-docs__sidebar {
    position: static;
    padding: 18px;
    border: 1px solid var(--docs-line);
    border-radius: 16px;
    background: #fff;
  }

  .developer-docs__sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 0;
    padding: 0;
  }

  .developer-docs__scope-note {
    display: none;
  }
}

@media (max-width: 680px) {
  .developer-docs__topbar {
    min-height: 68px;
    padding: 0 16px;
  }

  .developer-docs__top-actions > a:first-child {
    display: none;
  }

  /* Room for one pill: the key page is the one a newcomer needs. */
  .developer-docs__top-actions .developer-docs__swagger {
    display: none;
  }

  .developer-docs__top-actions .developer-docs__get-key {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .developer-docs__layout {
    width: min(100% - 28px, 830px);
    padding: 24px 0 78px;
  }

  .developer-docs__sidebar nav {
    grid-template-columns: 1fr 1fr;
  }

  .developer-docs__article {
    font-size: 1rem;
  }

  .developer-docs__article h1 {
    font-size: 2.55rem;
  }

  .developer-docs__article h1 + p {
    font-size: 1.03rem;
  }

  .developer-docs__article h2 {
    margin-top: 58px;
    font-size: 1.65rem;
  }

  .developer-docs__code {
    border-radius: 12px;
  }

  .developer-docs__code pre {
    padding: 16px;
    font-size: 0.76rem;
  }

  .developer-docs__footer {
    min-height: 110px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
  }
}

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

/* Multi-page navigation: the sidebar lists guide pages, then the sections
   of the page currently open. */
.developer-docs__sidebar nav a.is-active {
  background: #e3ebe4;
  color: var(--docs-forest);
  font-weight: 650;
}

.developer-docs__sidebar-subhead {
  margin: 26px 0 12px;
  color: #6b7e76;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.developer-docs__pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--docs-line);
}

.developer-docs__pager a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--docs-line);
  border-radius: 10px;
  color: var(--docs-forest);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: 150ms ease;
}

.developer-docs__pager a:hover {
  background: #e9eee9;
}

/* Syntax highlighting. highlight.js ships light and dark themes, but the code
   blocks here are already dark green, so the tokens are coloured against that
   palette rather than importing a theme that would repaint the background. */
.developer-docs__code pre code.hljs {
  display: block;
  overflow-x: visible;
  padding: 0;
  background: transparent;
  color: inherit;
}

.developer-docs__code .hljs-comment,
.developer-docs__code .hljs-quote {
  color: #6f8f81;
  font-style: italic;
}

.developer-docs__code .hljs-keyword,
.developer-docs__code .hljs-selector-tag,
.developer-docs__code .hljs-literal,
.developer-docs__code .hljs-type,
.developer-docs__code .hljs-built_in {
  color: var(--docs-lime);
}

.developer-docs__code .hljs-string,
.developer-docs__code .hljs-regexp,
.developer-docs__code .hljs-symbol,
.developer-docs__code .hljs-meta .hljs-string {
  color: #ffd9a0;
}

.developer-docs__code .hljs-number,
.developer-docs__code .hljs-bullet {
  color: #ffb4a2;
}

.developer-docs__code .hljs-title,
.developer-docs__code .hljs-title.function_,
.developer-docs__code .hljs-section,
.developer-docs__code .hljs-name {
  color: #a8e6ff;
}

.developer-docs__code .hljs-attr,
.developer-docs__code .hljs-attribute,
.developer-docs__code .hljs-property,
.developer-docs__code .hljs-variable,
.developer-docs__code .hljs-template-variable {
  color: #c8f7dc;
}

.developer-docs__code .hljs-meta,
.developer-docs__code .hljs-punctuation,
.developer-docs__code .hljs-operator {
  color: #8fb3a6;
}

.developer-docs__code .hljs-emphasis {
  font-style: italic;
}

.developer-docs__code .hljs-strong {
  font-weight: 700;
}
.fold-text {
  display: inline-block;
  color: var(--fold-text-color, currentColor);
  font-size: var(--fold-text-font-size, inherit);
  font-weight: var(--fold-text-font-weight, inherit);
  line-height: 0.95;
  white-space: pre-wrap;
  user-select: text;
}

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

.fold-text-visual {
  display: inline;
}

.fold-text-line {
  display: block;
}

.fold-text-whitespace {
  display: inline;
}

.fold-text-segment {
  display: inline-block;
  line-height: inherit;
  perspective: var(--fold-perspective, 700px);
  transform-style: preserve-3d;
  vertical-align: baseline;
}

.fold-text-segment[data-fold-split='line'] {
  display: block;
}

.fold-text-piece {
  position: relative;
  display: inline-block;
  color: inherit;
  line-height: inherit;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.fold-text-piece::after {
  content: '';
  position: absolute;
  inset: -0.08em -0.02em;
  pointer-events: none;
  opacity: var(--fold-crease, 0);
  mix-blend-mode: multiply;
  border-radius: 0.08em;
}

.fold-text-piece[data-fold-hinge='top']::after {
  background: linear-gradient(180deg, rgb(0 0 0 / 58%) 0%, rgb(0 0 0 / 22%) 42%, rgb(255 255 255 / 26%) 100%);
}

.fold-text-piece[data-fold-hinge='bottom']::after {
  background: linear-gradient(0deg, rgb(0 0 0 / 58%) 0%, rgb(0 0 0 / 22%) 42%, rgb(255 255 255 / 26%) 100%);
}

.fold-text-piece[data-fold-hinge='left']::after {
  background: linear-gradient(90deg, rgb(0 0 0 / 58%) 0%, rgb(0 0 0 / 22%) 42%, rgb(255 255 255 / 26%) 100%);
}

.fold-text-piece[data-fold-hinge='right']::after {
  background: linear-gradient(270deg, rgb(0 0 0 / 58%) 0%, rgb(0 0 0 / 22%) 42%, rgb(255 255 255 / 26%) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .fold-text-piece {
    transform: none !important;
  }

  .fold-text-piece::after {
    opacity: 0 !important;
  }
}
.scroll-expand {
  position: relative;
  width: 100%;
  min-height: var(--scroll-expand-stage-height, 520px);
}

.scroll-expand--scroller {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.scroll-expand--scroller::-webkit-scrollbar {
  display: none;
}

.scroll-expand__track {
  position: relative;
  width: 100%;
}

.scroll-expand__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--scroll-expand-stage-height, 520px);
  overflow: hidden;
  --se-title-size: 4rem;
}

.scroll-expand__frame {
  position: absolute;
  inset: 0;
  clip-path: inset(21% 29% 21% 29% round 24px);
  will-change: clip-path;
}

.scroll-expand__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.scroll-expand__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / 75%), rgb(0 0 0 / 10%) 45%, rgb(0 0 0 / 35%));
  opacity: 0;
}

.scroll-expand__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6%;
  opacity: 0;
  will-change: opacity, transform;
}

.scroll-expand__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 6%;
  text-align: center;
  font-size: var(--se-title-size);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 24px rgb(0 0 0 / 45%);
  pointer-events: none;
  will-change: opacity, transform;
}

.scroll-expand__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 55%);
  pointer-events: none;
  will-change: opacity, transform;
}


.landing-shell {
  --ink: #061813;
  --ink-soft: #0c2a22;
  --forest: #0c4e3d;
  --lime: #d9ff57;
  --blue: #4aa8ff;
  --paper: #f4f7ef;
  --muted: #a9bbb4;
  position: fixed;
  inset: 0;
  z-index: 100;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--ink);
  color: #f7fbf8;
  font-family: 'DM Sans', sans-serif;
  scroll-behavior: smooth;
  isolation: isolate;
}

.landing-shell::before {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(47 209 154 / 18%) 0,
    rgb(47 209 154 / 5%) 42%,
    transparent 72%
  );
  content: '';
  left: calc(var(--pointer-x, 72%) - 21rem);
  top: calc(var(--pointer-y, 18%) - 21rem);
  pointer-events: none;
  transition:
    left 90ms linear,
    top 90ms linear;
}

.landing-grid {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: 960px;
  opacity: 0.12;
  background-image:
    linear-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.landing-nav {
  position: relative;
  z-index: 20;
  display: grid;
  width: min(100% - 40px, 1380px);
  min-height: 92px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  border-bottom: 1px solid rgb(255 255 255 / 11%);
}

.brand-mark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-family: 'Manrope', sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark b {
  color: var(--lime);
  font-weight: 700;
}

.brand-mark__symbol {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgb(217 255 87 / 38%);
  border-radius: 12px 12px 12px 3px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 28px rgb(217 255 87 / 10%);
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.landing-nav__links a {
  color: rgb(247 251 248 / 62%);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}
.landing-nav__links a:hover {
  color: #fff;
}

.nav-launch {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-self: end;
  gap: 10px;
  padding: 11px 15px 11px 18px;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}
.nav-launch:hover {
  border-color: var(--lime);
  background: rgb(217 255 87 / 10%);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  width: min(100% - 40px, 1380px);
  min-height: 820px;
  margin: 0 auto;
  padding: 92px 0 120px;
}

.hero__copy {
  position: relative;
  z-index: 4;
  width: min(820px, 65%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: rgb(247 251 248 / 60%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgb(217 255 87 / 10%);
  animation: landing-pulse 2.6s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
}
.hero__title {
  display: block;
  width: min(100%, 800px);
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.07em;
  line-height: 0.94 !important;
}

.hero__title .fold-text-line + .fold-text-line {
  margin-top: 0.04em;
}

.hero__footer {
  display: block;
  max-width: 520px;
  margin-top: 42px;
}
.hero__footer > p {
  max-width: 425px;
  margin: 0;
  color: rgb(247 251 248 / 67%);
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 42px rgb(217 255 87 / 13%);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}
.primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 54px rgb(217 255 87 / 24%);
}
.primary-cta__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: transform 220ms ease;
}
.primary-cta:hover .primary-cta__icon {
  transform: rotate(-28deg);
}
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(247 251 248 / 70%);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.text-cta:hover {
  color: #fff;
}

.hero-map {
  position: absolute;
  z-index: 2;
  top: 60px;
  right: -135px;
  width: min(780px, 58vw);
  aspect-ratio: 1.32;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 34px;
  background: #e8e5dd;
  box-shadow:
    0 45px 100px rgb(0 0 0 / 42%),
    0 0 0 12px rgb(255 255 255 / 2.4%);
  transform: perspective(1300px) rotateY(-7deg) rotateX(2deg);
  transform-origin: right center;
}
.hero-map > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
  filter: saturate(0.72) contrast(1.04);
}
.hero-map__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgb(6 24 19 / 12%),
    transparent 45%,
    rgb(6 24 19 / 13%)
  );
  pointer-events: none;
}

.map-search-preview {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  width: min(390px, calc(100% - 48px));
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 0 13px 0 17px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 17px;
  background: rgb(255 255 255 / 90%);
  color: #20352f;
  box-shadow: 0 14px 38px rgb(6 24 19 / 16%);
  backdrop-filter: blur(18px);
  font-size: 0.88rem;
}
.map-search-preview span {
  flex: 1;
  color: #586d66;
}
.map-search-preview kbd {
  padding: 5px 7px;
  border: 1px solid #dfe7df;
  border-radius: 7px;
  background: #f2f5f1;
  color: #6c7b76;
  font:
    0.69rem 'DM Sans',
    sans-serif;
}

.map-status-chip {
  position: absolute;
  top: 26px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  background: rgb(6 24 19 / 82%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.map-status-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(217 255 87 / 14%);
}

.hero-map__modes {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 15px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 12px 34px rgb(6 24 19 / 16%);
  backdrop-filter: blur(14px);
}
.hero-map__modes span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #667871;
  font-size: 0.7rem;
  font-weight: 600;
}
.hero-map__modes span.active {
  background: var(--ink);
  color: #fff;
}

.hero-scroll {
  position: absolute;
  left: 0;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgb(255 255 255 / 36%);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero-scroll i {
  position: relative;
  width: 62px;
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 14%);
}
.hero-scroll i::after {
  position: absolute;
  inset: 0;
  background: var(--lime);
  content: '';
  transform: translateX(-100%);
  animation: scroll-line 2.8s ease-in-out infinite;
}

.reveal-up {
  animation: reveal-up 0.7s 0.08s both ease-out;
}
.reveal-up--delay {
  animation-delay: 0.55s;
}
.reveal-map {
  animation: reveal-map 1s 0.38s both cubic-bezier(0.2, 0.8, 0.2, 1);
}

.experience {
  position: relative;
  z-index: 3;
  padding: 108px max(20px, calc((100vw - 1380px) / 2));
  border-radius: 52px 52px 0 0;
  background: var(--paper);
  color: var(--ink);
}
.section-heading {
  max-width: 650px;
  margin-bottom: 58px;
}
.section-kicker {
  margin: 0 0 16px;
  color: #16825f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.section-heading h2,
.guide h2 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}
.section-heading > p:last-child {
  max-width: 470px;
  margin: 22px 0 0;
  color: #60706a;
  font-size: 1rem;
  line-height: 1.6;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.75fr);
  grid-template-rows: repeat(2, minmax(280px, auto));
  gap: 18px;
}
.experience-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe3da;
  border-radius: 28px;
  background: #fff;
}
.experience-card--route {
  grid-row: 1 / 3;
  min-height: 700px;
  padding: 40px;
  background: #0b2a22;
  color: #fff;
}
.experience-card__copy {
  position: relative;
  z-index: 2;
  max-width: 420px;
}
.card-index {
  color: #6f837c;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.experience-card--route .card-index {
  color: var(--lime);
}
.experience-card h3 {
  margin: 17px 0 11px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.65rem, 2.4vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.06;
}
.experience-card p {
  max-width: 390px;
  margin: 0;
  color: #789087;
  font-size: 0.93rem;
  line-height: 1.55;
}
.experience-card--route p {
  color: rgb(255 255 255 / 58%);
}
.route-image-wrap {
  position: absolute;
  left: 40px;
  right: -12%;
  bottom: -1px;
  height: 66%;
  overflow: hidden;
  border: 8px solid rgb(255 255 255 / 9%);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -25px 80px rgb(0 0 0 / 22%);
}
.route-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 39% center;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.experience-card--route:hover .route-image-wrap img {
  transform: scale(1.04);
}
.route-image-wrap__pill {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgb(6 24 19 / 82%);
  color: #fff;
  font-size: 0.72rem;
  backdrop-filter: blur(10px);
}
.route-image-wrap__pill svg {
  color: var(--lime);
}

.experience-card--detail,
.experience-card--modes {
  padding: 32px;
}
.experience-card--detail {
  background: var(--lime);
  border-color: var(--lime);
}
.experience-card--detail .card-index,
.experience-card--detail p {
  color: #39533f;
}
.detail-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-top: 44px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--lime);
}
.contour-lines {
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 240px;
  height: 190px;
  transform: rotate(-12deg);
  opacity: 0.22;
}
.contour-lines span {
  position: absolute;
  inset: calc(var(--i, 0) * 15px);
  border: 2px solid var(--ink);
  border-radius: 48% 52% 46% 54%;
}
.contour-lines span:nth-child(1) {
  --i: 0;
}
.contour-lines span:nth-child(2) {
  --i: 1;
}
.contour-lines span:nth-child(3) {
  --i: 2;
}
.contour-lines span:nth-child(4) {
  --i: 3;
}
.contour-lines span:nth-child(5) {
  --i: 4;
}
.experience-card--modes {
  background: #fff;
}
.mode-stack {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}
.mode-stack > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border: 1px solid #e3e8e2;
  border-radius: 14px;
  color: #566961;
  font-size: 0.82rem;
  transition:
    transform 180ms ease,
    border 180ms ease;
}
.mode-stack > div:hover {
  transform: translateX(4px);
  border-color: #aac4b5;
}
.mode-stack > div.selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.mode-stack span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.scroll-story {
  background: var(--paper);
}
.scroll-story .scroll-expand {
  min-height: 580px;
}
.scroll-story__overlay {
  max-width: 760px;
  color: #fff;
  text-align: center;
}
.scroll-story__overlay > span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-story__overlay h2 {
  margin: 18px 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
}
.scroll-story__overlay p {
  max-width: 510px;
  margin: 0 auto;
  color: rgb(255 255 255 / 72%);
  font-size: 1rem;
  line-height: 1.6;
}

.how {
  padding: 120px max(20px, calc((100vw - 1380px) / 2));
  background: var(--paper);
  color: var(--ink);
}
.section-heading--split {
  display: grid;
  max-width: none;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 80px;
}
.section-heading--split > p {
  justify-self: end;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step-card {
  min-height: 350px;
  padding: 30px;
  border: 1px solid #d7e0d7;
  border-radius: 24px;
  background: #eef2e9;
  transition:
    transform 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease;
}
.step-card:hover {
  transform: translateY(-8px);
  background: #fff;
  box-shadow: 0 24px 60px rgb(11 42 34 / 10%);
}
.step-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6c7d76;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.step-card__top svg {
  color: #0d7457;
}
.step-card h3 {
  margin: 120px 0 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.step-card p {
  max-width: 325px;
  margin: 0;
  color: #65756f;
  font-size: 0.93rem;
  line-height: 1.6;
}

.guide {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
  gap: 100px;
  padding: 120px max(20px, calc((100vw - 1380px) / 2));
  background: #d9ff57;
  color: var(--ink);
}
.guide__intro {
  position: sticky;
  top: 40px;
  align-self: start;
}
.guide__intro h2 {
  max-width: 580px;
  font-size: clamp(2.5rem, 4.6vw, 4.7rem);
}
.guide__intro > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 35px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.guide .section-kicker {
  color: #3f5b41;
}
.guide-accordion {
  border-top: 1px solid rgb(6 24 19 / 23%);
}
.guide-accordion:last-child {
  border-bottom: 1px solid rgb(6 24 19 / 23%);
}
.guide-accordion__trigger {
  display: grid;
  width: 100%;
  min-height: 94px;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.guide-accordion__number {
  color: #516b4c;
  font-size: 0.72rem;
  font-weight: 700;
}
.guide-accordion__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.guide-accordion__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(6 24 19 / 26%);
  border-radius: 50%;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}
.guide-accordion__trigger[aria-expanded='true'] .guide-accordion__icon {
  background: var(--ink);
  color: var(--lime);
  transform: rotate(180deg);
}
.guide-accordion__trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.guide-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 340ms ease,
    opacity 240ms ease;
}
.guide-accordion__panel[data-open='true'] {
  grid-template-rows: 1fr;
  opacity: 1;
}
.guide-accordion__panel-inner {
  overflow: hidden;
  padding: 0 60px 0 58px;
  transform: translateY(-8px);
  transition:
    transform 300ms ease,
    padding-bottom 300ms ease;
}
.guide-accordion__panel[data-open='true'] .guide-accordion__panel-inner {
  padding-bottom: 28px;
  transform: translateY(0);
}
.guide-accordion__panel p {
  max-width: 530px;
  margin: 0;
  color: #435841;
  font-size: 0.94rem;
  line-height: 1.65;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 160px 20px;
  background: #09251e;
  color: #fff;
  text-align: center;
}
.final-cta::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgb(255 255 255 / 14%) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  content: '';
  opacity: 0.18;
  mask-image: radial-gradient(circle, #000, transparent 68%);
}
.final-cta > *:not(.final-cta__orb) {
  position: relative;
  z-index: 2;
}
.final-cta__eyebrow {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.final-cta h2 {
  max-width: 860px;
  margin: 20px auto 18px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.92;
}
.final-cta p {
  margin: 0 auto 38px;
  color: rgb(255 255 255 / 58%);
  font-size: 1rem;
}
.primary-cta--light {
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 18px 60px rgb(0 0 0 / 18%);
}
.final-cta__orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.32;
}
.final-cta__orb--one {
  top: -190px;
  left: 8%;
  background: radial-gradient(circle at 40% 40%, var(--lime), transparent 67%);
  animation: orb-float 8s ease-in-out infinite;
}
.final-cta__orb--two {
  right: 5%;
  bottom: -220px;
  background: radial-gradient(circle at 40% 40%, #35b4ff, transparent 68%);
  animation: orb-float 10s 1s ease-in-out infinite reverse;
}

.landing-footer {
  display: grid;
  width: min(100% - 40px, 1380px);
  min-height: 100px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  color: rgb(255 255 255 / 50%);
}
.landing-footer p {
  font-size: 0.76rem;
}
.landing-footer__links {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 22px;
}
.landing-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.78rem;
  text-decoration: none;
}

@keyframes landing-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgb(217 255 87 / 10%);
  }
  50% {
    box-shadow: 0 0 0 9px rgb(217 255 87 / 2%);
  }
}
@keyframes scroll-line {
  0%,
  15% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(100%);
  }
}
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes reveal-map {
  from {
    opacity: 0;
    transform: perspective(1300px) rotateY(-13deg) rotateX(4deg)
      translateX(70px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: perspective(1300px) rotateY(-7deg) rotateX(2deg) translateX(0)
      scale(1);
  }
}
@keyframes orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, 28px, 0) scale(1.12);
  }
}

@media (max-width: 1060px) {
  .landing-nav {
    grid-template-columns: 1fr auto;
  }
  .landing-nav__links {
    display: none;
  }
  .hero {
    min-height: auto;
    padding-top: 70px;
  }
  .hero__copy {
    width: 100%;
  }
  .hero-map {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 70px;
    transform: none;
  }
  .reveal-map {
    animation-name: reveal-map-tablet;
  }
  .hero-scroll {
    display: none;
  }
  .experience-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .experience-card--route {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 620px;
  }
  .guide {
    grid-template-columns: 1fr;
    gap: 65px;
  }
  .guide__intro {
    position: static;
  }
}

@keyframes reveal-map-tablet {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .landing-nav {
    width: min(100% - 28px, 1380px);
    min-height: 76px;
  }
  .brand-mark {
    font-size: 0.88rem;
  }
  .brand-mark__symbol {
    width: 33px;
    height: 33px;
    border-radius: 10px 10px 10px 3px;
  }
  .nav-launch {
    padding: 9px 12px;
    font-size: 0.78rem;
  }
  .nav-launch svg {
    display: none;
  }
  .hero {
    width: min(100% - 28px, 1380px);
    padding: 58px 0 82px;
  }
  .hero__title {
    letter-spacing: -0.065em;
    line-height: 0.93 !important;
  }
  .hero__footer {
    margin-top: 30px;
  }
  .hero__footer > p {
    font-size: 0.98rem;
  }
  .hero__actions {
    gap: 20px;
    margin-top: 26px;
  }
  .hero-map {
    margin-top: 48px;
    aspect-ratio: 0.88;
    border-radius: 24px;
  }
  .hero-map > img {
    object-position: 51% center;
  }
  .map-search-preview {
    top: 14px;
    left: 14px;
    width: calc(100% - 28px);
    min-height: 49px;
  }
  .map-status-chip {
    top: 76px;
    right: 14px;
  }
  .hero-map__modes {
    left: 14px;
    bottom: 14px;
  }
  .experience,
  .how,
  .guide {
    padding: 78px 14px;
  }
  .experience {
    border-radius: 32px 32px 0 0;
  }
  .section-heading {
    margin-bottom: 38px;
  }
  .experience-grid {
    display: block;
  }
  .experience-card {
    margin-bottom: 14px;
    border-radius: 22px;
  }
  .experience-card--route {
    min-height: 590px;
    padding: 28px;
  }
  .experience-card--detail,
  .experience-card--modes {
    min-height: 300px;
    padding: 26px;
  }
  .route-image-wrap {
    left: 28px;
    right: -20%;
    height: 62%;
  }
  .section-heading--split {
    display: block;
  }
  .section-heading--split > p {
    margin-top: 24px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-card {
    min-height: 270px;
    padding: 25px;
  }
  .step-card h3 {
    margin-top: 76px;
  }
  .guide {
    gap: 48px;
  }
  .guide-accordion__trigger {
    grid-template-columns: 32px 1fr 38px;
    gap: 10px;
  }
  .guide-accordion__panel-inner {
    padding-left: 42px;
    padding-right: 18px;
  }
  .final-cta {
    padding: 105px 16px;
  }
  .landing-footer {
    display: flex;
    min-height: 120px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0;
  }
  .landing-footer p {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .landing-footer__links {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-shell {
    scroll-behavior: auto;
  }
  .landing-shell::before {
    display: none;
  }
  .eyebrow__dot,
  .hero-scroll i::after,
  .final-cta__orb {
    animation: none;
  }
  .reveal-up,
  .reveal-map {
    animation-duration: 0.01ms;
    animation-delay: 0s;
  }
  .experience-card,
  .route-image-wrap img,
  .mode-stack > div,
  .primary-cta {
    transition: none;
  }
}
