/* Fabwren website styles.
   No web fonts, no frameworks, no external requests.
   Light and dark follow the visitor's system setting (prefers-color-scheme). */

/* ---------- Colour tokens ---------- */

:root {
  color-scheme: light dark;

  --bg: #f3f5f8;
  --bg-alt: #e9edf2;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --border: #d9e0e7;
  --border-strong: #b6c2ce;
  --text: #16202b;
  --text-muted: #4b5a6a;

  --accent: #1d8a7e;          /* brand teal for icons, rings and bars */
  --accent-text: #17766c;     /* teal for text and button fills (5:1 on the page) */
  --accent-hover: #12625a;
  --on-accent: #ffffff;
  --accent-soft: rgba(29, 138, 126, 0.1);
  --accent-border: rgba(29, 138, 126, 0.35);

  --amber: #f2a33a;
  --amber-hover: #f5b25a;
  --amber-text: #8a5300;
  --amber-soft: rgba(242, 163, 58, 0.16);
  --amber-border: rgba(214, 131, 24, 0.5);

  --danger: #b42318;
  --danger-soft: rgba(180, 35, 24, 0.08);

  --header-bg: rgba(243, 245, 248, 0.88);
  --grid-line: rgba(22, 32, 43, 0.06);
  --glow: rgba(29, 138, 126, 0.2);
  --track: #dde4ea;

  --shadow-sm: 0 1px 2px rgba(22, 32, 43, 0.06);
  --shadow: 0 1px 2px rgba(22, 32, 43, 0.05), 0 12px 30px -14px rgba(22, 32, 43, 0.2);
  --shadow-lg: 0 32px 64px -28px rgba(22, 32, 43, 0.4);

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 20px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16202b;
    --bg-alt: #111a23;
    --surface: #1c2835;
    --surface-2: #223142;
    --border: #2b3a4a;
    --border-strong: #405366;
    --text: #f3f5f7;
    --text-muted: #a8b6c4;

    --accent: #3fb6a8;
    --accent-text: #3fb6a8;
    --accent-hover: #5fc8bb;
    --on-accent: #0f1a22;
    --accent-soft: rgba(63, 182, 168, 0.13);
    --accent-border: rgba(63, 182, 168, 0.4);

    --amber-text: #f2a33a;
    --amber-soft: rgba(242, 163, 58, 0.12);
    --amber-border: rgba(242, 163, 58, 0.5);

    --danger: #ff8a7a;
    --danger-soft: rgba(255, 138, 122, 0.1);

    --header-bg: rgba(22, 32, 43, 0.88);
    --grid-line: rgba(243, 245, 247, 0.045);
    --glow: rgba(63, 182, 168, 0.26);
    --track: #2b3a4a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 36px 70px -28px rgba(0, 0, 0, 0.8);
  }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.35rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }

p { margin: 0 0 1em; }
figure { margin: 0; }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.9em; }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[id] { scroll-margin-top: 88px; }

.container {
  width: 100%;
  max-width: calc(1160px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(46rem + 2 * var(--gutter)); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--accent-text);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; color: var(--on-accent); }

.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }
.links { overflow-wrap: anywhere; }  /* a line that shows a whole link (the offers page) */
.center { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .icon { flex: none; }

.btn-primary {
  background: var(--accent-text);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--text); }

