:root {
  --bg: #f6f8f4;
  --surface: #ffffff;
  --surface-alt: #eef3ed;
  --ink: #061c2d;
  --muted: #5b665e;
  --line: #d9e2da;
  --green: #2f7d4f;
  --green-dark: #1e5437;
  --red: #c94d32;
  --yellow: #e2b03b;
  --shadow: 0 18px 50px rgba(17, 23, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

.site-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  height: 80px;
  object-fit: contain;
  width: 80px;
}

.brand span {
  overflow-wrap: anywhere;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 28px);
  justify-content: flex-end;
}

.site-nav a,
.site-footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--red);
}

.hero {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr) 220px;
  min-height: 360px;
  padding: clamp(36px, 6vw, 76px) clamp(18px, 5vw, 64px);
}

.hero-content {
  max-width: 760px;
}

.hero-logo {
  height: auto;
  justify-self: center;
  max-width: 220px;
  width: 220px;
}

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 6rem);
}

.eyebrow {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.hero .eyebrow {
  color: var(--green-dark);
}

h1,
h2,
h3 {
  line-height: 1.04;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.visually-hidden {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-top: 22px;
  max-width: 660px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--green-dark);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--green);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--line);
  color: var(--green-dark);
}

.button.secondary:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.section,
.page-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(46px, 8vw, 84px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 780px;
}

#apps {
  scroll-margin-top: 120px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 16px;
}

.app-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: 56px 1fr;
  min-height: 254px;
  padding: 22px;
}

.app-card p {
  color: var(--muted);
  margin-top: 10px;
}

.app-card a {
  display: inline-block;
  font-weight: 800;
  margin-top: 18px;
}

.app-icon {
  align-items: center;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  font-size: 1.4rem;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.app-icon.audio {
  background: var(--green);
}

.app-icon.gps {
  background: var(--red);
}

.status {
  color: var(--green-dark) !important;
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0 0 8px !important;
}

.contact-band {
  align-items: center;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 62px) clamp(18px, 5vw, 64px);
}

.contact-band .eyebrow {
  color: #a7e2b8;
}

.contact-band h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.contact-link {
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  min-height: 78px;
  padding: 22px clamp(18px, 5vw, 64px);
}

.page-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 9vw, 90px) clamp(18px, 5vw, 64px);
}

.page-hero-inner {
  max-width: 980px;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  max-width: 12ch;
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  margin-top: 18px;
  max-width: 760px;
}

.content-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
}

.panel,
.support-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
}

.panel h2,
.support-item h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.panel p + h2,
.panel ul + h2 {
  margin-top: 28px;
}

.panel p,
.support-item p,
.panel li {
  color: var(--muted);
  margin-top: 12px;
}

.panel ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.support-list {
  display: grid;
  gap: 16px;
}

.app-detail {
  display: grid;
  gap: 24px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-detail .app-icon {
  height: 72px;
  width: 72px;
}

.app-sections {
  display: grid;
  gap: 24px;
}

.app-sections .panel {
  min-width: 0;
}

.plan-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.plan-grid h3 {
  line-height: 1.3;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 22px 0;
  text-align: left;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  vertical-align: top;
}

th {
  color: var(--ink);
}

td {
  color: var(--muted);
}

code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

pre {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  padding: 16px;
}

pre code {
  overflow-wrap: normal;
}

.panel ol {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 24px;
}

.guide-shell {
  max-width: 1000px;
}

.guide-contents {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 36px;
  padding: 20px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.guide-contents ol {
  columns: 2;
  line-height: 1.8;
  padding-left: 24px;
}

.guide-contents li {
  break-inside: avoid;
}

.guide-chapter {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 32px;
}

.guide-chapter h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.guide-chapter h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-top: 32px;
}

.guide-chapter h4 {
  font-size: 1.1rem;
  margin: 24px 0 0;
}

.guide-chapter p,
.guide-chapter ul,
.guide-chapter ol,
.guide-chapter pre {
  margin: 16px 0;
}

.guide-chapter li + li {
  margin-top: 8px;
}

.guide-chapter img {
  height: auto;
  margin: 24px 0;
  max-height: 620px;
  object-fit: contain;
  object-position: left;
  width: auto;
}

.guide-chapter .admonition {
  background: var(--surface-alt);
  border-left: 4px solid var(--green);
  margin: 24px 0;
  padding: 8px 20px;
}

.admonition-title {
  color: var(--ink);
  font-weight: 800;
}

[id] {
  scroll-margin-top: 128px;
}

.store-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.store-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px;
}

.store-slot.available {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #ffffff;
  text-decoration: none;
}

.store-slot.available:hover {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.back-link {
  display: inline-block;
  font-weight: 800;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .app-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 0;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 16px;
  }

  .brand span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-logo {
    grid-row: 1;
    justify-self: start;
    max-width: 160px;
    width: 160px;
  }

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

  .guide-contents ol {
    columns: 1;
  }

  .app-card,
  .app-detail {
    grid-template-columns: 1fr;
  }

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

a:focus-visible,
summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
