:root {
  color-scheme: dark;
  --ink: #f7f1e5;
  --muted: #aab7ad;
  --muted-strong: #c7d0c9;
  --canvas: #0b0f0d;
  --canvas-soft: #101713;
  --panel: rgba(24, 32, 27, .82);
  --panel-solid: #17201b;
  --line: rgba(221, 239, 225, .12);
  --line-strong: rgba(143, 210, 157, .3);
  --green: #8fd29d;
  --green-bright: #b8efc2;
  --green-deep: #173c27;
  --gold: #e9c47c;
  --rose: #f1a38f;
  --shadow: 0 28px 80px rgba(0, 0, 0, .32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1160px, calc(100% - 40px));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "PingFang TC", "Noto Sans TC", "Helvetica Neue", sans-serif;
  font-optical-sizing: auto;
  background: var(--canvas);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 3%, rgba(116, 189, 132, .16), transparent 32rem),
    radial-gradient(circle at 5% 41%, rgba(214, 178, 103, .07), transparent 28rem),
    linear-gradient(180deg, #0d120f 0%, var(--canvas) 42%, #090c0a 100%);
  color: var(--ink);
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

img {
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--green-bright);
  color: #07110a;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(11, 15, 13, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .04em;
}

.language-switcher button {
  min-width: 25px;
  padding: 3px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher button.is-active {
  background: rgba(94, 204, 127, .14);
  color: var(--green-bright);
}

.language-switcher button:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.brand img,
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(247, 241, 229, .18),
    0 8px 22px rgba(0, 0, 0, .28);
}

.brand-word {
  display: grid;
  line-height: 1.05;
}

.brand-word small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .12s ease;
  touch-action: manipulation;
}

.nav-links a:active {
  transform: scale(.97);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, .065);
}

.nav-links .nav-cta {
  margin-left: 4px;
  padding-inline: 15px;
  border: 1px solid var(--line-strong);
  color: var(--green-bright);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-button:active,
.menu-button.is-pressed {
  transform: scale(.95);
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  width: 17px;
  height: 1.5px;
  display: block;
  content: "";
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-button span {
  margin: 4px 0;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-5.5px) rotate(-45deg);
}

.eyebrow,
.section-kicker,
.page-kicker {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
}

.home-hero::after {
  position: absolute;
  width: 420px;
  height: 420px;
  top: 18px;
  right: max(-140px, calc((100vw - 1160px) / 2 - 160px));
  content: "";
  border: 1px solid rgba(143, 210, 157, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(143, 210, 157, .025),
    0 0 0 108px rgba(143, 210, 157, .016);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(48px, 7vw, 94px);
  align-items: center;
}

.availability {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(143, 210, 157, .07);
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .04em;
}

.availability::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(143, 210, 157, .1);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(50px, 7.8vw, 90px);
  line-height: .99;
  letter-spacing: -.068em;
}

.home-hero h1 span {
  color: var(--green-bright);
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green-bright);
  color: #07110a;
  font: inherit;
  font-size: 14px;
  font-weight: 840;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s ease, border-color .2s ease;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    background: #d0f7d7;
  }
}

.button:active {
  transform: scale(.97);
  transition-duration: .1s;
}

.button:disabled:active {
  transform: none;
}

/* A press is acknowledged immediately; hover is only an enhancement for pointers. */
.resource-card,
.guide-index a,
.toc a,
.text-link,
.footer-links a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.resource-card:active,
.guide-index a:active {
  transform: scale(.985);
}

.resource-card:focus-visible,
.guide-index a:focus-visible,
.toc a:focus-visible {
  outline-offset: -3px;
}

.button[href^="https://testflight.apple.com"] {
  box-shadow: 0 10px 28px rgba(143, 210, 157, .18);
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .025);
  color: var(--ink);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, .07);
}

.route-card {
  position: relative;
  min-height: 524px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 24px;
  background:
    radial-gradient(circle at 94% 2%, rgba(143, 210, 157, .16), transparent 17rem),
    linear-gradient(155deg, rgba(255, 255, 255, .025), transparent 42%),
    #111814;
  box-shadow: var(--shadow);
  will-change: transform;
}

