/* Winmail Viewer — marketing + privacy site
   Single stylesheet shared by index.html and privacy.html.
   No dependencies, no build step. Works on any static host. */

:root {
  --brand: #2f6bf3;
  --brand-2: #123a9e;
  --bg: #ffffff;
  --surface: #f4f7fc;
  --surface-2: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6572;
  --border: rgba(0, 0, 0, 0.09);
  --shadow: 0 18px 45px rgba(18, 45, 120, 0.12);
  --radius: 18px;
  --maxw: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e15;
    --surface: #121724;
    --surface-2: #161c2b;
    --text: #e9ecf3;
    --muted: #9aa1b2;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

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

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

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; margin-left: 20px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, #4a82f7 0%, #123a9e 100%);
  padding: 78px 22px 88px;
}
.hero .mark { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 12px 34px rgba(0,0,0,0.25); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); margin: 22px 0 8px; letter-spacing: -0.02em; }
.hero p.tagline { font-size: clamp(1.05rem, 2.6vw, 1.35rem); margin: 0 auto; max-width: 620px; opacity: 0.95; }
.trust {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.16); font-size: 14px; font-weight: 600;
}
.cta-row { margin-top: 28px; }

/* App Store button */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; padding: 13px 22px; border-radius: 13px;
  font-weight: 600; border: 1px solid rgba(255,255,255,0.25);
}
.appstore:hover { text-decoration: none; transform: translateY(-1px); }
.appstore svg { width: 24px; height: 28px; }
.appstore .small { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; line-height: 1; margin-bottom: 2px; }
.appstore .big { display: block; font-size: 19px; line-height: 1.05; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); letter-spacing: -0.02em; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; }

.explainer { background: var(--surface); }
.explainer .wrap { max-width: 760px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 34px; }
.card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card .ic { font-size: 26px; line-height: 1; }
.card h3 { margin: 12px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Privacy band */
.band { background: linear-gradient(160deg, #4a82f7 0%, #123a9e 100%); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band p { max-width: 620px; margin: 0 auto 22px; opacity: 0.95; }
.band .ghost {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.6); color: #fff; font-weight: 600;
}
.band .ghost:hover { background: rgba(255,255,255,0.14); text-decoration: none; }

/* ---------- Prose (privacy page) ---------- */
.prose { padding: 52px 0 20px; }
.prose .wrap { max-width: 720px; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.prose .updated { color: var(--muted); font-size: 0.95rem; margin: 0 0 30px; }
.prose h2 { font-size: 1.28rem; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--brand); border-radius: 12px;
  padding: 18px 20px; margin: 8px 0 26px; font-size: 1.05rem;
}
.callout strong { color: var(--text); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); background: var(--surface); padding: 34px 0; color: var(--muted); font-size: 0.92rem; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer.site a { color: var(--muted); font-weight: 600; }
footer.site a:hover { color: var(--text); }
footer.site .disclaimer { margin-top: 16px; font-size: 0.82rem; opacity: 0.8; max-width: 640px; }

.skip { position: absolute; left: -9999px; }
