:root {
  color-scheme: light;
  --neutral-2_5: #fafbfc;
  --neutral-5: #f6f7f9;
  --neutral-10: #eff1f4;
  --neutral-20: #dadfe5;
  --neutral-40: #a6afb9;
  --neutral-50: #707a86;
  --neutral-70: #2f343a;
  --neutral-80: #161a1e;
  --neutral-90: #0e1115;
  --neutral-95: #080a0c;
  --neutral-100: #010203;

  --white: #ffffff;
  --primary-50: #026443;
  --primary-60: #01533a;
  --success-50: #23ada0;
  --warning-50: #ff7d46;

  --bg: var(--neutral-2_5);
  --bg-soft: #f2faf5;
  --surface: var(--white);
  --surface-soft: var(--neutral-5);
  --surface-glass: rgba(255, 255, 255, 0.84);
  --text: var(--neutral-100);
  --text-muted: var(--neutral-50);
  --border: var(--neutral-10);
  --border-strong: var(--neutral-20);
  --border-soft: rgba(218, 223, 229, 0.62);
  --shadow-soft: 0 10px 28px rgba(30, 40, 52, 0.07);
  --shadow-soft-strong: 0 16px 40px rgba(30, 40, 52, 0.11);
  --radius-card: 18px;
  --radius-control: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: var(--neutral-95);
    --bg-soft: #08110d;
    --surface: var(--neutral-90);
    --surface-soft: var(--neutral-80);
    --surface-glass: rgba(14, 17, 21, 0.8);
    --text: var(--white);
    --text-muted: var(--neutral-40);
    --border: var(--neutral-80);
    --border-strong: var(--neutral-70);
    --border-soft: rgba(47, 52, 58, 0.66);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.32);
    --shadow-soft-strong: 0 18px 44px rgba(0, 0, 0, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 540px at -8% -16%, rgba(2, 100, 67, 0.2), transparent 56%),
    radial-gradient(900px 460px at 108% -10%, rgba(2, 100, 67, 0.16), transparent 62%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 46%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.56;
}

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

a {
  color: inherit;
}

.container {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.logo-wrap {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-control);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.brand-tag {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease, color 170ms ease, filter 170ms ease;
}

.btn-primary {
  color: var(--white);
  background: var(--primary-50);
  border-color: var(--primary-60);
  font-weight: 600;
  box-shadow: none;
}

.btn-outline {
  color: var(--text);
  background: var(--surface-glass);
  border-color: var(--border-strong);
}

.btn-icon {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  color: var(--text-muted);
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid rgba(2, 100, 67, 0.45);
  outline-offset: 2px;
}

.interactive {
  transition: box-shadow 170ms ease, border-color 170ms ease, background-color 170ms ease, filter 170ms ease;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--primary-60);
    border-color: #014c34;
    box-shadow: 0 0 0 2px rgba(2, 100, 67, 0.16);
    filter: none;
  }

  .btn-outline:hover {
    background: var(--surface);
    border-color: var(--text-muted);
    box-shadow: var(--shadow-soft);
  }

  .btn-icon:hover {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
    box-shadow: var(--shadow-soft);
  }

  .interactive:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-soft-strong);
    filter: saturate(1.01);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-glass);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.chip-primary {
  border-color: rgba(2, 100, 67, 0.35);
  background: rgba(2, 100, 67, 0.1);
  color: var(--primary-50);
}

.chip-warn {
  border-color: rgba(255, 125, 70, 0.4);
  background: rgba(255, 125, 70, 0.12);
  color: var(--warning-50);
}

main {
  padding-bottom: 30px;
}

.hero,
.section {
  padding-top: 20px;
}

.hero-panel,
.feature-card,
.gallery-shell,
.legal-panel,
.tracking-panel,
.error-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface-glass);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tracking-panel,
.error-panel {
  overflow: hidden;
}

.hero-panel {
  padding: 18px;
}

.hero-panel-grid {
  display: grid;
  gap: 16px;
}

.hero-copy {
  padding: 0;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-50);
  font-weight: 600;
}

.hero-title {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 600;
}

