/* logmate marketing site stylesheet.
 * Ported from the Flutter site's theme: Bulma-derived palette
 * (app_colors.dart) + Barlow type scale (app_theme.dart).
 * Breakpoints: mobile < 768px, tablet < 1024px (app_breakpoints.dart). */

:root {
  --primary: #3273dc;
  --success: #23d160;
  --danger: #ff3860;
  --orange: #ff470f;
  --black: #0a0a0a;
  --grey-dark: #4a4a4a;
  --grey: #7a7a7a;
  --grey-light: #b5b5b5;
  --white-ter: #f5f5f5;
  --white-bis: #fafafa;
  --border: #e5e5e5;
  --max-content: 1200px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Barlow', sans-serif;
  color: var(--grey-dark);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  color: var(--black);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 27px;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  font-weight: 500;
}

a {
  color: var(--primary);
}

.text-success {
  color: var(--success);
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #fff;
  transition: filter 0.15s ease;
}

.btn:hover {
  filter: brightness(0.92);
}

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

.btn-success {
  background: var(--success);
}

.btn-muted {
  background: #e8e8e8;
  color: var(--grey-dark);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 16px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ */
/* Header + navigation                                                 */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--grey-dark);
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-caret {
  font-size: 12px;
  margin-left: 3px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-dark);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--white-bis);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile drawer (pure CSS checkbox toggle) */

.drawer-toggle {
  display: none;
}

.drawer-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
}

.drawer-button span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--grey-dark);
}

.mobile-drawer {
  display: none;
}

@media (max-width: 1023px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .drawer-button {
    display: flex;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
  }

  .drawer-toggle:checked ~ .mobile-drawer {
    transform: translateX(0);
  }

  .drawer-ctas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  .drawer-ctas .btn {
    text-align: center;
  }

  .drawer-section {
    margin: 8px 0;
  }

  .drawer-section-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--grey);
    padding: 8px 0 4px;
  }

  .drawer-link {
    display: block;
    padding: 10px 0;
    font-weight: 600;
    color: var(--grey-dark);
    text-decoration: none;
  }

  .drawer-sublink {
    font-weight: 500;
    padding-left: 16px;
  }
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section {
  width: 100%;
}

.section-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 48px 24px;
}

.section-alt {
  background: var(--white-bis);
}

.section-narrow .section-inner {
  max-width: 900px;
}

.section-content .section-inner {
  max-width: 800px;
}

.section-article .section-inner {
  max-width: 720px;
}

.section-tall .section-inner {
  padding: 96px 24px;
  text-align: center;
}

.section-notes .section-inner {
  padding: 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-subtitle {
  text-align: center;
  font-size: 20px;
  color: var(--grey);
  margin: 0 0 8px;
}

.page-lead {
  text-align: center;
  font-size: 18px;
  color: var(--grey-dark);
  max-width: 720px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 32px 0;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 500;
  color: var(--grey-dark);
  margin: 20px 0 0;
}

.hero-lead {
  font-size: 19px;
  color: var(--grey);
  margin: 14px 0 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-frame {
  padding: 12px;
  background: #171a1e;
  border-radius: 44px;
  box-shadow: 0 24px 48px rgba(10, 10, 10, 0.28);
}

.phone-carousel {
  position: relative;
  width: 290px;
  max-width: 100%;
  aspect-ratio: 1290 / 2796;
  border-radius: 32px;
  overflow: hidden;
}

.phone-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-carousel-fade 50s infinite;
}

/* 10 slides x 5s = 50s cycle. Each slide fades in over the first
   ~0.75s (1.5%) of its slot, holds to 10%, and fades out as the next
   slide starts. The same delays drive the tracking dots. */
.phone-carousel img:nth-child(2),
.carousel-dots .dot:nth-child(2) {
  animation-delay: 5s;
}

.phone-carousel img:nth-child(3),
.carousel-dots .dot:nth-child(3) {
  animation-delay: 10s;
}

.phone-carousel img:nth-child(4),
.carousel-dots .dot:nth-child(4) {
  animation-delay: 15s;
}

.phone-carousel img:nth-child(5),
.carousel-dots .dot:nth-child(5) {
  animation-delay: 20s;
}

.phone-carousel img:nth-child(6),
.carousel-dots .dot:nth-child(6) {
  animation-delay: 25s;
}

.phone-carousel img:nth-child(7),
.carousel-dots .dot:nth-child(7) {
  animation-delay: 30s;
}

.phone-carousel img:nth-child(8),
.carousel-dots .dot:nth-child(8) {
  animation-delay: 35s;
}

.phone-carousel img:nth-child(9),
.carousel-dots .dot:nth-child(9) {
  animation-delay: 40s;
}

.phone-carousel img:nth-child(10),
.carousel-dots .dot:nth-child(10) {
  animation-delay: 45s;
}

@keyframes hero-carousel-fade {
  0% {
    opacity: 0;
  }

  1.5% {
    opacity: 1;
  }

  10% {
    opacity: 1;
  }

  11.5% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grey-light);
  animation: hero-dot-active 50s infinite;
}

