/* LataSys marketing site - shared design system
   Brand: navy #14233F, dark #0B192C, teal #2FC8C2, blue #2D5FA4, light #E6F7F6 */

:root {
  --navy: #14233F;
  --dark: #0B192C;
  --teal: #2FC8C2;
  --blue: #2D5FA4;
  --light: #E6F7F6;
  --ink: #24344D;
  --muted: #51627C;
  --line: #D5E4E9;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 25, 44, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

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

.container {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  background: var(--teal);
  color: var(--dark);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; color: var(--dark); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(47, 200, 194, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}
.logo:hover { color: var(--teal); }
.logo svg { width: 2.25rem; height: 2.25rem; flex: none; }
.logo-text { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.logo-sub { display: block; font-weight: 500; font-size: 0.75rem; color: var(--teal); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(230, 247, 246, 0.4);
  border-radius: 8px;
  color: var(--light);
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle:hover { border-color: var(--teal); color: var(--teal); }

.nav {
  display: none;
  width: 100%;
}
.nav.is-open { display: block; }

.nav ul {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { background: rgba(47, 200, 194, 0.12); color: var(--teal); }

.nav a.nav-cta {
  background: var(--teal);
  color: var(--dark);
  font-weight: 700;
}
.nav a.nav-cta:hover { background: var(--light); color: var(--dark); }

.nav a.nav-up { color: var(--teal); }

@media (min-width: 52rem) {
  .nav-toggle { display: none; }
  .nav { display: block; width: auto; }
  .nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
  }
  .nav a { padding: 0.5rem 0.8rem; }
  .nav a.nav-up {
    border-left: 1px solid rgba(230, 247, 246, 0.25);
    border-radius: 0 8px 8px 0;
    margin-left: 0.35rem;
  }
}

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

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--teal); color: var(--dark); }
.btn-primary:hover { background: var(--light); color: var(--dark); }

.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: rgba(47, 200, 194, 0.12); color: var(--teal); }

.btn-outline-blue { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--navy); color: var(--white); }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

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

.section { padding: 3.5rem 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--light); }
.section-dark a { color: var(--teal); }
.section-dark a:hover { color: var(--light); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--teal); }

.section-intro { max-width: 44rem; color: var(--muted); }
.section-dark .section-intro { color: var(--light); }

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

.hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--navy) 70%, #1B3A5C 100%);
  color: var(--light);
  padding: 4rem 0 4.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .lead { font-size: 1.15rem; max-width: 38rem; color: var(--light); }

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-mark { display: none; text-align: center; }
.hero-mark svg { width: min(16rem, 60vw); height: auto; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--light);
}
.hero-points .tick { color: var(--teal); font-weight: 700; }

@media (min-width: 52rem) {
  .hero-inner { grid-template-columns: 1.4fr 1fr; }
  .hero-mark { display: block; }
}

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 40rem) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.card-flag {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
}

.section-dark .card {
  background: rgba(230, 247, 246, 0.06);
  border-color: rgba(47, 200, 194, 0.3);
}
.section-dark .card h3 { color: var(--teal); }
.section-dark .card p { color: var(--light); }

.badge {
  display: inline-block;
  background: var(--teal);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.badge-blue { background: var(--blue); color: var(--white); }

.card-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 0.8rem; color: var(--blue); }
.section-dark .card-icon { color: var(--teal); }

/* App icon PNGs (128px source, always rendered at or below natural size) */
.app-icon { display: block; flex: none; border-radius: 10px; }
.logo .app-icon { width: 2.25rem; height: 2.25rem; border-radius: 8px; }
.card .app-icon { width: 3.5rem; height: 3.5rem; margin-bottom: 0.8rem; border-radius: 12px; }
.hero-mark .app-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(47, 200, 194, 0.3);
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip-list li {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; }
.step { position: relative; padding: 1.75rem 1.5rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ---------- FAQ ---------- */

.faq { width: 100%; margin-top: 1.5rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 0.75rem;
  padding: 0 1.5rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 1.15rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 700;
}
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin-bottom: 0; }

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

.pricing-table { margin-top: 2rem; display: grid; gap: 0.9rem; }

.pricing-row {
  display: grid;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  align-items: center;
}
.pricing-row.pricing-flag { border: 2px solid var(--teal); box-shadow: var(--shadow); }

.pricing-name h3 { margin-bottom: 0.15rem; }
.pricing-name p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.pricing-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.pricing-price .per { font-size: 0.8rem; font-weight: 500; color: var(--muted); display: block; }

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (min-width: 52rem) {
  .pricing-row { grid-template-columns: 1fr 8rem auto; }
  .pricing-actions { justify-content: flex-end; }
}

.pricing-note { color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; }

/* ---------- Split panel (subscription / docs) ---------- */

