/* ============================================
   LIFTIN wireframe — low-fi sketch system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Kalam:wght@300;400;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #1a1a1a;
  --ink-2: #3a3a3a;
  --ink-3: #6a6a6a;
  --ink-4: #9a9a9a;
  --paper: #fafaf7;
  --paper-2: #f2f1ec;
  --line: #d8d6d0;
  --line-2: #bcb9b1;
  --accent: oklch(65% 0.18 45);
  --accent-ink: oklch(38% 0.12 45);
  --accent-soft: oklch(94% 0.04 70);
  --note: #fff7d1;
  --note-border: #e4c95a;
  --shadow: 0 1px 0 rgba(0,0,0,0.04);
  --sans: 'Kalam', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ============ Chrome ============ */
.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  padding: 14px 28px 0;
}
.chrome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 10px;
}
.chrome-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.chrome-brand .mark {
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}
.chrome-brand .mark em {
  font-style: normal;
  background: var(--accent);
  color: #fff;
  padding: 0 8px;
  border-radius: 4px 10px 4px 12px;
}
.chrome-brand .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.chrome-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  line-height: 1.4;
}

.tabs {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  flex-wrap: nowrap;
}
.tab {
  font-family: var(--hand);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-3);
  background: transparent;
  border: 1.5px solid transparent;
  border-bottom: none;
  padding: 6px 12px 8px;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  transform: translateY(1.5px);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--ink);
  background: var(--paper-2);
  border-color: var(--ink);
}
.tab .count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  margin-left: 6px;
  font-weight: 400;
}
.tab.active .count { color: var(--accent-ink); }

/* ============ Canvas ============ */
.canvas {
  padding: 32px 28px 80px;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: calc(100vh - 90px);
}
.pane { display: none; }
.pane.active { display: block; }

/* ============ Wireframe page ============ */
.wf-page {
  max-width: 1280px;
  margin: 0 auto 48px;
  background: #fff;
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.wf-page + .wf-page { margin-top: 64px; }

.wf-banner {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.wf-banner .title { font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-banner .meta { color: var(--ink-4); white-space: nowrap; flex-shrink: 0; }

.wf-section {
  padding: 56px 48px;
  border-bottom: 1.5px dashed var(--line);
  position: relative;
}
.wf-section:last-child { border-bottom: none; }
.wf-section .sec-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ============ Nav within wireframe ============ */
.wf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 1.5px solid var(--ink);
  background: #fff;
}
.wf-nav .brand {
  font-family: var(--hand);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.wf-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: nowrap;
}
.wf-nav ul li {
  font-family: var(--hand);
  font-size: 18px;
  color: var(--ink-2);
  white-space: nowrap;
}
.wf-nav ul li.current {
  border-bottom: 2px solid var(--accent);
}
.wf-nav .nav-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============ Type ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1.wf {
  font-family: var(--hand);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 18px;
  padding-top: 6px;
}
h1.wf em {
  font-style: normal;
  background: var(--accent-soft);
  padding: 2px 8px 4px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.05;
  margin-top: 4px;
}
h2.wf {
  font-family: var(--hand);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
h3.wf {
  font-family: var(--hand);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
h4.wf {
  font-family: var(--hand);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.lede {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink-2);
  max-width: 560px;
  line-height: 1.5;
}
.sub {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-3);
  max-width: 640px;
}
.wf-section > .sub,
.wf-section > h2.wf { margin-bottom: 28px; }

/* ============ Buttons (wireframe) ============ */
.btn {
  font-family: var(--hand);
  font-size: 20px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.btn.ghost {
  background: #fff;
  color: var(--ink);
}
.btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.sm {
  font-size: 17px;
  padding: 6px 14px;
}
.btn-link {
  font-family: var(--hand);
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}

/* ============ Placeholders ============ */
.ph {
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 8px,
      rgba(0,0,0,0.035) 8px 9px
    ),
    #f2f1ec;
  border: 1.5px dashed var(--line-2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  gap: 6px;
  padding: 20px;
  text-align: center;
}
.ph .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-3);
}
.ph .hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-4);
  max-width: 240px;
}
.ph.circle { border-radius: 50%; }

/* ============ Annotations ============ */
.note {
  position: absolute;
  background: var(--note);
  border: 1.2px dashed var(--note-border);
  padding: 8px 12px;
  font-family: var(--hand);
  font-size: 16px;
  color: #5a4800;
  max-width: 220px;
  line-height: 1.25;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.08);
  border-radius: 3px 14px 3px 12px;
  z-index: 5;
  transform: rotate(-1.2deg);
}
.note.right { transform: rotate(1.4deg); }
.note .n-label {
  font-family: var(--mono);
  font-size: 9px;
  color: #a07a00;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.note-inline {
  display: inline-block;
  background: var(--note);
  border: 1px dashed var(--note-border);
  font-family: var(--hand);
  font-size: 15px;
  color: #5a4800;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  transform: rotate(-0.5deg);
}