.btn-amber {
  background: var(--amber);
  color: #16202b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.btn-amber:hover { background: var(--amber-hover); color: #16202b; }

.btn-quiet {
  background: transparent;
  color: var(--danger);
  border-color: var(--border-strong);
}
.btn-quiet:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

/* Google's sign-in button colours (light and dark versions) */
.btn-google {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #747775;
}
.btn-google:hover { background: #f4f6f8; color: #1f1f1f; }
.google-g { flex: none; }

/* Apple's sign-in button: black on a light page, white on a dark one */
.btn-apple { background: #000000; color: #ffffff; border-color: #000000; }
.btn-apple:hover { background: #1f1f1f; color: #ffffff; }
.apple-logo { flex: none; margin-top: -3px; }

/* The ways to sign in, one under the other (signin_buttons.html), and the page that offers them */
.signin-buttons { display: grid; gap: 0.75rem; width: min(100%, 20rem); margin: 1.5rem auto 1.25rem; }
.signin-buttons .btn { width: 100%; }
/* ... as a form where an account is made: the same buttons, and one unticked box for news and offers */
.signin-form { width: min(100%, 24rem); }
.signin-form .btn { width: min(100%, 20rem); justify-self: center; }
.signin-news { display: flex; align-items: flex-start; gap: 0.55rem; margin-top: 0.35rem; color: var(--text-muted); font-size: 0.9rem; text-align: left; }
.signin-news input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0.2rem 0 0; accent-color: var(--accent); }
/* the page for CAD users (cad.html) */
.cad-more { margin: 1.5rem 0 0; }
.cad-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.signin-mark { display: block; width: 88px; height: 88px; margin: 0 auto 0.75rem; }
.signin-perks {
  max-width: 22rem;
  margin: 1.5rem auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: left;
}
.signin-perks h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.center-card .start-title { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem); }
.start-next { margin-top: 1.25rem; }
.section.start-section { padding-top: 0.5rem; }  /* (the card sits right under "Your download is starting") */

.btn-small { min-height: 38px; padding: 0.4rem 0.9rem; font-size: 0.925rem; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 0.8rem 1.4rem; font-size: 1.05rem; border-radius: 12px; }
.btn-xl { min-height: 60px; padding: 1rem 1.75rem; font-size: 1.125rem; border-radius: 14px; }
.btn-block { width: 100%; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--accent-hover); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.actions form { margin: 0; }
.actions.center { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1rem;
  padding-block: 0.7rem 0.4rem;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 44px; }  /* (the mark with its shadow: the wren is about two thirds of it) */

.header-action { order: 2; display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-app .header-action { margin-left: auto; }  /* (signed in there's no menu: the button keeps to the right) */
@media (max-width: 479px) {
  .header-signin { display: none; }  /* (a phone has room for one: the page it opens signs in too) */
}
.header-app { min-height: 56px; }
.header-action .btn[aria-current="page"] { border-color: var(--accent); }

.site-nav { order: 3; flex-basis: 100%; margin-top: 0.35rem; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;  /* (the narrowest phones get a second row, never a page that scrolls sideways) */
  gap: 0.25rem;
  margin: 0 0 0 -0.7rem;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

@media (max-width: 719px) {  /* (on a phone the logo is the way home: five links fit on one row) */
  .nav-home { display: none; }
}
@media (max-width: 419px) {  /* (all five links on one row on a 360 px phone) */
  .site-nav ul { gap: 0; margin-left: -0.4rem; }
  .site-nav a { padding-inline: 0.4rem; }
}

@media (min-width: 720px) {
  .site-header { position: sticky; top: 0; }
  .header-inner { flex-wrap: nowrap; min-height: 68px; padding-block: 0.5rem; }
  .site-nav { order: 2; flex-basis: auto; margin: 0 0 0 auto; }
  .site-nav ul { margin: 0; }
  .header-action { order: 3; margin-left: 0.75rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.925rem;
}
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
}
.footer-brand .brand { margin-bottom: 0.75rem; font-size: 1.1rem; }
.footer-brand .brand img { width: 36px; height: 36px; }
.footer-brand p { max-width: 22rem; margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-nav p,
.footer-legal p { margin: 0 0 0.5rem; }

/* ---------- Notices (flash messages) ---------- */

.notices { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.notice {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text);
}

.warning {
  padding: 0.75rem 1rem;
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 46rem; margin: 0 0 clamp(1.75rem, 4vw, 2.75rem); }
.section-head > p:not(.kicker) { margin: 0; color: var(--text-muted); font-size: 1.1rem; }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker-amber { color: var(--amber-text); }

.lead {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.6;
}

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-transform: none;
  white-space: nowrap;
}
.badge-pro,
.badge-amber {
  background: var(--amber-soft);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

/* Faint CAD-style grid behind the hero and page headers */
.hero::before,
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 95%);
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(1rem, 3vw, 2.5rem);
}
.hero::after {
  content: "";
  position: absolute;
  top: -28rem;
  right: -24rem;
  width: 60rem;
  height: 60rem;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: clamp(2.25rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.eyebrow {
  display: inline-block;  /* (not flex: flex drops the space before the link) */
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 600;
}
.hl { color: var(--accent-text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-actions-after-form { margin-top: 1rem; }
.hero-note { margin: 0.9rem 0 0; color: var(--text-muted); font-size: 0.925rem; }

.hero-figure { position: relative; }
.render-card {
  padding: clamp(0.5rem, 1.5vw, 0.9rem);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.render-card img { width: 100%; border-radius: 12px; }
.hero-shot { border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero-figure figcaption {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Forms ---------- */

input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input::placeholder { color: var(--text-muted); opacity: 0.8; }
input[type="email"]:focus,
input[type="text"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.waitlist { max-width: 32rem; margin-top: 1.75rem; }
.waitlist-label { display: block; margin-bottom: 0.6rem; font-weight: 600; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.waitlist-row input { flex: 1 1 15rem; min-width: 0; }
.waitlist-row .btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .waitlist-row .btn { flex: 1 1 100%; }
}
.waitlist-center { margin-inline: auto; }
.waitlist + p { margin-top: 1rem; }

/* ---------- Features ---------- */

.features { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.feature h3 { font-size: 1.125rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.975rem; }
.feature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.features-more { margin: 1.5rem 0 0; color: var(--text-muted); }

/* ---------- Inside Fabwren (home) ---------- */

.badge-free {
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
}
.badge-course {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.tour { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.tour-row { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) {
  .tour-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .tour-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tour-row:nth-child(even) .tour-text { order: 2; }
}
.tour-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tour-text h3 { margin: 0 0 0.75rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); letter-spacing: -0.015em; }
.tour-text > p:not(.tour-label) { margin: 0; color: var(--text-muted); }
.tour-points { display: grid; gap: 0.45rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.tour-points li { position: relative; padding-left: 1.6rem; color: var(--text-muted); font-size: 0.95rem; }
.tour-points li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.42em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tour-figure { margin: 0; }
.tour-figure figcaption { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.925rem; }
.shot-paper { background: #ffffff; }
.shot-paper img { max-width: 600px; margin-inline: auto; }

/* The parts list: real numbers from the Camera Rover's model, drawn as the document Fabwren AI saves */
.bom-doc {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.bom-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.bom-head p { margin: 0; }
.bom-title { font-weight: 700; }
.bom-files { display: flex; gap: 0.4rem; }
.bom-files span {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.bom-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.bom-table th, .bom-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.bom-table th { color: var(--text-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.bom-table td:first-child, .bom-table th:first-child { padding-left: 1.1rem; color: var(--text-muted); width: 2rem; }
.bom-table td:nth-child(3) { font-weight: 700; color: var(--accent-text); }
.bom-table td:nth-child(4) { font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
.bom-table td:last-child { color: var(--text-muted); }
.bom-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0.85rem 1.1rem;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.bom-totals strong { color: var(--text); }
@media (max-width: 560px) {  /* (a phone keeps the part, how many and its size) */
  .bom-table th:last-child, .bom-table td:last-child { display: none; }
  .bom-table th, .bom-table td { padding-inline: 0.5rem; }
}

/* The portfolio pack: the real files from a pack made from the Camera Rover, laid out like its folder */
.pack-doc {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pack-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 1px;
  background: var(--border);
}
.pack-grid img { display: block; width: 100%; height: 100%; object-fit: cover; background: #ffffff; }
.pack-main { grid-row: 1 / span 3; }
.pack-main img { object-fit: contain; }
.pack-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
  list-style: none;
}
.pack-files li {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.pack-files span { color: var(--text-muted); }
.tour-points .badge { margin-left: 0.25rem; vertical-align: 0.1em; }

.also-head { margin: clamp(3rem, 7vw, 4.5rem) 0 1rem; }
#ai .also-head { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
#ai .also { margin-bottom: clamp(2rem, 5vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.also {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.also li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  line-height: 1.45;
}
.also svg { flex: none; margin-top: 0.1rem; color: var(--accent-text); }
.also strong { color: var(--text); }

/* ---------- Numbered steps ---------- */

.steps {
  display: grid;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li { position: relative; padding-left: 3.25rem; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.95rem;
  font-weight: 700;
}
.steps h3 { margin: 0 0 0.25rem; font-size: 1.075rem; line-height: 1.45; }
.steps p { margin: 0; color: var(--text-muted); }

/* ---------- AI section ---------- */

.ai-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.ai-figure { margin: 0; }
.ai-chat-shot { max-width: 30rem; margin-inline: auto; }
.ai-figure figcaption, .ai-window figcaption { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.925rem; text-align: center; }
.ai-window { margin: 0 0 clamp(2.5rem, 6vw, 3.5rem); }
@media (min-width: 960px) {
  .ai-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
}

.ask { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.ask h3 { margin-bottom: 0.9rem; font-size: 1.05rem; }
.ask-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ask-list li {
  max-width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.95rem;
}
.fineprint { margin: 1.75rem 0 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Screenshot placeholders ---------- */

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  aspect-ratio: 16 / 10;
  padding: 1.5rem;
  border: 2px dashed var(--amber-border);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, var(--amber-soft) 0 14px, transparent 14px 28px),
    var(--surface);
  text-align: center;
}
.placeholder p { max-width: 28rem; margin: 0; color: var(--text-muted); }
.placeholder-label {
  color: var(--amber-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.placeholder code {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.placeholder-media { aspect-ratio: 4 / 3; border-radius: 12px; }

.shot {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; }

/* ---------- Made with Fabwren ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.75rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  line-height: 1.45;
}
.facts strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.gallery { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gallery-item { display: flex; flex-direction: column; }
.media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.media-sheet { padding: 0.9rem; background: var(--surface-2); }
.media-sheet img { object-fit: contain; object-position: center; }
.gallery-item figcaption { margin-top: 0.75rem; color: var(--text-muted); font-size: 0.925rem; }
.gallery-item figcaption strong { color: var(--text); }

/* ---------- Price summary (home) ---------- */

.price-summary { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 720px) {
  .price-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .price-summary-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.price-card-special { border-color: var(--amber-border); box-shadow: 0 0 0 1px var(--amber-border), var(--shadow); }
.price-card-special h3 .badge { margin-left: 0.35rem; vertical-align: middle; }
.price-card-special a { color: var(--amber-text); font-weight: 600; }
.price-card h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.price-card p:last-child { margin-bottom: 0; }
.price-card-pro,
.plan-pro {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-border), var(--shadow);
}
.price {
  margin: 0 0 0.25rem;
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price .per {
  margin-left: 0.15rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}
.price-alt { margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.95rem; }
.founder-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; }

/* ---------- FAQ ---------- */

@media (min-width: 960px) {
  .faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; align-items: start; }
}
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-size: 1.075rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.6rem;
  width: 0.55rem;
  height: 0.55rem;
  border: solid var(--text-muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--accent-text); }
.faq .answer { max-width: 46rem; padding: 0 0 1.25rem; color: var(--text-muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Closing call to action ---------- */

.cta-band {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--bg-alt);
  border-top: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-inner h2 { margin-bottom: 0.35rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.cta-inner p { margin: 0; color: var(--text-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Page headers (pricing, download) ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.page-head > .container { position: relative; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.page-head-center { text-align: center; }
.page-head-center .lead { margin-inline: auto; }
.page-head-solo { padding-bottom: clamp(3.5rem, 9vw, 6rem); }
.head-mark { margin: 0 auto 1.25rem; }

/* ---------- Pricing ---------- */

.period-switch {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  margin: 0 0 1.75rem;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.period-switch label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.period-switch label:hover { color: var(--text); }
.period-switch .save {
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--amber-border);
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-text);
  font-size: 0.75rem;
  font-weight: 700;
}
#period-monthly:checked ~ .period-switch label[for="period-monthly"],
#period-yearly:checked ~ .period-switch label[for="period-yearly"] {
  background: var(--accent-text);
  color: var(--on-accent);
}
#period-yearly:checked ~ .period-switch label[for="period-yearly"] .save {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
#period-monthly:focus-visible ~ .period-switch label[for="period-monthly"],
#period-yearly:focus-visible ~ .period-switch label[for="period-yearly"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.only-yearly { display: none; }
#period-yearly:checked ~ .plans .only-monthly { display: none; }
#period-yearly:checked ~ .plans .only-yearly { display: block; }

.plans { display: grid; gap: 1.25rem; }
@media (min-width: 768px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.plans.plans-single { grid-template-columns: minmax(0, 34rem); justify-content: center; }
.pricing .section-head { margin-bottom: 1.25rem; }
.plan-special { border-color: var(--amber-border); box-shadow: 0 0 0 1px var(--amber-border), var(--shadow); }
@media (min-width: 1180px) {  /* (Free, Pro, the founder pass and Team in one row; two by two below that) */
  .plans.plans-four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .plans-four .plan { padding: 1.5rem 1.35rem; }
  .plans-four .price { font-size: 2.2rem; }
}
.keeps { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 1.5rem 0 0; padding: 0; list-style: none;
  color: var(--text-muted); }
.keeps strong { color: var(--text); }
.plan-name .badge { margin-left: 0.35rem; vertical-align: middle; }
.cta-special { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.cta-special a { color: var(--amber-text); font-weight: 600; }
#plans, #pro, #team, #projects, #founder, #compare { scroll-margin-top: 5.5rem; }
.plan { display: flex; flex-direction: column; padding: clamp(1.5rem, 3.5vw, 2.25rem); }
.plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}
.plan-sub { margin-bottom: 1.25rem; color: var(--text-muted); font-size: 0.95rem; }
.plan-cta { margin-top: auto; }
.plan-cta form { margin: 0; }
.cta-note { margin: 0.65rem 0 0; color: var(--text-muted); font-size: 0.875rem; text-align: center; }

.checks {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.checks li { position: relative; padding-left: 1.85rem; }
.checks li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0.4rem;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.founder {
  display: grid;
  gap: 1.25rem 2rem;
  align-items: center;
  margin-top: 1.25rem;
  border-color: var(--amber-border);
  background: linear-gradient(135deg, var(--amber-soft), transparent 70%), var(--surface);
}
@media (min-width: 768px) {
  .founder { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.founder h2 { margin-bottom: 0.5rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
.founder-copy p { margin-bottom: 0.5rem; }
.founder-copy .founder-count { margin: 0.75rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
.founder-count strong { color: var(--amber-text); }
.founder-closed { margin: 1.25rem 0 0; color: var(--text-muted); text-align: center; }

.compare {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.975rem;
}
.compare th,
.compare td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare tbody th { font-weight: 500; }
.compare .c { width: 24%; text-align: center; }
.compare-three .c { width: 19%; }
.compare-four .c { width: 16%; }
.compare .price-row > * { background: var(--surface-2); font-weight: 700; }
.yes,
.no { display: inline-block; vertical-align: middle; }
.yes {
  width: 0.5rem;
  height: 0.95rem;
  margin-top: -0.3rem;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.no { width: 0.8rem; height: 2px; background: var(--border-strong); }
.soon { color: var(--amber-text); font-size: 0.85rem; font-weight: 600; }
@media (max-width: 560px) {
  .compare { font-size: 0.9rem; }
  .compare th,
  .compare td { padding: 0.75rem 0.6rem; }
  .compare .c { width: 27%; }
  .compare-three .c { width: 21%; }
}
@media (max-width: 720px) {  /* four plans don't fit a phone: the table keeps a readable width and scrolls sideways */
  .compare-four { display: block; overflow-x: auto; position: relative; }  /* (relative: its hidden labels scroll with it) */
  .compare-four thead, .compare-four tbody { display: table; width: 100%; min-width: 40rem; table-layout: fixed; }
}

/* /freecad: text in every cell, FreeCAD's column narrower than Fabwren's */
.compare-text td { text-align: left; vertical-align: top; line-height: 1.5; }
.compare-text th[scope="row"] { vertical-align: top; width: 26%; }
.compare-text td:nth-child(2) { width: 30%; color: var(--text-muted); }
.compare-text .badge { margin-left: 0.2rem; vertical-align: 0.1em; }
.compare-note { margin-top: 0.9rem; }
.compare-text .group th { background: var(--surface-2); color: var(--accent-text); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-text .group .badge { text-transform: none; letter-spacing: 0; }
.compare-text td .yes { margin-right: 0.6rem; }
.vs-disclaimer { margin-top: clamp(2rem, 5vw, 3rem); }
.vs-shots { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .vs-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vs-shots figure { margin: 0; }
.vs-shots figcaption { margin-top: 0.6rem; color: var(--text-muted); font-size: 0.925rem; }
.notes { display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 860px) {
  .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.note h2 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.note p { margin: 0; color: var(--text-muted); }

/* ---------- Download ---------- */

.btn-xl { margin-top: 0.5rem; }
.download-meta { margin: 1rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
.download-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2.5rem; }
.download-choice .btn { min-width: 17rem; justify-content: center; }
/* the buttons, with Windows' blue warning to their right (under them where there isn't room) */
.download-head { margin-top: 0.5rem; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.75rem 2.5rem; }
.download-main { flex: 1 1 19.5rem; min-width: 0; }
.download-row .download-choices { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1.5rem; }
.download-row .download-main .download-choice { flex: none; }
.download-row > .winwarn-short { flex: 999 1 26rem; min-width: 0; max-width: 44rem; margin: 0; }
.install .install-next { margin-top: 2.5rem; }

/* Windows' blue warning, explained under the install steps (download.html) */
.winwarn {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 5.5rem;
}
.winwarn h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.winwarn h4 { margin: 1.25rem 0 0.35rem; font-size: 1rem; }
.winwarn p { color: var(--text-muted); }
.winwarn-shots { display: grid; gap: 1rem; margin: 1rem 0 0.5rem; }
.winwarn-shots figure { margin: 0; }
.winwarn-shots img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); }
.winwarn-shots figcaption { margin-top: 0.5rem; font-size: 0.95rem; }
@media (min-width: 560px) {
  .winwarn-shots { grid-template-columns: 1fr 1fr; }
}

/* ... and in short, beside the download buttons (windows_warning_short.html) */
.winwarn-short {
  max-width: 40rem;
  margin: 1.75rem auto 0;
  padding: 1rem 1.2rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  scroll-margin-top: 5.5rem;
}
.winwarn-short p { margin: 0; }
.winwarn-short .winwarn-shots { margin: 0.8rem 0; }
.start-warning { margin-top: 1.5rem; }
.start-warning .winwarn-short { max-width: 34rem; margin-top: 0; }

/* The known issues page: a short card for each thing */
.known h2 { margin: 2.25rem 0 0.9rem; font-size: 1.35rem; }
.known h2:first-child { margin-top: 0; }
.known .card { margin-bottom: 0.9rem; padding: 1.1rem 1.3rem; }
.known .card h3 { margin: 0 0 0.35rem; font-size: 1.075rem; }
.known .card p { margin: 0.4rem 0 0; color: var(--text-muted); }
.checksum {
  max-width: 36rem;
  margin: 0.5rem auto 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.checksum summary { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.checksum p { margin: 0.4rem 0 0; }
.download-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .download-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
}
.install h2 { margin-bottom: 1.5rem; }
.install .steps { margin-bottom: 1.5rem; }
.download-side { display: grid; gap: 1.25rem; }
.side-card h2 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.side-card p:last-child { margin-bottom: 0; }
.plain-list { display: grid; gap: 0.4rem; margin: 0; padding-left: 1.2rem; color: var(--text-muted); }
.release-notes { white-space: pre-line; font-size: 0.975rem; line-height: 1.65; overflow-wrap: anywhere; }

/* ---------- Dashboard: its menu beside each page (a row of tabs on a phone) ---------- */

.dash { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem 2.5rem; }
.dash-main { flex: 999 1 560px; min-width: 0; display: grid; gap: 1.25rem; }
.dash-main > * { margin: 0; }
.dash-main .account-head { margin-bottom: 0.25rem; }
.dash-nav { flex: 1 1 210px; max-width: 250px; min-width: 0; }
.dash-nav ul { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}
.dash-nav a:hover { background: var(--surface); color: var(--text); }
.dash-nav a[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-border); color: var(--text); }
.dash-nav svg { flex: none; }
.dash-signout { margin: 1rem 0 0; padding-left: 0.4rem; }
.dash-nav-more { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.dash-nav-label {  /* (the staff pages' heading in the menu: staff only) */
  margin-top: 0.6rem;
  padding: 0.75rem 0.85rem 0.2rem;
  border-top: 1px solid var(--border);
  color: var(--amber-text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.dash-download .download-choices { justify-content: flex-start; align-items: flex-start; margin-top: 0.25rem; }
.dash-download .download-choice { flex: 1 1 17rem; }
.dash-download .download-choice .btn { min-width: 0; width: 100%; max-width: 20rem; }
.dash-download .checksum { max-width: none; margin: 1rem 0 0; }
@media (max-width: 860px) {
  .dash-nav { flex-basis: 100%; max-width: none; }
  .dash-nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .dash-nav a { min-height: 40px; padding: 0 0.75rem; border: 1px solid var(--border); white-space: nowrap; }
  .dash-nav-more { margin: 0; padding: 0; border: 0; }
  .dash-nav-label { flex-basis: 100%; margin: 0.2rem 0 0; padding: 0.5rem 0 0; }
  .dash-signout { margin-top: 0.6rem; padding-left: 0; }  /* (on a phone too: the bar at the top has no menu) */
}
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.25rem; }
.tile p { margin: 0; }
.tile .tile-label { margin: 0; color: var(--text-muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.tile .plan-line { margin: 0.15rem 0; }
.tile-figure { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.tile-figure span { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.tile progress { width: 100%; }
.tile .muted { font-size: 0.925rem; }
.tile-link { margin-top: auto; padding-top: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.box-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.box-head h2 { margin: 0; }
.notice-card { padding: 0.9rem 1.1rem; border: 1px solid var(--accent-border); border-radius: var(--radius-sm); background: var(--accent-soft); }
.resume { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  border-color: var(--accent-border); }
.resume p { margin: 0; }
.resume .resume-title { margin: 0.15rem 0; font-size: 1.15rem; font-weight: 650; }
.checklist { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.checklist li { position: relative; padding: 0.6rem 0.75rem 0.6rem 3rem; border-radius: 12px; counter-increment: step; }
.checklist li::before {
  content: counter(step);
  position: absolute;
  top: 0.55rem;
  left: 0.75rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}
.checklist li.is-next { background: var(--surface-2); }
.checklist li.is-next::before { border-color: var(--accent); }
.checklist li.is-done::before { content: "\2713"; border-color: var(--accent); background: var(--accent); color: var(--bg); }
.checklist li.is-done strong { color: var(--text-muted); text-decoration: line-through; }
.device-chips { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.device-chips li { padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--surface-2); }
.dash-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.dash-projects .box { margin: 0; }
.dash-projects .actions { margin-top: 0.25rem; }

/* ---------- Account ---------- */

.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}
.account-head > div { min-width: 0; }
.account-head h1 { margin-bottom: 0.25rem; font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem); overflow-wrap: anywhere; }
.account-head p { margin: 0; overflow-wrap: anywhere; }
.account-head form { margin: 0; }

.account-grid { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 800px) {
  .account-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.box h2 { margin-bottom: 0.9rem; font-size: 1.15rem; }
.box > p:last-child { margin-bottom: 0; }

.plan-line { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}
.plan-badge-pro { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-text); }
.plan-badge-free { background: var(--surface-2); color: var(--text); }
.plan-badge-staff { border-color: var(--amber-border); background: var(--amber-soft); color: var(--amber-text); }

.details {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.details > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
.details dt { color: var(--text-muted); }
.details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.usage-figure { margin-bottom: 0.6rem; }
.usage-figure strong { margin-right: 0.25rem; font-size: 1.6rem; font-weight: 700; }
progress.usage {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0 0 0.9rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--track);
  color: var(--accent);
  -webkit-appearance: none;
  appearance: none;
}
progress.usage::-webkit-progress-bar { background: var(--track); border-radius: 999px; }
progress.usage::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress.usage::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
progress.usage.is-high { color: var(--amber); }
progress.usage.is-high::-webkit-progress-value { background: var(--amber); }
progress.usage.is-high::-moz-progress-bar { background: var(--amber); }

.devices { margin-bottom: 1.25rem; }
.devices > p:last-child { margin-bottom: 0; }
.device-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.device {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.device:first-child { padding-top: 0.25rem; border-top: 0; }
.device form { margin: 0; }
.device-info { flex: 1 1 10rem; min-width: 0; }
.device-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.device-meta { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.help-line { margin-top: 1.5rem; }

/* ---------- Centred status cards (link, waitlist, errors) ---------- */

.center-card {
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.25rem, 5vw, 2.75rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.center-card h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); overflow-wrap: anywhere; }
.center-card > p { max-width: 28rem; margin-inline: auto; }
.center-card > p:last-child { margin-bottom: 0; }
.center-card .actions { margin: 1.5rem 0 1.25rem; }

.status-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.status-warn { border-color: var(--amber-border); background: var(--amber-soft); color: var(--amber-text); }

.code-label {
  margin: 1.5rem 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.center-card > .link-code {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 0.5rem;
  padding: 0.55rem 1.1rem 0.55rem 1.25rem;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: clamp(1.8rem, 1.3rem + 2.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.email { overflow-wrap: anywhere; }
.ask-title .email { display: block; margin-top: 0.2em; color: var(--accent-text); font-size: 0.72em; letter-spacing: 0; }
.link-actions .btn { min-width: 8rem; }

.switch-account {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1.25rem;
}

/* ---------- Legal pages (templates/legal/*.html use <article class="legal">) ---------- */

.legal {
  max-width: calc(46rem + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) clamp(3rem, 8vw, 5rem);
  overflow-wrap: break-word;
}
.legal h1 { margin-bottom: 0.4rem; font-size: clamp(2rem, 1.4rem + 2.6vw, 2.8rem); }
.legal h2 { margin: 2.5rem 0 0.75rem; font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem); }
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; }
.legal p,
.legal li { color: var(--text); }
.legal ul,
.legal ol { margin: 0 0 1em; padding-left: 1.4rem; }
.legal li { margin-bottom: 0.35rem; }
.legal section { scroll-margin-top: 88px; }
.legal code {
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
.legal nav {
  margin: 1.75rem 0 0.5rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal nav h2 { margin: 0 0 0.6rem; font-size: 1rem; }
.legal nav ol { margin: 0; }
.legal nav li { margin-bottom: 0.2rem; }
.legal table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.95rem;
}
.legal th,
.legal td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.legal tbody tr:last-child > * { border-bottom: 0; }
.legal thead th { background: var(--surface-2); font-size: 0.85rem; font-weight: 700; }
.draft-banner {
  margin: 0 0 1.75rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--amber-border);
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  color: var(--amber-text);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Staff dashboard (templates/admin.html) ---------- */

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th,
.admin-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.admin-table tbody tr:last-child > * { border-bottom: 0; }
.admin-table th { color: var(--text-muted); font-weight: 600; }
.admin-table tbody th { width: 40%; }
.card + h2 { margin-top: 2.5rem; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.dash-head h1 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.85rem; margin: 1.5rem 0 0; }
.tile { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.tile p { margin: 0; }
.tile-label { color: var(--text-muted); font-size: 0.875rem; font-weight: 600; }
.tile-value { margin: 0.25rem 0 0.2rem !important; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-note { color: var(--text-muted); font-size: 0.85rem; }
.tile-periods { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.75rem; align-items: baseline; margin: 0.45rem 0 0.4rem; }
.tile-periods dt { color: var(--text-muted); font-size: 0.85rem; }
.tile-periods dd { margin: 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.tiles + h2 { margin-top: 2.5rem; }
.small-heading { margin: 1.25rem 0 0.5rem; font-size: 0.95rem; }
.device-update { margin: 0.35rem 0 0; font-size: 0.9rem; }
.email-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.email-settings label { display: flex; align-items: center; gap: 0.55rem; }
.email-settings input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); }
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.85rem; }
.chart-card h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.chart { display: block; width: 100%; height: 110px; }
.chart-bar { fill: var(--accent); }
.chart-bar:hover { fill: var(--accent-hover); }
.chart-base { fill: var(--border-strong); }
.chart-dates { display: flex; justify-content: space-between; margin: 0.35rem 0 0; color: var(--text-muted); font-size: 0.8rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 0 1.5rem; }
.dash-grid h2 { margin-top: 2.5rem; }
.nowrap { white-space: nowrap; }
.allowance-form { display: grid; gap: 0.4rem; max-width: 26rem; margin: 1rem 0 0.75rem; }
.allowance-form label { margin-top: 0.4rem; font-weight: 600; }
.allowance-form .btn { justify-self: start; margin-top: 0.6rem; }
.allowance-form input[type="date"] {
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

/* ---------- Dark mode details ---------- */

@media (prefers-color-scheme: dark) {
  .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
  .btn-google:hover { background: #1f1f21; color: #e3e3e3; }
  .btn-apple { background: #ffffff; color: #000000; border-color: #ffffff; }
  .btn-apple:hover { background: #ececec; color: #000000; }
  .render-card { border-color: transparent; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}

/* AI panel example, shown until there is a real screenshot (static/img/ai_panel.png) */
.ai-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 12px;
  max-width: 30rem;
  margin: 0 auto;
}
.ai-mock p { margin: 0; }
.ai-mock-head { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ai-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ai-mock-you, .ai-mock-ai { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.95rem; }
.ai-mock-you { background: var(--bg-alt); justify-self: end; max-width: 85%; }
.ai-mock-ai { background: var(--accent-soft); border: 1px solid var(--accent-border); max-width: 92%; }
.ai-mock-change { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 6px; }
.ai-mock-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.ai-mock-actions { display: flex; gap: 8px; margin-top: 4px; }
.ai-mock-btn { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border-strong); font-size: 0.9rem; }
.ai-mock-apply { background: var(--accent-text); border-color: var(--accent-text); color: var(--on-accent); }

/* Delete my account (account page) */
.delete-account { margin-top: 1.5rem; }
.delete-account summary { cursor: pointer; font-weight: 600; color: var(--danger); }
.delete-account p { margin: 0.75rem 0; }
.delete-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.delete-form input {
  min-height: 38px; padding: 0.4rem 0.7rem; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; width: 8rem;
}

/* ---------- Teams (teams.html, team.html, the account page's invitations) ---------- */

.team-start { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 860px) {
  .team-start { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.team-form { display: grid; gap: 0.5rem; }
.team-form > label,
.team-form legend,
.inline-form label,
.invite-form label { font-weight: 600; }
.team-form > p { margin: 0; }
.team-form fieldset { display: grid; gap: 0.4rem; margin: 0.5rem 0 0; padding: 0; border: 0; }
.team-form legend { margin-bottom: 0.4rem; padding: 0; }
.team-form fieldset label { display: flex; align-items: center; gap: 0.55rem; }
.team-form .btn { margin-top: 0.75rem; }
.team-form .btn-block { width: 100%; }
input[type="number"] {
  width: 8rem;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input[type="number"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
input[type="radio"] { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1rem 0 0.5rem; }
.invite-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 0.75rem; }
.invite-form label { flex: 1 1 100%; }
.invite-form input { flex: 1 1 16rem; min-width: 0; }
.invite-form .btn { flex: 0 0 auto; }
.box h3 { margin: 1.5rem 0 0.75rem; font-size: 1rem; }
.seat-form { margin: 0 0 0.5rem; }
.team-alert { margin: 0 0 1.25rem; }
.team-rename { margin-bottom: 1.25rem; }
.team-rename summary { cursor: pointer; font-weight: 600; }
.team-rename form { margin: 1rem 0 0; }
.invites { margin-bottom: 1.25rem; border-color: var(--accent-border); }
.invite { padding: 1rem 0; border-top: 1px solid var(--border); }
.invite:first-of-type { padding-top: 0.25rem; border-top: 0; }
.invite p { margin: 0 0 0.4rem; }
.invite .actions { margin-top: 0.75rem; }
.teams-band {
  display: grid;
  gap: 1.25rem 2rem;
  align-items: center;
  margin-top: 1.25rem;
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface);
}
@media (min-width: 768px) {
  .teams-band { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
.teams-band h2 { margin-bottom: 0.5rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
.teams-band p:last-child { margin-bottom: 0; }
.team-form + .muted { margin-top: 1rem; }

/* ---------- the Kickstarter campaign (config KICKSTARTER_URL) ---------- */
.ks-banner { background: #16202b; color: #f3f5f7; font-size: 0.95rem; border-bottom: 1px solid rgba(242, 163, 58, 0.35); }  /* (dark in both themes) */
.ks-banner p { margin: 0 auto; padding: 0.55rem 1rem; text-align: center; }
.ks-banner a { color: #f2a33a; font-weight: 600; white-space: nowrap; }
.ks-banner a:hover { color: #f5b25a; }
/* the founder pass's bar at the top of the main pages (founder.special); dark in both themes, like the Kickstarter one */
.special-bar { background: #16202b; color: #f3f5f7; font-size: 0.95rem; border-bottom: 1px solid rgba(242, 163, 58, 0.45); }
.special-bar p { margin: 0 auto; padding: 0.55rem 1rem; text-align: center; }
.special-bar a { color: #f2a33a; font-weight: 600; white-space: nowrap; }
.special-bar a:hover { color: #f5b25a; }
.special-tag { display: inline-block; margin-right: 0.35rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: #f2a33a;
  color: #16202b; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.special-short { display: none; }
@media (max-width: 1359px) { .special-more { display: none; } }  /* (one line on a laptop) */
@media (max-width: 719px) {
  .special-bar { font-size: 0.9rem; }
  .special-long, .special-more { display: none; }
  .special-short { display: inline; }
}
.ks-note { margin-top: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--amber-border); border-radius: 10px;
  background: var(--amber-soft); color: var(--text); max-width: 46rem; }
.ks-note a { color: var(--amber-text); font-weight: 600; }

/* ---------- /projects: the four projects on their own ---------- */
.clip { display: block; width: 100%; height: auto; background: var(--surface-2); }
.hero-still, .motion-still { display: none; }  /* (a video, as a still for people who've asked for less motion) */
.video-shot { margin-top: clamp(1.5rem, 4vw, 2.25rem); }
@media (prefers-reduced-motion: reduce) {
  .hero-video, .motion-video { display: none; }
  .hero-still, .motion-still { display: block; }
}
/* the home page's Learn panel video: its five numbered parts in a row under it, like its captions */
@media (min-width: 960px) {
  .steps-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem; }
  .steps-row > li { padding-left: 0; padding-top: 3rem; }
}
.learn-points { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.launch-note {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--amber-border);
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--text);
}
.glance { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none;
          grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.glance li { padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
             color: var(--text-muted); }
.glance strong { display: block; color: var(--accent-text); font-size: 2rem; line-height: 1.1; }
.coming { display: grid; gap: 1.25rem; margin: clamp(2.5rem, 6vw, 4rem) 0 1rem;
          grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.coming-card { padding: clamp(1.25rem, 3vw, 1.75rem); }
/* ---------- The pricing page (the owner, 10 Nov 2026: "make it look like professional companies' pricing pages").
   A centred head and period switch; one even card a plan (.tier), each with who it's for, the price and its button
   at the top and a short list under them; one plan marked as the recommendation; a limited offer as its own band;
   what every plan shares in a line; the comparison in groups; the questions folded. ---------- */
.pricing-head { padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: 0.25rem; }  /* (the prices sit on the first screen) */
.pricing-head .lead { margin-bottom: 0; }
.pricing-plans { padding-top: 1.25rem; }
.period-switch-center { display: flex; width: fit-content; margin-inline: auto; margin-bottom: 1.5rem; }
.pricing .plans-pair { justify-content: center; }
.pricing .keeps { justify-content: center; }
.pricing .buy-small { max-width: 60rem; margin-inline: auto; text-align: center; }
.section-head-center { margin-inline: auto; text-align: center; }
.tiers { grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: stretch; }
@media (min-width: 680px) { .plans.tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .plans.tiers.tiers-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans.tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tier {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tier-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 11rem), var(--surface);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 1.8rem; }
.tier-name { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.tier-tag {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-text);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.tier-tag-quiet { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); font-weight: 600; }
.tier-for { min-height: 2.9em; margin: 0.45rem 0 1.15rem; color: var(--text-muted); font-size: 0.94rem; line-height: 1.45; }
.tier-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35rem;
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tier-price .per { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; }
.tier-billed { min-height: 2.8em; margin: 0.35rem 0 1.15rem; color: var(--text-muted); font-size: 0.86rem; line-height: 1.4; }
.tier-cta { display: grid; gap: 0.55rem; }
.tier-cta form { margin: 0; }
.tier-cta .btn { width: 100%; }
.tier-note { margin: 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.4; text-align: center; }
.tier-list-title {
  margin: 1.4rem 0 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}
.tier-list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; font-size: 0.93rem; line-height: 1.4; }
.tier-list li { position: relative; padding-left: 1.55rem; }
.tier-list li::before {
  content: "";
  position: absolute;
  top: 0.22em;
  left: 0.3rem;
  width: 0.36rem;
  height: 0.7rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.offer-band {
  display: grid;
  gap: 1rem 2.5rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  background: var(--amber-soft);
}
@media (min-width: 860px) { .offer-band { grid-template-columns: minmax(0, 1fr) auto; } }
.offer-band h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; font-size: 1.2rem; }
.offer-band p { margin: 0; font-size: 0.95rem; }
.offer-band .tier-price { font-size: 2rem; }
.offer-points { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; margin: 0.7rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; }
.offer-points li { position: relative; padding-left: 1.1rem; }
.offer-points li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0.1rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--amber);
}
.offer-side { display: grid; gap: 0.6rem; justify-items: start; }
@media (min-width: 860px) { .offer-side { justify-items: end; } }
.assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.assurances li { position: relative; padding-left: 1.3rem; }
.assurances li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0.25rem;
  width: 0.32rem;
  height: 0.62rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.assurance-note { max-width: 42rem; margin: 0.9rem auto 0; }
.compare .th-price { display: block; margin-top: 0.15rem; color: var(--text-muted); font-size: 0.8rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.compare .group th {
  padding-block: 0.6rem;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.compare-four tr:not(.group) > :nth-child(4),
.compare-three tr:not(.group) > :nth-child(3) { background: var(--accent-soft); }  /* (the recommended plan's column) */
.pricing-faq { max-width: 46rem; margin-inline: auto; }  /* (the site's own .faq, centred) */
.coming-card h3 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.coming-card p:last-child { margin: 0; color: var(--text-muted); }
@media (min-width: 1040px) {
  .plans.plans-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans.plans-pair { grid-template-columns: repeat(2, minmax(0, 26rem)); }
}
.buy-form { display: grid; gap: 0.9rem; margin-top: auto; }
.pick { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; }
.pick legend { margin-bottom: 0.4rem; font-weight: 600; }
.pick-row { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.55rem 0.7rem; border: 1px solid var(--border);
            border-radius: 10px; cursor: pointer; }
.pick-row input { margin-top: 0.3rem; }
.pick-row .muted { display: block; font-size: 0.875rem; }
.pick-owned { opacity: 0.6; cursor: default; }
.age { display: flex; gap: 0.5rem; align-items: center; font-size: 0.95rem; }
.buy-small { margin-top: 1.25rem; text-align: center; }

/* A creator's code on the founder page (creators.py), and the staff page's cards. */
.price .was { margin-right: 0.35rem; color: var(--text-muted); font-size: 0.6em; font-weight: 500; }
.code-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.9rem; }
.code-form label { flex-basis: 100%; color: var(--text-muted); font-size: 0.9rem; }
.code-form input {
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-transform: uppercase;
}
.creator-card { margin-bottom: 1.25rem; }
.creator-card details { margin-top: 0.6rem; }
.creator-card summary { cursor: pointer; font-weight: 600; }

/* The download page's email form (offers.py). */
.email-form { display: grid; gap: 0.6rem; margin-top: 0.6rem; }
.email-form input[type="email"] {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.email-form .email-news { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--text-muted); font-size: 0.9rem; }
.email-form .email-news input { margin-top: 0.2rem; }
.email-form .btn { justify-self: start; }
.news-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.news-ask p { margin: 0; }
/* a new account's one question: news and offers, an unticked box (the dashboard, and the page after linking the app) */
.welcome-ask { border-color: var(--accent-border); }
.welcome-ask h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.welcome-form { display: grid; gap: 0.9rem; justify-items: start; margin-top: 0.75rem; }
.welcome-form label { display: flex; align-items: flex-start; gap: 0.6rem; max-width: 46rem; text-align: left; }
.welcome-form input[type="checkbox"] { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--accent); }
.welcome-form p { margin: 0; }
.link-welcome { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); justify-items: center; }

/* ---------- /projects/<key>: a project's own page, and its card on /projects ---------- */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1rem 1.25rem; }
.project-card-shot { display: block; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.project-card-shot img, .project-card-shot video, .project-card-shot .pj-svg { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.project-card .tour-label { margin: 0.4rem 0 0; }
.project-card-title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.project-card-title a { color: inherit; text-decoration: none; }
.project-card-title a:hover { text-decoration: underline; }
.project-card .btn { align-self: flex-start; margin-top: auto; }

.project-page .kicker a { color: inherit; }
.project-h2 { margin: 0.2rem 0 0.75rem; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; }
.project-notice { margin: 0; }
.audience h2 { margin: 0 0 0.9rem; font-size: 1.25rem; }
.audience-list { margin: 0; }
@media (min-width: 800px) {
  .audience-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 2.5rem; }
  .audience-list li { margin: 0; }
}
.hero-terms { margin-top: 0.9rem; }
/* The top of /projects and of a project's page while it's one column (a phone, a tablet held upright): the picture
   comes straight after the headline, then the buttons, then the rest of the text, so someone who has just tapped
   an ad sees the project and what to tap on the first screen. The text's wrapper stops being a box (display:
   contents), so its children and the figure can be put in order together. On a phone the picture's caption is
   left out: it's what keeps both buttons on the first screen of an app's own browser. */
@media (max-width: 959px) {
  .hero-shot-first { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-shot-first > .hero-copy { display: contents; }
  .hero-shot-first .kicker { order: 1; }
  .hero-shot-first h1 { order: 2; margin-bottom: 1rem; }
  .hero-shot-first .hero-figure { order: 3; margin-bottom: 1.1rem; }
  .hero-shot-first .actions { order: 4; margin: 0 0 1.1rem; }
  .hero-shot-first .hero-terms, .hero-shot-first .launch-note { order: 5; margin: 0 0 1.1rem; }
  .hero-shot-first .lead { order: 6; margin: 0; }
}
@media (max-width: 559px) {
  .page-head-shot-first { padding-top: 1.5rem; }
  .hero-shot-first .hero-figure figcaption { display: none; }
  .hero-shot-first .hero-figure .clip { aspect-ratio: 8 / 5; object-fit: cover; }  /* (a 4:3 clip, trimmed a little) */
  .hero-shot-first .actions .btn, .hero-shot-first .actions .buy-inline { width: 100%; }
}
.project-points-wide { max-width: 46rem; }
@media (min-width: 900px) {
  .tour-row-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tour-row-flip .tour-text { order: 2; }
}
.buy-inline { display: inline-block; margin: 0; }
.buy-have { color: var(--text-muted); }
.buy-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.buy-band p { margin: 0; }
.buy-band-title { font-size: 1.15rem; font-weight: 700; }
.buy-band-cta { flex: none; }
.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.build-grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.build-grid figure { margin: 0; }
.build-grid figcaption { margin-top: 0.55rem; color: var(--text-muted); font-size: 0.9rem; }
.chapters, .needs-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .chapters, .needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
.chapter-list { margin: 1rem 0 1.25rem; padding: 0; list-style: none; counter-reset: chapter; }
.chapter-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  counter-increment: chapter;
}
.chapter-list li > span:first-child::before { content: counter(chapter) ". "; color: var(--text-muted); }
.chapter-list .muted { flex: none; font-size: 0.9rem; }
.faq details { padding: 0.85rem 0; border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 0.6rem 0 0; color: var(--text-muted); }
.buy-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}
.buy-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.buy-bar p { margin: 0; }
.buy-bar .muted { margin-left: 0.4rem; font-size: 0.9rem; }
@media (max-width: 560px) {
  .buy-bar .muted { display: none; }
  .buy-band-cta, .buy-band-cta .buy-inline, .buy-band-cta .btn { width: 100%; }
}

/* the drawings of the two projects still being built (templates/project_svg_*.html) */
.pj-svg { display: block; width: 100%; height: auto; background: var(--surface-2); }
.pj-ground { fill: var(--border-strong); }
.pj-base, .pj-quad-body { fill: var(--text-muted); }
.pj-link { fill: var(--accent); }
.pj-link-2 { fill: var(--accent-text); }
.pj-link-3, .pj-finger { fill: var(--amber); }
.pj-joint, .pj-motor { fill: var(--surface); stroke: var(--text); stroke-width: 4; }
.pj-tip { fill: var(--amber); }
.pj-path { stroke: var(--border-strong); stroke-width: 3; stroke-dasharray: 8 8; }
.pj-target { fill: none; stroke: var(--amber); stroke-width: 4; }
.pj-target-dot { fill: var(--amber); }
.pj-quad-arm { stroke: var(--text-muted); stroke-width: 14; stroke-linecap: round; }
.pj-quad-arm-side { fill: var(--text-muted); }
.pj-quad-front { fill: var(--amber); }
.pj-disc { fill: var(--accent-soft); stroke: var(--border); stroke-width: 2; }
.pj-blade-cw { fill: var(--accent); }
.pj-blade-ccw { fill: var(--amber); }
.pj-blur { fill: var(--accent); opacity: 0.45; }
.pj-arrow { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.pj-arrow-up { stroke: var(--accent); }
.pj-arrow-down { stroke: var(--amber); }

.pj-arm-shoulder { transform-origin: 360px 352px; animation: pj-shoulder 7s ease-in-out infinite; }
.pj-arm-elbow { transform-origin: 360px 205px; animation: pj-elbow 7s ease-in-out infinite; }
.pj-arm-wrist { transform-origin: 360px 76px; animation: pj-wrist 7s ease-in-out infinite; }
.pj-grip-left { animation: pj-grip-left 7s ease-in-out infinite; }
.pj-grip-right { animation: pj-grip-right 7s ease-in-out infinite; }
@keyframes pj-shoulder { 0%, 100% { transform: rotate(-24deg); } 35% { transform: rotate(18deg); } 70% { transform: rotate(34deg); } }
@keyframes pj-elbow { 0%, 100% { transform: rotate(52deg); } 35% { transform: rotate(74deg); } 70% { transform: rotate(38deg); } }
@keyframes pj-wrist { 0%, 100% { transform: rotate(30deg); } 35% { transform: rotate(-12deg); } 70% { transform: rotate(40deg); } }
@keyframes pj-grip-left { 0%, 25%, 100% { transform: translateX(0); } 40%, 60% { transform: translateX(7px); } 75% { transform: translateX(0); } }
@keyframes pj-grip-right { 0%, 25%, 100% { transform: translateX(0); } 40%, 60% { transform: translateX(-7px); } 75% { transform: translateX(0); } }

/* a two-link arm keeping its tip on a moving target: the angles at each step were worked out for its lengths */
.pj-ik-shoulder { transform-origin: 210px 330px; animation: pj-ik-shoulder 8s linear infinite; }
.pj-ik-elbow { transform-origin: 210px 180px; animation: pj-ik-elbow 8s linear infinite; }
.pj-ik-target { animation: pj-ik-target 8s linear infinite; }
@keyframes pj-ik-shoulder {
  0%, 100% { transform: rotate(-4.1deg); } 6.25%, 93.75% { transform: rotate(-0.5deg); } 12.5%, 87.5% { transform: rotate(4.4deg); }
  18.75%, 81.25% { transform: rotate(10.5deg); } 25%, 75% { transform: rotate(17.6deg); } 31.25%, 68.75% { transform: rotate(25.5deg); }
  37.5%, 62.5% { transform: rotate(33.9deg); } 43.75%, 56.25% { transform: rotate(42.9deg); } 50% { transform: rotate(52.6deg); }
}
@keyframes pj-ik-elbow {
  0%, 100% { transform: rotate(73deg); } 6.25%, 93.75% { transform: rotate(78.7deg); } 12.5%, 87.5% { transform: rotate(82.4deg); }
  18.75%, 81.25% { transform: rotate(84.1deg); } 25%, 75% { transform: rotate(83.9deg); } 31.25%, 68.75% { transform: rotate(81.9deg); }
  37.5%, 62.5% { transform: rotate(77.8deg); } 43.75%, 56.25% { transform: rotate(71.8deg); } 50% { transform: rotate(63.4deg); }
}
@keyframes pj-ik-target { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(125px, 170px); } }

.pj-prop { transform-box: fill-box; transform-origin: center; }
.pj-prop-cw { animation: pj-spin 0.9s linear infinite; }
.pj-prop-ccw { animation: pj-spin 0.9s linear infinite reverse; }
@keyframes pj-spin { to { transform: rotate(360deg); } }
.pj-hover { animation: pj-hover 4s ease-in-out infinite; }
.pj-thrust { animation: pj-thrust 4s ease-in-out infinite; }
@keyframes pj-hover { 0%, 100% { transform: translateY(18px); } 50% { transform: translateY(-22px); } }
@keyframes pj-thrust { 0%, 100% { opacity: 0.55; } 30% { opacity: 1; } 70% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .pj-svg * { animation: none; }
}

/* A school or college club's code on its adviser's club page (club.html), big enough to read out to a room. */
.club-code strong { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.9rem; letter-spacing: 0.12em; color: var(--accent-text); }

/* The club application's other fields (club.html) look like the site's text boxes. */
.club-form select,
.club-form textarea,
.club-form input[type="url"] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.club-form select:focus,
.club-form textarea:focus,
.club-form input[type="url"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