@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  .route-card {
    --pointer-x: 50%;
    --pointer-y: 50%;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transition: transform .42s cubic-bezier(.2, .8, .2, 1), box-shadow .42s ease;
  }

  .route-card::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    border-radius: inherit;
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(184, 239, 194, .14), transparent 34%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .route-card.is-pointer-active {
    transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .4), 0 0 0 1px rgba(184, 239, 194, .08);
    transition: none;
  }

  .route-card.is-pointer-active::before {
    opacity: 1;
  }

  .feature-card {
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .32s ease;
  }

  .feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 26px 64px rgba(0, 0, 0, .24);
  }
}

.route-card::after {
  position: absolute;
  z-index: 0;
  content: "";
  border-radius: 50%;
}

.route-card::after {
  width: 280px;
  height: 280px;
  top: -155px;
  right: -110px;
  border: 1px solid rgba(143, 210, 157, .13);
  box-shadow: 0 0 0 42px rgba(143, 210, 157, .022);
}

.trip-card-head,
.day-tabs,
.itinerary-list,
.trip-card-footer {
  position: relative;
  z-index: 1;
}

.trip-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.trip-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.trip-identity img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.trip-identity strong,
.trip-identity small,
.trip-overline {
  display: block;
}

.trip-overline {
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .15em;
}

.trip-identity strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-identity small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.optimized-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(143, 210, 157, .075);
  color: var(--green-bright);
  font-size: 9px;
  font-weight: 800;
}

.optimized-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(184, 239, 194, .1);
}

.day-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 15px 0 17px;
}

.day-tabs span {
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #728077;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .08em;
  text-align: center;
}

.day-tabs .active {
  border-color: var(--line-strong);
  background: rgba(143, 210, 157, .085);
  color: var(--green-bright);
}

.itinerary-list {
  min-height: 310px;
  margin: 0;
  padding: 2px 0 0;
  list-style: none;
}

.itinerary-stop,
.travel-leg {
  display: grid;
  grid-template-columns: 47px 18px minmax(0, 1fr);
  column-gap: 11px;
}

.itinerary-stop time {
  padding-top: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
}

.itinerary-stop time small {
  display: block;
  margin-top: 4px;
  color: #68736c;
  font-size: 8px;
  font-weight: 700;
}

.stop-marker {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 3px solid #17241b;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(184, 239, 194, .12);
}

.stop-marker.final {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(233, 196, 124, .12);
}

.stop-detail {
  min-width: 0;
  padding: 0 0 2px;
}

.stop-detail strong,
.stop-detail small,
.stop-order {
  display: block;
}

.stop-order {
  color: var(--green);
  font-size: 8px;
  font-weight: 820;
  letter-spacing: .12em;
}

.stop-detail strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop-detail small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-leg {
  min-height: 45px;
  align-items: center;
}

.travel-leg i {
  width: 1px;
  height: 100%;
  justify-self: center;
  border-left: 1px dashed rgba(143, 210, 157, .28);
}

.travel-leg small {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #859188;
  font-size: 8px;
  font-weight: 700;
}

.trip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.trip-card-footer strong {
  color: var(--ink);
  font-size: 12px;
}

.offline-ready {
  color: var(--gold);
}

.trust-row {
  padding: 0 0 72px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(20, 28, 23, .62);
}

.trust-item {
  min-height: 112px;
  padding: 23px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  font-size: 19px;
}

.trust-item span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.home-section {
  padding: 82px 0;
  border-top: 1px solid rgba(255, 255, 255, .055);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.052em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.045em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 300px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
}

.feature-card.wide {
  grid-column: span 8;
  background:
    radial-gradient(circle at 95% 5%, rgba(143, 210, 157, .15), transparent 22rem),
    var(--panel);
}

.card-index {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
}

