/* Ethlenos public site (pre-launch): the + button, the coming-soon tag, the New project chooser.
   Crimson is the one accent; no glow, no pill shapes. Anything that uses AI is never shown. */

.eth-public #aiBar, .eth-public #tbCaptions, .eth-public #tbTidy, .eth-public #tbPost,
.eth-public #screen-modes, .eth-public #screen-admin { display: none !important; }

/* ── the + button: a red square that answers the pointer ── */
.pub-plus {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 36px; padding: 0 22px 0 0;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pub-plus-sq {
  display: grid; place-items: center; width: 88px; height: 88px; flex: none;
  border-radius: 24px; background: #dc143c; color: #fff;
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1), background 160ms ease, border-radius 260ms cubic-bezier(0.32, 0.72, 0, 1);
}
.pub-plus-sq svg { transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1); }
.pub-plus:hover .pub-plus-sq { transform: scale(1.05); background: #c4112f; border-radius: 28px; }
.pub-plus:hover .pub-plus-sq svg { transform: rotate(90deg); }
.pub-plus:active .pub-plus-sq { transform: scale(0.94); }
.pub-plus:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; border-radius: 28px; }
.pub-plus-tx { display: grid; gap: 4px; }
.pub-plus-tx b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pub-plus-tx span { font-size: 15px; color: var(--lp-on1); }
.pub-plus:hover .pub-plus-tx b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.pub-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px;
  background: rgba(127, 120, 110, 0.18); color: inherit;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.pub-soon { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: 14px; color: var(--lp-on1); }

.pub-end { text-align: left; }
.pub-end-sub { margin: 18px 0 0; font-size: 18px; color: var(--lp-on1); }
.pub-end .pub-plus { margin-top: 32px; }

/* ── New project: Manual edit first and loudest, the rest waits ── */
.pub-new {
  --n-bg: #ffffff; --n-card: #f2f1ee; --n-ink: #111210; --n-sub: #77746b; --n-hair: #e2dfd8;
  position: fixed; inset: 0; z-index: 80; overflow: auto;
  background: var(--n-bg); color: var(--n-ink);
  font-family: "Switzer", -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.dark .pub-new { --n-bg: #0e0d0c; --n-card: #1c1b19; --n-ink: #f2efe8; --n-sub: #9a958b; --n-hair: #2b2925; }
.pub-new-on, .pub-new-on body { overflow: hidden; }
.pub-new-head {
  display: flex; align-items: center; gap: 6px; height: 60px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--n-hair);
}
.pub-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; }
.pub-icon:hover { background: var(--n-card); }
.pub-icon:active { transform: scale(0.94); }
.pub-new-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pub-new-brand .brand-mark { width: 22px; height: 22px; }
.pub-new-body { width: min(560px, 100% - 32px); margin: 0 auto; padding: 56px 0 48px; display: grid; gap: 12px; }
.pub-new-title { margin: 0 0 20px; font-size: clamp(34px, 6vw, 48px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.pub-opt {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 76px; padding: 14px 16px 14px 18px;
  border: 0; border-radius: 16px; background: var(--n-card); color: inherit; font: inherit; text-align: left;
}
.pub-opt-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(127, 120, 110, 0.14); }
.pub-opt-tx { display: grid; gap: 3px; flex: 1; min-width: 0; }
.pub-opt-tx b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pub-opt-tx span { font-size: 14px; }
.pub-opt-main {
  min-height: 112px; background: #dc143c; color: #fff; cursor: pointer;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), background 160ms ease;
}
.pub-opt-main .pub-opt-ic { width: 52px; height: 52px; background: rgba(255, 255, 255, 0.16); }
.pub-opt-main .pub-opt-tx b { font-size: 22px; }
.pub-opt-main .pub-opt-tx span { color: rgba(255, 255, 255, 0.82); }
.pub-opt-main > svg { flex: none; transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1); }
.pub-opt-main:hover { background: #c4112f; transform: translateY(-2px); }
.pub-opt-main:hover > svg { transform: translateX(3px); }
.pub-opt-main:active { transform: scale(0.98); }
.pub-opt-main:focus-visible { outline: 2px solid var(--n-ink); outline-offset: 3px; }
.pub-tag-free { background: rgba(255, 255, 255, 0.2); color: #fff; }
.pub-opt.is-soon { color: var(--n-sub); cursor: default; }
.pub-opt.is-soon .pub-opt-ic { opacity: 0.7; }
.pub-morph { position: fixed; z-index: 81; background: #dc143c; pointer-events: none; }

@media (max-width: 600px) {
  .pub-plus-sq { width: 76px; height: 76px; border-radius: 22px; }
  .pub-plus-tx b { font-size: 20px; }
  .pub-new-body { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .pub-plus-sq, .pub-plus-sq svg, .pub-opt-main, .pub-opt-main > svg { transition: none; }
}

/* the hero fills the first screen alone */
.pub-hero { min-height: calc(100svh - 60px); }

/* headings by level: the closing h2 sits below the h1 */
.pub-end .lp-end-title { font-size: clamp(32px, 4.4vw, 60px); }
.pub-soon .pub-tag { margin-left: 0; }
