/* Oakshield website: additions on top of stellar.css (Stellar by HTML5 UP, recoloured).
   Layout: Stellar's centred white panel on a deep green field, a sticky in-page menu, and large type for older readers. */
:root {
  --brand: #0e6b4d;
  --brand-dark: #0b4f3a;
  --oak: #b5772f;
  --ink: #1f2420;
  --text: #3b3d3b;
  --muted: #5d625e;
  --line: #dfe3df;
  --tint: #eef4f1;
  --warn-tint: #fdf4e3;
  --danger: #b3261e;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
}

/* Dark text only inside the white panel; the green header and footer keep Stellar's white text. */
#main { color: var(--text); }
#main h1, #main h2, #main h3, #main h4, #main strong, #main b { color: var(--ink); font-weight: 600; }
#main a { color: var(--brand); border-bottom-color: rgba(14, 107, 77, 0.35); }
#main a:hover { color: var(--brand-dark); border-bottom-color: transparent; }
#main a.button.primary, #main a.button.primary:hover { color: #ffffff; }
#footer, #footer h2, #footer p, #footer a, #footer .icon, #footer .copyright { color: #ffffff; }
#footer p, #footer .copyright { color: rgba(255, 255, 255, 0.85); }
#footer a { border-bottom-color: rgba(255, 255, 255, 0.5); }
#footer a:hover { border-bottom-color: transparent; color: #ffffff; }
a:focus-visible, .button:focus-visible, button:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }

