:root {
  --ink: #14233a;
  --ink-soft: #3d516c;
  --paper: #f3f7fb;
  --mist: #d9e6f0;
  --sea: #0f766e;
  --sea-deep: #0b4f4a;
  --signal: #e4572e;
  --overlap: #1faa7a;
  --overlap-soft: rgba(31, 170, 122, 0.22);
  --night: rgba(20, 35, 58, 0.08);
  --line: rgba(20, 35, 58, 0.12);
  --glass: rgba(255, 255, 255, 0.55);
  --radius: 14px;
  --font-display: "Outfit", "Helvetica Neue", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--paper);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% -10%, #c8e4ef 0%, transparent 55%),
    radial-gradient(90% 70% at 90% 0%, #cfe8df 0%, transparent 50%),
    linear-gradient(180deg, #eaf2f8 0%, #f3f7fb 45%, #e8f0ea 100%);
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s var(--ease) infinite alternate;
}

.atmosphere__orb--a {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  left: -8%;
  top: 18%;
  background: #9fd4c8;
}

.atmosphere__orb--b {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  right: -6%;
  top: 8%;
  background: #9ec4e0;
  animation-delay: -6s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, 36px, 0) scale(1.08); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 251, 0.72);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand__mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--sea) 0%, var(--signal) 100%);
  transform: rotate(45deg);
  animation: pulse-mark 3.2s var(--ease) infinite;
}

@keyframes pulse-mark {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.12); }
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.site-nav > a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav > a:hover {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
}

.lang-switch a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a.is-active {
  background: var(--ink);
  color: #f7fafc;
}

.locale-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.locale-gate__box {
  max-width: 36rem;
  text-align: left;
}

.locale-gate__box h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.locale-gate__box > p {
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--ink);
  color: #f7fafc;
}

.btn--primary:hover {
  background: var(--sea-deep);
}

.btn--ghost {
  background: var(--glass);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: rgba(20, 35, 58, 0.28);
  background: rgba(255, 255, 255, 0.8);
}

.btn--icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  line-height: 1;
}

.btn--icon:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* Hero */
.hero {
  min-height: min(72vh, calc(100vh - var(--header-h)));
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.1rem;
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1rem, 4vw, 2.5rem) 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  animation: rise-in 0.9s var(--ease) both;
}

.hero__title {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  animation: rise-in 0.9s var(--ease) 0.08s both;
}

.hero__lead {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  animation: rise-in 0.9s var(--ease) 0.16s both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Planner */
.planner {
  margin: 0 auto 4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 1100px;
  width: calc(100% - clamp(2rem, 8vw, 5rem));
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: blur(10px);
}

.planner__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.planner__head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
}

.planner__sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.planner__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.utc-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  padding: 0.45rem 0.75rem;
  background: rgba(20, 35, 58, 0.06);
  border-radius: 8px;
}

.btn-now {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--sea-deep);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-now::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--overlap);
  box-shadow: 0 0 0 0 rgba(31, 170, 122, 0.45);
  animation: now-dot 2.4s ease-out infinite;
}

.btn-now:hover {
  background: rgba(15, 118, 110, 0.18);
  border-color: rgba(15, 118, 110, 0.45);
  color: var(--ink);
}

.btn-now:active {
  background: rgba(15, 118, 110, 0.24);
}

@keyframes now-dot {
  0% { box-shadow: 0 0 0 0 rgba(31, 170, 122, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(31, 170, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 170, 122, 0); }
}

.work-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.work-hours select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.45rem;
}

.work-hours__sep {
  opacity: 0.5;
}

.overlap-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--overlap);
  background: linear-gradient(90deg, var(--overlap-soft), transparent 70%);
  border-radius: 0 10px 10px 0;
}

.overlap-banner__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea-deep);
}

.overlap-banner strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.overlap-banner.is-empty {
  border-left-color: var(--signal);
  background: linear-gradient(90deg, rgba(228, 87, 46, 0.12), transparent 70%);
}

.overlap-banner.is-empty .overlap-banner__label {
  color: var(--signal);
}

.timeline-legend {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  margin: 0 0 0.5rem;
  padding-left: min(32%, 220px);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.timeline-legend span:last-child {
  text-align: right;
}

.city-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.city-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  animation: rise-in 0.45s var(--ease) both;
}

.city-info {
  min-width: 0;
}

.city-info__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.city-info__meta {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-info__time {
  display: block;
  margin-top: 0.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  white-space: normal;
}

.track {
  position: relative;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(90deg, #d7e0ea, #eef3f7 50%, #d7e0ea);
  border: 1px solid var(--line);
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: hidden;
}

.track:active,
.track.is-dragging {
  cursor: grabbing;
}

.track__night {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--night) 0%, transparent 0),
    linear-gradient(90deg, transparent 0%, var(--night) 0%);
}

.track__work {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(15, 118, 110, 0.12);
  border-left: 1px solid rgba(15, 118, 110, 0.25);
  border-right: 1px solid rgba(15, 118, 110, 0.25);
  pointer-events: none;
}

.track__overlap {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--overlap-soft);
  box-shadow: inset 0 0 0 1px rgba(31, 170, 122, 0.35);
  pointer-events: none;
}

.track__hours {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  pointer-events: none;
}

.track__hours i {
  border-right: 1px solid rgba(20, 35, 58, 0.06);
}

