/* ============================================================
   PROFOLIO — design system v2
   Premium minimal. Editorial type, quiet surfaces, one accent.
   ============================================================ */
:root {
  --bg: #0b0c0d;
  --surface: #121415;
  --surface-2: #17191b;
  --line: #232628;
  --line-soft: #1a1d1f;
  --txt: #f4f1ea;
  --dim: #a7abae;
  --faint: #6e7477;
  --accent: #e3d2a8;          /* warm parchment — the only color that shouts */
  --accent-ink: #17140c;
  --accent-dim: rgba(227, 210, 168, .12);
  --green: #8fce9b;
  --red: #ef5b60;
  --amber: #e8b45a;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
}

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

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hidden { display: none !important; }
a { color: var(--accent); }
::selection { background: var(--accent-dim); }

/* ---------- wordmark ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #b89b5e);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--accent-ink); font-weight: 900;
}
.brand-name { font-weight: 800; letter-spacing: 3px; font-size: 14px; }

/* ---------- top bar / tabs ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11,12,13,.92);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.topbar-right { display: flex; gap: 10px; align-items: center; }
.plan-badge {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--dim);
}
.plan-badge.pro, .plan-badge.trial {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
}
.plan-badge.trial { background: transparent; color: var(--accent); border-color: var(--accent); }

/* trial banner */
.trial-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 20px; font-size: 14px;
  background: var(--accent-dim);
  border-bottom: 1px solid rgba(227,210,168,.25);
  color: var(--accent);
}
.trial-banner strong { font-weight: 800; }
.trial-banner button {
  background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}

/* quick actions — the primary flow, always one click away */
.quickbar {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  position: sticky; top: 57px; z-index: 9;
  overflow-x: auto;
}
.quickbar .qb-label {
  font-size: 12px; letter-spacing: 1.5px; color: var(--faint);
  font-weight: 700; margin-right: 4px; white-space: nowrap;
}

.tabs {
  display: flex; gap: 4px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(11,12,13,.92);
  overflow-x: auto;
  position: sticky; top: 110px; z-index: 8;
}
.tab {
  background: none; border: none; color: var(--dim);
  padding: 9px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: var(--radius-sm); white-space: nowrap;
  font-family: var(--font);
}
.tab:hover { color: var(--txt); }
.tab.active { color: var(--accent); background: var(--accent-dim); }

/* ---------- layout ---------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 40px 24px 80px; }
.tabpane.hidden { display: none; }
.pane-title {
  font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.15;
}
.pane-sub { color: var(--dim); margin: 6px 0 28px; font-size: 15px; max-width: 60ch; }
.pane-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.pane-head .pane-sub { margin-bottom: 18px; }
.limit-note { color: var(--faint); font-size: 13px; font-weight: 500; }

/* ---------- buttons ---------- */
.btn-go {
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius-sm);
  padding: 14px 28px; font-weight: 750; font-size: 15px;
  cursor: pointer; font-family: var(--font);
  transition: transform .12s ease, filter .12s ease;
}
.btn-go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-go.small { padding: 10px 18px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-go:disabled { opacity: .5; transform: none; cursor: default; }
.btn-google {
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0;
  border-radius: var(--radius-sm); padding: 13px 28px;
  font-weight: 700; font-size: 15px; cursor: pointer; font-family: var(--font);
  margin-top: 10px;
}
.btn-google:hover { background: #f8f9fa; }
.btn-ghost {
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font);
}
.btn-ghost:hover { color: var(--txt); border-color: var(--dim); }
.btn-danger {
  background: transparent; color: var(--red);
  border: 1px solid rgba(239,91,96,.35); border-radius: var(--radius-sm);
  padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font);
}
.link-btn {
  background: none; border: none; color: var(--accent);
  font-size: 14px; cursor: pointer; font-family: var(--font);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.single { grid-template-columns: 1fr; }
.form-grid .span2 { grid-column: span 2; }
label, .fld {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13px; font-weight: 650; color: var(--dim);
  letter-spacing: .2px;
}
label input, label textarea, label select,
.fld input, .fld textarea, .fld select {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--txt);
  padding: 12px 14px; font-size: 15px; font-family: var(--font);
  outline: none; transition: border-color .12s ease;
  width: 100%;
}
label input:focus, label textarea:focus, label select:focus,
.fld input:focus, .fld textarea:focus, .fld select:focus {
  border-color: var(--accent);
}
label textarea, .fld textarea { resize: vertical; min-height: 76px; }
.fld-hint { font-weight: 500; color: var(--faint); font-size: 12px; }
.auth-err { color: var(--red); font-size: 14px; }
.copy-msg { color: var(--green); font-size: 14px; }

