/* ============================================================
   Sensaro — home page

   Two themes. Dark is the default: navy ground pulled from the
   logo, mountain photo held well back as atmosphere. Light is
   the old site's forest-green palette on paper, with the
   mountain sitting closer to the surface the way it used to.

   Every colour is a token. Nothing below the token blocks
   references a raw hex value.
   ============================================================ */

:root {
  --sensaro-css-version: "7";

  /* --- dark (default) --- */
  --ink:        #0f1520;
  --ink-2:      #141c2a;
  --surface:    rgba(21, 29, 43, .86);
  --surface-2:  rgba(26, 35, 51, .93);
  --bar:        rgba(30, 40, 57, .82);
  --line:       rgba(255, 255, 255, .09);
  --line-2:     rgba(255, 255, 255, .17);

  --paper:      #e9eef4;
  --mute:       #9dabbe;
  --mute-2:     #71809a;

  --moss:       #6fbf4a;
  --moss-ink:   #0b1207;
  --moss-soft:  rgba(111, 191, 74, .13);
  --sky:        #3aa7e0;
  --sky-soft:   rgba(58, 167, 224, .14);
  --ember:      #f0562f;

  /* photo treatment */
  --veil: linear-gradient(180deg,
            rgba(15, 21, 32, .74) 0%,
            rgba(15, 21, 32, .84) 42%,
            rgba(15, 21, 32, .92) 100%);
  --shadow: 0 18px 44px rgba(0, 0, 0, .34);
  --shadow-lift: 0 24px 60px rgba(0, 0, 0, .44);

  --display: 'Archivo', system-ui, sans-serif;
  --body:    'Public Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1240px;
  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 7px;
}

:root[data-theme="light"] {
  --ink:        #eef1ec;
  --ink-2:      #e4e9e3;
  --surface:    rgba(255, 255, 255, .93);
  --surface-2:  rgba(255, 255, 255, .96);
  --bar:        rgba(255, 255, 255, .95);
  --line:       rgba(22, 41, 29, .13);
  --line-2:     rgba(22, 41, 29, .24);

  --paper:      #16241b;
  --mute:       #3f5045;
  --mute-2:     #5f7167;

  --moss:       #2f6f4e;
  --moss-ink:   #f2f8f4;
  --moss-soft:  rgba(47, 111, 78, .11);
  --sky:        #1c6a97;
  --sky-soft:   rgba(28, 106, 151, .12);
  --ember:      #bf3f1c;

  --veil: linear-gradient(180deg,
            rgba(240, 243, 238, .58) 0%,
            rgba(240, 243, 238, .72) 40%,
            rgba(240, 243, 238, .86) 100%);
  --shadow: 0 14px 34px rgba(22, 41, 29, .10);
  --shadow-lift: 0 20px 48px rgba(22, 41, 29, .16);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}

/* --- the mountain, held back behind everything --- */
body::before,
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }

body::before {
  z-index: -2;
  background-image: url('assets/images/mountain-8330401_1280.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
body::after {
  z-index: -1;
  background: var(--veil);
  transition: background .4s ease;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--moss); color: var(--moss-ink);
  padding: .65rem 1rem; font-family: var(--mono); font-size: .8rem;
  z-index: 200;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 .9rem;
}

.lede {
  color: var(--mute);
  font-size: 1.02rem;
  max-width: 62ch;
  margin: 1rem 0 0;
}

/* logo-echo divider: a trace terminating in a node */
.trace { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem; }
.trace i { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); flex: none; }
.trace span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--moss), var(--line-2) 35%, transparent);
}

/* ---------- top bar ---------- */
/* index-correct.html, rule for rule. Square 3px Sign up button,
   pill theme switch, 1.5rem gaps. */

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .85rem var(--gut);
  background: var(--bar);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex; align-items: baseline; gap: .45rem; flex: none;
  font-family: var(--display); font-weight: 800;
  font-size: 1.15rem; letter-spacing: .04em;
}
.wordmark b { color: var(--paper); }
.wordmark em {
  font-style: normal; font-family: var(--mono);
  font-size: .68rem; letter-spacing: .18em;
  color: var(--ember); text-transform: uppercase;
}

