@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("/fonts/IBMPlexSansThai-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("/fonts/IBMPlexSansThai-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("/fonts/IBMPlexSansThai-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  src: url("/fonts/IBMPlexSansThai-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #17363d;
  --ink-soft: #587078;
  --deep: #143f48;
  --deep-2: #0d3037;
  --teal: #147d73;
  --teal-bright: #1a9789;
  --mint: #dff2eb;
  --line-green: #06c755;
  --line-green-dark: #05a947;
  --cream: #f7f8f5;
  --paper: #ffffff;
  --paper-soft: #fbfcfa;
  --border: #dfe8e5;
  --border-dark: #bdd0ca;
  --amber: #a46616;
  --amber-bg: #fff7e8;
  --danger: #b64040;
  --shadow-sm: 0 8px 24px rgba(19, 58, 65, 0.08);
  --shadow-md: 0 24px 70px rgba(15, 54, 61, 0.14);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shell: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", "Leelawadee UI", Thonburi, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hidden {
  display: none !important;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  color: white;
  background: var(--deep);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(214, 226, 223, 0.8);
  background: rgba(247, 248, 245, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--deep);
  box-shadow: 0 8px 18px rgba(20, 63, 72, 0.18);
}

.brand-mark svg {
  width: 30px;
  stroke-width: 3;
}

.brand-name {
  color: var(--deep);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--teal);
}

.landing-nav,
.app-nav {
  display: flex;
  align-items: center;
  gap: 9px;
}

.landing-nav > a:not(.button) {
  padding: 10px 14px;
  color: #4b6268;
  font-size: 15px;
  font-weight: 500;
}

.landing-nav > a:not(.button):hover {
  color: var(--teal);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(20, 125, 115, 0.24);
  outline-offset: 2px;
}

.button-small {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 14px;
}

.button-large {
  min-height: 54px;
  padding: 14px 22px;
}

.button-line {
  color: white;
  background: var(--line-green);
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.18);
}

.button-line:hover {
  background: var(--line-green-dark);
  box-shadow: 0 14px 30px rgba(6, 199, 85, 0.24);
}

.line-glyph {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--line-green);
  background: white;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.button-soft {
  color: var(--teal);
  border-color: #c8dfd9;
  background: #edf7f3;
}

.button-soft:hover {
  background: #e3f2ed;
}

.button-ghost {
  color: var(--deep);
  border-color: var(--border-dark);
  background: rgba(255, 255, 255, 0.55);
}

.button-ghost svg {
  width: 19px;
}

.button-primary {
  color: white;
  background: var(--deep);
  box-shadow: 0 10px 24px rgba(20, 63, 72, 0.15);
}

.button-primary:hover {
  background: var(--deep-2);
}

.button-primary svg {
  width: 19px;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--deep);
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(154, 224, 204, 0.28), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(242, 191, 102, 0.12), transparent 28%),
    linear-gradient(145deg, #fbfcf8 0%, #f3f7f2 56%, #eaf2ed 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(20, 125, 115, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 125, 115, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to right, black, transparent 46%);
}