@keyframes hero-dot-active {
  0% {
    background: var(--success);
    transform: scale(1.25);
  }

  10% {
    background: var(--success);
    transform: scale(1.25);
  }

  11.5% {
    background: var(--grey-light);
    transform: scale(1);
  }

  100% {
    background: var(--grey-light);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-carousel img,
  .carousel-dots .dot {
    animation: none;
  }

  .phone-carousel img:first-child {
    opacity: 1;
  }

  .carousel-dots .dot:first-child {
    background: var(--success);
  }
}

@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    gap: 40px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .phone-carousel {
    width: 230px;
  }
}

/* ------------------------------------------------------------------ */
/* Onboarding steps                                                    */
/* ------------------------------------------------------------------ */

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.step {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #5a8fe4);
  box-shadow: 0 4px 12px rgba(50, 115, 220, 0.2);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
}

.step-connector {
  width: 48px;
  border-top: 2px dashed rgba(181, 181, 181, 0.5);
  margin-top: 26px;
}

.step .store-buttons {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .step-connector {
    display: none;
  }
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-buttons img {
  height: 44px;
  width: auto;
  transition: transform 0.15s ease;
}

.store-buttons a:hover img {
  transform: scale(1.05);
}

/* ------------------------------------------------------------------ */
/* Driver types + NZTA badge                                           */
/* ------------------------------------------------------------------ */

.nzta-badge {
  text-align: center;
  margin-bottom: 40px;
}

.driver-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
}

.driver-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.driver-type:hover {
  transform: scale(1.08);
  background: rgba(50, 115, 220, 0.06);
}

.driver-type-label {
  font-weight: 600;
  color: var(--black);
}

@media (max-width: 767px) {
  .driver-types {
    gap: 28px;
  }

  .driver-type img {
    height: 64px;
  }
}

/* ------------------------------------------------------------------ */
/* Benefit cards (home)                                                */
/* ------------------------------------------------------------------ */

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

@media (max-width: 1023px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  border-color: rgba(50, 115, 220, 0.25);
  box-shadow: 0 8px 24px rgba(50, 115, 220, 0.08);
}

.benefit-icon {
  display: inline-flex;
  padding: 12px;
  border-radius: 50%;
  background: var(--white-bis);
  margin-bottom: 16px;
}

.benefit-subtitle {
  font-size: 14px;
  color: var(--grey);
  margin: 0 0 8px;
}

.benefit-points {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  text-align: left;
}

.benefit-points li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.check-icon {
  flex-shrink: 0;
  font-weight: 600;
}

.check-success {
  color: var(--success);
}

.check-primary {
  color: var(--primary);
}

/* ------------------------------------------------------------------ */
/* Customer marquee                                                    */
/* ------------------------------------------------------------------ */

.heart {
  color: var(--danger);
}

.customer-marquee {
  overflow: hidden;
}

.customer-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.customer-marquee:hover .customer-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.customer-logo {
  width: 200px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.customer-logo:hover {
  opacity: 1;
}

.customer-logo img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* Alternating product benefits                                        */
/* ------------------------------------------------------------------ */

.alt-benefit-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.alt-benefit-row > div {
  flex: 1;
}

.alt-benefit-reversed {
  flex-direction: row-reverse;
}

.alt-benefit-text p {
  color: var(--grey);
}

@media (max-width: 767px) {
  .alt-benefit-row,
  .alt-benefit-reversed {
    flex-direction: column;
    gap: 20px;
    padding: 32px 0;
  }
}

/* ------------------------------------------------------------------ */
/* Video embed                                                         */
/* ------------------------------------------------------------------ */

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
}

/* ------------------------------------------------------------------ */
/* Pricing                                                             */
/* ------------------------------------------------------------------ */

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.comparison-table th {
  font-size: 17px;
  font-weight: 600;
}

.comparison-table th:not(:first-child),
.cell-center {
  text-align: center;
}

.comparison-table tbody tr:nth-child(odd) {
  background: var(--white-ter);
}

.cell-center .check-icon {
  color: var(--primary);
  font-size: 18px;
}

.table-footnote {
  text-align: right;
  font-size: 13px;
  font-style: italic;
  color: var(--grey);
  margin-top: 8px;
}

.plan-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 36px;
  text-align: center;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--primary);
  margin-top: 20px;
}

.plan-currency {
  font-size: 22px;
  font-weight: 600;
  margin-top: 8px;
}

.plan-amount {
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
}

.plan-period {
  color: var(--grey);
  font-size: 16px;
  margin-top: 28px;
}