.topnav {
  display: flex; align-items: center; gap: 1.5rem;
  margin-left: auto; min-width: 0;
}
.topnav > a {
  font-size: .9rem; font-weight: 500; color: var(--mute);
  white-space: nowrap;
  transition: color .18s ease;
}
.topnav > a:hover,
.topnav > a[aria-current="page"] { color: var(--paper); }

/* Sign up — and the same box when signed in */
.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: .45rem 1rem;
  background: transparent;
  font-family: var(--mono);
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.topnav > a.nav-cta { color: var(--paper); }
.nav-cta:hover { border-color: var(--moss); background: var(--moss-soft); }

.acct-wrap { position: relative; display: inline-flex; flex: none; }
.acct-btn { padding: .25rem .8rem .25rem .25rem; }

.avatar {
  width: 26px; height: 26px; border-radius: 2px; flex: none;
  background: var(--moss); color: var(--moss-ink);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: 0; text-transform: uppercase;
}
.acct-name { max-width: 13ch; overflow: hidden; text-overflow: ellipsis; }

.acct-menu {
  position: absolute; right: 0; top: calc(100% + .55rem);
  display: block; min-width: 220px;
  background: var(--bar);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  box-shadow: var(--shadow-lift);
  padding: .5rem;
  opacity: 0; transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 120;
}
.acct-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.acct-menu .who {
  display: block;
  padding: .5rem .7rem .7rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .4rem;
}
.acct-menu .who strong { display: block; font-size: .88rem; font-weight: 600; color: var(--paper); }
.acct-menu .who span {
  display: block; font-family: var(--mono); font-size: .68rem;
  color: var(--mute-2); overflow: hidden; text-overflow: ellipsis;
}
.acct-menu a, .acct-menu button {
  display: block; width: 100%; text-align: left;
  padding: .5rem .7rem; border: none; background: transparent;
  border-radius: 2px; cursor: pointer;
  font-family: var(--body); font-size: .88rem; color: var(--mute);
  text-transform: none; letter-spacing: 0;
  transition: background .15s ease, color .15s ease;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--moss-soft); color: var(--paper); }
.acct-menu .out { color: var(--ember); }

/* theme switch */
.theme {
  display: flex; align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 100px; padding: 2px; flex: none;
}
.theme button {
  border: none; background: transparent; cursor: pointer;
  display: grid; place-items: center;
  width: 28px; height: 24px; border-radius: 100px;
  color: var(--mute-2);
  transition: background .2s ease, color .2s ease;
}
.theme button svg { width: 14px; height: 14px; display: block; }
.theme button[aria-pressed="true"] { background: var(--moss-soft); color: var(--moss); }
.theme button:hover { color: var(--paper); }

/* small screens: drop the text links, keep Sign up and the switch */
@media (max-width: 860px) {
  .topnav > a:not(.nav-cta) { display: none; }
  .topnav { gap: .6rem; }
}
@media (max-width: 400px) {
  .topbar { padding: .7rem 1rem; gap: .5rem; }
  .wordmark { font-size: 1rem; }
  .wordmark em { font-size: .6rem; letter-spacing: .12em; }
  .nav-cta { padding: .4rem .7rem; font-size: .68rem; letter-spacing: .05em; }
  .acct-name { max-width: 7ch; }
}

/* ---------- hero ---------- */
/* always photo-backed, so it keeps light text in both themes
   rather than flipping and becoming unreadable */

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #eef3f8;
  border-bottom: 1px solid var(--line);
}

