/* demov2 — UAT stylesheet (reconstructed 2026-08-12).
   The original styles.css was never recovered (build.js only links it).
   Rebuilt from the kit's own design tokens present in the generated
   markup: #0a0a0b theme, #161618 surfaces, #22c55e accent, zinc text. */

:root {
  --bg: #0a0a0b;
  --surface: #161618;
  --surface-2: #1d1d20;
  --border: #2a2a2e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --radius: 12px;
  --wrap: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
#main-content { flex: 1; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #06130a; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── header ─────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(10, 10, 11, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 60px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { border-radius: 8px; }
.logo-text { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.logo-text b { color: var(--accent); font-weight: 700; }

.site-nav { display: flex; gap: 2px; margin-left: 8px; }
.site-nav a {
  color: var(--muted); font-size: 14px; padding: 7px 12px;
  border-radius: 8px; transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); font-weight: 600; }

.header-auth { margin-left: auto; }
.header-auth .btn { padding: 7px 14px; font-size: 13px; }

.nav-toggle {
  display: none; align-items: center; gap: 8px; margin-left: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 8px; font-size: 13px;
}

.mobile-nav {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 24px 16px; border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--muted); padding: 10px 8px; font-size: 15px; border-radius: 8px; }
.mobile-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.mobile-auth { margin-top: 8px; }
.mobile-auth .btn { width: 100%; margin-top: 6px; }

/* ── auth panel (header login) ──────────────────────────────────────── */
.site-auth-panel {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 80px 16px 40px; overflow-y: auto;
}
.site-auth-panel[hidden] { display: none; }
.site-auth-panel-inner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); width: 100%; max-width: 400px; padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.site-auth-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.site-auth-panel-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-auth-close {
  background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1;
  padding: 2px 6px; border-radius: 6px;
}
.site-auth-close:hover { color: var(--text); background: var(--surface-2); }
.site-auth-panel-lead { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.inbox-auth-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.inbox-auth-tab {
  flex: 1; background: none; border: none; color: var(--muted);
  padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.inbox-auth-tab[aria-selected="true"] { background: var(--bg); color: var(--text); }

.inbox-form .field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); padding: 10px 12px; border-radius: 8px; font-size: 14px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.inbox-form-actions { margin-top: 16px; }
.inbox-status { font-size: 13px; color: var(--muted); margin-top: 12px; min-height: 18px; }

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #06130a; }
.btn-primary:hover { background: var(--accent-dim); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 64px; }
.hero-inner { max-width: 720px; }
.badge {
  display: inline-block; background: rgba(34, 197, 94, .12); color: var(--accent);
  border: 1px solid rgba(34, 197, 94, .3); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: .06em;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 16px; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── home blocks / lists ────────────────────────────────────────────── */
.home-block { padding: 8px 0 40px; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 16px; }
.section-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.see-all { font-size: 14px; color: var(--accent); }
.see-all:hover { text-decoration: underline; }

.card-list { display: grid; gap: 12px; }
.card-list li, .update-list li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.card-list a, .update-list a { color: var(--text); font-size: 15px; font-weight: 600; }
.card-list a:hover { color: var(--accent); text-decoration: none; }
.card-list .card-date, .update-list .update-date { font-size: 12px; color: var(--muted); margin-top: 4px; }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dl-grid > div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.dl-grid h3 { font-size: 15px; margin-bottom: 6px; }
.dl-grid p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* ── article / page ─────────────────────────────────────────────────── */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.back:hover { color: var(--text); text-decoration: none; }
.back-ico { font-size: 16px; }

.article-wrap { max-width: 760px; padding: 24px 24px 72px; }
.article-title { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.article-body p { margin-bottom: 16px; font-size: 16px; color: #d4d4d8; }
.article-body h2 { font-size: 22px; margin: 28px 0 12px; }
.article-body img { border-radius: 10px; margin: 20px 0; }

.cat-badge {
  display: inline-block; background: rgba(34, 197, 94, .1); color: var(--accent);
  border: 1px solid rgba(34, 197, 94, .25); font-size: 11px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.cat-default { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

/* ── account layout ─────────────────────────────────────────────────── */
.account-shell { padding: 40px 0 72px; }
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.account-aside { position: sticky; top: 84px; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a { color: var(--muted); padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.account-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.account-main { min-width: 0; }
.account-main h2 { font-size: 20px; margin-bottom: 16px; }

/* ── inbox helper page ──────────────────────────────────────────────── */
.inbox-hero { padding: 56px 0 8px; max-width: 760px; }
.inbox-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.inbox-hero .lead { color: var(--muted); margin-bottom: 18px; }
.inbox-hero-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }

.inbox-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.inbox-panel-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.inbox-panel-lead { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.inbox-guest-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.inbox-trial-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
.inbox-trial-card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.inbox-trial-card-note { font-size: 13px; color: var(--muted); }
.inbox-trial-list { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }

.inbox-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.inbox-feature {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font-size: 13px;
}
.inbox-feature b { display: block; margin-bottom: 2px; }
.inbox-feature span { color: var(--muted); }

.inbox-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.inbox-template-grid button {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center;
}
.inbox-template-grid button:hover { border-color: var(--accent); }
.inbox-template-grid button[aria-pressed="true"] { border-color: var(--accent); background: rgba(34, 197, 94, .1); color: var(--accent); }
.inbox-template-preview { margin: 4px 0 18px; }
.inbox-template-preview-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.inbox-template-preview iframe {
  width: 100%; height: 340px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px;
}
.inbox-read-more { font-size: 13px; color: var(--accent); }
.inbox-result { margin-top: 14px; font-size: 14px; }
.inbox-result a { word-break: break-all; }

/* ── contact ────────────────────────────────────────────────────────── */
.contact-list { display: grid; gap: 10px; max-width: 640px; margin-top: 20px; }
.contact-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px;
}
.contact-label { font-size: 13px; color: var(--muted); }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-inner p { font-size: 13px; color: var(--muted); }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .account-layout { grid-template-columns: 1fr; }
  .account-aside { position: static; }
  .hero { padding: 56px 0 40px; }
}

/* UAT additions — remaining edge classes */
.inbox-trial-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-template .inbox-template-grid { margin-top: 10px; }
.home-page { flex: 1; }

/* ── inbox template cards (js/inbox-helper.js renders .inbox-tpl-*) ── */
.inbox-tpl-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 14px; border-radius: 10px; cursor: pointer;
}
.inbox-tpl-card:hover { border-color: var(--accent); }
.inbox-tpl-card.active, .inbox-tpl-card.selected { border-color: var(--accent); background: rgba(34, 197, 94, .08); }
.inbox-tpl-name { font-size: 14px; font-weight: 600; color: var(--text); }
.inbox-tpl-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.inbox-tpl-delay {
  font-size: 11px; color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; margin-top: 2px;
}