/* Top bar on every page: brand, partner sign-in, Download and Buy now */
#topbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75em 1.5em; flex-wrap: wrap; padding: 1.5em 0 0.5em 0; }
#topbar .brand { display: inline-flex; align-items: center; gap: 0.5em; color: #ffffff; border: 0; font-weight: 700; font-size: 1.15em; }
#topbar .brand svg { width: 1.9em; height: 1.9em; }
#topbar .brand .shield-body { fill: #ffffff; }
#topbar .brand .shield-tick { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#topbar nav { display: flex; align-items: center; gap: 0.75em 1em; flex-wrap: wrap; }
#topbar .quiet { color: #ffffff; border-bottom: 1px solid rgba(255, 255, 255, 0.45); font-size: 0.85em; }
#topbar .quiet:hover { border-bottom-color: transparent; }
.button.small { height: 2.4em; line-height: 2.4em; min-width: 0; padding: 0 1.25em; font-size: 0.85em; }
.button.on-dark { background: transparent; color: #ffffff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.button.on-dark:hover { background: rgba(255, 255, 255, 0.12); }
.button.light { background: #ffffff; color: var(--brand) !important; box-shadow: none; font-weight: 600; }
.button.light:hover { background: #eef4f1; }

/* Opening header: just the promise, without the big empty space Stellar leaves for a logo */
#header, #header h1, #header p { color: #ffffff; }
#header h1 { font-weight: 700; letter-spacing: 0.005em; text-wrap: balance; }
#header p { font-size: 1.15em; }
#header.alt { padding: 2.5em 3em 3em 3em; }
#header.alt h1 { font-size: 2.6em; line-height: 1.2; }
#header.small { padding: 2em 3em 2em 3em; }
@media screen and (max-width: 736px) {
  #header.alt { padding: 1.5em 0.5em 2em 0.5em; }
  #header.alt h1 { font-size: 1.85em; }
  #header.small { padding: 1.5em 0.5em 1.5em 0.5em; }
  #topbar { padding-top: 1em; }
}

/* The sticky menu keeps its white text on the green field */
#nav ul li a { font-weight: 600; }
#nav.alt ul li a.active, #nav.alt ul li a:hover { color: var(--brand); }

/* Section text */
#main > .main { padding-top: 3.5em; }
.lead { font-size: 1.15em; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.spotlight .image { border: 0; padding: 0; border-radius: 10px; flex: 0 1 26em; }
.spotlight .image img { width: 100%; max-width: 26em; height: auto; border-radius: 10px; box-shadow: 0 12px 40px rgba(11, 79, 58, 0.18); }
.features li h3 { margin-top: 0.25em; }
.features li p { color: var(--text); }

/* What stays on without a subscription */
.always { display: grid; grid-template-columns: repeat(auto-fit, minmax(16em, 1fr)); gap: 1.5em; margin: 0 0 2em 0; text-align: left; }
.always section { border: 1px solid var(--line); border-radius: 10px; padding: 1.5em 1.75em 0.5em 1.75em; }
.always section.free { background: var(--tint); border-color: transparent; }
.always h3 { margin-bottom: 0.5em; }
.always ul { padding-left: 1.1em; }
.always li { padding-left: 0.25em; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15em, 1fr)); gap: 1.5em; margin: 0 auto 1.5em auto; max-width: 44em; text-align: left; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 1.75em 1.75em 1.25em 1.75em; display: flex; flex-direction: column; gap: 0.25em; }
.plan.featured { border: 2px solid var(--brand); }
.plan h3 { margin: 0; font-size: 1.35em; }
.plan .covers { margin: 0; color: var(--muted); }
.plan .price { margin: 0.75em 0 0 0; font-size: 2.1em; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan .price span { font-size: 0.45em; font-weight: 400; color: var(--muted); }
.plan .yearly { margin: 0 0 1em 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan .button { margin-top: auto; width: 100%; }
.plan .tag { align-self: flex-start; background: var(--brand); color: #ffffff; border-radius: 999px; padding: 0 0.75em; font-size: 0.75em; font-weight: 600; margin-bottom: 0.5em; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 2em 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13em, 1fr)); gap: 1.5em; counter-reset: step; text-align: left; }
.steps li { counter-increment: step; padding-left: 0; }
.steps li::before { content: counter(step); display: inline-flex; width: 2em; height: 2em; border-radius: 50%; background: var(--brand); color: #ffffff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 0.5em; }
.steps h3 { margin-bottom: 0.25em; }

/* Trust page */
.never { list-style: none; padding: 0; margin: 0 0 2em 0; display: grid; gap: 0.75em; }
.never li { padding: 0.9em 1.1em 0.9em 3.2em; border-radius: 10px; background: #fbeceb; position: relative; color: var(--ink); }
.never li::before { content: "\2715"; position: absolute; left: 1.1em; top: 0.85em; font-weight: 700; color: var(--danger); }
.callout { border-radius: 10px; padding: 1.25em 1.5em; margin: 0 0 2em 0; background: var(--tint); }
.callout.warn { background: var(--warn-tint); }
.callout > :last-child { margin-bottom: 0; }
.big-number { font-size: 1.4em; font-weight: 700; color: var(--ink); white-space: nowrap; }
.address-list code { font-size: 1em; padding: 0.1em 0.4em; }

/* Download */
.download-box { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 2em 1.5em 1.5em 1.5em; margin: 0 0 2em 0; }
.download-box .button.primary.large { font-size: 1em; padding: 0 2.5em; height: 3.5em; line-height: 3.5em; }
.download-facts { font-size: 0.85em; color: var(--muted); margin: 1em 0 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.download-facts code { font-size: 0.85em; }

/* Legal pages: long reading, so a narrower column and clear numbering */
.legal { max-width: 46em; margin: 0 auto; }
.legal h2 { font-size: 1.3em; margin-top: 2em; }
.legal h3 { font-size: 1.05em; margin-top: 1.5em; }
.legal p, .legal li { font-size: 0.95em; }
.legal .updated { color: var(--muted); }
.draft-banner { border: 2px dashed var(--oak); background: var(--warn-tint); border-radius: 10px; padding: 1em 1.25em; margin: 0 0 2em 0; color: var(--ink); }
.fill { background: #fff1c2; color: var(--ink); padding: 0 0.25em; border-radius: 3px; font-weight: 600; }

/* Questions and answers */
.faq h3 { margin: 1.5em 0 0.4em 0; }
.faq h3:first-child { margin-top: 0; }

/* Store (/buy/) and its thank-you page */
.billing { display: flex; justify-content: center; gap: 0.5em; flex-wrap: wrap; margin: 0 0 2em 0; }
#main .billing button { min-width: 0; background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
#main .billing button[aria-checked="true"] { background: var(--brand); color: #ffffff !important; box-shadow: none; }
.billing .saving { font-weight: 600; }
.plan h2 { margin: 0; font-size: 1.35em; }
.plan .price .amount { font-size: 1em; color: var(--ink); font-weight: 700; }
.plan .equivalent { margin: 0 0 1em 0; color: var(--muted); min-height: 1.6em; font-variant-numeric: tabular-nums; }
.plan button { margin-top: auto; width: 100%; }
.status { text-align: center; min-height: 1.6em; color: var(--ink); }
.included { padding-left: 1.2em; }
.included li { padding-left: 0.25em; margin-bottom: 0.4em; }
.assurances { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: 1.5em; margin-bottom: 1.5em; }
.assurances h3 { margin-bottom: 0.4em; }
.assurances p { margin: 0; font-size: 0.95em; }
.code-box { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; background: var(--tint); border-radius: 10px; padding: 1em 1.25em; margin: 0 0 1em 0; }
.code-box code { font-size: 1.6em; font-weight: 700; letter-spacing: 0.08em; background: none; border: 0; color: var(--ink); }
.spinner { width: 2.5em; height: 2.5em; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin 0.9s linear infinite; margin: 1em 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
#footer .contact-list { list-style: none; padding: 0; }
#footer .contact-list li { padding: 0.25em 0; }
#footer .links { flex-basis: 100%; width: 100%; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5em 1.5em; justify-content: center; margin-bottom: 1em; }
#footer .links li { padding: 0; }

@media screen and (max-width: 736px) {
  .plan .price { font-size: 1.8em; }
  .never li { padding-left: 2.8em; }
  .never li::before { left: 0.9em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Show the opening header straight away (Stellar fades it in over several seconds). */
#header.alt > *, #header.alt .logo, body.is-preload #header.alt > *, body.is-preload #header.alt .logo { opacity: 1; transform: none; transition: none; }

/* Buttons use the page's font, not the browser's default. */
button, .button { font-family: inherit; font-weight: 600; }