.hero-media { position: absolute; inset: 0; background: #0f1520; }
.hero-media .base {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1.4s ease, transform 10s linear;
}
.hero-media .slide.on { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .hero-media .slide { transition: opacity .25s linear; transform: none; }
  .hero-media .slide.on { transform: none; }
}

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, #0f1520 1%, rgba(15,21,32,.88) 34%, rgba(15,21,32,.30) 74%, rgba(15,21,32,.52) 100%),
    linear-gradient(to right, rgba(15,21,32,.88) 0%, rgba(15,21,32,.22) 58%, transparent 100%);
}

.hero-topo {
  position: absolute; inset: 0;
  opacity: .09;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27400%27%20height%3D%27276%27%20viewBox%3D%270%200%20400%20276%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%236fbf4a%27%20stroke-width%3D%271%27%20stroke-opacity%3D%270.55%27%3E%3Cpath%20d%3D%27M0%2018%20C%2060%20-10%2C%20130%2046%2C%20200%2033%20C%20270%20-10%2C%20340%2046%2C%20400%2018%27%2F%3E%3Cpath%20d%3D%27M0%2064%20C%2060%2034%2C%20130%2084%2C%20200%2074%20C%20270%2044%2C%20340%2094%2C%20400%2064%27%2F%3E%3Cpath%20d%3D%27M0%20110%20C%2060%2080%2C%20130%20139%2C%20200%20128%20C%20270%2081%2C%20340%20140%2C%20400%20110%27%2F%3E%3Cpath%20d%3D%27M0%20156%20C%2060%20137%2C%20130%20173%2C%20200%20171%20C%20270%20139%2C%20340%20175%2C%20400%20156%27%2F%3E%3Cpath%20d%3D%27M0%20202%20C%2060%20179%2C%20130%20220%2C%20200%20211%20C%20270%20184%2C%20340%20225%2C%20400%20202%27%2F%3E%3Cpath%20d%3D%27M0%20248%20C%2060%20233%2C%20130%20274%2C%20200%20263%20C%20270%20222%2C%20340%20263%2C%20400%20248%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 400px 276px;
  background-repeat: repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative; width: 100%;
  max-width: var(--max); margin: 0 auto;
  padding: 6rem var(--gut) 2.4rem;
}

