:root {
  --bg: #eef8ff;
  --bg-soft: #f7fcff;
  --card: rgba(255, 255, 255, 0.9);
  --text: #133650;
  --muted: #496d88;
  --line: #c8e5f8;
  --primary: #0f7fc8;
  --primary-dark: #0a629b;
  --chip: #d9efff;
  --shadow: 0 20px 50px rgba(20, 84, 126, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Public Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, #cfefff 0%, transparent 40%),
    radial-gradient(circle at 86% 10%, #c6e9ff 0%, transparent 36%),
    linear-gradient(180deg, #e9f7ff 0%, #f9fdff 100%);
  min-height: 100vh;
}

h1,
h2,
h3,
.brand strong {
  font-family: "Sora", "Public Sans", sans-serif;
  letter-spacing: -0.01em;
}

.page {
  width: min(1140px, 92%);
  margin: 0 auto;
  padding: 26px 0 50px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

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

.brand strong {
  display: block;
  font-size: 1.08rem;
}

.brand small {
  color: var(--muted);
}

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

.menu a {
  text-decoration: none;
  color: var(--text);
  background: #ffffffb3;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero {
  background: linear-gradient(130deg, #f7fcff 0%, #e3f4ff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.hero p {
  color: var(--muted);
  max-width: 60ch;
  margin: 14px 0 0;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

.badges {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badges span {
  background: var(--chip);
  color: #0c4f7b;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}

.section {
  margin-top: 28px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.apps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.platform-groups {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.platform-group-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #2f5f80;
}

.app {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.app-icon img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  display: block;
}

.app-icon img.spoolguard-icon-inner {
  transform: scale(1.26);
  transform-origin: center;
}

.app h3 {
  margin: 0;
  font-size: 1.15rem;
}

.platform {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.app p {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 16px;
  text-align: justify;
  text-justify: inter-word;
}

.screens-label {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2f5f80;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.app-screen {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #f7fbff;
  border-radius: 10px;
  border: 0;
  display: block;
}

.app-screen-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 29, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(20, 27, 34, 0.72);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(13, 20, 28, 0.86);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1001;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lightbox-nav svg {
  width: 34px;
  height: 34px;
  display: block;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}

.actions.actions-top {
  margin-top: 12px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  font-size: 0.92rem;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), #14a0f5);
  color: #fff;
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0f84cc);
}

.btn.ghost {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
}

.appstore-badge {
  display: inline-flex;
  line-height: 0;
}

.appstore-badge img {
  height: 46px;
  width: auto;
  display: block;
}

.btn.store-link {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f7fb0, #206795);
  color: #ffffff;
  border: 1px solid #4f9fcd;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn.store-link:hover {
  background: linear-gradient(135deg, #3f90c2, #2b76a7);
}

.appstore-link.pending {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  background: #ffffffc2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.privacy {
  background: #ffffffdc;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.privacy h1 {
  margin-top: 0;
}

.privacy h2 {
  margin-top: 24px;
  font-size: 1.08rem;
}

.privacy h3 {
  margin: 20px 0 8px;
  font-size: 0.98rem;
}

.privacy p,
.privacy li {
  color: var(--muted);
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
}

.privacy-block {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.back-link {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

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

@media (max-width: 600px) {
  .page {
    width: min(1140px, 96%);
  }

  .platform-groups {
    grid-template-columns: 1fr;
  }

  .app {
    padding: 14px;
  }

  .appstore-badge {
    line-height: 0;
  }

  .appstore-badge img {
    height: 42px;
  }

  .app-screens {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 54px;
    height: 54px;
  }

  .lightbox-nav svg {
    width: 28px;
    height: 28px;
  }
}
