/* freedomsoft.uk, shared styles for every page. */

/* Inter, SIL Open Font License 1.1. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-variable.woff2') format('woff2'); }
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #526077;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-fg: #ffffff;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --accent-2: #4f46e5;
  --amber: #a16207;
  --amber-soft: rgba(202, 138, 4, 0.14);
  --glow-1: rgba(20, 184, 166, 0.22);
  --glow-2: rgba(99, 102, 241, 0.18);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --font: 'Inter', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f14;
    --surface: #121821;
    --surface-2: #19212c;
    --text: #e6edf3;
    --muted: #97a3b6;
    --border: #243041;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-fg: #04201d;
    --accent-soft: rgba(45, 212, 191, 0.14);
    --accent-2: #818cf8;
    --amber: #fbbf24;
    --amber-soft: rgba(251, 191, 36, 0.14);
    --glow-1: rgba(45, 212, 191, 0.14);
    --glow-2: rgba(129, 140, 248, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #19212c;
  --text: #e6edf3;
  --muted: #97a3b6;
  --border: #243041;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-fg: #04201d;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --accent-2: #818cf8;
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --glow-1: rgba(45, 212, 191, 0.14);
  --glow-2: rgba(129, 140, 248, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% -8%, var(--glow-1), transparent 60%),
    radial-gradient(800px 520px at 100% 6%, var(--glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--accent); }
h1, h2, h3 { letter-spacing: -0.025em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Academic ribbon at the very top of every page */
.topbar { background: linear-gradient(90deg, var(--accent-soft), transparent 55%), var(--surface); border-bottom: 1px solid var(--border); }
.topbar p { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0; padding-block: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); text-align: center; }
.topbar svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 20; padding-block: 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link { padding: 7px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a.nav-link:hover { color: var(--text); background: var(--surface); }
.nav a.nav-link[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface); border-color: var(--border); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 8px 20px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn-disabled { background: var(--surface-2); border-color: var(--border); color: var(--muted); cursor: default; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Status labels */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.status-now { background: var(--accent-soft); color: var(--accent); }
.status-soon { background: var(--amber-soft); color: var(--amber); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Hero */
main { flex: 1; }
.hero { padding-block: 64px 44px; text-align: center; }
.hero h1 { margin: 18px auto 18px; max-width: 16ch; font-size: clamp(34px, 5.6vw, 58px); line-height: 1.06; font-weight: 800; text-wrap: balance; }
.hero .grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto 28px; max-width: 62ch; font-size: 18.5px; color: var(--muted); }
.hero .actions { justify-content: center; }
.eyebrow svg { width: 17px; height: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 600; }
.page-head { padding-block: 52px 8px; }
.page-head h1 { margin: 14px 0 14px; font-size: clamp(32px, 4.6vw, 46px); font-weight: 800; }
.page-head p { margin: 0; max-width: 68ch; font-size: 18px; color: var(--muted); }

/* Section headings */
.section { padding-block: 40px; }
.section-label { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Pledge band */
.pledge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.pledge h3 { margin: 0 0 6px; font-size: 17px; }
.pledge p { margin: 0; color: var(--muted); font-size: 15px; }
.pledge .ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.pledge .ico svg { width: 20px; height: 20px; }

/* Product cards (home) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-top svg.app-icon { width: 44px; height: 44px; flex: none; }
.card h3 { margin: 0; font-size: 20px; }
.card .status { margin-top: 3px; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
.card .card-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px; font-size: 15px; font-weight: 600; }
.card .card-links a { text-decoration: none; }
.card .card-links a:hover { text-decoration: underline; }

/* Screenshots and placeholders */
.shot { margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.45); }
.shot img { display: block; width: 100%; height: auto; }
.shot .dark { display: none; }
:root[data-theme="dark"] .shot .light { display: none; }
:root[data-theme="dark"] .shot .dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .light { display: none; }
  :root:not([data-theme="light"]) .shot .dark { display: block; }
}
.shot figcaption { padding: 11px 16px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); background: var(--surface); }
.placeholder {
  display: grid; place-items: center; text-align: center; gap: 6px;
  min-height: 260px; padding: 28px; border-radius: 14px;
  border: 1px dashed var(--border); color: var(--muted);
  background: var(--surface-2);
}
.placeholder strong { display: block; color: var(--text); font-size: 15px; }
.placeholder span { font-size: 14px; max-width: 46ch; }
.placeholder svg { width: 26px; height: 26px; opacity: .7; }

/* Product sections (products page) */
.product { padding-block: 52px; border-top: 1px solid var(--border); }
.product:first-of-type { border-top: 0; }
.product-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.product-head svg.app-icon { width: 52px; height: 52px; flex: none; }
.product-head h2 { margin: 0; font-size: 28px; }
.product-tagline { margin: 0 0 22px; font-size: 17.5px; color: var(--muted); max-width: 70ch; }
.product-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; margin-bottom: 26px; }
.product-body p { margin: 0 0 14px; }
.panel { padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; }
.feature-list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.meta { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--muted); }
.meta dt { font-weight: 600; color: var(--text); }
.meta dd { margin: 0 0 10px; }
.meta dd:last-child { margin-bottom: 0; }

/* Free notice */
.free-band { display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: 18px; background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--surface); border: 1px solid var(--border); }
.free-band svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.free-band p { margin: 0; font-size: 17px; }
.free-band b { font-weight: 700; }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); padding-block: 28px 34px; font-size: 14.5px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot p { margin: 0; max-width: 68ch; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--text); text-decoration: none; font-weight: 500; }
.foot a:hover { color: var(--accent); }
.dedication { font-style: italic; }

@media (max-width: 900px) {
  .pledge { grid-template-columns: 1fr; padding: 24px; }
  .product-body { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 40px 32px; }
  .hero .lead { font-size: 17px; }
  .topbar p { font-size: 12.5px; text-align: left; }
  .actions .btn { flex: 1 1 100%; }
  .nav a.nav-link { padding: 7px 9px; font-size: 14.5px; }
  .brand span { font-size: 17px; }
  .free-band { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .product-head h2 { font-size: 24px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition: none !important; }
}
