/* ============================================================
   Brightpane — shared stylesheet
   Pure CSS, no build step. Light theme, indigo accent,
   per-host badge colors (Excel/Word/Outlook/PowerPoint).
   ============================================================ */

:root {
  --accent: #4F46E5;
  --accent-dark: #4338CA;
  --accent-soft: #EEF2FF;
  --excel: #217346;
  --word: #2B579A;
  --outlook: #0F6CBD;
  --ppt: #B7472A;
  --ink: #171923;
  --muted: #5a6072;
  --faint: #8a90a3;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --line: #e5e7ef;
  --good: #1a7f4b;
  --warn: #b45309;
  --bad: #b91c1c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(23, 25, 35, .05), 0 6px 20px rgba(23, 25, 35, .07);
  --shadow-lift: 0 2px 4px rgba(23, 25, 35, .06), 0 14px 34px rgba(23, 25, 35, .12);
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 var(--s3); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--s3); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 var(--s2); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 var(--s2); }

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

.muted { color: var(--muted); }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s1);
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo .logo-mark { color: var(--accent); }

.site-nav { display: flex; gap: var(--s3); }
.site-nav a { color: var(--muted); font-weight: 550; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

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

.hero {
  padding: var(--s6) 0 var(--s5);
  background:
    radial-gradient(1100px 480px at 80% -120px, var(--accent-soft), transparent 70%),
    var(--bg);
  text-align: center;
}
.hero p.sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto var(--s3);
}
.hero .cta-row { justify-content: center; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  margin: var(--s3) 0 0;
}

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

.btn,
a.gumroad-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover, a.gumroad-button:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary,
a.gumroad-button {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}
.btn-primary:hover, a.gumroad-button:hover { background: var(--accent-dark); }

.btn-ghost {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero trust strip ---------- */

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s1) var(--s3);
  margin: var(--s3) 0 0;
  padding: 0;
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px 7px 13px;
  box-shadow: var(--shadow);
}
.trust-strip li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--good);
  /* white check mark drawn as an SVG mask so it scales crisply */
  -webkit-mask: center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.55 17.05 4.5 12l1.4-1.4 3.65 3.6 8.15-8.15L19.1 7.5z'/%3E%3C/svg%3E");
  mask: center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.55 17.05 4.5 12l1.4-1.4 3.65 3.6 8.15-8.15L19.1 7.5z'/%3E%3C/svg%3E");
}

/* ---------- Privacy section ---------- */

.privacy-lead {
  max-width: 760px;
  margin: 0 auto var(--s4);
}
.privacy-lead p { font-size: 1.05rem; }
.privacy-lead p:last-child { margin-bottom: 0; }

.privacy-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  max-width: 860px;
  margin: 0 auto;
}
.privacy-compare h3 { margin-bottom: var(--s2); }
.privacy-compare ul { list-style: none; margin: 0; padding: 0; }
.privacy-compare li {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--s1);
  color: var(--muted);
  font-size: .95rem;
}
.privacy-compare li:last-child { margin-bottom: 0; }
.privacy-compare li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}
.pc-cloud { border-color: #f1cccc; background: #fdf6f6; }
.pc-cloud li::before { content: "\2715"; color: var(--bad); }  /* cross */
.pc-bright { border-color: #cfe8da; background: #f3fbf6; }
.pc-bright li::before { content: "\2713"; color: var(--good); } /* check */

.privacy-foot { text-align: center; margin: var(--s4) 0 0; }

/* ---------- Host badges ---------- */

.badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge.excel { background: var(--excel); }
.badge.word { background: var(--word); }
.badge.outlook { background: var(--outlook); }
.badge.ppt { background: var(--ppt); }

/* ---------- Product grid & cards ---------- */

.section { padding: var(--s5) 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--s4); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.host-group { margin-bottom: var(--s4); }
.host-group:last-child { margin-bottom: 0; }
.host-group-title {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s3);
}
.host-group-title .count {
  color: var(--faint);
  font-weight: 500;
  font-size: .9rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s3);
}