.hero::after {
  position: absolute;
  right: -150px;
  bottom: -330px;
  width: 740px;
  height: 740px;
  border: 1px solid rgba(20, 125, 115, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 90px rgba(20, 125, 115, 0.025), 0 0 0 180px rgba(20, 125, 115, 0.018);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-glow-one {
  top: 78px;
  right: 7%;
  width: 230px;
  height: 230px;
  background: rgba(82, 211, 179, 0.13);
}

.hero-glow-two {
  bottom: -90px;
  left: -110px;
  width: 300px;
  height: 300px;
  background: rgba(239, 190, 91, 0.1);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 48px;
  padding-block: 54px 62px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.hero h1 {
  max-width: 560px;
  margin: 18px 0 21px;
  color: var(--deep);
  font-size: clamp(34px, 3vw, 43px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero h1 em {
  position: relative;
  display: block;
  width: fit-content;
  color: var(--teal);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 2px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 151, 137, 0.14);
  content: "";
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 540px;
  margin: 0;
  color: #526b70;
  font-size: 16.5px;
  line-height: 1.75;
}

.hero-route-builder {
  max-width: 550px;
  margin-top: 25px;
  padding: 15px;
  border: 1px solid rgba(188, 210, 203, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(20, 63, 72, 0.06);
  backdrop-filter: blur(14px);
}

.route-builder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.route-builder-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
}

.route-builder-heading span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 5px rgba(26, 151, 137, 0.1);
}

.route-builder-heading small {
  color: #7b8f92;
  font-size: 10px;
}

.route-builder-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.route-builder-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.route-builder-fields label > span {
  color: #718588;
  font-size: 10px;
  font-weight: 500;
}

.route-builder-fields select {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 30px 0 12px;
  border: 1px solid #cbdcd7;
  border-radius: 11px;
  color: var(--deep);
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.route-swap-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #c5d9d3;
  border-radius: 12px;
  color: var(--teal);
  background: #e9f5f1;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.route-swap-button:hover {
  color: white;
  background: var(--teal);
  transform: rotate(180deg);
}

.route-swap-button svg { width: 20px; }

.route-builder-result {
  min-height: 20px;
  margin: 10px 2px 0;
  color: #53716f;
  font-size: 11px;
  line-height: 1.55;
}

.route-builder-result strong {
  color: var(--teal);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  color: #61767a;
  font-size: 13px;
  line-height: 1.5;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  width: 16px;
  color: var(--teal);
  stroke-width: 2.4;
}

.hero-visual {
  position: relative;
  min-height: 606px;
}

.map-experience {
  position: relative;
  display: flex;
  min-height: 606px;
  flex-direction: column;
  padding: 25px 25px 17px;
  overflow: hidden;
  border: 1px solid rgba(178, 228, 216, 0.16);
  border-radius: 32px;
  color: white;
  background:
    radial-gradient(circle at 74% 31%, rgba(55, 184, 157, 0.17), transparent 25%),
    radial-gradient(circle at 17% 77%, rgba(228, 166, 80, 0.12), transparent 25%),
    linear-gradient(145deg, #174d55 0%, #0e3a42 52%, #082d34 100%);
  box-shadow: 0 34px 90px rgba(12, 48, 55, 0.27);
}

.map-experience::before {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: radial-gradient(circle at 70% 45%, black, transparent 68%);
  pointer-events: none;
}

.map-experience-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.map-live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a8ddcf;
  font-size: 10px;
  font-weight: 600;
}

.map-live-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54e0bc;
  box-shadow: 0 0 0 5px rgba(84, 224, 188, 0.1);
  animation: map-live-pulse 2.1s ease-out infinite;
}

.map-experience-header h2 {
  margin: 3px 0 0;
  color: white;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.map-privacy-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(200, 239, 229, 0.17);
  border-radius: 999px;
  color: rgba(225, 247, 241, 0.76);
  background: rgba(255, 255, 255, 0.07);
  font-size: 9px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.map-privacy-badge svg { width: 14px; }

.landing-map-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 464px;
}

.landing-map-radar {
  position: absolute;
  border: 1px solid rgba(124, 220, 197, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.radar-one {
  top: 70px;
  right: 5px;
  width: 330px;
  height: 330px;
  box-shadow: 0 0 0 48px rgba(124, 220, 197, 0.025), 0 0 0 96px rgba(124, 220, 197, 0.018);
}

.radar-two {
  right: 100px;
  bottom: -55px;
  width: 170px;
  height: 170px;
}

.landing-map-canvas {
  position: absolute;
  top: 1px;
  right: -2px;
  width: 54%;
  height: 466px;
  filter: drop-shadow(0 19px 27px rgba(2, 22, 26, 0.23));
}

.landing-map-shape,
.landing-map-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-map-shape {
  opacity: 0;
  transition: opacity 420ms ease;
}

.landing-map-shape.map-ready { opacity: 1; }

.landing-map-shape > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.landing-map-shape .province-shape {
  fill: rgba(121, 197, 178, 0.25);
  stroke: rgba(202, 242, 232, 0.42);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  transition: fill 260ms ease, filter 260ms ease, opacity 260ms ease;
}

.landing-map-shape .province-shape.is-origin {
  fill: #6ee2c4;
  filter: drop-shadow(0 0 9px rgba(93, 233, 197, 0.72));
}

.landing-map-shape .province-shape.is-target {
  fill: #efb665;
  filter: drop-shadow(0 0 9px rgba(239, 182, 101, 0.62));
}

.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.landing-map-routes {
  z-index: 2;
  overflow: visible;
}

.landing-map-routes path,
.landing-map-routes circle {
  vector-effect: non-scaling-stroke;
}

.landing-route-glow,
.landing-route-forward,
.landing-route-reverse {
  fill: none;
}

.landing-route-glow {
  stroke: rgba(95, 233, 199, 0.17);
  stroke-width: 15;
  filter: url(#route-glow);
}

.landing-route-forward {
  stroke: #62edc8;
  stroke-width: 3.6;
  stroke-dasharray: 3 8;
  animation: map-route-forward 3.6s linear infinite;
}

.landing-route-reverse {
  stroke: #f1b967;
  stroke-width: 3.2;
  stroke-dasharray: 8 8;
  animation: map-route-reverse 4.2s linear infinite;
}

#arrow-mint path { fill: #62edc8; stroke: none; }
#arrow-amber path { fill: #f1b967; stroke: none; }

.landing-map-pin {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-map-pin .pin-wave {
  fill: rgba(98, 237, 200, 0.12);
  stroke: rgba(98, 237, 200, 0.3);
  stroke-width: 1.5;
  animation: map-pin-wave 2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.landing-map-pin .pin-core {
  fill: #0b343b;
  stroke: #62edc8;
  stroke-width: 3;
}

.landing-map-pin .pin-center { fill: white; stroke: none; }
.landing-map-pin.target-pin .pin-wave { fill: rgba(241, 185, 103, 0.13); stroke: rgba(241, 185, 103, 0.3); animation-delay: 0.65s; }
.landing-map-pin.target-pin .pin-core { stroke: #f1b967; }

.map-route-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 230px;
  padding: 11px 12px;
  border: 1px solid rgba(211, 244, 236, 0.18);
  border-radius: 15px;
  background: rgba(7, 39, 45, 0.72);
  box-shadow: 0 15px 40px rgba(2, 23, 27, 0.2);
  backdrop-filter: blur(13px);
}

.map-route-you { top: 102px; left: 0; }
.map-route-match { top: 192px; left: 22px; }

.route-card-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 600;
}

.route-card-icon.you { color: #0a3b41; background: #62edc8; }
.route-card-icon.match { color: #4f3512; background: #f1b967; }
.map-route-card small,
.map-route-card b { display: block; }
.map-route-card small { color: rgba(222, 242, 237, 0.56); font-size: 9px; }
.map-route-card b { display: flex; align-items: center; gap: 6px; color: white; font-size: 12px; font-weight: 600; line-height: 1.45; }
.map-route-card b i { color: rgba(255, 255, 255, 0.38); font-style: normal; }

.map-match-logic {
  position: absolute;
  z-index: 5;
  bottom: 21px;
  left: 0;
  display: flex;
  width: 285px;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid rgba(134, 225, 204, 0.17);
  border-radius: 15px;
  background: rgba(18, 82, 83, 0.72);
  backdrop-filter: blur(12px);
}

.map-match-logic > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #0a3b41;
  background: #6de2c4;
  font-size: 12px;
  font-weight: 700;
}

.map-match-logic b,
.map-match-logic small { display: block; }
.map-match-logic b { color: white; font-size: 11px; font-weight: 600; }
.map-match-logic small { max-width: 210px; color: rgba(220, 243, 237, 0.58); font-size: 8px; line-height: 1.45; }

.map-experience-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(221, 243, 237, 0.62);
  font-size: 8px;
}

.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 18px; height: 2px; border-radius: 2px; }
.legend-you { background: #62edc8; }
.legend-match { background: #f1b967; }
.map-experience-footer a { color: rgba(221, 243, 237, 0.42); font-size: 8px; transition: color 160ms ease; }
.map-experience-footer a:hover { color: rgba(255, 255, 255, 0.82); }

@keyframes map-live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(84, 224, 188, 0.08); }
  50% { box-shadow: 0 0 0 8px rgba(84, 224, 188, 0.01); }
}

@keyframes map-route-forward {
  to { stroke-dashoffset: -44; }
}

@keyframes map-route-reverse {
  to { stroke-dashoffset: 64; }
}

@keyframes map-pin-wave {
  0% { opacity: 0.8; transform: scale(0.65); }
  75%, 100% { opacity: 0; transform: scale(1.45); }
}

.reveal {
  animation: rise-in 680ms ease both;
}

.reveal-delay { animation-delay: 130ms; }

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

.landing-proof {
  border-block: 1px solid var(--border);
  background: white;
}

.landing-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding-block: 22px;
}

.landing-proof-grid > div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 0;
  padding-inline: 25px;
}

.landing-proof-grid > div + div::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: var(--border);
  content: "";
}

.landing-proof-grid > div > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--teal);
  background: #e8f4f0;
  font-size: 15px;
  font-weight: 700;
}

