/*
 * Super Picker help site
 * ----------------------
 * This file provides every shared visual rule for the landing page and all manuals. Pages intentionally contain no framework-specific markup,
 * so changing these variables updates the entire site.
 */

:root {
  /* Brand colors mirror the default Super Picker application theme. */
  --navy: #12324e;
  --navy-strong: #0b253b;
  --blue: #2f70ec;
  --blue-dark: #1e58c2;
  --blue-soft: #e7efff;
  --page: #f3f6fb;
  --panel: #ffffff;
  --panel-muted: #edf3f8;
  --ink: #152333;
  --muted: #657991;
  --line: #d3deeb;
  --success: #18794e;
  --warning-bg: #fff6d8;
  --warning-line: #e5bd44;
  --shadow: 0 12px 32px rgba(18, 50, 78, 0.12);
  --radius: 16px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--blue-dark);
  text-underline-offset: 0.16em;
}

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

code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--panel-muted);
  font-size: 0.9em;
}

/* The fixed site header resembles the app's desktop and mobile navigation. */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--navy);
  color: #fff;
}

.site-nav {
  display: flex;
  width: min(100% - 28px, var(--content));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  margin-right: auto;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #78d0ff, #2f70ec);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  color: #fff;
  place-items: center;
}

.platform-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.platform-tab {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: #dbe9f7;
  font-weight: 700;
  text-decoration: none;
}

.platform-tab:hover,
.platform-tab[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}

.platform-tab.disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

/* Shared page-width wrapper used by landing-page sections. */
.wrap {
  width: min(100% - 32px, var(--content));
  margin-inline: auto;
}

.policy-content {
  max-width: 820px;
}

.hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(circle at 85% 15%, rgba(47, 112, 236, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fbff, var(--page));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.2rem;
}

.lead {
  max-width: 700px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.16rem;
}

.button-row,
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.store-link {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button:hover,
.store-link:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.button.primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.store-link.placeholder {
  border-style: dashed;
  cursor: default;
  opacity: 0.72;
}

/* Responsive app-home map with help links over the actual screenshot. */
.app-map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1508 / 900;
  border: 1px solid #abc0d8;
  border-radius: 20px;
  background: var(--page);
  box-shadow: var(--shadow);
}

.app-map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hotspot {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: transparent;
  font-size: 0;
  text-decoration: none;
}

.hotspot:hover,
.hotspot:focus-visible {
  z-index: 2;
  border-color: var(--blue);
  background: rgba(47, 112, 236, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.hotspot.groups { inset: 7% 1% auto 8%; height: 7%; }
.hotspot.new-class { inset: 15% 46% auto 8%; height: 36%; }
.hotspot.edit-class { inset: 15% 1% auto 54%; height: 36%; }
.hotspot.layout { inset: 52% 46% auto 8%; height: 36%; }
.hotspot.data { inset: 52% 1% auto 54%; height: 36%; }

.section {
  padding: 52px 0;
}

.section.alt {
  border-block: 1px solid var(--line);
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 5px 16px rgba(18, 50, 78, 0.05);
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.guide-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
}

.guide-card .button {
  margin-top: auto;
}

.guide-card.disabled {
  background: #edf0f4;
  filter: grayscale(1);
  opacity: 0.64;
}

/* Documentation pages use an app-like side navigation and reading panel. */
.docs-shell {
  display: grid;
  width: min(100% - 24px, 1380px);
  margin: 24px auto 52px;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.docs-nav {
  position: sticky;
  top: 92px;
  overflow: hidden auto;
  max-height: calc(100vh - 116px);
  padding: 14px;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.docs-nav-title {
  margin: 4px 8px 10px;
  color: #bcd0e4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.docs-nav a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  color: #dbe9f7;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.docs-nav a:hover,
.docs-nav a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}

.docs-main {
  min-width: 0;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.breadcrumbs {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.platform-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.page-title {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.on-this-page {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--blue-soft);
}

.on-this-page strong {
  display: block;
  margin-bottom: 4px;
}

.on-this-page ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
}

.task-section {
  margin-top: 42px;
  scroll-margin-top: 95px;
}

.steps {
  padding-left: 1.5rem;
}

.steps > li {
  margin-bottom: 0.75rem;
  padding-left: 0.35rem;
}

.callout {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #aac7ee;
  border-radius: 12px;
  background: #eef6ff;
}

.callout.warning {
  border-color: var(--warning-line);
  background: var(--warning-bg);
}

.callout strong {
  display: block;
  margin-bottom: 3px;
}

/*
 * Screenshot placeholders use a real 1x1 PNG plus width and height attributes
 * in HTML. Replace only the src and alt values when a final image is ready.
 */
.screenshot {
  margin: 28px 0;
}

.screenshot img {
  height: auto;
}

.screenshot-placeholder {
  display: block;
  min-height: 0;
  padding: 0;
  border: 3px dashed #8ba7c4;
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, #f8fbff 0 14px, #edf3f8 14px 28px);
  object-fit: cover;
}

.screenshot figcaption {
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.phone-shot { max-width: 520px; }

.key-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.key-table th,
.key-table td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.key-table th {
  background: var(--panel-muted);
}

.next-links {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.next-links a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-muted);
  font-weight: 750;
  text-decoration: none;
}

.site-footer {
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Tablet widths turn the documentation sidebar into a horizontal section bar. */
@media (max-width: 980px) {
  .site-nav {
    overflow-x: auto;
  }

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

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

  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    max-height: none;
    align-items: center;
    white-space: nowrap;
  }

  .docs-nav-title {
    margin: 0 8px;
  }

  .docs-nav a {
    flex: 0 0 auto;
  }
}

/* Phone widths keep controls touch-friendly and avoid horizontal page scroll. */
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    width: 100%;
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .brand {
    width: 100%;
  }

  .platform-tabs {
    overflow-x: auto;
    width: 100%;
  }

  .platform-tab {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 38px;
  }

  .card-grid,
  .next-links {
    grid-template-columns: 1fr;
  }

  .docs-shell {
    width: min(100% - 12px, 1380px);
    margin-top: 10px;
  }

  .docs-main {
    padding: 22px 18px;
  }

  .on-this-page ul {
    columns: 1;
  }

}

/* Printed help omits navigation and expands the reading panel. */
@media print {
  .site-header,
  .docs-nav,
  .site-footer,
  .next-links {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .docs-shell {
    display: block;
    width: 100%;
    margin: 0;
  }

  .docs-main {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
