/* ==========================================================================
   wingman — one stylesheet, no build step, no dependencies.
   Palette: Atlantic dusk. Dark by default because this is a dating profile.
   ========================================================================== */

:root {
  --bg:        #0b1014;
  --bg-2:      #111820;
  --card:      #151d26;
  --card-2:    #1b2531;
  --line:      #26323f;
  --fg:        #eef4f8;
  --muted:     #94a5b4;
  --dim:       #63748a;

  --accent:    #ffb37b;   /* CT sunset */
  --accent-2:  #ff7a59;
  --good:      #4ade9a;
  --warn:      #ffcf5c;
  --bad:       #ff6b6b;
  --sea:       #5ec8d8;

  --r:   14px;
  --r-s: 9px;
  --shadow: 0 18px 50px -22px rgba(0, 0, 0, .85);

  --wrap: 1080px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* the one bit of atmosphere. a dusk gradient bleeding in from the top. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 460px;
  background:
    radial-gradient(1100px 380px at 12% -12%, rgba(255, 138, 89, .20), transparent 70%),
    radial-gradient(900px 340px at 88% -6%,  rgba(94, 200, 216, .14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 20, .82);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 6px; height: 58px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: -.02em; margin-right: auto; font-size: 15px; }
.brand span { color: var(--accent); }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 13.5px;
  padding: 7px 11px; border-radius: 8px; transition: .15s;
}
.nav a:hover { color: var(--fg); background: var(--card-2); }
.nav a.on { color: var(--fg); background: var(--card-2); }

/* ---------- type ---------- */
h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); line-height: 1.03; letter-spacing: -.035em; margin: 0 0 12px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: -.025em; margin: 0 0 8px; }
h3 { font-size: 1.05rem; letter-spacing: -.015em; margin: 0 0 6px; }
p  { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: 1.08rem; max-width: 62ch; }
.tiny { font-size: 12.5px; color: var(--dim); }
small { font-size: 12.5px; color: var(--dim); }
a { color: var(--accent); }
strong { color: var(--fg); font-weight: 600; }
em { color: var(--accent); font-style: normal; }

/* ---------- layout blocks ---------- */
section { padding: 62px 0 0; }
.sec-head { margin-bottom: 26px; }
.sec-head p { max-width: 66ch; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}
.card.pad-lg { padding: 26px; }
.card:hover { border-color: #34435a; }

/* ---------- hero ---------- */
.hero { padding: 66px 0 0; }
.hero h1 em { display: block; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.chip {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 100px; padding: 6px 13px; font-size: 12.5px; color: var(--muted);
}
.chip.hot { color: var(--accent); border-color: rgba(255, 179, 123, .35); }

.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #20120a; font-weight: 650; font-size: 14px;
  padding: 12px 20px; border-radius: 10px; border: 0;
  cursor: pointer; text-decoration: none; font-family: inherit;
  transition: transform .12s, filter .12s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: var(--card-2); }
.btn.sm { padding: 8px 13px; font-size: 13px; }
.btn:active { transform: translateY(0); }

/* ---------- photo grid ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .photos { grid-template-columns: repeat(2, 1fr); } }

.photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-s);
  overflow: hidden; background: var(--card-2);
  border: 1px solid var(--line);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 22px 11px 9px; font-size: 11.5px; line-height: 1.35; color: #dfe8ef;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}
.photo .ph {
  display: grid; place-content: center; text-align: center; height: 100%;
  padding: 12px; color: var(--dim); font-size: 12px; gap: 6px;
}
.photo .ph b { color: var(--accent); font-size: 13px; }
.photo.hero-shot { grid-row: span 2; grid-column: span 2; }
@media (max-width: 560px) { .photo.hero-shot { grid-row: auto; grid-column: auto; } }

/* ---------- prompt cards ---------- */
.prompt { display: flex; flex-direction: column; gap: 9px; }
.prompt .q {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--dim); font-weight: 600;
}
.prompt .a { color: var(--fg); font-size: 15px; line-height: 1.55; }
.prompt .why {
  font-size: 11.5px; color: var(--sea);
  border-top: 1px dashed var(--line); padding-top: 8px; margin-top: auto;
}

