/* yapmaxxer — shared styles (landing, login, studio) */

:root {
  --bg: #09090b;
  --bg2: #0d0d10;
  --card: #101014;
  --card2: #141418;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #8b8b93;
  --faint: #52525b;
  --lime: #d4ff3f;
  --lime-dim: rgba(212, 255, 63, 0.12);
  --green: #34d399;
  --red: #f87181;
  --amber: #fbbf24;
  --purple: #c084fc;
  --blue: #60a5fa;
  --pink: #f472b6;
  --radius: 16px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--lime); color: #000; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 999px;
  padding: 13px 24px; font-size: 15px; font-weight: 600;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: #fff; color: #0a0a0c; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(255,255,255,.18); }
.btn-lime { background: var(--lime); color: #0a0a0c; }
.btn-lime:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(212,255,63,.25); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,9,11,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; display: block; }
.brand .tag { font-size: 9px; font-weight: 700; letter-spacing: .18em; color: var(--muted); display: block; margin-top: 1px; }
.topnav { display: flex; gap: 26px; margin-left: 18px; }
.topnav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.topnav a:hover { color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- landing hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 88px 0 64px; position: relative; }
.hero h1 { font-size: 56px; font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 .u { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 5px; text-underline-offset: 8px; }
.hero .sub { color: var(--muted); font-size: 18px; margin: 22px 0 32px; max-width: 480px; line-height: 1.6; }
.hero .checks { display: flex; gap: 22px; margin-top: 26px; color: var(--muted); font-size: 13.5px; }
.hero .checks span { display: flex; align-items: center; gap: 7px; }
.hero .checks i { color: var(--lime); font-style: normal; font-weight: 700; }

/* X timeline mock */
.mock-x {
  background: #000; border: 1px solid var(--border2); border-radius: 20px;
  padding: 0; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.6);
  transform: rotate(.4deg);
}
.mock-x-head { display:flex; gap:10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 700; }
.mock-tweet { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.mock-tweet.dim { opacity: .45; }
.mock-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.mock-tw-body { flex: 1; min-width: 0; }
.mock-tw-name { font-weight: 700; font-size: 14px; }
.mock-tw-name span { color: var(--faint); font-weight: 400; }
.mock-tw-text { font-size: 14px; line-height: 1.45; margin: 2px 0 10px; color: #e7e9ea; }
.mock-tw-actions { display: flex; gap: 34px; color: var(--faint); font-size: 12.5px; align-items: center; }
.mock-tw-actions .ym-draft {
  margin-left: auto; background: var(--lime); color: #000; border: none;
  border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 5px;
}
.mock-reply {
  margin: 0 16px 16px; border: 1px dashed rgba(212,255,63,.45); border-radius: 14px;
  padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start;
  background: var(--lime-dim);
}
.mock-reply .tag { background: var(--lime); color: #000; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; flex-shrink: 0; margin-top: 2px; }
.mock-reply p { font-size: 13.5px; color: #e7e9ea; }
.float-chip {
  position: absolute; background: var(--card2); border: 1px solid var(--border2);
  border-radius: 12px; padding: 10px 14px; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); display: flex; align-items: center; gap: 8px;
}
.float-chip .n { color: var(--lime); font-weight: 800; font-size: 15px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section h2 { font-size: 40px; font-weight: 800; letter-spacing: -.03em; text-align: center; }
.section .lede { text-align: center; color: var(--muted); font-size: 16.5px; margin: 14px auto 52px; max-width: 560px; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--lime); text-transform: uppercase; border: 1px solid rgba(212,255,63,.35); border-radius: 999px; padding: 5px 13px; margin-bottom: 18px; }

.icon-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 44px; flex-wrap: wrap; }
.icon-row span { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s; }
.feat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.feat-card .fi { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; margin-bottom: 16px; }
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.feat-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lime); color: #000; font-weight: 800; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* studio showcase */
.showcase { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
.show-list { display: flex; flex-direction: column; gap: 12px; }
.show-item { border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 18px 20px; cursor: pointer; transition: border-color .15s, background .15s; }
.show-item h4 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.show-item p { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.55; }
.show-item.active { border-color: rgba(212,255,63,.5); background: var(--lime-dim); }
.show-item .fi { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
.show-pane { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-height: 380px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.price-card.pro { border-color: rgba(212,255,63,.5); position: relative; }
.price-card .badge { position: absolute; top: -11px; left: 26px; background: var(--lime); color: #000; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 4px 11px; border-radius: 99px; }
.price-card h3 { font-size: 19px; }
.price-card .amt { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 4px; }
.price-card .amt span { font-size: 15px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 20px 0 26px; display: grid; gap: 10px; }
.price-card li { color: var(--muted); font-size: 14px; display: flex; gap: 9px; }
.price-card li i { color: var(--lime); font-style: normal; }

/* cta */
.cta { text-align: center; padding: 110px 0; }
.cta h2 { font-size: 46px; font-weight: 800; letter-spacing: -.03em; }
.cta p { color: var(--muted); margin: 16px auto 34px; max-width: 520px; font-size: 16px; }

footer { border-top: 1px solid var(--border); padding: 34px 0; }
footer .wrap { display: flex; align-items: center; gap: 20px; color: var(--faint); font-size: 13px; }
footer .spacer { flex: 1; }
footer a:hover { color: var(--text); }

/* ---------- login ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: 380px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 36px; }
.login-card .brand { justify-content: center; margin-bottom: 26px; }
.login-card h1 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 13.5px; text-align: center; margin-bottom: 24px; }
.login-card input {
  width: 100%; background: var(--bg2); border: 1px solid var(--border2); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font: inherit; font-size: 14px; margin-bottom: 14px;
}
.login-card input:focus { outline: none; border-color: var(--lime); }
.login-card .btn { width: 100%; justify-content: center; }
.login-card .note { color: var(--faint); font-size: 12px; text-align: center; margin-top: 18px; }
.login-card .err { color: var(--red); font-size: 13px; text-align: center; margin-bottom: 12px; }
.login-card .ok { color: var(--green); font-size: 13.5px; text-align: center; }
.dev-link { display: block; margin-top: 14px; text-align: center; color: var(--lime); font-size: 13px; word-break: break-all; }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 60px); }
.sidebar { border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 500; border: none; background: none;
  text-align: left; width: 100%;
}
.side-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.side-link.active { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.side-link.active::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.side-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.side-sep { flex: 1; }

.studio-main { padding: 30px 34px 80px; min-width: 0; }
.studio-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.studio-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

.cols { display: grid; grid-template-columns: 1fr 312px; gap: 22px; margin-top: 26px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 22px; }
.card-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 16px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.kpi .k { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.kpi .d { font-size: 12px; margin-top: 2px; }
.kpi .d.up { color: var(--green); } .kpi .d.down { color: var(--red); } .kpi .d.flat { color: var(--faint); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  background: var(--bg2); text-align: left; transition: border-color .15s;
}
.tile:hover { border-color: var(--border2); }
.tile.hero-tile { grid-column: 1 / -1; border-style: dashed; border-color: rgba(212,255,63,.4); display: flex; align-items: center; gap: 16px; }
.tile .ti { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; margin-bottom: 10px; }
.tile.hero-tile .ti { margin-bottom: 0; width: 44px; height: 44px; font-size: 20px; }
.tile h4 { font-size: 14px; font-weight: 700; }
.tile p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.tile .beta { background: rgba(244,114,182,.18); color: var(--pink); font-size: 9px; font-weight: 800; letter-spacing: .1em; padding: 2px 7px; border-radius: 99px; vertical-align: middle; margin-left: 6px; }

/* ranked rows (CTR-report style) */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: 0; }
.rank-row .dot { width: 4px; align-self: stretch; border-radius: 4px; flex-shrink: 0; }
.rank-row .av { width: 36px; height: 36px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.rank-row .mid { flex: 1; min-width: 0; }
.rank-row .mid .who { font-size: 13.5px; font-weight: 700; }
.rank-row .mid .what { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .score { text-align: right; flex-shrink: 0; }
.rank-row .score .x { font-weight: 800; font-size: 16px; }
.rank-row .score .cap { font-size: 10.5px; color: var(--faint); }
.pill { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; }
.pill.hot { background: rgba(52,211,153,.15); color: var(--green); }
.pill.ok { background: rgba(251,191,36,.15); color: var(--amber); }
.pill.flat { background: rgba(248,113,129,.13); color: var(--red); }
.pill.lime { background: var(--lime-dim); color: var(--lime); }

/* checklist */
.check-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.check-item:last-child { border: 0; }
.check-item .ic { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border2); flex-shrink: 0; display: grid; place-items: center; font-size: 11px; margin-top: 1px; }
.check-item.done .ic { background: var(--lime); border-color: var(--lime); color: #000; font-weight: 800; }
.check-item h5 { font-size: 13.5px; font-weight: 650; }
.check-item h5 a { color: var(--blue); font-weight: 500; }
.check-item p { color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.5; }
.check-item.done { opacity: .55; }

/* replies view list */
.reply-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.reply-row .meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--faint); margin-bottom: 5px; }
.reply-row .meta .who { color: var(--text); font-weight: 700; font-size: 13px; }
.reply-row .txt { font-size: 13.5px; color: #d4d4d8; line-height: 1.5; }
.reply-row .metrics { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 7px; }
.reply-row .metrics b { color: var(--text); }

/* voice card */
.voice-dial { margin: 12px 0; }
.voice-dial .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.voice-dial .bar { height: 5px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.voice-dial .bar i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.voice-card-txt { background: var(--bg2); border: 1px dashed var(--border2); border-radius: 10px; padding: 14px; font-size: 13px; color: #d4d4d8; line-height: 1.6; white-space: pre-wrap; }

/* chart */
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-tip { position: absolute; pointer-events: none; background: var(--card2); border: 1px solid var(--border2); border-radius: 8px; padding: 6px 10px; font-size: 12px; transform: translate(-50%, -120%); white-space: nowrap; display: none; }
.range-btns { display: flex; gap: 6px; }
.range-btns button { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 99px; padding: 4px 12px; font-size: 11.5px; font-weight: 600; }
.range-btns button.on { border-color: var(--lime); color: var(--lime); }
.big-n { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.chart-empty { color: var(--faint); font-size: 13px; padding: 40px 0; text-align: center; }

/* form bits in studio */
.field { width: 100%; background: var(--bg2); border: 1px solid var(--border2); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; font-size: 13.5px; }
.field:focus { outline: none; border-color: var(--lime); }
.mono { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; color: var(--muted); word-break: break-all; }
.key-row { display: flex; gap: 8px; align-items: center; }
.key-row .field { flex: 1; }

/* account menu */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-items: center; font-weight: 800; font-size: 13px; border: none; }
.acct { position: relative; }
.acct-menu {
  position: absolute; right: 0; top: 42px; width: 230px; background: var(--card2);
  border: 1px solid var(--border2); border-radius: 14px; padding: 8px; display: none;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); z-index: 60;
}
.acct-menu.open { display: block; }
.acct-menu .who { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acct-menu .who .e { font-size: 13px; font-weight: 600; }
.acct-menu .who .plan { display: inline-block; margin-top: 5px; font-size: 10px; font-weight: 700; color: var(--muted); border: 1px solid var(--border2); border-radius: 5px; padding: 1px 6px; }
.acct-menu button, .acct-menu a { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: 13.5px; padding: 9px 10px; border-radius: 8px; }
.acct-menu button:hover, .acct-menu a:hover { background: rgba(255,255,255,.06); }
.acct-menu .danger { color: var(--red); }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card2); border: 1px solid var(--border2); color: var(--text);
  padding: 11px 18px; border-radius: 99px; font-size: 13.5px; opacity: 0;
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hidden { display: none !important; }
.view.hidden { display: none !important; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
  .price-grid { grid-template-columns: 1fr; }
}