.landing-proof-grid svg { width: 20px; }
.landing-proof-grid p { margin: 0; }
.landing-proof-grid b,
.landing-proof-grid small { display: block; }
.landing-proof-grid b { color: var(--deep); font-size: 13px; font-weight: 600; }
.landing-proof-grid small { color: #7e9194; font-size: 10px; line-height: 1.5; }

.section {
  padding-block: 105px;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.privacy-copy h2,
.final-cta h2 {
  margin: 11px 0 13px;
  color: var(--deep);
  font-size: clamp(36px, 3.7vw, 50px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.how-section { background: #fbfcfa; }

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

.step-card {
  position: relative;
  min-height: 280px;
  padding: 25px 23px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.step-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.step-card.featured {
  color: white;
  border-color: var(--deep);
  background: var(--deep);
  box-shadow: 0 18px 38px rgba(20, 63, 72, 0.18);
}

.step-card.featured::after {
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border: 25px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
}

.step-number {
  position: absolute;
  top: 19px;
  right: 20px;
  color: #c3cfcc;
  font-size: 12px;
  font-weight: 850;
}

.featured .step-number { color: rgba(255, 255, 255, 0.45); }

.step-icon {
  display: grid;
  width: 51px;
  height: 51px;
  margin-bottom: 48px;
  place-items: center;
  border-radius: 15px;
  color: var(--teal);
  background: var(--mint);
}

.featured .step-icon { color: white; background: rgba(255, 255, 255, 0.12); }
.step-icon svg { width: 25px; }
.step-card h3 { margin: 0 0 8px; color: var(--deep); font-size: 19px; font-weight: 600; line-height: 1.4; }
.step-card p { margin: 0; color: #6e8387; font-size: 15px; line-height: 1.7; }
.featured h3 { color: white; }
.featured p { color: rgba(255, 255, 255, 0.7); }

.privacy-section {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--deep);
}

.privacy-section::after {
  position: absolute;
  top: -200px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(64, 157, 139, 0.12);
  content: "";
}

.privacy-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 95px;
}

.privacy-visual {
  position: relative;
  min-height: 390px;
}

.privacy-ring {
  position: absolute;
  border: 1px solid rgba(175, 224, 212, 0.13);
  border-radius: 50%;
}

.ring-one { inset: 20px 80px 20px 20px; }
.ring-two { inset: 70px 20px 70px 70px; }

.lock-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(360px, 88%);
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 25px 70px rgba(1, 20, 24, 0.25);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
}

.lock-icon {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 19px;
  place-items: center;
  border-radius: 17px;
  color: #b9ebdf;
  background: rgba(185, 235, 223, 0.12);
}

.lock-icon svg { width: 27px; }
.lock-card > b, .lock-card > small { display: block; }
.lock-card > b { font-size: 19px; font-weight: 600; line-height: 1.45; }
.lock-card > small { margin-top: 5px; color: rgba(255, 255, 255, 0.64); font-size: 13px; line-height: 1.55; }

.privacy-person {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 13px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-size: 11px;
  font-weight: 850;
}

.privacy-person b, .privacy-person small { display: block; }
.privacy-person b { font-size: 12px; font-weight: 600; }
.privacy-person small { color: rgba(255, 255, 255, 0.58); font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-green); box-shadow: 0 0 0 4px rgba(6, 199, 85, 0.12); }

.section-kicker.light { color: #8ed7c7; }
.privacy-copy h2 { color: white; }
.privacy-copy > p { max-width: 520px; color: rgba(255, 255, 255, 0.72); font-size: 16px; line-height: 1.72; }

.check-list {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li { display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, 0.87); font-size: 15px; line-height: 1.55; }
.check-list span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #b9ebdf; background: rgba(185, 235, 223, 0.12); font-size: 12px; }

.final-cta { background: #eef4ef; }
.final-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta h2 { margin-bottom: 0; }
.final-cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.text-button { border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; }
.text-button span { margin-left: 4px; }

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #0f3037;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  padding-block: 48px 35px;
}

.footer-brand .brand-mark { color: var(--deep); background: white; box-shadow: none; }
.footer-brand .brand-name { color: white; }
.footer-grid > div:first-child > p { max-width: 430px; margin: 14px 0 0; font-size: 13px; line-height: 1.6; }
.footer-links { display: flex; gap: 25px; padding-top: 13px; font-size: 13px; line-height: 1.6; }
.footer-links button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-block: 18px 26px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; }
.footer-bottom p { margin: 0; }

/* Application */
.app-layout {
  display: grid;
  min-height: calc(100vh - 75px);
  grid-template-columns: 245px minmax(0, 1fr);
  background: #f6f8f6;
}

.app-sidebar {
  position: sticky;
  top: 75px;
  display: flex;
  height: calc(100vh - 75px);
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  background: white;
}

.sidebar-inner { padding: 28px 18px; }
.sidebar-label { margin: 0 12px 9px; color: #96a5a7; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.sidebar-link {
  display: grid;
  width: 100%;
  min-height: 46px;
  grid-template-columns: 23px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  color: #60767a;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}
.sidebar-link svg { width: 20px; }
.sidebar-link b { min-width: 23px; padding: 2px 6px; border-radius: 999px; color: var(--teal); background: var(--mint); text-align: center; font-size: 9px; }
.sidebar-link:hover { background: #f3f7f5; }
.sidebar-link.active { color: var(--deep); background: #eaf5f1; font-weight: 800; }
.sidebar-link.active svg { color: var(--teal); }
.sidebar-divider { height: 1px; margin: 19px 10px; background: var(--border); }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin: 18px; padding: 12px; border-radius: 12px; background: #f4f7f5; }
.sidebar-footer b, .sidebar-footer small { display: block; line-height: 1.35; }
.sidebar-footer b { font-size: 11px; }
.sidebar-footer small { color: #87989b; font-size: 9px; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0a33e; box-shadow: 0 0 0 4px rgba(224, 163, 62, 0.12); }

.app-content {
  width: min(calc(100% - 48px), 980px);
  margin-inline: auto;
  padding-block: 25px 80px;
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 8px 13px;
  border: 1px solid #f1ddb9;
  border-radius: 10px;
  color: #7a5a22;
  background: #fff8e9;
  font-size: 10px;
}
.demo-banner span { padding: 2px 7px; border-radius: 6px; color: white; background: #bd7f22; font-weight: 800; }
.demo-banner button { margin-left: auto; padding: 0; border: 0; color: #805a1f; background: transparent; cursor: pointer; text-decoration: underline; }

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 24px;
}
.dashboard-heading .welcome-line { margin: 0 0 2px; color: var(--teal); font-size: 11px; font-weight: 750; }
.dashboard-heading h1 { margin: 0; color: var(--deep); font-size: 30px; letter-spacing: -0.7px; }
.dashboard-heading p:last-child { margin: 2px 0 0; color: #758a8e; font-size: 12px; }

.my-route-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 15px 22px;
  padding: 23px 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 4px 18px rgba(20, 63, 72, 0.035);
}
.my-route-label { display: flex; align-items: center; gap: 11px; grid-row: 1 / span 2; }
.my-route-label small, .my-route-label b { display: block; line-height: 1.35; }
.my-route-label small { color: #829497; font-size: 9px; }
.my-route-label b { font-size: 11px; }
.status-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--line-green); box-shadow: 0 0 0 6px rgba(6, 199, 85, 0.1); }
.my-route-main { display: flex; align-items: center; gap: 15px; padding-right: 40px; }
.route-location small, .route-location b { display: block; }
.route-location { min-width: 0; }
.route-location small { color: #8a9a9d; font-size: 9px; }
.route-location b { color: var(--deep); font-size: 17px; overflow-wrap: anywhere; }
.route-arrow { display: flex; min-width: 90px; flex: 1; align-items: center; color: var(--teal); }
.route-arrow span { height: 1px; flex: 1; background: #bcd8d1; }
.route-arrow svg { width: 21px; }
.my-route-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #778a8d; font-size: 10px; }
.my-route-meta i { width: 3px; height: 3px; border-radius: 50%; background: #b7c5c3; }
.route-menu { position: absolute; top: 18px; right: 17px; }

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
  cursor: pointer;
}
.icon-button svg { width: 20px; }

.dashboard-tabs { display: flex; gap: 5px; margin-top: 29px; border-bottom: 1px solid var(--border); }
.dashboard-tab { position: relative; display: flex; min-height: 47px; align-items: center; gap: 7px; padding: 8px 15px; border: 0; color: #778b8e; background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; }
.dashboard-tab::after { position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; content: ""; }
.dashboard-tab.active { color: var(--deep); font-weight: 800; }
.dashboard-tab.active::after { background: var(--teal); }
.dashboard-tab span { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 999px; background: #edf2f0; font-size: 9px; }

.matches-list { display: grid; gap: 13px; margin-top: 18px; }
.match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 19px;
  padding: 21px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.match-card:hover { border-color: #b7d4cc; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.match-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.match-card-top .avatar { width: 35px; height: 35px; font-size: 9px; }
.match-card-top b, .match-card-top small { display: block; line-height: 1.35; }
.match-card-top b { font-size: 11px; }
.match-card-top small { color: #8b9a9d; font-size: 9px; }
.match-route { display: flex; align-items: center; gap: 12px; color: var(--deep); }
.match-route b { font-size: 18px; }
.match-route svg { width: 23px; color: var(--teal); }
.match-details { margin-top: 8px; color: #6d8286; font-size: 11px; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.reason-chip { padding: 4px 8px; border-radius: 7px; color: #26786e; background: #edf7f3; font-size: 9px; font-weight: 700; }
.reason-chip.warning { color: var(--amber); background: var(--amber-bg); }
.match-card-side { display: flex; min-width: 115px; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.match-status { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); font-size: 9px; font-weight: 750; }
.match-status::before { width: 6px; height: 6px; border-radius: 50%; background: var(--line-green); content: ""; }
.detail-link { display: inline-flex; align-items: center; gap: 5px; border: 0; color: var(--teal); background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
.detail-link svg { width: 16px; }

.empty-state { padding: 55px 25px; border: 1px dashed var(--border-dark); border-radius: var(--radius); text-align: center; background: white; }
.empty-state .step-icon { margin: 0 auto 15px; }
.empty-state h3 { margin: 0; color: var(--deep); }
.empty-state p { max-width: 460px; margin: 7px auto 0; color: #778a8e; font-size: 12px; }

.dashboard-note { display: flex; gap: 12px; margin-top: 20px; padding: 15px 17px; border-radius: 12px; color: #775722; background: var(--amber-bg); }
.dashboard-note svg { width: 20px; flex: 0 0 auto; margin-top: 2px; }
.dashboard-note p { margin: 0; font-size: 10px; }
.dashboard-note b { color: #664919; }

.notification-button { position: relative; margin-right: 4px; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: #e67d4d; }
.profile-chip { display: flex; min-height: 50px; align-items: center; gap: 10px; padding: 5px 8px 5px 6px; border: 1px solid var(--border); border-radius: 14px; background: white; cursor: pointer; }
.avatar-small { width: 36px; height: 36px; }
.profile-chip-copy { min-width: 110px; text-align: left; }
.profile-chip-copy b, .profile-chip-copy small { display: block; line-height: 1.3; }
.profile-chip-copy b { font-size: 10px; }
.profile-chip-copy small { color: #8a9a9d; font-size: 8px; }
.profile-chip > svg { width: 15px; color: #8c9b9d; }
.mobile-app-nav { display: none; }

/* Dialogs and forms */
.modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(8, 30, 35, 0.62);
  backdrop-filter: blur(6px);
}

.modal[open] {
  display: grid;
  place-items: center;
  animation: modal-fade 180ms ease both;
}

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal-frame {
  display: flex;
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: white;
  box-shadow: 0 35px 100px rgba(0, 20, 25, 0.28);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 28px 19px;
  border-bottom: 1px solid var(--border);
}
.modal-kicker { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.modal-header h2 { margin: 2px 0 0; color: var(--deep); font-size: 23px; line-height: 1.25; }
.modal-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--border); border-radius: 11px; color: #76898c; background: white; cursor: pointer; font-size: 24px; line-height: 1; }
.modal-close:hover { color: var(--deep); background: #f5f7f6; }

.stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: #fafcfa;
}
.stepper i { height: 1px; background: #dce5e2; }
.step { display: flex; align-items: center; gap: 7px; padding: 0; border: 0; color: #8c9c9f; background: transparent; cursor: pointer; font-size: 10px; }
.step span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #ccd9d6; border-radius: 50%; font-size: 9px; font-weight: 850; }
.step b { font-weight: 650; }
.step.active { color: var(--deep); }
.step.active span, .step.complete span { color: white; border-color: var(--teal); background: var(--teal); }
.step.complete { color: var(--teal); }

.modal-body {
  overflow: auto;
  padding: 25px 28px 30px;
}
.form-step { display: none; }
.form-step.active { display: block; animation: form-in 220ms ease both; }
@keyframes form-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

.form-intro { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; }
.form-intro-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: var(--teal); background: var(--mint); }
.form-intro-icon.success { color: white; background: var(--teal); }
.form-intro-icon svg { width: 22px; }
.form-intro h3 { margin: 0; color: var(--deep); font-size: 16px; }
.form-intro p { margin: 1px 0 0; color: #7b8e91; font-size: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--deep); font-size: 11px; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
.field > span b { color: #cb644f; }
.field > span em { margin-left: 4px; color: #91a0a2; font-size: 9px; font-style: normal; font-weight: 500; }
.field input, .field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d5e0dd;
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  background: white;
  font-size: 12px;
  font-weight: 500;
}
.field input::placeholder { color: #a7b4b5; }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 125, 115, 0.09); }
.field select:disabled { color: #61777a; background: #f3f6f4; }
.field small { color: #8a9b9e; font-size: 9px; font-weight: 500; }
.field-error input, .field-error select { border-color: #d47665; }

.form-privacy, .form-tip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 21px;
  padding: 13px 14px;
  border-radius: 11px;
  color: #39766f;
  background: #eff8f5;
}
.form-privacy svg { width: 19px; flex: 0 0 auto; margin-top: 2px; }
.form-privacy p, .form-tip p { margin: 0; font-size: 9px; }
.form-privacy b { font-size: 10px; }
.form-tip { color: #75571f; background: var(--amber-bg); }
.form-tip > span { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border: 1px solid #d3a154; border-radius: 50%; font-size: 10px; font-weight: 800; }

.target-add-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.target-list { display: grid; gap: 8px; min-height: 55px; margin: 15px 0 20px; padding: 11px; border: 1px dashed var(--border-dark); border-radius: 12px; }
.target-list:empty::before { padding: 8px; color: #94a4a6; content: "ยังไม่ได้เลือกจังหวัดปลายทาง"; text-align: center; font-size: 10px; }
.target-item { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; background: #f0f6f3; }
.target-item > span:first-child { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: white; background: var(--teal); font-size: 9px; font-weight: 850; }
.target-item b { font-size: 11px; }
.target-item button { width: 28px; height: 28px; border: 0; border-radius: 7px; color: #879799; background: transparent; cursor: pointer; font-size: 17px; }
.target-item button:hover { color: var(--danger); background: #faece9; }

.review-card { overflow: hidden; border: 1px solid var(--border); border-radius: 15px; }
.review-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 24px; background: #f3f8f5; }
.review-route > div { display: flex; flex-direction: column; }
.review-route small { color: #829496; font-size: 9px; }
.review-route b { color: var(--deep); font-size: 16px; }
.review-route span { color: #718588; font-size: 10px; }
.review-route svg { width: 28px; color: var(--teal); }
.review-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 17px 24px; }
.review-card dl div { display: flex; flex-direction: column; }
.review-card dt { color: #87989a; font-size: 9px; }
.review-card dd { margin: 0; color: var(--deep); font-size: 11px; font-weight: 700; }
.confirmation-check { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; padding: 14px; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; }
.confirmation-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--teal); }
.confirmation-check b, .confirmation-check small { display: block; }
.confirmation-check b { font-size: 10px; }
.confirmation-check small { color: #87989a; font-size: 9px; }

.modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-top: 1px solid var(--border);
  background: #fbfcfb;
}
.modal-footer .button-primary { margin-left: auto; }
.autosave-note { margin-left: auto; color: #98a6a8; font-size: 9px; }
.modal-footer .button-primary ~ .button-primary { margin-left: 0; }

.match-detail-frame { width: min(760px, 100%); }
.match-route-visual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; padding: 21px; border-radius: 15px; background: #edf6f2; }
.match-route-person { display: flex; flex-direction: column; }
.match-route-person small { color: #849698; font-size: 9px; }
.match-route-person b { color: var(--deep); font-size: 17px; }
.match-route-person span { color: #6f8589; font-size: 10px; }
.swap-symbol { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: white; background: var(--teal); }
.swap-symbol svg { width: 24px; }
.match-detail-section { margin-top: 24px; }
.match-detail-section h3 { margin: 0 0 12px; color: var(--deep); font-size: 14px; }
.reason-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.reason-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 10px; }
.reason-list li span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--teal); background: var(--mint); font-weight: 850; }
.reason-list li.warning span { color: var(--amber); background: var(--amber-bg); }
.match-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.detail-box { padding: 13px; border-radius: 10px; background: #f5f7f6; }
.detail-box small, .detail-box b { display: block; }
.detail-box small { color: #89999b; font-size: 9px; }
.detail-box b { font-size: 11px; }
.match-warning { display: flex; gap: 10px; margin-top: 20px; padding: 13px; border-radius: 10px; color: #765821; background: var(--amber-bg); font-size: 9px; }
.match-warning svg { width: 18px; flex: 0 0 auto; }
.match-footer { justify-content: flex-end; }
.match-footer .button-primary { margin-left: 0; }

.info-frame { position: relative; width: min(520px, 100%); padding: 36px; }
.modal-close.floating { position: absolute; top: 16px; right: 16px; }
.info-icon { display: grid; width: 57px; height: 57px; margin-bottom: 18px; place-items: center; border-radius: 17px; color: var(--teal); background: var(--mint); }
.info-icon svg { width: 28px; }
.info-frame h2 { margin: 0 0 9px; color: var(--deep); font-size: 23px; }
.info-frame p { color: #6e8286; font-size: 12px; }
.info-frame ul { margin: 17px 0 0; padding-left: 20px; color: #5f7579; font-size: 11px; }
.info-frame .button { margin-top: 22px; }

.toast {
  position: fixed;
  z-index: 300;
  right: 25px;
  bottom: 25px;
  display: flex;
  min-width: 270px;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid #c8dfd9;
  border-radius: 13px;
  background: white;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-size: 12px; font-weight: 850; }
.toast p { margin: 0; color: var(--deep); font-size: 11px; font-weight: 700; }

@media (max-width: 1000px) {
  .landing-nav > a:not(.button) { display: none; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 42px; padding-block: 60px 66px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: 40px; }
  .hero-route-builder { max-width: 620px; }
  .hero-visual { min-height: 610px; }
  .landing-map-canvas { right: 7%; width: 46%; }
  .map-route-you, .map-match-logic { left: 7%; }
  .map-route-match { left: 10%; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { gap: 40px; }
  .app-layout { grid-template-columns: 205px minmax(0, 1fr); }
  .my-route-card { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .header-inner { min-height: 66px; }
  .site-header { position: sticky; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-name { font-size: 21px; }
  .landing-nav { position: absolute; top: 66px; right: 0; left: 0; display: none; padding: 14px 15px 18px; border-bottom: 1px solid var(--border); background: var(--cream); box-shadow: var(--shadow-sm); }
  .landing-nav.open { display: grid; }
  .landing-nav .button { width: 100%; }
  .mobile-menu-button { display: block; }
  .app-nav { margin-left: auto; margin-right: 7px; }
  .app-nav .notification-button, .profile-chip-copy, .profile-chip > svg { display: none; }
  .profile-chip { min-height: auto; padding: 0; border: 0; background: transparent; }

  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 42px 48px; }
  .eyebrow { font-size: 11px; }
  .hero h1 { margin-top: 14px; font-size: clamp(28px, 7.4vw, 32px); line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; }
  .hero h1 em::after { height: 6px; }
  .hero-lead { font-size: 15px; line-height: 1.72; }
  .hero-route-builder { margin-top: 20px; padding: 13px; border-radius: 16px; }
  .route-builder-heading { margin-bottom: 9px; }
  .route-builder-heading span { font-size: 12px; }
  .route-builder-heading small { font-size: 9px; }
  .route-builder-fields { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 6px; }
  .route-builder-fields select { height: 42px; padding-right: 22px; padding-left: 9px; font-size: 12px; }
  .route-swap-button { width: 40px; height: 42px; }
  .route-builder-result { margin-top: 8px; font-size: 10px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-meta { gap: 9px 14px; font-size: 11px; }
  .hero-visual { min-height: 520px; }
  .map-experience { min-height: 520px; padding: 19px 16px 13px; border-radius: 24px; }
  .map-experience-header h2 { font-size: 17px; }
  .map-privacy-badge { padding: 6px 8px; font-size: 8px; }
  .landing-map-stage { min-height: 390px; }
  .landing-map-canvas { top: 2px; right: -17px; width: 61%; height: 394px; }
  .radar-one { top: 48px; right: -70px; width: 300px; height: 300px; }
  .map-route-card { width: 200px; padding: 9px 10px; }
  .map-route-you { top: 84px; left: 0; }
  .map-route-match { top: 160px; left: 9px; }
  .route-card-icon { width: 31px; height: 31px; border-radius: 10px; font-size: 8px; }
  .map-route-card b { font-size: 10px; }
  .map-match-logic { bottom: 12px; left: 0; width: 255px; padding: 10px 11px; }
  .map-match-logic small { max-width: 185px; }
  .map-experience-footer { gap: 8px; }
  .map-legend { gap: 9px; }

  .landing-proof-grid { grid-template-columns: 1fr; gap: 0; padding-block: 9px; }
  .landing-proof-grid > div { justify-content: flex-start; padding: 12px 4px; }
  .landing-proof-grid > div + div::before { top: 0; right: 0; bottom: auto; left: 0; width: auto; height: 1px; }
  .section { padding-block: 74px; }
  .section-heading h2, .privacy-copy h2, .final-cta h2 { font-size: 32px; line-height: 1.28; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 240px; }
  .step-icon { margin-bottom: 35px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 30px; }
  .privacy-visual { min-height: 330px; order: 2; }
  .privacy-copy { order: 1; }
  .ring-one { inset: 10px 40px 10px 0; }
  .ring-two { inset: 45px 0 45px 40px; }
  .final-cta-card { flex-direction: column; align-items: flex-start; }
  .final-cta-actions, .final-cta-actions .button { width: 100%; }
  .footer-grid { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 5px; }

  .app-layout { display: block; min-height: calc(100vh - 66px); padding-bottom: 70px; }
  .app-sidebar { display: none; }
  .app-content { width: min(calc(100% - 28px), 980px); padding-block: 16px 35px; }
  .demo-banner { align-items: flex-start; flex-wrap: wrap; }
  .demo-banner { display: block; line-height: 1.8; }
  .demo-banner span { margin-right: 5px; }
  .demo-banner button { display: block; margin: 3px 0 0; }
  .dashboard-heading { align-items: center; }
  .dashboard-heading h1 { font-size: 25px; }
  .dashboard-heading .button { width: 45px; min-width: 45px; padding: 0; }
  .dashboard-heading .button svg { width: 20px; }
  .dashboard-heading .button { font-size: 0; }
  .my-route-card { display: block; padding: 19px; }
  .my-route-label { margin-bottom: 17px; }
  .my-route-main { display: grid; grid-template-columns: minmax(0, 0.8fr) 42px minmax(0, 1.35fr); gap: 7px; padding-right: 0; }
  .route-arrow { min-width: 0; }
  .route-location b { font-size: 15px; }
  .my-route-meta { margin-top: 14px; }
  .route-menu { top: 13px; right: 12px; }
  .dashboard-tabs { overflow-x: auto; }
  .dashboard-tab { flex: 0 0 auto; padding-inline: 10px; }
  .match-card { grid-template-columns: 1fr; }
  .match-card > div { min-width: 0; }
  .reason-chip { max-width: 100%; overflow-wrap: anywhere; }
  .match-card-side { min-width: 0; flex-direction: row; align-items: center; }
  .match-route b { font-size: 16px; }
  .mobile-app-nav { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: grid; height: 66px; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(15px); }
  .mobile-app-nav button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; border: 0; color: #7d8f92; background: transparent; font-size: 8px; }
  .mobile-app-nav svg { width: 21px; }
  .mobile-app-nav button.active { color: var(--teal); font-weight: 800; }

  .modal { padding: 0; }
  .modal[open] { align-items: end; }
  .modal-frame { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; }
  .modal-header { padding: 19px 17px 15px; }
  .modal-header h2 { font-size: 19px; }
  .stepper { gap: 5px; padding: 13px 17px; }
  .step b { display: none; }
  .modal-body { padding: 20px 17px 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-footer { padding: 12px 17px; }
  .autosave-note { display: none; }
  .modal-footer .button:first-child + .button-primary, .modal-footer .button-primary { margin-left: auto; }
  .target-add-row { grid-template-columns: 1fr; }
  .review-route { grid-template-columns: 1fr; gap: 13px; }
  .review-route svg { transform: rotate(90deg); }
  .review-card dl { grid-template-columns: 1fr; gap: 10px; }
  .match-route-visual { grid-template-columns: 1fr; }
  .swap-symbol { width: 37px; height: 37px; transform: rotate(90deg); }
  .match-detail-grid { grid-template-columns: 1fr; }
  .info-frame { padding: 29px 22px; }
  .toast { right: 14px; bottom: 80px; left: 14px; min-width: 0; }
}

@media (max-width: 420px) {
  .hero-grid { padding-block: 34px 42px; }
  .route-builder-heading small { display: none; }
  .hero-actions { gap: 9px; margin-top: 18px; }
  .button-large { min-height: 51px; padding-inline: 16px; }
  .hero-meta { display: grid; }
  .hero-visual { min-height: 500px; }
  .map-experience { min-height: 500px; padding-inline: 14px; }
  .map-privacy-badge { display: none; }
  .landing-map-stage { min-height: 372px; }
  .landing-map-canvas { top: 2px; right: -44px; width: 72%; height: 376px; }
  .map-route-card { width: 184px; }
  .map-route-you { top: 80px; }
  .map-route-match { top: 153px; left: 5px; }
  .map-match-logic { bottom: 8px; width: 230px; }
  .map-match-logic small { max-width: 160px; }
  .map-legend span:last-child { display: none; }
}

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