/* Kosmos Hi-Lo marketing site — no frameworks, no external assets. */

:root {
  --brand: #007AFF;
  --brand-dark: #0062cc;
  --ink: #131c2b;        /* matches the app icon navy */
  --ink-soft: #46566e;
  --bg: #ffffff;
  --bg-tint: #f2f7ff;
  --line: #e3e9f2;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; text-align: center; }
h3 { font-size: 1.1rem; }

a { color: var(--brand); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: var(--ink);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  margin-right: auto;
}
.brand img { border-radius: 8px; }
.brand strong { color: var(--brand); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
}
.site-nav a {
  color: #cfd9e6;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--brand-dark); }

#nav-toggle, .nav-burger { display: none; }

@media (max-width: 720px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
  }
  .nav-burger span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink);
    padding: 0.5rem 1.2rem 1.2rem;
    border-bottom: 1px solid #2a3850;
  }
  .site-nav a { padding: 0.55rem 0; }
  .site-nav .nav-cta { text-align: center; margin-top: 0.5rem; }
  #nav-toggle:checked ~ .site-nav { display: flex; }
}

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

.hero {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}

.hero-copy { flex: 1.2; }
.hero-phone { flex: 0.8; display: flex; justify-content: center; }

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-footnote {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.9rem;
}

@media (max-width: 860px) {
  .hero { flex-direction: column; text-align: center; }
  .lede { margin-inline: auto; }
  .store-buttons { justify-content: center; }
}

/* ---------- Phone frame ---------- */

.phone-frame {
  background: var(--ink);
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(19, 28, 43, 0.25);
  width: min(300px, 70vw);
}
.phone-frame img { border-radius: 30px; width: 100%; }
.phone-sm { width: min(230px, 60vw); border-radius: 30px; padding: 8px; }
.phone-sm img { border-radius: 24px; }

/* ---------- Store buttons ---------- */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.store-buttons-center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 12px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}
.store-btn:hover { background: #22304a; }
.store-btn small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.8;
  letter-spacing: 0.02em;
}
.store-btn span { font-weight: 600; font-size: 1rem; }

.section-cta .store-btn,
.section-dark .store-btn {
  background: var(--brand);
}
.section-cta .store-btn:hover,
.section-dark .store-btn:hover { background: var(--brand-dark); }

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

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}

.section-lede {
  text-align: center;
  color: var(--ink-soft);
  max-width: 40em;
  margin: 0 auto 1rem;
}

.section-dark,
.section-tint,
.section-cta {
  max-width: none;
}
.section-dark > *,
.section-tint > *,
.section-cta > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark .section-lede { color: #aebacc; }

.section-tint { background: var(--bg-tint); }

.section-cta {
  background: linear-gradient(135deg, var(--brand) 0%, #0a5bd0 100%);
  color: #fff;
  text-align: center;
}
.section-cta .section-lede { color: #d8e8ff; }
.section-cta .store-btn { background: var(--ink); }
.section-cta .store-btn:hover { background: #22304a; }

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.card-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }

.card-dark {
  background: #1c2940;
  border-color: #2a3850;
  color: #fff;
}
.card-dark p { color: #aebacc; }

.step {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* ---------- Screenshots ---------- */

.screens-row {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
  margin-top: 2rem;
}
.screens-row figure { margin: 0; text-align: center; }
.screens-row figcaption {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.8rem;
  background: #fff;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list p { color: var(--ink-soft); margin: 0.7rem 0 0; }

/* ---------- Legal page ---------- */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
}
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.legal h3 {
  margin-top: 2.2em;
  scroll-margin-top: 5rem;
}
.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.legal table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.legal td, .legal th { border: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: left; }
.legal-jump {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
}

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

.site-footer {
  background: var(--ink);
  color: #aebacc;
  padding: 2.2rem clamp(1rem, 4vw, 2.5rem);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 600;
}
.footer-brand img { border-radius: 6px; }
.footer-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-right: auto;
}
.footer-nav a { color: #aebacc; text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 0.85rem; margin: 0; }

@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { margin-right: 0; }
}