.hero .eyebrow { color: #86d466; }

.hero h1 { font-size: clamp(2.7rem, 7.4vw, 5.1rem); max-width: 15ch; }
.hero h1 .out { color: #ff6a3d; display: block; }

.hero p.lede {
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  color: #c6d1e0;
  margin-top: 1.4rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* console strip: what you're looking at, and where in the set */
.hero-console {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(15, 21, 32, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-console-in {
  max-width: var(--max); margin: 0 auto;
  padding: .7rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.hero-caption {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  color: #a8b6c8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dots { display: flex; gap: .4rem; flex: none; }
.dots button {
  width: 24px; height: 3px; padding: 0;
  border: none; border-radius: 100px;
  background: rgba(255,255,255,.24);
  cursor: pointer; transition: background .25s ease;
}
.dots button.on { background: #86d466; }
.dots button:hover { background: rgba(255,255,255,.5); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--mono);
  font-size: .79rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .8rem 1.4rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-solid {
  background: var(--moss); color: var(--moss-ink); font-weight: 600;
  box-shadow: 0 6px 18px var(--moss-soft);
}
.btn-solid:hover { filter: brightness(1.08); box-shadow: 0 10px 26px var(--moss-soft); }
.btn-line { border-color: var(--line-2); color: var(--paper); background: transparent; }
.btn-line:hover { border-color: var(--moss); background: var(--moss-soft); }

.hero .btn-line { border-color: rgba(255,255,255,.35); color: #eef3f8; }
.hero .btn-line:hover { border-color: #86d466; background: rgba(134,212,102,.14); }

/* ---------- section frame ---------- */

.band {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) var(--gut);
}
.band + .band { border-top: 1px solid var(--line); }

.sec-head { margin-bottom: 3rem; }
.sec-head h2 { font-size: clamp(1.75rem, 3.3vw, 2.45rem); max-width: 20ch; }

/* ---------- product line ---------- */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(285px, 100%), 1fr));
  gap: 1.1rem;
}

.app {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.7rem 1.6rem 1.55rem;
  display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.app:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-2);
}

.app-top { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.05rem; }

.app-icon {
  width: 52px; height: 52px; flex: none;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  object-fit: cover;
  background: var(--surface-2);
}
.app-icon.mono {
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800;
  font-size: 1.1rem; letter-spacing: -.02em;
  color: #fff; border-color: transparent;
}

.app h3 { font-size: 1.06rem; }

.app-cat {
  font-family: var(--mono); font-size: .67rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute-2); margin: .35rem 0 0;
}

.tag {
  font-family: var(--mono); font-size: .61rem;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 100px;
  margin-left: auto; flex: none;
}
.tag-live { color: var(--moss); background: var(--moss-soft); }
.tag-beta { color: var(--sky); background: var(--sky-soft); }
.tag-soon { color: var(--mute-2); border: 1px solid var(--line-2); }

.app-blurb {
  color: var(--mute); font-size: .9rem; line-height: 1.62;
  margin: 0 0 1.45rem; flex: 1;
}

/* store button + beta side by side */
.app-actions { display: flex; gap: .45rem; margin-bottom: .7rem; }

.app-primary {
  flex: 1 1 auto; min-width: 0;
  padding: .72rem .9rem; font-size: .73rem;
}
.app-primary > * { min-width: 0; }

.app-beta {
  flex: 0 0 auto;
  padding: .72rem .95rem; font-size: .73rem;
}
.app-beta.off {
  color: var(--mute-2); border-color: var(--line);
  opacity: .55; cursor: not-allowed;
}
.app-beta.off:hover { border-color: var(--line); background: transparent; color: var(--mute-2); }

.app-dmg {
  flex: 0 0 auto;
  padding: .72rem .95rem; font-size: .73rem;
  border-color: var(--line-2);
}
.app-dmg:hover { border-color: var(--sky); color: var(--sky); background: var(--sky-soft); }
.app-actions { flex-wrap: wrap; }
.app-actions .app-primary { flex: 1 1 100%; }
@media (min-width: 480px) {
  .app-actions .app-primary { flex: 1 1 auto; }
}

.app-primary[aria-disabled="true"] {
  background: transparent; color: var(--mute-2);
  border-color: var(--line-2); box-shadow: none; cursor: not-allowed;
}
.app-primary[aria-disabled="true"]:hover { filter: none; box-shadow: none; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; }

.chip {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .05em;
  padding: .32rem .62rem;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--mute);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.chip:hover { border-color: var(--moss); color: var(--moss); background: var(--moss-soft); }
.chip.off {
  border-color: var(--line); color: var(--mute-2);
  opacity: .55; cursor: not-allowed;
}
.chip.off:hover { border-color: var(--line); color: var(--mute-2); background: transparent; }

/* ---------- the side-projects doorway ----------
   Deliberately not another .app card. It sits under the grid and reads
   as a way out of the page rather than a tenth product competing with
   the nine above it. */

.aside-link {
  display: block; margin-top: 1.6rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.7rem;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.aside-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-2);
  border-left-color: var(--moss);
}
.aside-link-in {
  display: flex; align-items: center; gap: 1.5rem;
  justify-content: space-between;
}
.aside-link h3 { font-size: 1.12rem; margin: .35rem 0 .5rem; }
.aside-link p:not(.eyebrow) {
  color: var(--mute); font-size: .9rem; line-height: 1.62;
  margin: 0; max-width: 62ch;
}
.aside-arrow {
  font-size: 1.5rem; color: var(--moss); flex: none;
  transition: transform .28s ease;
}
.aside-link:hover .aside-arrow { transform: translateX(5px); }
@media (max-width: 560px) {
  .aside-link-in { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .aside-arrow { align-self: flex-end; }
}

/* ---------- web tools ---------- */

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1.1rem; }

.tool {
  display: block;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.7rem 1.75rem;
  position: relative; overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
}
.tool::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--line-2);
  transition: background .3s ease;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tool.fire:hover::before   { background: var(--ember); }
.tool.forest:hover::before { background: var(--moss); }
.tool.crew:hover::before   { background: var(--sky); }

.tool h3 { font-size: 1.14rem; margin-bottom: .6rem; }
.tool p { color: var(--mute); font-size: .92rem; margin: 0; }
.tool .go {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--mute-2);
  display: block; margin-top: 1.1rem;
  transition: color .25s ease;
}
.tool:hover .go { color: var(--moss); }

/* ---------- who we serve ---------- */

.serve { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); gap: 2.4rem; }
.serve > div { border-top: 1px solid var(--line-2); padding-top: 1.2rem; }
.serve h3 { font-size: 1rem; margin-bottom: .7rem; }
.serve p { color: var(--mute); font-size: .92rem; margin: 0; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-grid p { color: var(--mute); }
.about-grid p + p { margin-top: 1rem; }

.log {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.7rem;
}
.log h3 { font-size: 1rem; margin-bottom: .6rem; }
.log p { color: var(--mute); font-size: .9rem; margin: 0 0 1.3rem; }

@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- feedback ---------- */

.report { max-width: 640px; }
.report textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--paper);
  font-family: var(--body); font-size: .95rem;
  padding: 1rem 1.1rem;
  resize: vertical; min-height: 124px;
  transition: border-color .2s ease;
}
.report textarea::placeholder { color: var(--mute-2); }
.report textarea:focus { border-color: var(--moss); outline: none; }
.report .row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
#bugReportMessage { font-family: var(--mono); font-size: .78rem; margin: 0; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.foot-in {
  max-width: var(--max); margin: 0 auto;
  padding: 2.5rem var(--gut);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--mute-2);
}
.foot a { color: var(--mute); }
.foot a:hover { color: var(--moss); }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.foot-theme { display: flex; align-items: center; gap: .7rem; }
.foot-theme span {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--mute-2);
}