/* ---------- cards / lists ---------- */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px 22px;
  transition: border-color .12s ease;
}
.card:hover { border-color: var(--line); }
.card h3 { font-size: 17px; font-weight: 750; letter-spacing: -.2px; }
.card .card-meta { color: var(--faint); font-size: 13px; margin-top: 4px; }
.card .card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.card .card-results { margin: 10px 0 0; padding-left: 18px; color: var(--dim); font-size: 14px; }
.card .card-results li { margin-bottom: 4px; }
.card .card-results li::marker { color: var(--accent); }

.empty-state {
  text-align: center; padding: 56px 24px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.empty-state h3 { font-size: 19px; font-weight: 750; letter-spacing: -.3px; margin-bottom: 8px; }
.empty-state p { color: var(--dim); font-size: 14px; max-width: 44ch; margin: 0 auto 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 8px 7px 14px;
  font-size: 13px; font-weight: 600;
}
.tag button {
  background: none; border: none; color: var(--faint); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 2px 6px; border-radius: 999px;
}
.tag button:hover { color: var(--red); }
.tag-input-row { display: flex; gap: 10px; }
.tag-input-row input {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--txt);
  padding: 12px 14px; font-size: 15px; font-family: var(--font); outline: none;
}
.tag-input-row input:focus { border-color: var(--accent); }

.check-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.check-list label {
  flex-direction: row; align-items: center; gap: 10px;
  font-weight: 550; font-size: 14px; color: var(--txt);
  padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer;
}
.check-list label:hover { background: var(--surface-2); }
.check-list input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- auth ---------- */
.auth-wrap {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px; max-width: 420px; margin: 0 auto;
}
.auth-box {
  width: 100%; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 32px 30px; box-shadow: var(--shadow);
}
.auth-box h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; }
.auth-sub { color: var(--dim); font-size: 14px; margin-bottom: 22px; }
.auth-box .fld { margin-bottom: 14px; }
.auth-alt { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--faint); }
.auth-foot { margin-top: 26px; font-size: 14px; color: var(--faint); }

/* ---------- modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5,6,7,.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px; width: 100%; max-width: 480px;
  max-height: 90dvh; overflow-y: auto; box-shadow: var(--shadow);
}
.modal-box.wide { max-width: 640px; }
.modal-box h3 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 6px; }
.modal-box h4 { font-size: 14px; font-weight: 700; color: var(--dim); margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; justify-content: flex-end; flex-wrap: wrap; }
.view-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.view-pick h4 { margin-bottom: 8px; }
.ob-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.ob-dot { width: 28px; height: 4px; border-radius: 999px; background: var(--line); }
.ob-dot.active { background: var(--accent); }

/* ---------- preview ---------- */
.preview-controls { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.preview-controls select {
  background: var(--surface); border: 1px solid var(--line); color: var(--txt);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-family: var(--font);
}
.preview-frame {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface); min-height: 320px; padding: 32px;
}
.view-stats { color: var(--faint); font-size: 13px; margin: 12px 0; font-family: var(--mono); }