.feature-card h3 {
  margin: 40px 0 8px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: -.04em;
}

.feature-card p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.permission-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.permission-chips span,
.tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.safety-panel {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #111813;
}

.safety-intro {
  min-height: 490px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 58px);
  background:
    radial-gradient(circle at 20% 15%, rgba(143, 210, 157, .18), transparent 16rem),
    linear-gradient(135deg, rgba(143, 210, 157, .08), transparent);
}

.safety-intro h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.safety-intro p {
  margin: 22px 0 0;
  color: var(--muted-strong);
}

.safety-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.safety-step {
  min-height: 245px;
  padding: 34px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.safety-step:nth-child(3),
.safety-step:nth-child(4) {
  border-bottom: 0;
}

.safety-step .number,
.safety-step > span:first-child {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
}

.safety-step h3 {
  margin: 38px 0 8px;
  font-size: 20px;
}

.safety-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.resource-card {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(20, 28, 23, .72);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .48s ease, transform .58s cubic-bezier(.2, .8, .2, 1);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (hover: hover) {
  .resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: rgba(26, 37, 30, .86);
  }
}

.resource-card h3 {
  margin: 0 0 8px;
  font-size: 23px;
  letter-spacing: -.03em;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.resource-card .arrow {
  align-self: flex-end;
  color: var(--green);
  font-size: 22px;
}

.beta-strip {
  padding: 74px 0;
}

.beta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 96% 20%, rgba(143, 210, 157, .22), transparent 21rem),
    var(--panel-solid);
}

.beta-card h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.beta-card p {
  max-width: 690px;
  margin: 15px 0 0;
  color: var(--muted-strong);
}

.page-hero {
  padding: 74px 0 48px;
}

.page-hero-inner {
  max-width: none;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.page-hero p:not(.page-kicker) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.guide-hero {
  padding-bottom: 68px;
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .65fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: end;
}

.guide-hero h1 span {
  color: var(--green-bright);
}

.guide-hero .actions {
  margin-top: 30px;
}

.guide-index {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(143, 210, 157, .14), transparent 17rem),
    rgba(20, 28, 23, .76);
  box-shadow: 0 22px 65px rgba(0, 0, 0, .18);
}

.guide-index ol {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.guide-index li {
  border-top: 1px solid var(--line);
}

.guide-index a {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  padding: 16px 2px;
  transition: color .2s ease, transform .2s ease;
}

.guide-index a:hover {
  color: var(--green-bright);
  transform: translateX(3px);
}

.guide-index a > span {
  grid-row: 1 / 3;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}

.guide-index strong {
  font-size: 15px;
  line-height: 1.25;
}

.guide-index small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.guide-feature-grid .feature-card {
  min-height: 325px;
}

.guide-feature-grid .guide-offline-card {
  min-height: 360px;
  grid-column: 1 / -1;
}

.import-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(480px, 1.22fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.import-guide-copy {
  min-height: 440px;
}

.import-code-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  background: #101712;
}

.import-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--green-bright);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}

.copy-template {
  border: 1px solid rgba(143, 210, 157, .35);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(143, 210, 157, .08);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  cursor: pointer;
}

.copy-template:hover,
.copy-template:focus-visible {
  background: rgba(143, 210, 157, .18);
}

.import-code-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(143, 210, 157, .18);
  border-radius: 14px;
  background: #0a0f0c;
  color: #e4f0e6;
  font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.import-code-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.permission-showcase {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(480px, 1.22fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.permission-copy {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 54px);
  background:
    radial-gradient(circle at 10% 5%, rgba(143, 210, 157, .2), transparent 18rem),
    linear-gradient(145deg, rgba(143, 210, 157, .08), transparent);
}

.permission-copy h3 {
  margin: 28px 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.permission-copy p {
  margin: 0;
  color: var(--muted-strong);
}

.text-link {
  width: fit-content;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 800;
}

.text-link:hover {
  color: var(--ink);
}

.permission-list {
  display: grid;
  align-content: stretch;
}

.permission-list > div {
  min-height: 83px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-content: center;
  padding: 17px 28px;
  border-bottom: 1px solid var(--line);
}

.permission-list > div:last-child {
  border-bottom: 0;
}

.permission-list span {
  font-size: 15px;
  font-weight: 800;
}

.permission-list small {
  color: var(--muted);
  font-size: 12px;
}

.permission-list i {
  width: 40px;
  height: 23px;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(143, 210, 157, .13);
}

.permission-list i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.guide-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  margin-top: 16px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .025);
}