.hero-description {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-art {
  padding: 0;
  background: transparent;
  border-radius: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-art img {
  width: min(100%, 520px);
  max-width: 520px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
}

.section-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.section-subtitle,
.gallery-meta,
.site-footer,
.slide figcaption,
.footer-note,
.error-subtitle,
.tracking-subtitle,
.package-meta,
.tracking-brand p {
  color: var(--text-muted);
  font-size: 13px;
}

.section-head,
.gallery-header {
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  gap: 10px;
}

.feature-card {
  padding: 14px;
  background: var(--surface-glass);
}

.feature-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.feature-card p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.gallery-shell {
  padding: 16px;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.carousel {
  position: relative;
}

.slides {
  position: relative;
  width: min(420px, 88vw);
  margin: 0 auto;
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 260ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .slide.is-active {
    transition: none;
  }
}

.device-frame {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(2, 100, 67, 0.09) 0%, rgba(2, 100, 67, 0.03) 100%), var(--surface-glass);
  padding: 12px;
}

.device-frame img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.slide figcaption {
  margin-top: 8px;
}

.carousel-controls {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

.dot.is-active {
  background: var(--primary-50);
  border-color: var(--primary-50);
}

.site-footer {
  padding: 24px 0 36px;
}

.site-footer p {
  margin: 0;
}

.footer-link {
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--text);
}

.legal-page,
.tracking-page,
.error-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-x: hidden;
}

.legal-shell,
.tracking-shell,
.error-shell {
  width: min(760px, 100%);
  max-width: 100%;
}

.tracking-title,
.error-title {
  margin: 8px 0 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 600;
}

.legal-panel {
  padding: 18px;
}

.legal-kicker {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-50);
  font-weight: 600;
}

.legal-subtitle,
.legal-meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-content {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: grid;
  gap: 12px;
}

.legal-content section h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.legal-content p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text);
}

.legal-content ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.legal-content li {
  font-size: 14px;
  color: var(--text);
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tracking-hero,
.tracking-content,
.error-panel {
  padding: 18px;
}

.tracking-hero {
  border-bottom: 1px solid var(--border);
  border-top-left-radius: calc(var(--radius-card) - 1px);
  border-top-right-radius: calc(var(--radius-card) - 1px);
  background: linear-gradient(160deg, rgba(2, 100, 67, 0.1) 0%, rgba(2, 100, 67, 0.02) 46%, transparent 72%), var(--surface);
}

.tracking-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.tracking-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.tracking-brand p {
  margin: 0;
  min-width: 0;
  flex: 1 1 220px;
  overflow-wrap: anywhere;
}

.package-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-glass);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

.package-card > div:last-child {
  min-width: 0;
  flex: 1;
}

.emoji {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-control);
  font-size: 22px;
  background: linear-gradient(180deg, rgba(2, 100, 67, 0.08) 0%, rgba(2, 100, 67, 0.02) 100%), var(--surface);
}

.package-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.actions {
  display: grid;
  gap: 8px;
}

.status,
.android-only {
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid var(--border-soft);
  background: var(--surface-glass);
  color: var(--text-muted);
}

.status,
.footer-note,
.package-meta,
.tracking-subtitle,
.error-subtitle {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.actions .btn {
  width: 100%;
}

.status.warn {
  background: rgba(255, 125, 70, 0.1);
  border-color: rgba(255, 125, 70, 0.35);
  color: var(--warning-50);
}

.status.ok {
  background: rgba(35, 173, 160, 0.12);
  border-color: rgba(35, 173, 160, 0.35);
  color: var(--success-50);
}

.android-only {
  background: rgba(255, 125, 70, 0.1);
  border-color: rgba(255, 125, 70, 0.35);
  color: var(--warning-50);
}

.footer-note {
  margin-top: 12px;
}

.footer-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.error-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 920px) {
  .hero-panel-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 12px;
  }

  .site-header {
    align-items: flex-start;
  }

  .slides {
    width: 100%;
  }

  .legal-page,
  .tracking-page,
  .error-page {
    padding: 12px;
  }
}
