@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Colours from the program (Branchpoint.html) and its logo */
:root {
  --bg: #f1f3ef;
  --panel: #ffffff;
  --ink: #1c2b2d;
  --mute: #5d6e6b;
  --line: #cfd6d1;
  --acc: #0e6e6e;
  --accfg: #ffffff;
  --org: #d97706;
  --grid: #dfe5e0;
  --soft: #e6ece8;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121c1b; --panel: #1a2928; --ink: #e3ece8; --mute: #93a8a2; --line: #334644;
    --acc: #4cc2b4; --accfg: #0b1514; --org: #f0961e; --grid: #1d2c2a; --soft: #203230;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121c1b; --panel: #1a2928; --ink: #e3ece8; --mute: #93a8a2; --line: #334644;
  --acc: #4cc2b4; --accfg: #0b1514; --org: #f0961e; --grid: #1d2c2a; --soft: #203230;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--acc); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.lead { color: var(--mute); font-size: 1.1rem; max-width: 46em; }
.eyebrow { color: var(--org); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; }

/* Logos: light and dark versions */
.logo-d { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-l { display: none; }
  :root:not([data-theme="light"]) .logo-d { display: block; }
}
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }

/* Header */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.top .brand img { height: 34px; width: auto; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.top nav a:hover { color: var(--acc); }
@media (max-width: 620px) { .top nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid var(--acc); background: var(--acc); color: var(--accfg);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--acc); }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--soft); border-color: var(--line); color: var(--mute); cursor: default; filter: none;
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.soon-note { font-size: .9rem; color: var(--mute); margin-top: 10px; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { display: block; color: var(--acc); }
.hero-art { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Feature list */
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 32px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.feat h3 { display: flex; align-items: center; gap: 10px; }
.feat h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--org); flex: none; }
.feat p { color: var(--mute); margin: 0; font-size: .97rem; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.shot, .video {
  border: 2px dashed var(--line); border-radius: 10px; background: var(--panel);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--mute); padding: 16px; font-size: .95rem;
}
.shot { aspect-ratio: 16 / 10; }
figure.shot { margin: 0; padding: 0; border: 1px solid var(--line); display: block; overflow: hidden; aspect-ratio: auto; text-align: left; }
figure.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-bottom: 1px solid var(--line); }
figure.shot figcaption { padding: 10px 14px; color: var(--mute); font-size: .92rem; }
.video.has { border: 0; padding: 0; background: #000; overflow: hidden; }
.video video { width: 100%; height: 100%; display: block; }
.video { aspect-ratio: 16 / 9; margin-top: 16px; flex-direction: column; gap: 8px; }
.video .play { width: 56px; height: 56px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* Pricing */
.toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 24px; }
.toggle button {
  font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--mute);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.toggle button[aria-pressed="true"] { background: var(--acc); color: var(--accfg); }
.toggle .save { font-size: .78rem; color: var(--org); margin-left: 6px; }
.toggle button[aria-pressed="true"] .save { color: inherit; opacity: .9; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--acc); }
.plan .blurb { color: var(--mute); margin: 0 0 16px; }
.price { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.price small { font-size: 1rem; font-weight: 400; color: var(--mute); }
.price-sub { min-height: 1.5em; color: var(--org); font-weight: 600; font-size: .92rem; margin: 8px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 2px; background: var(--acc); }
.plan li.sub { font-weight: 600; }
.plan li.sub::before { display: none; }
.plan .btn { width: 100%; }
.fine { color: var(--mute); font-size: .92rem; margin-top: 18px; }

/* Trial */
.trial { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 32px; max-width: 720px; }
.trial form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.trial label { position: absolute; left: -9999px; }
.trial input[type="email"] {
  flex: 1 1 260px; min-height: 46px; padding: 0 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
.trial input:disabled { opacity: .6; }
.dl { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* FAQ */
.faq { margin-top: 24px; max-width: 800px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--mute); margin: 0 0 18px; }

/* Footer */
footer { background: var(--panel); border-top: 1px solid var(--line); padding: 40px 0; font-size: .95rem; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .legal { color: var(--mute); margin-top: 24px; font-size: .88rem; }

[hidden] { display: none !important; }

/* Policy pages */
.doc { max-width: 760px; padding: 48px 16px 64px; margin: 0 auto; }
.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.draft { background: #fff4e0; color: #7a4300; border: 1px solid #f0c27a; border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft { background: #3a2a10; color: #f6cf8e; border-color: #6b4a18; } }
:root[data-theme="dark"] .draft { background: #3a2a10; color: #f6cf8e; border-color: #6b4a18; }
.placeholder { border: 2px dashed var(--line); border-radius: 10px; padding: 24px; color: var(--mute); }