.panel {
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  background: var(--navy);
  color: var(--light);
}
.panel h3, .panel h2 { color: var(--white); }
.panel p { color: var(--light); }
.panel .price-big { font-size: 2rem; font-weight: 700; color: var(--teal); }
.panel .price-big .per { font-size: 0.95rem; color: var(--light); font-weight: 500; }
.panel-light { background: var(--light); color: var(--ink); }
.panel-light h3, .panel-light h2 { color: var(--navy); }
.panel-light p { color: var(--ink); }
.panel ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.panel li { margin-bottom: 0.35rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--dark) 100%);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--light); max-width: 40rem; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

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

.site-footer {
  background: var(--dark);
  color: var(--light);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
.site-footer a { color: var(--teal); }
.site-footer a:hover { color: var(--light); }

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-grid h3 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.45rem; }

.footer-brand { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-brand svg { width: 2.4rem; height: 2.4rem; flex: none; margin-top: 0.2rem; }

.footer-crumbs {
  border-top: 1px solid rgba(230, 247, 246, 0.15);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  color: var(--light);
}
.footer-crumbs ol {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.footer-crumbs li { display: flex; align-items: center; gap: 0.35rem; }
.footer-crumbs li + li::before { content: ">"; color: #7E93B0; }

.footer-legal { color: #A9C3C9; margin-top: 0.75rem; }
.footer-legal p { margin-bottom: 0.4rem; }

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

.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--dark) 0%, var(--navy) 100%);
  color: var(--light);
  padding: 4rem 0;
}
.error-page h1 { color: var(--white); }
.error-page .error-code { font-size: 4rem; font-weight: 700; color: var(--teal); display: block; margin-bottom: 0.5rem; }
.error-page .hero-actions { justify-content: center; }

/* ---------- Basket builder (pricing page) ---------- */

[hidden] { display: none !important; }

.pricing-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.product-group { margin-bottom: 2.25rem; }
.product-group > h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 1rem;
}

.sku-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 0.9rem;
  align-items: start;
}
.sku-row input[type="checkbox"] {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.15rem 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.sku-row input[type="checkbox"]:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sku-row label { font-weight: 700; color: var(--navy); cursor: pointer; }
.sku-desc { color: var(--muted); font-size: 0.92rem; margin: 0.25rem 0 0.4rem; }
.store-link { font-size: 0.85rem; }
.sku-price { font-weight: 700; color: var(--navy); white-space: nowrap; margin: 0; }
.sku-row .app-icon { width: 3rem; height: 3rem; margin-top: 0; }
.sku-row.is-flag { border: 2px solid var(--teal); }
.sku-row.is-off { opacity: 0.55; }
.sku-row.is-off label, .sku-row.is-off input[type="checkbox"] { cursor: not-allowed; }

.req-badge {
  display: inline-block;
  background: var(--light);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Basket summary */

.basket-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.maint-card {
  background: rgba(47, 200, 194, 0.14);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.maint-card .badge { margin-bottom: 0.4rem; }
.maint-title { margin: 0 0 0.25rem; color: var(--navy); display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.maint-title .maint-price { font-weight: 700; white-space: nowrap; }
.maint-card ul { margin: 0.4rem 0 0.6rem; padding-left: 1.15rem; font-size: 0.9rem; color: var(--ink); }
.maint-card li { margin-bottom: 0.2rem; }
.maint-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.maint-card.is-removed { background: var(--white); border-color: var(--line); }
.maint-card.is-removed ul, .maint-card.is-removed .maint-note, .maint-card.is-removed .badge { display: none; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-btn:hover { color: var(--navy); }

.basket-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 0.25rem 0 0.5rem;
}
.basket-lines { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.basket-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink);
}

.basket-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  margin: 0.75rem 0 0.15rem;
}
.basket-monthly {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.checkout-btn { display: block; width: 100%; margin-top: 0.5rem; }
.basket-note { font-size: 0.82rem; color: var(--muted); margin: 0.75rem 0 0; }

/* Mobile: fixed bottom bar */
@media (max-width: 61.99rem) {
  .basket {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
  }
  .basket-box {
    border-radius: 16px 16px 0 0;
    border: none;
    border-top: 3px solid var(--teal);
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 -8px 30px rgba(11, 25, 44, 0.25);
  }
  .maint-card ul, .maint-card .maint-note { display: none; }
  .maint-card { margin-bottom: 0.9rem; padding: 1rem 1.25rem; }
  .pricing-layout { padding-bottom: 19rem; }
}

/* Desktop: sticky sidebar */
@media (min-width: 62rem) {
  .pricing-layout { grid-template-columns: minmax(0, 1fr) 22rem; }
  .basket-inner { position: sticky; top: 5.5rem; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