.plan-tax {
  font-size: 13px;
  color: var(--grey);
  margin: 4px 0 28px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.plan-features li {
  display: flex;
  gap: 12px;
  padding: 6px 0;
}

.notes-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.note {
  font-size: 14px;
  color: var(--grey);
  margin: 0 0 4px;
}

/* ------------------------------------------------------------------ */
/* Timeline (company page)                                             */
/* ------------------------------------------------------------------ */

.timeline-year {
  margin-bottom: 24px;
}

.timeline-year-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.timeline-event {
  position: relative;
  margin: 8px 0 0 16px;
  padding-left: 20px;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
}

.timeline-event p {
  margin: 2px 0;
}

/* ------------------------------------------------------------------ */
/* Team                                                                */
/* ------------------------------------------------------------------ */

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

@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.team-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(50, 115, 220, 0.1);
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-names {
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
}

.team-role {
  font-size: 14px;
  color: var(--grey);
}

.team-lives {
  font-size: 14px;
  color: var(--grey-light);
}

.team-card p {
  font-size: 14px;
  margin: 0 0 8px;
}

/* ------------------------------------------------------------------ */
/* Blog                                                                */
/* ------------------------------------------------------------------ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  border-color: rgba(50, 115, 220, 0.3);
  box-shadow: 0 8px 20px rgba(50, 115, 220, 0.08);
}

.blog-card-image {
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(50, 115, 220, 0.08),
    rgba(35, 209, 96, 0.06)
  );
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-date-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(50, 115, 220, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.blog-card-description {
  font-size: 15px;
  color: var(--grey);
  margin: 0 0 16px;
}

.blog-read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

/* Blog post article */

.breadcrumbs {
  background: var(--white-ter);
}

.breadcrumbs-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--grey);
}

.breadcrumbs-inner a {
  color: var(--grey-dark);
  text-decoration: none;
}

.breadcrumbs-inner a:hover {
  color: var(--primary);
}

.breadcrumb-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-title {
  font-size: 34px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(50, 115, 220, 0.1);
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-author {
  display: flex;
  flex-direction: column;
}

.article-author-name {
  font-weight: 600;
}

.article-date {
  font-size: 14px;
  color: var(--grey);
}

.article-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 24px;
}

.adjacent-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.adjacent-card:hover {
  border-color: rgba(50, 115, 220, 0.4);
}

.adjacent-next {
  text-align: right;
}

.adjacent-label {
  font-size: 13px;
  color: var(--grey);
}

.adjacent-title {
  font-weight: 600;
  color: var(--grey-dark);
}

.back-link {
  font-weight: 600;
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Markdown content                                                    */
/* ------------------------------------------------------------------ */

.markdown {
  font-size: 17px;
  line-height: 1.7;
}

.markdown h1 {
  font-size: 32px;
}

.markdown h2 {
  font-size: 28px;
  margin-top: 1.2em;
}

.markdown h3 {
  font-size: 20px;
  margin-top: 1.2em;
}

.markdown img {
  border-radius: 8px;
  margin: 8px 0;
}

.markdown blockquote {
  margin: 0;
  padding: 12px 16px;
  background: rgba(50, 115, 220, 0.05);
  border-left: 4px solid var(--primary);
}

.markdown table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

.markdown th,
.markdown td {
  border: 1px solid #d5d5d5;
  padding: 8px 12px;
  text-align: left;
}

.markdown th {
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  background: var(--white-ter);
  margin-top: 48px;
}

.footer-operated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
  padding: 24px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}

.footer-column a {
  font-size: 14px;
  color: var(--grey-dark);
  text-decoration: none;
  padding: 3px 0;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-copyright {
  border-top: 1px solid #ddd;
  padding: 20px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--grey);
}

@media (max-width: 767px) {
  .footer-nav {
    gap: 32px;
  }
}

/* ------------------------------------------------------------------ */
/* 404                                                                 */
/* ------------------------------------------------------------------ */

.error-code {
  display: block;
  font-size: 96px;
  font-weight: 600;
  color: var(--grey-light);
  line-height: 1;
  margin-bottom: 16px;
}

/* ------------------------------------------------------------------ */
/* Section index pages (LMP-4465)                                      */
/* ------------------------------------------------------------------ */

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.section-card {
  display: block;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
  border-color: rgba(50, 115, 220, 0.25);
  box-shadow: 0 8px 24px rgba(50, 115, 220, 0.08);
}

.section-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--grey-darker);
}

.section-card p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-dark);
}

.section-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.policy-list li {
  margin-bottom: 12px;
}

.policy-list a {
  display: block;
  padding: 16px 20px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--grey-darker);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.policy-list a:hover {
  background: rgba(50, 115, 220, 0.03);
  border-color: rgba(50, 115, 220, 0.25);
  color: var(--primary);
}
