/* Shoestring Startups v4.0 — Apple/Stripe/Linear Cinema + Newsstand Usable UI */
:root {
  --bg-sheet: #FFFFFF;
  --bg-bento: #F5F5F7;
  --bg-stage: #05070B;
  --ink-strong: #05070B;
  --ink-body: #1F2937;
  --ink-muted: #4B5563;
  --ink-subtle: #6B7280;
  --border-hair: #E5E7EB;
  --border-card: rgba(5, 7, 11, 0.08);
  --emerald: #10B981;
  --emerald-dark: #059669;
  --emerald-tint: #ECFDF5;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  max-width: 100%; overflow-x: clip;
  background: #FFFFFF; color: #05070B;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.036em;
  text-wrap: balance;
  color: #05070B;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; }
.serif-accent { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* Sacred Action Button (Top-Lit Cash-Flow Emerald + Specular + Colored Drop Shadow) */
.ss-btn-primary, .btn-primary, .btn-primary-pill, .btn-vermilion, .btn-primary-ed {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: none;
  background: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 6px 18px rgba(16, 185, 129, 0.28) !important;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
}
.ss-btn-primary:hover, .btn-primary:hover { filter: brightness(1.04); }
.ss-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  background: #F5F5F7; border: 1px solid #D1D5DB;
  color: #05070B !important; font-family: var(--font-display); font-size: 13.5px; font-weight: 700;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
}
.ss-btn-secondary:hover { border-color: #05070B; background: #FFFFFF; }
.ss-btn-ghost-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.20);
  color: #FFFFFF !important; font-family: var(--font-display); font-size: 13.5px; font-weight: 700;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
}

