/* Skyladder marketing site — shared styles.
   Clean, light-first, with a "sky" blue→cyan accent. Dark-mode aware. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --card: #ffffff;
  --border: #e6eaf0;
  --text: #0d1526;
  --muted: #5b6675;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --accent-soft: #eef4ff;
  --btn: #0d1526;
  --btn-text: #ffffff;
  --shadow: 0 1px 2px rgba(13, 21, 38, .04), 0 12px 32px rgba(13, 21, 38, .06);
  --shadow-lg: 0 24px 60px rgba(13, 21, 38, .12);
  --radius: 18px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-alt: #0f1523;
    --card: #121826;
    --border: #212a3a;
    --text: #eef2f8;
    --muted: #9aa6b8;
    --accent: #5b8cff;
    --accent-2: #22d3ee;
    --accent-soft: #16233f;
    --btn: #eef2f8;
    --btn-text: #0b0f17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--btn); color: var(--btn-text) !important;
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { text-decoration: none; opacity: .9; }

/* ---------- Buttons ---------- */
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--btn); color: var(--btn-text) !important;
  padding: 13px 22px; border-radius: 14px; font-weight: 600;
  box-shadow: var(--shadow);
}
.store-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn .sub { font-size: 11px; opacity: .8; font-weight: 500; line-height: 1; }
.store-btn .main { font-size: 17px; line-height: 1.1; }
.store-btn small { display: block; }

/* "Coming soon" variant — looks like a store button but is inert. */
.store-btn.soon { opacity: .72; cursor: default; }
.store-btn.soon:hover { transform: none; box-shadow: var(--shadow); }
.store-btn.soon .main { font-weight: 700; }

/* Language selector */
.lang { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.lang > svg { width: 18px; height: 18px; flex: none; stroke: currentColor; }
.lang select {
  appearance: none; -webkit-appearance: none;
  background-color: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 30px 8px 13px; font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; line-height: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6675' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.lang select:hover { border-color: var(--muted); }
@media (max-width: 900px) { .lang { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px); line-height: 1.04; letter-spacing: -.02em;
  font-weight: 900; margin: 0 0 22px;
}
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 0 30px; }
.hero .fineprint { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Phone mockup ----------
   A close mock of the app's real Home screen, in the app's dark theme. Colors
   and radii are taken from the app itself so the site shows what people
   actually get. */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 320px; background: #0a0d13; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08);
}
.phone-screen {
  background: #000; border-radius: 36px; overflow: hidden; padding: 20px 14px 10px;
  font-size: 12px; color: #fff;
}
.p-title { font-weight: 900; font-size: 26px; letter-spacing: -.02em; margin: 2px 0 14px; color: #fff; }

.p-card {
  background: #17181c; border: 1px solid rgba(255,255,255,.05);
  border-radius: 16px; padding: 12px 13px; margin-bottom: 10px;
}
.p-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* Headings stay on one line, as they do in the app — the side-by-side cards are
   narrow and "Connection test" would otherwise wrap. */
.p-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: -.01em; }
.p-ic { width: 13px; height: 13px; flex: none; stroke: #98a2b3; fill: none; }
.p-muted { color: #8b93a3; }
.p-rate { font-size: 12px; font-weight: 600; color: #cbd5e1; white-space: nowrap; }
.p-rate .up { color: #34c759; font-style: normal; }
.p-rate .dn { color: #4da3ff; font-style: normal; }

/* speed chart — mirrors the app's blue download / green upload curves */
.p-chart { display: block; width: 100%; height: 74px; margin-top: 8px; }
.p-chart .dl-line { fill: none; stroke: #4da3ff; stroke-width: 2.5; }
.p-chart .ul-line { fill: none; stroke: #34c759; stroke-width: 2.5; }

.p-row-card { display: flex; align-items: center; justify-content: space-between; }
.p-server { display: flex; align-items: center; gap: 11px; }
.p-server-text { display: flex; flex-direction: column; gap: 2px; }
.p-server-text strong { font-size: 14px; font-weight: 700; }
.p-server-text .p-muted { font-size: 11.5px; }
.p-badge {
  width: 38px; height: 38px; border-radius: 10px; background: #0a84ff; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px;
}
.p-chev { color: #6b7280; font-size: 18px; line-height: 1; }

.p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.p-cols > .p-card { margin-bottom: 0; }
.p-side { display: grid; gap: 10px; }
.p-side .p-card { margin-bottom: 0; }

.p-modes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; }
.p-modes li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #e5e7eb; }
.p-modes .dot { width: 14px; height: 14px; border-radius: 999px; border: 2px solid #6b7280; flex: none; }
.p-modes .on .dot, .p-modes li.on .dot { border-color: #0a84ff; background: radial-gradient(circle, #0a84ff 0 42%, transparent 43%); }
.p-modes li.on { color: #fff; }

.p-ms { display: block; margin-top: 9px; font-size: 17px; font-weight: 800; color: #34c759; }
.p-ip { display: block; margin-top: 9px; font-size: 15px; font-weight: 800; color: #fff; }

.p-connect {
  margin-top: 12px; background: #34c759; color: #fff; text-align: center;
  font-weight: 800; font-size: 14px; padding: 14px; border-radius: 999px;
}

.p-tabs { display: flex; justify-content: space-around; margin-top: 10px; padding: 6px 0 2px; }
.p-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #6b7280; }
.p-tabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; }
.p-tabs span.on { color: #fff; }
.p-tabs span.on svg { fill: currentColor; stroke: none; }
.p-tabs b { font-size: 9.5px; font-weight: 600; }

/* ---------- Sections ---------- */
section.band { padding: 72px 0; }
section.band.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 46px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -.02em; margin: 8px 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature .ic svg { width: 24px; height: 24px; stroke: var(--accent); }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Privacy band ---------- */
.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.privacy-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; }
.privacy-list .check {
  flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin-top: 1px;
}
.privacy-list strong { display: block; }
.privacy-list span { color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 10px; }
.cta-band p { color: var(--muted); font-size: 18px; margin: 0 0 26px; }
.cta-band .store-buttons { justify-content: center; }

/* ---------- Footer ---------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 46px 0 40px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--text); text-decoration: none; }
.foot-note { color: var(--muted); font-size: 13px; margin-top: 20px; max-width: 60em; }

/* ---------- Legal / article pages ---------- */
.article { padding: 56px 0 72px; }
.article .wrap { max-width: 800px; }
.article h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 6px; }
.article .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.article h2 { font-size: 22px; font-weight: 800; margin: 40px 0 10px; letter-spacing: -.01em; }
.article h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.article p, .article li { color: var(--text); font-size: 16px; }
.article p { margin: 0 0 14px; }
.article ul { margin: 0 0 16px; padding-left: 22px; }
.article li { margin: 6px 0; }
.article a { font-weight: 500; }
.article .lead {
  background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 30px;
}
.article .lead p:last-child { margin-bottom: 0; }
.article code { background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 600; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { order: -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .privacy-band { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 20px; }
}

/* ---------- Embed mode (in-app WebView) ---------- */
/* When a legal page is opened inside the app (e.g. privacy.html#embed), hide the
   site chrome so only the document shows — it should read as a native screen,
   not a web page with a nav bar and footer inside an app sheet. */
.embed header,
.embed footer,
.embed .back-link { display: none !important; }
.embed .article { padding-top: 28px; }