.track__hours i:nth-child(6n) {
  border-right-color: rgba(20, 35, 58, 0.14);
}

.marker {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: calc(100% / 24);
  min-width: 10px;
  margin-left: calc(-100% / 48);
  border-radius: 7px;
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(20, 35, 58, 0.22);
  pointer-events: none;
  transition: left 0.05s linear;
  z-index: 2;
}

.marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 55%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
}

.marker.is-in-overlap {
  background: var(--sea);
}

.planner__toolbar {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.add-city {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1 1 320px;
  position: relative;
  z-index: 5;
}

.city-combobox {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.city-combobox input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.city-combobox input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.city-combobox.is-open input {
  border-color: rgba(15, 118, 110, 0.55);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.city-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(20, 35, 58, 0.12);
}

.city-menu[hidden] {
  display: none;
}

.city-menu__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s ease;
}

.city-menu__item:hover,
.city-menu__item.is-active {
  background: rgba(15, 118, 110, 0.1);
}

.city-menu__item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.city-menu__item strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.city-menu__item small {
  grid-column: 1 / 2;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.city-menu__item em {
  grid-row: 1 / 3;
  grid-column: 2;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sea-deep);
  white-space: nowrap;
}

.city-menu__empty {
  padding: 0.85rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.export-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.export-panel {
  min-width: 0;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 3px solid var(--sea);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 247, 251, 0.55));
}

.export-panel:nth-child(2) {
  border-top-color: var(--signal);
}

.export-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.35rem;
}

.export-panel__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.export-panel__hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.export-panel__preview {
  margin: 0;
  min-height: 8.5rem;
  max-height: 16rem;
  overflow: auto;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}

.export-panel__preview--link {
  min-height: 4.5rem;
  word-break: break-all;
}

.toast {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--sea-deep);
  font-weight: 500;
}

.toast[hidden] {
  display: none;
}

/* How */
.how {
  max-width: 1100px;
  width: calc(100% - clamp(2rem, 8vw, 5rem));
  margin: 0 auto 4rem;
  padding: 0 0 0.5rem;
}

.how h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  letter-spacing: -0.03em;
}

.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.how__steps h3 {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.how__steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.how__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--signal);
}

.content-block {
  max-width: 760px;
  width: calc(100% - clamp(2rem, 8vw, 5rem));
  margin: 0 auto 3.5rem;
}

.content-block + .content-block {
  margin-top: -1.5rem;
}

.content-block h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  letter-spacing: -0.03em;
}

.content-block h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.content-block p,
.content-block li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

.content-block p {
  margin: 0 0 1rem;
}

.content-block ol,
.content-block ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.content-block li {
  margin-bottom: 0.45rem;
}

.content-block a {
  color: var(--sea-deep);
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  max-width: 760px;
  width: calc(100% - clamp(2rem, 8vw, 5rem));
  margin: -1.25rem auto 2.5rem;
}

.topic-links a {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.topic-links a:hover {
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--sea-deep);
  background: rgba(15, 118, 110, 0.08);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--sea);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  border-top: 1px solid transparent;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 1100px;
  width: calc(100% - clamp(2rem, 8vw, 5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer .brand__name {
  color: var(--ink);
}

.site-footer__brand p {
  margin: 0.2rem 0 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.brand {
  text-decoration: none;
  color: inherit;
}

/* Legal / content pages */
.legal-page {
  max-width: 760px;
  width: calc(100% - clamp(2rem, 8vw, 5rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.75rem) 0 3rem;
}

.legal-prose {
  line-height: 1.7;
}

.legal-prose__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea-deep);
}

.legal-prose h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-prose__meta {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal-prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-prose p,
.legal-prose ul {
  margin: 0 0 1rem;
  color: var(--ink);
}

.legal-prose ul {
  padding-left: 1.25rem;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose a {
  color: var(--sea-deep);
}

.guide-list {
  list-style: none;
  padding-left: 0;
}

.guide-list li {
  margin-bottom: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.guide-list li:last-child {
  border-bottom: none;
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin: 2rem 0 0.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.guide-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
}

.legal-prose a.btn--primary,
.guide-cta a.btn--primary {
  background: var(--sea);
  color: #f7fbfa;
  border-color: transparent;
}

.legal-prose a.btn--primary:hover,
.guide-cta a.btn--primary:hover {
  background: var(--sea-deep);
  color: #ffffff;
}

.guide-cta__secondary {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.guide-cta__secondary:hover {
  color: var(--sea-deep);
  border-bottom-color: rgba(15, 118, 110, 0.35);
}

.legal-prose a.guide-cta__secondary {
  color: var(--ink-soft);
  text-decoration: none;
}

@media (max-width: 820px) {
  .timeline-legend {
    padding-left: 0;
    margin-bottom: 0.75rem;
  }

  .city-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info remove"
      "track track";
  }

  .city-info { grid-area: info; }
  .track { grid-area: track; }
  .btn--icon { grid-area: remove; }

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

  .site-nav {
    gap: 0.45rem 0.75rem;
  }

  .site-nav > a {
    font-size: 0.85rem;
  }

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

  .btn {
    white-space: normal;
    text-align: center;
  }

  .export-panels {
    grid-template-columns: 1fr;
  }

  .export-panel__head .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