.guide-note span {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.guide-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.age-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.age-heading h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -.052em;
}

.age-badge {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(184, 239, 194, .18), transparent 60%),
    var(--panel-solid);
  color: var(--green-bright);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -.055em;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.age-intro {
  max-width: 900px;
  margin: 24px 0 34px;
  color: var(--muted-strong);
}

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

.age-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(20, 28, 23, .72);
}

.age-card.featured {
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 100% 0, rgba(143, 210, 157, .19), transparent 18rem),
    var(--panel-solid);
}

.age-range {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
}

.age-card h3 {
  margin: 40px 0 8px;
  font-size: 27px;
  letter-spacing: -.035em;
}

.age-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.age-status {
  margin-top: auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
}

.age-status.restricted {
  border-color: rgba(241, 163, 143, .25);
  color: var(--rose);
}

.age-status.limited {
  border-color: rgba(233, 196, 124, .25);
  color: var(--gold);
}

.age-status.available {
  border-color: var(--line-strong);
  color: var(--green-bright);
}

.guide-why-card {
  min-height: 330px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: clamp(38px, 7vw, 90px);
  align-items: start;
  padding: 20px 0 90px;
}

.toc {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 5px;
}

.toc strong {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.toc a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  transition: color .2s ease, background .2s ease;
}

.toc a:hover {
  background: rgba(255, 255, 255, .045);
  color: var(--ink);
}

.legal-article {
  min-width: 0;
}

.policy-summary {
  margin: 0 0 38px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(143, 210, 157, .065);
  color: var(--muted-strong);
}

.policy-summary strong {
  color: var(--green-bright);
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 94px;
}

.legal-section:first-of-type {
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -.032em;
}

.legal-section h3 {
  margin: 28px 0 10px;
  font-size: 17px;
}

.legal-section p,
.legal-section li {
  color: var(--muted-strong);
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.legal-section li + li {
  margin-top: 9px;
}

.legal-section a,
.inline-link {
  color: var(--green-bright);
  text-decoration: underline;
  text-decoration-color: rgba(184, 239, 194, .35);
  text-underline-offset: 4px;
}

.notice {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(233, 196, 124, .065);
  color: var(--muted-strong);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr);
  gap: 18px;
  padding: 12px 0 92px;
}

.form-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.form-card {
  padding: clamp(26px, 4vw, 42px);
}

.form-card h2,
.support-card h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.035em;
}

.form-intro {
  margin: 10px 0 27px;
  color: var(--muted);
}

.field {
  margin-top: 19px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 730;
}

.field-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(7, 12, 9, .62);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 170px;
  padding: 13px 14px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(143, 210, 157, .28);
}

.form-card .button {
  width: 100%;
  margin-top: 24px;
  border: 0;
}