/* ============================================================
   SUBPAGE SHELL
   Used by every page below the home page. Same tokens, compact
   header instead of the photo hero.
   ============================================================ */

.page-head {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--gut) clamp(1.75rem, 3vw, 2.5rem);
}
.page-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 18ch; }
.page-head .lede { margin-top: 1.1rem; }

.crumbs {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute-2); margin: 0 0 1rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.crumbs a { color: var(--mute-2); }
.crumbs a:hover { color: var(--moss); }
.crumbs i { font-style: normal; opacity: .5; }

/* generic surface panel */
.panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3vw, 2rem);
}
.panel + .panel { margin-top: 1.1rem; }
.panel > h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.panel > .sub {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute-2); margin: 0 0 1.4rem;
}

/* definition rows, e.g. account fields */
.rows { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.row {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1rem;
  background: var(--surface-2);
  padding: .85rem 1.05rem;
}
.row dt {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--mute-2); margin: 0;
}
.row dd { margin: 0; font-size: .93rem; word-break: break-word; }
.row dd pre {
  margin: 0; font-family: var(--mono); font-size: .8rem;
  white-space: pre-wrap; color: var(--mute);
}
@media (max-width: 620px) {
  .row { grid-template-columns: 1fr; gap: .25rem; }
}

/* state messages */
.state {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--mono); font-size: .8rem;
  color: var(--mute);
}
.state.err { color: var(--ember); }
.spinner {
  width: 13px; height: 13px; flex: none;
  border: 2px solid var(--line-2);
  border-top-color: var(--moss);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.empty {
  text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1rem;
}
.empty h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.empty p { color: var(--mute); font-size: .93rem; margin: 0 auto 1.5rem; max-width: 46ch; }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; }