/* Compact Global Header + Live Typeahead Search Popover */
.ss-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #E5E7EB;
}
.ss-header-inner {
  max-width: 1320px; margin: 0 auto; padding: 10px 20px; min-height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ss-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none !important; color: #05070B !important; flex-shrink: 0; min-height: 44px;
}
.ss-logo-word { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.05em; }
.ss-logo-badge {
  background: #05070B; color: #34D399; font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.06em;
}
.ss-nav { display: flex; align-items: center; gap: 16px; }
.ss-nav a {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 700;
  color: #1F2937; text-decoration: none; padding: 8px 6px; min-height: 44px;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.ss-nav a:hover { color: #059669; }
.ss-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ss-search-wrap { position: relative; width: 235px; flex-shrink: 0; }
.ss-search-wrap-mobile { position: relative; width: 100%; margin-bottom: 12px; }
.ss-search-input {
  width: 100%; min-height: 42px; padding: 8px 14px 8px 36px;
  border-radius: 999px; border: 1px solid #D1D5DB; background: #F5F5F7;
  font-family: var(--font-body); font-size: 13px; color: #05070B; outline: none;
}
.ss-search-input:focus { background: #FFFFFF; border-color: #059669; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.ss-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #6B7280; pointer-events: none; }
.ss-search-popover {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: 92vw;
  max-height: 420px; overflow-y: auto; background: #FFFFFF; border: 1px solid #D1D5DB;
  border-radius: 16px; box-shadow: 0 18px 40px rgba(5, 7, 11, 0.16); padding: 8px; z-index: 1200;
}
.ss-search-popover.open { display: block; }
.ss-pop-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none !important; color: #05070B !important; min-height: 48px;
}
.ss-pop-item:hover { background: #F5F5F7; }
.ss-pop-item strong { display: block; font-size: 13.5px; font-family: var(--font-display); }
.ss-pop-item small { font-size: 11.5px; color: #6B7280; }
.ss-pop-meta { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: #059669; white-space: nowrap; }

.ss-menu-toggle {
  display: none; min-height: 44px; padding: 8px 14px; border-radius: 10px;
  background: #F5F5F7; border: 1px solid #D1D5DB; font-family: var(--font-display);
  font-size: 13.5px; font-weight: 700; color: #05070B; cursor: pointer; white-space: nowrap;
}
.ss-mobile-drawer {
  display: none; background: #FFFFFF; border-top: 1px solid #E5E7EB; padding: 16px 20px;
}
.ss-mobile-drawer.open { display: block; }
.ss-mobile-drawer a.ss-drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 46px; padding: 8px 0; border-bottom: 1px solid #F3F4F6;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #05070B; text-decoration: none;
}

@media (max-width: 1080px) {
  .ss-nav { display: none; }
  .ss-menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
}
@media (max-width: 680px) {
  .ss-search-wrap, .ss-header-cta, .ss-logo-badge { display: none !important; }
}

/* Containers, Compact Hero & Screener */
.ss-container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.ss-section { padding: 36px 0; }
.ss-section-bento { background: #F5F5F7; padding: 48px 0; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
.ss-section-stage {
  background: #05070B; color: #FFFFFF; padding: 54px 0;
  background-image: radial-gradient(circle at 80% 15%, rgba(16,185,129,0.16), transparent 45%);
  border-top: 1px solid rgba(255,255,255,0.10); border-bottom: 1px solid rgba(255,255,255,0.10);
}
.ss-section-stage h2, .ss-section-stage h3 { color: #FFFFFF !important; }
.ss-hero-compact { padding: 26px 0 18px; }
.ss-hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.ss-hero-copy { max-width: 780px; }
.ss-hero-h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.07; font-weight: 800; margin: 0 0 10px; }
.ss-hero-sub { font-size: 16px; line-height: 1.55; color: #374151; margin: 0; max-width: 66ch; }
.ss-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.ss-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.ss-eyebrow-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16, 185, 129, 0.14); color: #34D399; border: 1px solid rgba(52, 211, 153, 0.35);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}

.ss-screener-panel {
  background: #F5F5F7; border: 1px solid var(--border-card);
  border-radius: 20px; padding: 16px 18px; margin-bottom: 22px;
}
.ss-screener-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.ss-screener-row + .ss-screener-row {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #E5E7EB;
}
.ss-pill-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ss-pill-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #4B5563; text-transform: uppercase; margin-right: 4px; }
.ss-filter-pill {
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid #D1D5DB; background: #FFFFFF; color: #1F2937;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; cursor: pointer;
}
.ss-filter-pill.active { background: #05070B; color: #FFFFFF; border-color: #05070B; }
.ss-select {
  min-height: 44px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid #D1D5DB; background: #FFFFFF; color: #05070B;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  max-width: 100%; min-width: 0;
}
.ss-screener-q {
  min-height: 44px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid #D1D5DB; background: #FFFFFF; color: #05070B;
  font-family: var(--font-body); font-size: 13.5px; min-width: 230px; flex: 1; max-width: 340px;
}
.ss-count-label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #047857; }

/* Play Cards & Comparison Table */
.ss-play-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(305px, 1fr)); gap: 20px;
}
.ss-play-card {
  background: #FFFFFF; border: 1px solid rgba(5, 7, 11, 0.10); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ss-play-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(5, 7, 11, 0.08); }
.ss-play-thumb { position: relative; aspect-ratio: 16 / 10; background: #05070B; overflow: hidden; display: block; }
.ss-play-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-play-score {
  position: absolute; top: 10px; right: 10px; background: rgba(5, 7, 11, 0.88);
  color: #34D399; border: 1px solid rgba(52, 211, 153, 0.4); border-radius: 999px;
  padding: 4px 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
}
.ss-play-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.ss-play-kicker { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: #059669; letter-spacing: 0.06em; margin-bottom: 5px; text-transform: uppercase; }
.ss-play-title { font-size: 19px; font-weight: 800; margin: 0 0 6px; line-height: 1.22; }
.ss-play-title a { color: #05070B; text-decoration: none; }
.ss-play-hook { font-size: 13.5px; line-height: 1.48; color: #4B5563; margin: 0 0 14px; }
.ss-play-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: #F5F5F7; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; margin-top: auto;
}
.ss-play-metrics small { display: block; font-size: 10px; text-transform: uppercase; color: #6B7280; letter-spacing: 0.04em; }
.ss-play-metrics strong { font-family: var(--font-mono); font-size: 14.5px; color: #05070B; }
.ss-play-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ss-play-actions a { min-height: 44px; font-size: 13px; padding: 8px 10px; border-radius: 10px; }

.ss-dir-table { width: 100%; border-collapse: collapse; background: #FFFFFF; border-radius: 16px; overflow: hidden; border: 1px solid #E5E7EB; font-size: 14px; }
.ss-dir-table th { background: #05070B; color: #FFFFFF; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 13px 14px; text-align: left; }

/* Studio Proof & Bento Sections */
.ss-two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .ss-two-col { grid-template-columns: 1fr; } }
.ss-figure { margin: 0 0 18px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: #0B0F17; }
.ss-figure-light { margin: 20px 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(5,7,11,0.10); background: #05070B; }
.ss-figure img, .ss-figure-light img { width: 100%; height: auto; display: block; }
.ss-figcaption { padding: 12px 16px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.75); border-top: 1px solid rgba(255,255,255,0.10); }
.ss-figcaption-light { padding: 12px 16px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.82); background: #05070B; }

.ss-tool-bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 18px; }
.ss-tool-bento-card {
  background: #FFFFFF; border: 1px solid rgba(5,7,11,0.09); border-radius: 20px; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.ss-tool-bento-card h3 { margin: 4px 0 6px; font-size: 19px; }
.ss-tool-bento-card p { margin: 0; font-size: 14px; line-height: 1.52; color: #4B5563; }

.ss-vellamere-box {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 20px; padding: 26px 28px;
}
.ss-vellamere-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.ss-vellamere-links a { font-size: 13px; font-weight: 700; color: #05070B; text-decoration: underline; padding: 6px 2px; min-height: 40px; display: inline-flex; align-items: center; }

/* Standalone Tool Shell (Starts inside first 160px!) */
.ss-tool-bar {
  background: #F5F5F7; border-bottom: 1px solid #E5E7EB; padding: 12px 20px;
}
.ss-tool-bar-inner {
  max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.ss-tool-h1 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; margin: 0; line-height: 1.15; }
.ss-tool-tabs { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; min-width: 0; max-width: 100%; }
.ss-tool-tab {
  min-height: 44px; padding: 8px 13px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid #D1D5DB; color: #374151 !important;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  text-decoration: none !important; white-space: nowrap; display: inline-flex; align-items: center;
}
@media (max-width: 768px) {
  .ss-tool-tab { min-height: 40px; padding: 6px 11px; font-size: 12px; }
}
.ss-tool-tab.active { background: #05070B; color: #FFFFFF !important; border-color: #05070B; }

.ss-tool-stage { max-width: 1320px; margin: 0 auto; padding: 22px 20px 36px; }
.ss-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 940px) { .ss-workspace-grid { grid-template-columns: minmax(0, 1fr); } }
.ss-card {
  background: #FFFFFF; border: 1px solid rgba(5, 7, 11, 0.10); border-radius: 20px; padding: 24px;
  min-width: 0; max-width: 100%;
}
.ss-card-dark {
  background: #05070B; color: #FFFFFF; border-radius: 20px; padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0; max-width: 100%;
}
.ss-card-dark h2, .ss-card-dark h3 { color: #FFFFFF !important; }
.ss-slider-group { margin-bottom: 18px; }
.ss-slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; }
.ss-slider-val { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: #059669; }
input[type="range"].ss-range {
  width: 100%; height: 8px; border-radius: 999px; accent-color: #059669; cursor: pointer;
}
.ss-opt-btn {
  width: 100%; min-height: 50px; padding: 12px 16px; margin-bottom: 10px;
  border-radius: 12px; border: 1.5px solid #D1D5DB; background: #FFFFFF;
  color: #05070B; font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
  text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.ss-opt-btn:hover { border-color: #059669; background: #F9FAFB; }
.ss-opt-btn.selected { border-color: #059669; background: #ECFDF5; color: #047857; }

.ss-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.ss-faq-item { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 16px; padding: 18px 20px; }
.ss-faq-item h3 { font-size: 16px; margin: 0 0 6px; }
.ss-faq-item p { font-size: 13.5px; line-height: 1.55; color: #4B5563; margin: 0; }

.ss-guarantee-strip {
  background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 16px; padding: 18px 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}

/* Mobile overflow guard for legacy inner guide jump-pills, pre, & tables */
.hero-jump-strip, .jump-strip {
  display: flex !important; flex-wrap: wrap !important; max-width: 100% !important; gap: 8px !important;
}
a.jump-pill, a.see-guide {
  min-height: 44px !important; display: inline-flex !important; align-items: center !important;
  padding: 8px 14px !important; max-width: 100% !important; white-space: normal !important;
}
.table-scroll, .ss-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) !important; }
}
.guide-layout > *, article.guide-content, .guide-content, .callout-box {
  min-width: 0 !important; max-width: 100% !important; overflow-wrap: break-word;
}
article.guide-content table, .guide-content table {
  display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.guide-calc-wrap { max-width: 1240px; margin: 28px auto; padding: 0 20px; }

/* Obsidian Footer & Sticky Mobile Bar */
.ss-obsidian-footer {
  background: #05070B; color: rgba(255, 255, 255, 0.78);
  padding: 48px 20px 36px; font-size: 13.5px; border-top: 1px solid rgba(255,255,255,0.10);
}
.ss-obsidian-footer a { color: rgba(255, 255, 255, 0.84) !important; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; }
.ss-obsidian-footer a:hover { color: #34D399 !important; }
.ss-footer-col-title { color: #FFFFFF; font-family: var(--font-display); font-weight: 800; font-size: 14px; margin-bottom: 10px; display: block; }
.ss-footer-list { list-style: none; margin: 0; padding: 0; }
.ss-footer-grid {
  max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px;
}
@media (max-width: 860px) { .ss-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ss-footer-grid { grid-template-columns: 1fr; } }
.ss-footer-legal {
  max-width: 1280px; margin: 26px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.58);
}

.sticky-mobile-thumb-bar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 76px; }
  .sticky-mobile-thumb-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 60px; padding: 8px 14px; background: rgba(5, 7, 11, 0.96);
    backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.14); color: #FFFFFF;
    opacity: 0; pointer-events: none; transform: translateY(105%);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .sticky-mobile-thumb-bar.is-visible {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .sticky-mobile-thumb-bar .sticky-cta-meta { font-size: 12px; line-height: 1.25; color: #FFFFFF; font-weight: 700; }
  .sticky-mobile-thumb-bar .sticky-cta-meta small { display: block; font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.68); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .ss-header, .ss-tool-bar, .ss-obsidian-footer, .sticky-mobile-thumb-bar, .no-print { display: none !important; }
  body { padding: 0 !important; background: #FFF !important; }
}