.form-card .button:disabled {
  opacity: .55;
  transform: none;
  cursor: wait;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.form-result {
  min-height: 1.6em;
  margin: 16px 0 0;
  color: var(--green-bright);
  font-size: 14px;
}

.form-result[data-state="error"] {
  color: #ffc7bd;
}

.form-result[data-state="success"] {
  color: var(--green-bright);
}

.support-stack {
  display: grid;
  gap: 18px;
}

.support-card {
  padding: 28px;
}

.support-card .tag {
  width: fit-content;
  display: block;
  margin-bottom: 30px;
  color: var(--green-bright);
}

.support-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.support-card a {
  color: var(--green-bright);
}

.safety-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.timeline-step {
  min-height: 180px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(20, 28, 23, .62);
}

.timeline-step:last-child {
  border-right: 0;
}

.timeline-step span {
  color: var(--green);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .14em;
}

.timeline-step h3 {
  margin: 30px 0 7px;
  font-size: 18px;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.error-page {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: 60px 20px;
  text-align: center;
}

.error-code {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
}

.error-page h1 {
  margin: 15px 0;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 1;
  letter-spacing: -.06em;
}

.error-page p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
}

.error-page .actions {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-row {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  color: var(--muted-strong);
  font-size: 13px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

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

@media (max-width: 900px) {
  .hero-grid,
  .section-heading,
  .safety-panel,
  .contact-layout,
  .guide-hero-grid,
  .permission-showcase,
  .import-guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-index {
    max-width: 680px;
  }

  .permission-copy {
    min-height: 390px;
  }

  .route-card {
    min-height: 524px;
  }

  .trust-grid,
  .safety-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item:nth-child(2),
  .timeline-step:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n+2),
  .timeline-step:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .feature-card,
  .feature-card.wide {
    grid-column: span 6;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(20, 28, 23, .55);
  }

  .toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 28px, 1160px);
  }

  .nav {
    min-height: 64px;
    gap: 10px;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-switcher {
    padding: 4px 6px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand-word small {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    flex-direction: column;
  }

  .nav-links {
    position: absolute;
    z-index: 1;
    top: 64px;
    right: 14px;
    left: 14px;
    display: grid;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-solid);
    color: var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .22s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
  }

  .nav-links[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-links .nav-cta {
    margin: 4px 0 0;
    text-align: center;
  }

  .home-hero {
    padding: 60px 0 48px;
  }

  .home-hero h1 {
    font-size: clamp(48px, 15vw, 67px);
  }

  .route-card {
    min-height: 510px;
    padding: 20px;
  }

  .optimized-badge {
    display: none;
  }

  .trip-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .itinerary-stop,
  .travel-leg {
    grid-template-columns: 44px 16px minmax(0, 1fr);
    column-gap: 9px;
  }

  .trip-identity strong {
    font-size: 16px;
  }

  .trust-grid,
  .resource-grid,
  .safety-list,
  .safety-timeline,
  .age-card-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(2),
  .timeline-step,
  .timeline-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child,
  .timeline-step:last-child {
    border-bottom: 0;
  }

  .home-section {
    padding: 58px 0;
  }

  .section-heading {
    gap: 20px;
  }

  .feature-card,
  .feature-card.wide {
    min-height: 260px;
    grid-column: 1 / -1;
  }

  .guide-feature-grid .guide-offline-card {
    min-height: 320px;
  }

  .guide-hero {
    padding-bottom: 46px;
  }

  .guide-index {
    padding: 22px;
  }

  .permission-showcase {
    border-radius: var(--radius-lg);
  }

  .import-guide-grid {
    border-radius: var(--radius-lg);
  }

  .permission-copy {
    min-height: 340px;
  }

  .permission-list > div {
    padding-inline: 20px;
  }

  .guide-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .age-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .age-badge {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    font-size: 30px;
  }

  .age-card {
    min-height: 275px;
  }

  .safety-intro {
    min-height: 370px;
  }

  .safety-step {
    min-height: 210px;
    border-left: 0;
  }

  .safety-step:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  .beta-card {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 55px 0 35px;
  }

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

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  * {
    transition: none !important;
  }

  .nav-links,
  .nav-links[data-open="true"] {
    transform: none;
  }

  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .nav-links,
  .guide-index,
  .form-card,
  .support-card,
  .resource-card,
  .trust-grid {
    background: var(--panel-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(247, 241, 229, .34);
    --line-strong: rgba(184, 239, 194, .72);
    --muted: #d1d9d3;
    --muted-strong: #f0f4f0;
  }

  .site-header,
  .nav-links,
  .button.secondary,
  input,
  select,
  textarea {
    background: var(--canvas-soft);
  }
}