/* ---------- landing page ---------- */
.lp-nav { border-bottom: 1px solid var(--line-soft); background: rgba(11,12,13,.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.lp-nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.lp-nav-cta { display: flex; gap: 10px; align-items: center; }
.lp-hero {
  max-width: 1120px; margin: 0 auto; padding: 110px 24px 90px;
}
.lp-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 22px;
}
.lp-hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 850; letter-spacing: -2.5px; line-height: 1.02;
  margin-bottom: 24px;
}
.lp-lede { font-size: 20px; color: var(--dim); max-width: 56ch; margin-bottom: 36px; }
.lp-hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.lp-hero-cta .btn-go { padding: 16px 34px; font-size: 16px; }
.lp-micro { font-size: 13px; color: var(--faint); }
.lp-hero-proof { margin-top: 44px; }
.lp-hero-proof a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1px solid rgba(227,210,168,.3); border-radius: var(--radius);
  padding: 14px 22px; background: var(--accent-dim);
  transition: transform .12s ease;
}
.lp-hero-proof a:hover { transform: translateY(-2px); }
.lp-section { max-width: 1120px; margin: 0 auto; padding: 90px 24px; }
.lp-section h2 {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 18px;
}
.lp-section > p:not(.lp-kicker) { color: var(--dim); max-width: 62ch; }
section.lp-alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
section.lp-alt > .lp-section { padding-top: 90px; padding-bottom: 90px; }
.lp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.lp-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px 28px;
}
section.lp-alt .lp-card { background: var(--bg); }
.lp-card h3 { font-size: 19px; font-weight: 750; letter-spacing: -.3px; margin: 14px 0 10px; }
.lp-card p { color: var(--dim); font-size: 15px; }
.lp-num {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  letter-spacing: 1px;
}
.lp-steps { display: flex; flex-direction: column; gap: 28px; margin-top: 44px; max-width: 720px; }
.lp-step { display: flex; gap: 20px; align-items: flex-start; }
.lp-step .lp-num {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.lp-step h3 { font-size: 19px; font-weight: 750; margin-bottom: 6px; }
.lp-step p { color: var(--dim); font-size: 15px; }
.lp-cta-row { margin-top: 44px; }

/* pricing */
.lp-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; max-width: 780px; }
.lp-price-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 36px 32px; position: relative;
}
.lp-price-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.lp-price-card h3 { font-size: 15px; font-weight: 800; letter-spacing: 2px; color: var(--dim); margin-bottom: 12px; margin-top: 0; }
.lp-price-card.featured h3 { color: var(--accent); }
.lp-price { font-size: 52px; font-weight: 850; letter-spacing: -1.5px; margin-bottom: 6px; }
.lp-price span { font-size: 16px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.lp-price-sub { color: var(--dim); font-size: 14px; margin-bottom: 24px; }
.lp-price-card ul { list-style: none; margin-bottom: 28px; }
.lp-price-card li { padding: 8px 0; font-size: 15px; color: var(--dim); border-bottom: 1px solid var(--line-soft); }
.lp-price-card li:last-child { border-bottom: none; }
.lp-price-card li::before { content: "— "; color: var(--accent); }
.lp-badge {
  position: absolute; top: -13px; left: 32px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 999px;
}
.lp-faq { margin-top: 40px; max-width: 760px; }
.lp-faq details {
  border-bottom: 1px solid var(--line-soft); padding: 20px 0;
}
.lp-faq summary { font-weight: 700; font-size: 17px; cursor: pointer; letter-spacing: -.2px; }
.lp-faq summary::marker { color: var(--accent); }
.lp-faq details p { color: var(--dim); margin-top: 10px; font-size: 15px; max-width: 60ch; }
.lp-final { text-align: center; padding: 110px 24px; }
.lp-final h2 { max-width: 20ch; margin: 0 auto 18px; }
.lp-final .lp-lede { margin: 0 auto 36px; text-align: center; }

/* landing visuals — custom editorial illustrations (PLX-360) */
.lp-hero-visual {
  margin: 56px auto 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.lp-hero-visual img { display: block; width: 100%; height: auto; }
.lp-card-fig {
  margin: -30px -28px 22px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.lp-card-fig img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
}

/* Meet SPII corner card — dismissible, links to the main site */
.meet-spii {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow);
  padding: 12px 34px 12px 14px; max-width: 230px;
}
.meet-spii a { text-decoration: none; display: block; color: var(--txt); }
.meet-spii strong { display: block; font-size: 13px; }
.meet-spii span { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.meet-spii-x {
  position: absolute; top: 4px; right: 6px;
  border: 0; background: none; font-size: 16px; line-height: 1;
  color: var(--faint); cursor: pointer; padding: 4px; font-family: var(--font);
}

/* ---------- SPIIX banner / footer ---------- */
.hr-banner { margin: 60px auto 40px; max-width: 880px; padding: 0 24px; }
.hr-banner-inner {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px 24px; background: var(--surface);
}
.hr-banner-mark {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #b89b5e);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--accent-ink); font-weight: 900;
}
.hr-banner-text { flex: 1; }
.hr-banner-text strong { display: block; font-size: 14px; }
.hr-banner-text span { font-size: 13px; color: var(--dim); }
.btn-hr {
  background: transparent; color: var(--accent); text-decoration: none;
  border: 1px solid rgba(227,210,168,.35); border-radius: var(--radius-sm);
  padding: 10px 18px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
footer {
  border-top: 1px solid var(--line-soft); padding: 28px 24px;
  text-align: center; color: var(--faint); font-size: 13px;
}
footer a { color: var(--dim); }

/* ---------- example page ---------- */
.ex-hero { max-width: 880px; margin: 0 auto; padding: 80px 24px 20px; }
.ex-hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 850; letter-spacing: -1.8px; line-height: 1.05; }
.ex-hero .ex-headline { font-size: 20px; color: var(--accent); margin: 16px 0 12px; font-weight: 600; }
.ex-hero .ex-contact { color: var(--faint); font-size: 14px; }
.ex-hero .ex-bio { color: var(--dim); font-size: 16px; max-width: 62ch; margin-top: 14px; }
.ex-section { max-width: 880px; margin: 0 auto; padding: 36px 24px; }
.ex-section h2 {
  font-size: 13px; font-weight: 800; letter-spacing: 2.5px;
  color: var(--faint); margin-bottom: 24px;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 12px;
}
.ex-proj { margin-bottom: 36px; }
.ex-proj h3 { font-size: 22px; font-weight: 750; letter-spacing: -.4px; }
.ex-proj .ex-role { color: var(--accent); font-size: 14px; font-weight: 600; margin: 4px 0 10px; }
.ex-proj p { color: var(--dim); font-size: 15px; max-width: 68ch; }
.ex-proj ul { margin: 12px 0 0 20px; color: var(--txt); font-size: 15px; }
.ex-proj li { margin-bottom: 6px; }
.ex-proj li::marker { color: var(--accent); }
.ex-metric { font-weight: 750; color: var(--accent); }
.ex-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-skills span {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600;
}
.ex-cred { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.ex-cred strong { font-size: 16px; }
.ex-cred span { color: var(--faint); font-size: 14px; }
.ex-cta { max-width: 880px; margin: 40px auto 90px; padding: 0 24px; text-align: center; }
.ex-cta .ex-box {
  border: 1px solid rgba(227,210,168,.4); border-radius: 16px;
  padding: 52px 32px; background: var(--accent-dim);
}
.ex-cta h2 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 12px; border: none; padding: 0; color: var(--txt); }
.ex-cta p { color: var(--dim); margin-bottom: 28px; }
.ex-note {
  max-width: 880px; margin: 0 auto; padding: 0 24px 10px;
  color: var(--faint); font-size: 13px;
}

/* ---------- print ---------- */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #111; }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
  .lp-grid3 { grid-template-columns: 1fr; }
  .lp-pricing { grid-template-columns: 1fr; }
  .view-pick { grid-template-columns: 1fr; }
  .lp-hero { padding: 70px 24px 60px; }
  .lp-hero-visual { margin-top: 40px; }
  .quickbar { top: 56px; }
  .tabs { top: 104px; }
  .pane-title { font-size: 26px; }
}
