/* ShowWhen site styles — shared by every page.
   Colours and fonts are set once here as variables; change them in :root. */

/* Fonts are served from this site's own fonts/ folder (no calls to Google).
   Both are under the SIL Open Font Licence: see the OFL files in fonts/. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #111827;          /* main text */
  --ink-soft: #4B5563;     /* secondary text */
  --paper: #F7F7F5;        /* page background */
  --card: #FFFFFF;         /* card background */
  --line: #E5E7EB;         /* borders */
  --accent: #0E9F88;       /* teal accent: fills, highlights */
  --accent-ink: #0A7A68;   /* darker teal for text and buttons, so they stay readable */
  --accent-wash: #E6F5F2;  /* very light teal background */
  --radius: 12px;
  --heading: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--accent-ink); }
a:hover { color: var(--ink); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 32px;
  width: auto;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent-ink); }
.site-nav a[aria-current="page"] {
  color: var(--accent-ink);
  font-weight: 600;
}

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

.button {
  display: inline-block;
  background: var(--accent-ink);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  transition: background 0.15s;
}
.button:hover { background: var(--ink); color: #FFFFFF; }

.text-link {
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

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

section { padding: 80px 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}
.section-intro { margin-bottom: 40px; }

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

.hero { padding: 72px 0 88px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero .lead { margin-bottom: 32px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.compare figure { margin: 0; }
.compare figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.compare .after figcaption { color: var(--accent-ink); }

/* ---------- Placeholder boxes (swap for <img> when screenshots are ready) ---------- */

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: #E5E7EB;
  border: 2px dashed #9CA3AF;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.85rem;
  min-height: 200px;
}
.placeholder.tall { min-height: 380px; }
.placeholder.short { min-height: 190px; }

/* ---------- Problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.limits {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.limits ul { margin: 0; padding-left: 20px; }
.limits li { margin-bottom: 8px; }
.limits li:last-child { margin-bottom: 0; }

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-family: var(--heading);
  font-weight: 700;
  margin-bottom: 16px;
}

.mode-name {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.mode-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--accent);
}
.mode-dot.hollow { background: transparent; border: 2px solid var(--accent); }
.mode-dot.half { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); border: 2px solid var(--accent); }
.mode-dot.off { background: #D1D5DB; }

.callout {
  margin-top: 24px;
  background: var(--accent-wash);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
}
.callout p { margin: 0; }

.rule {
  font-size: 0.88rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 16px;
  color: var(--ink);
}
.rule strong { color: var(--accent-ink); }

/* ---------- Security ---------- */

.security .card h3 { margin-bottom: 8px; }

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

.pricing-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 640px;
}
.pricing-box p:last-child { margin-bottom: 0; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.plan-highlight { border: 2px solid var(--accent); }
.plan-name {
  font-family: var(--heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.price {
  font-family: var(--heading);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}
.price span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.plan p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.plan-includes { max-width: 760px; margin-top: 28px; }
.plan-includes h3 { margin-bottom: 8px; }
.plan-small { font-size: 0.9rem; color: var(--ink-soft); margin-top: 16px; }

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

.faq { max-width: 760px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent-ink);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); padding-bottom: 6px; }

/* ---------- Inner pages (setup, support, privacy, terms) ---------- */

.page-head { padding: 64px 0 40px; }
.page-head .lead { margin-bottom: 0; }
.page-body { padding: 0 0 80px; border-top: 0; }
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }

.prose h2 { scroll-margin-top: 90px; }
.prose .placeholder { margin: 8px 0 28px; }
.prose .callout { margin: 0 0 1.2em; }
.prose code {
  font-size: 0.9em;
  background: #EEF0F2;
  border-radius: 4px;
  padding: 1px 5px;
}

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 8px;
}
.toc p {
  font-family: var(--heading);
  font-weight: 600;
  margin-bottom: 8px;
}
.toc ol { margin: 0; }
.toc li { margin-bottom: 4px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-family: var(--heading);
  font-weight: 600;
  background: #F1F2F0;
}
.prose tr:last-child td { border-bottom: 0; }

.todo {
  background: #E5E7EB;
  border: 2px dashed #9CA3AF;
  border-radius: 6px;
  padding: 1px 8px;
  color: var(--ink-soft);
  font-size: 0.9em;
}

.draft-badge {
  display: inline-block;
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: var(--ink);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

/* ---------- Payment page ---------- */

[id^="pay-"] .lead + p,
#pay-test { margin-top: 24px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 16px;
}
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--ink);
}
.footer-logo {
  display: block;
  height: 18px;
  width: auto;
}
.trademark { font-size: 0.82rem; margin: 0; }

/* ---------- Phones and small tablets ---------- */

@media (max-width: 900px) {
  .hero .wrap,
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-logo { height: 28px; }
  .grid-4 { grid-template-columns: 1fr; }
  .placeholder.tall { min-height: 280px; }
  .placeholder.short { min-height: 150px; }
  .site-nav { gap: 4px 16px; font-size: 0.9rem; }
  .pricing-box { padding: 28px 20px; }
  .plans { grid-template-columns: 1fr; }
}