/* ---------- numbered steps ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 15px; align-items: start; }
.step .n {
  counter-increment: s; font-weight: 700; font-size: 13px; color: var(--accent);
  border: 1px solid rgba(255, 179, 123, .3); border-radius: 50%;
  height: 34px; width: 34px; display: grid; place-content: center;
  background: var(--card-2);
}
.step h3 { font-size: 15px; }
.step p { margin: 2px 0 0; font-size: 14px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
td:first-child { color: var(--fg); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }

/* ---------- stat tiles ---------- */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat .n {
  font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--accent); line-height: 1;
}
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 7px; }

/* ---------- alerts ---------- */
.note {
  border-radius: var(--r); padding: 17px 19px; font-size: 14px;
  border: 1px solid var(--line); background: var(--card);
}
.note.safe { border-color: rgba(74, 222, 154, .3); background: rgba(74, 222, 154, .05); }
.note.warn { border-color: rgba(255, 207, 92, .3); background: rgba(255, 207, 92, .05); }
.note b { display: block; margin-bottom: 5px; font-size: 14px; }

ul.rules { margin: 0; padding: 0; list-style: none; }
ul.rules li { padding: 9px 0 9px 27px; position: relative; font-size: 14px; border-bottom: 1px solid var(--line); }
ul.rules li:last-child { border-bottom: 0; }
ul.rules li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 179, 123, .14);
}

/* ---------- tags ---------- */
.tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 5px; letter-spacing: .03em;
  background: var(--card-2); color: var(--muted); border: 1px solid var(--line);
}
.tag.g { color: var(--good); border-color: rgba(74, 222, 154, .3); }
.tag.w { color: var(--warn); border-color: rgba(255, 207, 92, .3); }
.tag.b { color: var(--bad);  border-color: rgba(255, 107, 107, .3); }
.tag.s { color: var(--sea);  border-color: rgba(94, 200, 216, .3); }

/* ---------- forms & buttons ---------- */
input[type=text], input[type=number], textarea, select {
  width: 100%; background: var(--bg-2); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 11px 13px; font-family: inherit; font-size: 14.5px;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 179, 123, .12);
}
label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field { margin-bottom: 16px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

button.copy { cursor: pointer; }

/* ---------- opener output ---------- */
.out {
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-s); padding: 15px 17px;
  margin-bottom: 11px; display: flex; gap: 14px; align-items: flex-start;
}
.out .txt { flex: 1; font-size: 15px; line-height: 1.55; color: var(--fg); }
.out .meta { font-size: 11.5px; color: var(--dim); margin-bottom: 6px; }
.out .chars { font-size: 11px; color: var(--dim); white-space: nowrap; }
.out .chars.bad { color: var(--bad); }
.out .chars.good { color: var(--good); }

/* ---------- tracker ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 22px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; }
.metric .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.metric .v { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin: 5px 0 2px; }
.metric .d { font-size: 11.5px; color: var(--muted); }

.leak { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 18px; }
.leak h3 { display: flex; align-items: center; gap: 9px; }
.bar { height: 7px; background: var(--bg-2); border-radius: 100px; overflow: hidden; margin: 9px 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar.g i { background: linear-gradient(90deg, #34d399, var(--good)); }
.bar.b i { background: linear-gradient(90deg, #f87171, var(--bad)); }

.log { width: 100%; font-size: 13px; }
.log td { font-size: 13px; }
.empty { text-align: center; padding: 44px 20px; color: var(--dim); }

/* ---------- footer ---------- */
footer {
  margin-top: 74px; padding: 34px 0 46px;
  border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px;
}
footer a { color: var(--muted); }

hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 6px; font-size: 13px; color: var(--sea);
}

/* ---------- misc ---------- */
.hr-sm { height: 1px; background: var(--line); border: 0; margin: 16px 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;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}