/* ============ Grids ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

/* ============ Cards ============ */
.card {
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: 8px;
  padding: 22px;
  position: relative;
}
.card.sketch {
  box-shadow: 3px 3px 0 var(--line);
}
.card .num {
  font-family: var(--hand);
  font-size: 34px;
  color: var(--line-2);
  position: absolute;
  top: 6px;
  right: 14px;
  line-height: 1;
}
.card .icon-slot {
  width: 44px;
  height: 44px;
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-4);
  letter-spacing: 1px;
}

/* ============ Flow ============ */
.flow-chain {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 14px 0;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1;
  min-width: 160px;
  border: 1.5px solid var(--ink);
  padding: 14px 16px;
  background: #fff;
  position: relative;
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
.flow-step .step-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  display: block;
}
.flow-step .step-title {
  font-family: var(--hand);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
}
.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--hand);
  color: var(--accent);
  font-size: 28px;
}

/* ============ Footer ============ */
.wf-footer {
  background: var(--paper-2);
  padding: 40px 48px 24px;
  border-top: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.wf-footer h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.wf-footer ul { list-style: none; }
.wf-footer li {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.wf-footer .fbrand {
  font-family: var(--hand);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.wf-footer .fbrand + p {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 280px;
}
.wf-footer .bottom {
  grid-column: 1 / -1;
  border-top: 1.5px dashed var(--line);
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}

/* ============ Form ============ */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 560px;
}
.form .field { display: flex; flex-direction: column; gap: 4px; }
.form .field.full { grid-column: 1 / -1; }
.form label {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--ink-2);
}
.form .input {
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
  height: 44px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.form .input.textarea { height: 88px; padding-top: 12px; }

/* ============ Pricing ============ */
.price-card {
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 28px;
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 8px;
}
.price-card.featured {
  background: var(--ink);
  color: #fff;
}
.price-card.featured h3.wf,
.price-card.featured .price-amount { color: #fff; }
.price-card.featured .price-amount em { background: var(--accent); }
.price-amount {
  font-family: var(--hand);
  font-size: 42px;
  font-weight: 700;
  margin: 8px 0 16px;
  line-height: 1;
}
.price-amount .unit {
  font-size: 16px;
  color: var(--ink-3);
}
.price-card.featured .price-amount .unit { color: #bbb; }
.price-card ul { list-style: none; margin: 14px 0; }
.price-card li {
  font-family: var(--hand);
  font-size: 17px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 8px;
}
.price-card li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.price-card.featured li { border-color: #333; color: #ddd; }

/* ============ Tweaks panel ============ */
.tweaks {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 280px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 100;
  font-family: var(--sans);
  display: none;
}
.tweaks.open { display: block; }
.tweaks header {
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper-2);
  border-radius: 10px 10px 0 0;
}
.tweaks header h4 {
  font-family: var(--hand);
  font-size: 20px;
  font-weight: 700;
}
.tweaks header button {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-3);
}
.tweaks .body { padding: 14px; }
.tweaks .row {
  margin-bottom: 14px;
}
.tweaks .row label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.tweaks .segmented {
  display: flex;
  gap: 4px;
}
.tweaks .segmented button {
  flex: 1;
  font-family: var(--hand);
  font-size: 16px;
  padding: 6px 8px;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: var(--ink-2);
}
.tweaks .segmented button.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .sw {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  cursor: pointer;
}
.tweaks .sw.on { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ============ State variants ============ */
body.no-annotations .note,
body.no-annotations .note-inline,
body.no-annotations .wf-banner,
body.no-annotations .sec-label { display: none; }

body.sketchy .wf-page {
  transform: rotate(-0.15deg);
}

body.fi-mid .ph {
  background: #eeece5;
  border-style: solid;
}
body.fi-mid .note,
body.fi-mid .wf-banner,
body.fi-mid .sec-label { display: none; }

/* ============ Util ============ */
.stack-24 > * + * { margin-top: 24px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-8 > * + * { margin-top: 8px; }
.row { display: flex; gap: 14px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  display: inline-block;
}
.chip.accent {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.chip.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.divider-soft {
  border: none;
  border-top: 1.5px dashed var(--line);
  margin: 28px 0;
}
.bullet-list { list-style: none; }
.bullet-list li {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
}
.bullet-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-4);
}
.quote-box {
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--accent-soft);
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  max-width: 640px;
}