/* ============================================================
   LANDING PAGES — one page per app, /apps/<slug>.html

   Additions only. Everything above is the home page stylesheet,
   shared as a file rather than inlined twelve times so the
   browser caches it once and the pages cannot drift.
   ============================================================ */

.lp-hero {
  padding: clamp(3rem, 6vw, 5rem) var(--gut) clamp(2rem, 4vw, 3rem);
  max-width: var(--wide); margin-inline: auto;
}
.lp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 17ch; margin: .6rem 0 0; line-height: 1.05;
}
.lp-hero .lede { margin-top: 1.2rem; max-width: 60ch; font-size: 1.06rem; }

.lp-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }

.lp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }

.lp-top { display: flex; align-items: center; gap: 1rem; }
.lp-icon {
  width: 64px; height: 64px; flex: none; border-radius: 16px;
  border: 1px solid var(--line-2); object-fit: cover;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  color: #fff; border-color: transparent;
}

.lp-body { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gut); }

.lp-cols {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 860px) { .lp-cols { grid-template-columns: 1fr; } }

.lp-prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 2.6rem 0 .9rem; }
.lp-prose h2:first-child { margin-top: 0; }
.lp-prose h3 { font-size: 1.05rem; margin: 1.6rem 0 .45rem; }
.lp-prose p { color: var(--mute); line-height: 1.72; margin: 0 0 1rem; }
.lp-prose ul { margin: 0 0 1.2rem; padding-left: 1.15rem; }
.lp-prose li { color: var(--mute); line-height: 1.72; margin-bottom: .5rem; }
.lp-prose strong { color: var(--paper); font-weight: 600; }

.lp-side {
  position: sticky; top: 5.5rem;
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 1.5rem 1.5rem 1.35rem;
}
@media (max-width: 860px) { .lp-side { position: static; } }
.lp-side h2 { font-size: .95rem; margin: 0 0 1rem; }
.lp-side .btn { width: 100%; justify-content: center; margin-bottom: .5rem; }

.lp-facts { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.2rem; }
.lp-fact { display: flex; justify-content: space-between; gap: 1rem; background: var(--surface-2); padding: .7rem .9rem; }
.lp-fact dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-2); }
.lp-fact dd { margin: 0; font-size: .82rem; color: var(--paper); text-align: right; }

/* FAQ — real <details> so it works with scripts off and the text is
   indexable whether or not it is expanded. */
.faq { border-top: 1px solid var(--line); margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--paper);
  font-size: .98rem; list-style: none; display: flex;
  justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--moss); font-size: 1.2rem; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: .8rem 0 0; color: var(--mute); line-height: 1.7; }

/* the FUELBREAK funnel block, on every page that isn't FUELBREAK */
.lp-funnel {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  border: 1px solid var(--line); border-left: 3px solid var(--fire, #f0562f);
  border-radius: var(--r-lg); background: var(--surface);
  padding: 1.7rem 1.8rem;
}
.lp-funnel h2 { font-size: 1.15rem; margin: .3rem 0 .6rem; }
.lp-funnel p { color: var(--mute); font-size: .92rem; line-height: 1.65; margin: 0 0 1.1rem; max-width: 60ch; }

.lp-related { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.lp-related a {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .04em;
  padding: .35rem .7rem; border: 1px solid var(--line-2); border-radius: 100px;
  color: var(--mute);
}
.lp-related a:hover { border-color: var(--moss); color: var(--moss); background: var(--moss-soft); }

.crumbs {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--mute-2); margin-bottom: 1.2rem;
}
.crumbs a { color: var(--mute-2); }
.crumbs a:hover { color: var(--moss); }
.crumbs span { margin: 0 .4rem; opacity: .5; }