a.product-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
a.product-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: #d6d9e6;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s2);
}

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.excel-bg { background: var(--excel); }
.icon-tile.word-bg { background: var(--word); }
.icon-tile.outlook-bg { background: var(--outlook); }
.icon-tile.ppt-bg { background: var(--ppt); }

.product-card h3 { margin-bottom: 6px; }
.product-card .one-liner { color: var(--muted); font-size: .95rem; flex: 1; }

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: var(--s2) 0 0;
}
.card-meta .price { font-weight: 750; font-size: 1.05rem; }
.card-meta .price small { font-weight: 500; color: var(--faint); font-size: .8rem; }
.card-meta .go { color: var(--accent); font-weight: 600; font-size: .92rem; }

/* ---------- Why / value props ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.why-grid .card h3 { font-size: 1.02rem; }
.why-grid .card p { color: var(--muted); font-size: .93rem; margin: 0; }
.why-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: var(--s1);
  display: block;
  line-height: 1;
}

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

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 14px 18px;
  margin-bottom: var(--s2);
}
.faq summary {
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 500; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: var(--s1) 0 4px; color: var(--muted); }

/* ---------- Product page ---------- */

.product-hero { padding: var(--s5) 0 var(--s4); }
.product-hero .badge { margin-bottom: var(--s2); }
.product-hero .tagline {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: var(--s2);
}
.price-line { font-size: 1.05rem; font-weight: 650; }
.price-line .free-note { color: var(--muted); font-weight: 450; }

.diagram-figure {
  margin: var(--s4) auto 0;
  max-width: 720px;
  text-align: center;
}
.diagram-figure svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.diagram-figure figcaption {
  font-size: .88rem;
  color: var(--faint);
  margin-top: var(--s2);
}

.narrative { max-width: 720px; margin: 0 auto; }
.narrative p { font-size: 1.05rem; }

/* ---------- Compare table ---------- */

.compare-wrap { max-width: 760px; margin: 0 auto; overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.compare th, table.compare td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .96rem;
}
table.compare tr:last-child td { border-bottom: none; }
table.compare th { background: var(--bg-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.compare th:nth-child(2), table.compare td:nth-child(2),
table.compare th:nth-child(3), table.compare td:nth-child(3) {
  text-align: center; width: 90px;
}
table.compare td.yes { color: var(--good); font-weight: 700; }
table.compare td.no { color: #c6cad6; }
table.compare th.pro-col { color: var(--accent); }

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  max-width: 900px;
  margin: 0 auto;
  counter-reset: step;
}
.step { position: relative; padding-top: var(--s3); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: var(--s3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
}
.step h3 { font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Install / long-form pages ---------- */

.prose { max-width: 760px; margin: 0 auto; padding: var(--s4) 0 var(--s5); }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.35rem; margin-top: var(--s4); }
.prose ol li, .prose ul li { margin-bottom: var(--s1); }
.prose code, .narrative code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .9em;
}
.callout {
  background: var(--accent-soft);
  border: 1px solid #dcdcfb;
  border-radius: var(--radius-sm);
  padding: var(--s2) var(--s3);
  margin: var(--s3) 0;
}
.callout p:last-child { margin-bottom: 0; }
/* Success variant — shown on install.html after a "Try free" download. */
.callout.dl-confirm {
  background: #e8f5ee;
  border-color: #cfe8da;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: var(--s4) 0;
  margin-top: var(--s5);
  color: var(--muted);
  font-size: .92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: space-between;
  align-items: center;
}
.footer-inner nav { display: flex; gap: var(--s3); }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--accent); }
.footer-inner p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .privacy-compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--s4); }
  .hero { padding: var(--s5) 0 var(--s4); }
  .site-nav { gap: var(--s2); }
  .site-nav a { font-size: .88rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
