/* Bulma supplies the layout, columns, buttons and responsive utilities. */
html:has(.safe-roads) {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
.safe-roads {
  --paper: #f5f8fc;
  --ink: #163654;
  --brand: #004d9c;
  --accent: #ffb600;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Thai", sans-serif;
  line-height: 1.8;
}
.safe-roads a {
  color: inherit;
}
.safe-roads .container {
  max-width: 1180px !important;
}
.safe-roads .section {
  padding: 5.5rem 2rem;
}
.safe-roads .site-header {
  padding: 1.4rem 2rem;
  border-bottom: 1px solid #dbe5ef;
}
.project-brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  font-family: "Google Sans", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand);
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.brand-subtitle {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-top: 0.35rem;
}
.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}
.desktop-nav {
  gap: 2rem;
  font-size: 0.85rem;
}
.safe-roads .button {
  height: auto;
  min-height: 3.1rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 1.2rem;
  box-shadow: none;
}
.safe-roads .login-button {
  background: transparent;
  border: 1px solid #90aac5;
}
.safe-roads .action-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.safe-roads .button:hover {
  background: #e4eef9;
  color: var(--ink);
  border-color: var(--ink);
}
.safe-roads a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.safe-roads .landing-hero {
  padding-top: 4.8rem;
  padding-bottom: 0;
}
.eyebrow {
  font-family: "Google Sans", sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 1.5rem;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.6rem;
}
.safe-roads h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  line-height: 1.28;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin-bottom: 1.9rem;
}
.highlight-word {
  position: relative;
  color: var(--brand);
}
.highlight-word svg {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 20px;
  fill: none;
  stroke: #ffb600;
  stroke-width: 5;
  stroke-linecap: round;
}
.accent-period {
  color: var(--accent);
}
.hero-description {
  color: #536b80;
  font-size: 1.03rem;
}
.safe-roads .text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  font-weight: 600;
  font-size: 0.87rem;
}
.safe-roads .text-link:hover,
.desktop-nav a:hover {
  color: var(--brand);
}
.hero-copy .buttons {
  gap: 1.5rem;
}
.hero-footnote {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: #5c7287;
  margin-top: 2.2rem;
}
.tiny-helmet {
  border: 1px solid #a4bdd5;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.helmet-scene {
  position: relative;
  min-height: 525px;
  background: #e3edf9;
  border-radius: 48% 48% 1.5rem 1.5rem;
  isolation: isolate;
}
.scene-top {
  padding: 3.4rem 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Google Sans", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.17em;
}
.scene-top > span:last-child {
  font-size: 2rem;
}
.scene-orbit {
  position: absolute;
  width: 75%;
  height: 65%;
  border: 1px solid #b4cce5;
  border-radius: 50%;
  top: 20%;
  left: 12%;
  transform: rotate(-25deg);
  z-index: -1;
}
.helmet-art {
  width: 100%;
  display: block;
  margin-top: -1rem;
}
.helmet-sticker {
  position: absolute;
  top: 23%;
  right: 0;
  border: 1px solid #d99b00;
  background: #ffda7a;
  padding: 0.55rem 1rem;
  border-radius: 0.3rem;
  font-size: 0.83rem;
  transform: rotate(9deg);
  box-shadow: 0 4px 0 #16365409;
}
.helmet-sticker > span {
  margin-right: 0.4rem;
}
.journey-card {
  position: absolute;
  left: -1.4rem;
  bottom: 5rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.3rem;
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 0.8rem;
  box-shadow: 0 12px 30px #1636540b;
  transform: rotate(-4deg);
}
.journey-card strong {
  display: block;
  font-size: 0.92rem;
}
.journey-card div > span {
  display: block;
  font-size: 0.66rem;
  color: #5c7287;
}
.journey-icon {
  display: grid;
  place-items: center;
  background: #e9f1fb;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  font-size: 1.4rem;
}
.scene-bottom {
  display: flex;
  justify-content: space-between;
  padding: 0 2rem 1.5rem;
  font-size: 0.77rem;
}
.hero-bottom {
  border-top: 1px solid #dbe5ef;
  margin-top: 3.3rem;
  padding: 1.25rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  gap: 1rem;
}
.hero-bottom a {
  letter-spacing: 0;
}
.hero-bottom a span {
  margin-left: 2rem;
}
.safe-roads h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.brand-text {
  color: var(--brand);
}
.safe-roads .muted {
  color: #586e82;
}
.about-section {
  background: #ffffff;
}
.about-copy {
  padding-top: 2.8rem;
  font-size: 1.06rem;
}
.value-columns {
  margin-top: 2.5rem;
}
.value-card {
  border-top: 1px solid #dbe5ef;
  padding: 1.7rem 0.4rem 0 0;
}
.value-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #e9f1fb;
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.safe-roads h3 {
  font-size: 1.17rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.value-card p {
  font-size: 0.9rem;
  color: #586e82;
}
.tracking-preview {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 1.1rem;
  padding: 2rem;
  box-shadow: 12px 12px 0 #e3edf9;
}
.preview-header {
  gap: 1rem;
  margin-bottom: 2rem;
}
.preview-header .eyebrow {
  margin: 0;
  font-size: 0.62rem;
}
.safe-roads .tag {
  color: #365b7d;
  background: #e9f1fb;
  font-size: 0.66rem;
}
.tracking-preview > p {
  font-size: 0.85rem;
}
.check-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #dbe5ef;
}
.check-symbol {
  display: grid;
  place-items: center;
  background: #e9f1fb;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  flex-shrink: 0;
}
.check-row strong {
  display: block;
  font-size: 0.88rem;
}
.check-row div span {
  display: block;
  color: #5c7287;
  font-size: 0.76rem;
}
.row-dot {
  width: 6px;
  height: 6px;
  background: #004d9c;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}
.preview-note {
  background: #edf4fc;
  padding: 0.8rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
}
.preview-note span {
  margin-right: 0.6rem;
}
.tracking-copy {
  padding-left: 3rem;
}
.safe-roads .together-section {
  padding-top: 1rem;
}
.together-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 1.4rem;
  background: var(--brand);
  color: #ffffff;
  padding: 4rem 2rem;
}
.together-panel .eyebrow {
  color: #c0d9f2;
}
.together-panel h2 span {
  color: #ffcf55;
}
.together-panel p:not(.eyebrow) {
  color: #d8e8f8;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}
.safe-roads .together-panel .button {
  background: #ffb600;
  color: var(--ink);
  border: 1px solid #ffb600;
}
.safe-roads .together-panel .button:hover {
  background: #ffda7a;
}
.together-spark {
  position: absolute;
  right: 2rem;
  top: 1rem;
  font-size: 7rem;
  color: #b6d0e6;
  opacity: 0.16;
  transform: rotate(12deg);
  pointer-events: none;
}
.safe-roads .site-footer {
  padding-top: 0;
  padding-bottom: 2rem;
}
.site-footer .container {
  border-top: 1px solid #dbe5ef;
  padding-top: 2rem;
  gap: 1.5rem;
}
.site-footer p {
  font-size: 0.78rem;
  color: #5c7287;
}
.site-footer .project-brand {
  font-size: 1rem;
}
.site-footer .brand-logo {
  width: 35px;
  height: 35px;
  font-size: 1.5rem;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  background: #fff;
  padding: 0.75rem;
  z-index: 5;
}
.skip-link:focus {
  top: 1rem;
}
@media (min-width: 769px) and (max-width: 1023px) {
  .desktop-nav {
    gap: 1rem;
    font-size: 0.75rem;
  }
  .helmet-scene {
    min-height: 450px;
  }
  .journey-card {
    bottom: 4rem;
  }
  .scene-top {
    padding: 3rem 1.6rem 0;
  }
  .tracking-copy {
    padding-left: 1.5rem;
  }
}
@media (max-width: 768px) {
  .safe-roads .section {
    padding: 3.3rem 1.3rem;
  }
  .safe-roads .site-header {
    padding: 1rem 1.3rem;
  }
  .safe-roads .desktop-nav {
    display: none !important;
  }
  .safe-roads .login-button {
    padding: 0.6rem 0.9rem;
    font-size: 0.78rem;
    min-height: 2.6rem;
  }
  .project-brand {
    font-size: 1.1rem;
  }
  .brand-logo {
    width: 35px;
    height: 35px;
  }
  .safe-roads .landing-hero {
    padding-top: 2.8rem;
    padding-bottom: 0;
  }
  .safe-roads h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }
  .hero-description {
    font-size: 0.96rem;
  }
  .hero-copy .buttons {
    gap: 1rem;
  }
  .hero-footnote {
    margin-top: 1.5rem;
  }
  .helmet-scene {
    max-width: 480px;
    min-height: auto;
    margin: 2rem auto 0;
  }
  .scene-top {
    padding: 2.2rem 2rem 0;
  }
  .journey-card {
    left: -0.35rem;
    bottom: 4rem;
    padding: 0.8rem 1rem;
  }
  .helmet-sticker {
    right: 0.1rem;
  }
  .scene-bottom {
    padding-top: 1rem;
  }
  .hero-bottom {
    margin-top: 2rem;
    flex-wrap: wrap;
    font-size: 0.63rem;
  }
  .about-copy {
    padding-top: 1rem;
    font-size: 0.97rem;
  }
  .value-columns {
    margin-top: 1rem;
  }
  .value-card {
    padding-bottom: 0.5rem;
  }
  .tracking-preview {
    padding: 1.3rem;
    box-shadow: 6px 6px 0 #e3edf9;
  }
  .tracking-copy {
    padding-left: 0.75rem;
    margin-top: 2rem;
  }
  .safe-roads .together-section {
    padding-top: 0;
  }
  .together-panel {
    padding: 3rem 1.2rem;
  }
  .together-panel h2 {
    font-size: 1.9rem;
  }
  .together-spark {
    font-size: 4rem;
    right: 1rem;
  }
  .site-footer .container {
    flex-wrap: wrap;
  }
  .site-footer p {
    flex-basis: 100%;
    order: 3;
  }
  .site-footer .text-link {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.safe-roads) {
    scroll-behavior: auto;
  }
}
