/* AI SISTEM consumer product — public + signed-in consumer surfaces.
   Cinematic black, confident white type, red reserved for branding, CTAs and
   genuine problems. Deliberately not the agency cockpit. */
:root {
  --black: #000000;
  --ink-0: #ffffff;
  --ink-1: #e7e8ea;
  --ink-2: #9ea3ab;
  --ink-3: #6b7078;
  --red: #e6212c;
  --red-bright: #ff3a44;
  --red-deep: #8f0f17;
  --amber: #e8b13a;
  --green: #4ec97a;
  --surface: #0b0c0e;
  --surface-2: #101215;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-strong: rgba(255, 255, 255, 0.16);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--ink-1);
  font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img, svg { max-width: 100%; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ---- Public header ---- */
.pub-head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 26px;
  padding: 16px 32px; background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair);
}
.pub-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 15.5px; text-decoration: none; letter-spacing: 0.01em; }
.pub-brand .mark {
  width: 24px; height: 24px; border-radius: 7px; position: relative;
  background: radial-gradient(circle at 34% 30%, #ff5a61, var(--red) 56%, var(--red-deep));
  box-shadow: 0 0 16px rgba(230, 33, 44, 0.5);
}
.pub-brand .mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); }
.pub-brand b { color: var(--red); font-weight: 800; }
.pub-nav { display: flex; align-items: center; gap: 6px; margin-left: 14px; }
.pub-nav a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.pub-nav a:hover { color: var(--ink-0); background: rgba(255, 255, 255, 0.05); }
.pub-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 650; text-decoration: none;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 30px -12px rgba(230, 33, 44, 0.9); }
.btn-red:hover { background: var(--red-bright); }
.btn-ghost { background: transparent; color: var(--ink-1); border-color: var(--hair-strong); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }
.btn-lg { font-size: 15.5px; padding: 15px 28px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Sections ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 640px; margin: 0 auto; }
section { padding: 108px 0; position: relative; }
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); padding: 6px 12px; border-radius: 100px;
  border: 1px solid rgba(230, 33, 44, 0.32); background: rgba(230, 33, 44, 0.07); margin-bottom: 24px;
}
h1, h2, h3 { color: var(--ink-0); letter-spacing: -0.025em; margin: 0; }
h1 { font-size: 60px; font-weight: 700; line-height: 1.06; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.14; margin-bottom: 20px; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.lead { font-size: 17.5px; color: var(--ink-2); line-height: 1.65; }
.red { color: var(--red); }
.center { text-align: center; }

/* ---- URL capture ---- */
.urlbar { display: flex; gap: 10px; flex-wrap: wrap; }
.urlbar input {
  flex: 1; min-width: 260px; font-family: inherit; font-size: 16px; color: var(--ink-0);
  background: var(--surface-2); border: 1px solid var(--hair-strong); border-radius: 12px;
  padding: 16px 18px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.urlbar input::placeholder { color: var(--ink-3); }
.urlbar input:focus { border-color: rgba(230, 33, 44, 0.6); box-shadow: 0 0 0 4px rgba(230, 33, 44, 0.12); }
.urlbar .btn { padding: 16px 26px; font-size: 15px; }
.urlnote { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.urlerr { font-size: 13.5px; color: var(--red); margin-top: 12px; min-height: 18px; }

/* ---- Platform marks ---- */
.plogo { display: block; width: 22px; height: 22px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.pword {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px;
  padding: 0 5px; border-radius: 6px; background: rgba(255,255,255,0.10);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-0);
}

.unlock { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--hair); }
.unlock .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.unlock .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pchip.sub { border-style: dashed; opacity: .92; }

/* ---- Cards ---- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hair); border-radius: 18px; padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* Porchlight state cards */
.state { border-radius: 18px; padding: 0; overflow: hidden; border: 1px solid var(--hair); background: var(--surface); }
.state .vis { height: 168px; position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.state .body { padding: 22px 24px 26px; }
.state .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.state.off .tag { color: var(--ink-3); }
.state.dim .tag { color: var(--amber); }
.state.on .tag { color: var(--green); }
.state p { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 0; }
.state.on { border-color: rgba(78, 201, 122, 0.28); }
.state.dim { border-color: rgba(232, 177, 58, 0.24); }

/* ---- Report preview ---- */
.preview { background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; }
.preview .bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--hair); background: rgba(255, 255, 255, 0.02); }
.preview .bar .ill { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(232, 177, 58, 0.4); border-radius: 100px; padding: 4px 10px; }
.preview .rows { padding: 22px 24px; display: grid; gap: 18px; }
.prow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.prow .k { font-size: 13px; color: var(--ink-3); }
.prow .v { font-size: 15px; color: var(--ink-0); font-weight: 600; }

.checklist { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checklist .tick { color: var(--red); flex-shrink: 0; margin-top: 3px; }

.foot { border-top: 1px solid var(--hair); padding: 40px 0 60px; color: var(--ink-3); font-size: 13px; }
.foot a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }

/* ---- Signed-in consumer chrome ---- */
.c-head { display: flex; align-items: center; gap: 22px; padding: 15px 30px; border-bottom: 1px solid var(--hair); background: rgba(0,0,0,0.9); position: sticky; top: 0; z-index: 30; }
.c-nav { display: flex; gap: 4px; }
.c-nav a { font-size: 13.5px; font-weight: 550; color: var(--ink-2); text-decoration: none; padding: 8px 13px; border-radius: 8px; }
.c-nav a:hover { color: var(--ink-0); background: rgba(255,255,255,0.05); }
.c-nav a.active { color: var(--ink-0); background: rgba(230,33,44,0.14); }
.c-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.c-right .who { text-align: right; line-height: 1.3; }
.c-right .who b { color: var(--ink-0); display: block; font-size: 13px; font-weight: 650; }
.c-main { max-width: 900px; margin: 0 auto; padding: 44px 26px 90px; }

@media (max-width: 900px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  h2 { font-size: 29px; }
  section { padding: 74px 0; }
  .pub-head { padding: 13px 16px; gap: 10px; flex-wrap: wrap; }
  .pub-nav { display: none; }
  .wrap { padding: 0 18px; }
  .urlbar .btn { width: 100%; }
  .c-head { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .c-nav { order: 3; width: 100%; overflow-x: auto; }
  .c-main { padding: 30px 16px 70px; }
}
