/* Sicomi homepage components. All colors, fonts and radii come from css/theme.css (shared with the app). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.wrap.narrow { max-width: 820px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow.pill { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); letter-spacing: .08em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.55; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .12s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover, .btn.outline:hover { background: var(--surface-2); }
.btn.outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.large { padding: 14px 26px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brand .wordmark { height: 26px; width: auto; }
.acro { font-size: 10.5px; line-height: 1; color: var(--muted); white-space: nowrap; }
.acro b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--muted); transition: color .15s ease; }
.nav a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

/* Hero */
.hero { padding: clamp(36px, 4vw, 52px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 74px); line-height: 1.02; margin: 18px 0 18px; }
.hero .lead { max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .actions { margin-top: 24px; }
.hero-art-wrap { margin: 0; }
.hero-art-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.hero-art { position: relative; height: clamp(380px, 42vw, 540px); }
.poster { position: absolute; margin: 0; width: 56%; aspect-ratio: 7 / 10; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.poster .poster-art { width: 100%; height: 100%; }
.poster .poster-img { display: block; object-fit: cover; }
.poster-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--scrim-soft) 75%, var(--scrim-soft) 100%); }
.poster figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--on-image); }
.poster-tag { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.poster-title { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.05; }
.poster.p1 { left: 22%; top: 6%; z-index: 3; transform: rotate(-3deg); }
.poster.p2 { left: 0; top: 16%; z-index: 2; transform: rotate(-11deg) scale(.86); }
.poster.p3 { right: 0; top: 14%; z-index: 1; transform: rotate(9deg) scale(.86); }
.hero-art:hover .p1 { transform: rotate(-1deg) translateY(-6px); }
.hero-art:hover .p2 { transform: rotate(-14deg) scale(.86) translateX(-10px); }
.hero-art:hover .p3 { transform: rotate(12deg) scale(.86) translateX(10px); }

/* Proof strip */
.proof { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px; border-left: 1px solid var(--border); }
.proof-item:first-child { border-left: 0; }
.proof-value { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.proof-label { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); display: flex; flex-direction: column; gap: 16px; align-items: center; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 58px); }

/* Benefits */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card h3 { font-size: 18px; font-weight: 600; }
.card p { color: var(--muted); font-size: 15px; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* The two differentiators (company/site-differentiators): one pair block in #benefits, above #apply and on
   the hidden creators list page. Body-size text, qualifier in the same paragraph, no animation of its own (visible without JS). */
.diff-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 28px; text-align: left; width: 100%; }
.diff-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.diff-label { font-size: 16px; font-weight: 600; color: var(--text); }
.diff-text { font-size: 16px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.cta .diff-pair { margin: 4px 0 0; }
.cta .diff-item { background: transparent; border-color: var(--muted); }
.cta .diff-label, .cta .diff-text { color: var(--bg); }
.fc-page .diff-pair { margin: 8px 0 24px; }
.diff-pair .diff-label, .diff-pair .diff-text { margin: 0; font-size: 16px; }
@media (max-width: 760px) { .diff-pair { grid-template-columns: 1fr; } }
/* In the hero: two compact, high-contrast lines under the opening paragraph and above the buttons (founder, 2026-10-31).
   Label on its own line, then the whole sentence with its qualifier at body size and weight (SD-L3). */
.hero .diff-pair { grid-template-columns: 1fr; gap: 12px; margin: 22px 0 0; max-width: 600px; }
.hero .diff-item { background: transparent; border: 0; border-left: 3px solid var(--accent); border-radius: 0; padding: 2px 0 2px 14px; gap: 2px; }
.hero .diff-label { font-weight: 700; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.service { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.service.featured { border: 1.5px solid var(--accent); box-shadow: var(--shadow); }
.service h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; line-height: 1.1; }
.service ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.service li .ic { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.service .btn { align-self: flex-start; }

/* Workflow */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 0 0; border-top: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--accent); }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15px; }
.note { text-align: center; color: var(--muted); margin-top: 48px; font-size: 15px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex-shrink: 0; color: var(--muted); transition: transform .25s ease; }
.faq[open] summary .ic { transform: rotate(45deg); color: var(--accent); }
.faq p { color: var(--muted); padding: 0 40px 24px 0; max-width: 680px; }

/* Closing call to action: an inverted band */
.cta { background: var(--text); color: var(--bg); padding: clamp(72px, 10vw, 120px) 0; text-align: center; }
.cta-inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { font-size: clamp(38px, 5vw, 64px); }
.cta .lead { color: var(--bg); opacity: .72; }
.tabs { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); border: 1px solid var(--muted); margin-top: 12px; }
.tab { border: 0; background: transparent; color: var(--bg); opacity: .7; font: inherit; font-weight: 600; font-size: 14px; padding: 8px 18px; border-radius: var(--radius-pill); cursor: pointer; }
.tab.on { background: var(--bg); color: var(--text); opacity: 1; }
.waitlist { width: 100%; }
.closed-panel { display: grid; gap: 12px; justify-items: center; }
.closed-panel[hidden] { display: none; }
.closed-panel p { max-width: 560px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.field { flex: 1 1 220px; }
.field input { width: 100%; height: 52px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid transparent; background: var(--bg); color: var(--text); font: inherit; }
.field input::placeholder { color: var(--muted); }
.form-msg { min-height: 24px; margin-top: 12px; font-weight: 500; }
.form-msg.ok { color: var(--accent); font-size: 18px; }
.form-msg.error { color: var(--danger); }
.fine { font-size: 13px; opacity: .6; }

/* Footer */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* Scroll reveal (only when JavaScript is on) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.card-grid .reveal:nth-child(3n + 2), .service-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .06s; }
.card-grid .reveal:nth-child(3n + 3), .service-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .12s; }
.steps .reveal:nth-child(4) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1000px) {
  .card-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 760px) {
  .header-inner { height: 64px; }
  .acro { font-size: 9px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px clamp(16px, 4vw, 32px) 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 10px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 360px; margin: 0 auto; width: 100%; max-width: 420px; }
  .actions .btn { flex: 1 1 auto; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item { padding: 20px 16px; }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .card-grid, .service-grid, .steps { grid-template-columns: 1fr; }
  .faq summary { font-size: 16px; }
  .faq p { padding-right: 0; }
  .form-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; }
}

/* Creator application form inside the inverted CTA band */
.apply-form { text-align: left; max-width: 620px; margin: 0 auto; }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.field.stacked { flex: none; display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field.stacked label, .field.stacked legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 4px; }
.field textarea { width: 100%; padding: 12px 18px; border-radius: var(--radius); border: 1px solid transparent; background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
.field textarea::placeholder { color: var(--muted); }
.field-help { font-size: 13px; opacity: .72; display: block; font-weight: 400; }
.field-err { color: var(--danger); font-size: 14px; font-weight: 600; margin: 2px 0 0; }
.apply-form [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.apply-form input:focus-visible, .apply-form textarea:focus-visible, .apply-form button:focus-visible, .apply-form a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-item { display: flex; gap: 8px; align-items: center; }
.link-item input { flex: 1; }
.remove-link { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--muted); background: transparent; color: var(--bg); font: inherit; font-size: 14px; cursor: pointer; }
.cta .add-link { align-self: flex-start; color: var(--bg); border-color: var(--muted); }
.cta .add-link:hover { background: transparent; opacity: .85; }
.check-field { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.check-field input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); }
.check-field label { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.check-field .field-err { grid-column: 2; }
.collect-notice { font-size: 13.5px; line-height: 1.5; border: 1px solid var(--muted); border-radius: var(--radius); padding: 14px 16px; }
.collect-notice p { opacity: .85; }
.collect-notice p + p { margin-top: 8px; }
.collect-notice a { color: var(--accent); text-decoration: underline; }
.apply-form .error-summary { border: 2px solid var(--danger); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.apply-form .error-summary ul { margin: 8px 0 0; padding-left: 18px; }
.apply-form .error-summary a { color: var(--bg); text-decoration: underline; }
.apply-form .btn.primary { align-self: flex-start; }
@media (max-width: 760px) { .apply-form .btn.primary { align-self: stretch; } }
.apply-form input, .apply-form textarea, .apply-form .error-summary { scroll-margin-top: 110px; }

/* Legal pages (built from legal/ by lib/legal.mjs). */
.legal-page { padding: clamp(32px, 6vw, 64px) 0 80px; }
.legal-wrap { max-width: 780px; }
.legal-doc { line-height: 1.65; overflow-wrap: anywhere; }
.legal-doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.legal-doc h2 { font-size: clamp(24px, 3vw, 30px); margin: 36px 0 10px; }
.legal-doc h3, .legal-doc h4 { font-size: 18px; margin: 24px 0 8px; }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin: 0 0 14px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal-doc .btn { text-decoration: none; }
.legal-doc blockquote { margin: 0 0 14px; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.legal-doc code { font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: var(--radius-sm); }
.legal-doc hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.legal-doc .table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.legal-doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.legal-doc th { background: var(--surface-2); font-weight: 600; }
.draft-banner { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--accent-soft); color: var(--text); }

/* Founding Creators page (lib/founders.mjs). Hidden page; tokens only. */
.fc-wrap { max-width: 1000px; }
.fc-page > * + * { margin-top: 18px; }
.fc-page h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.fc-grid { list-style: none; padding: 0; margin-top: 28px; }
.fc-card .fc-name { font-size: 20px; font-weight: 600; font-family: var(--font-ui); }
.fc-label { color: var(--muted); }
.fc-card .btn, .fc-page .btn { min-height: 44px; }
.fc-empty { margin-top: 28px; }
.fc-empty h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; }
.fc-card .fc-name { margin: 0; }
.fc-card:hover { transform: none; }

/* Sourced guides (/guides/<slug>, company/viral-plan-refresh, Design 5.1). Reuses .legal-doc; tokens only. */
.guide .guide-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.guide .guide-byline { color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.guide .guide-toc { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 18px; margin: 0 0 18px; }
.guide .guide-toc h2 { font-size: 16px; margin: 0 0 6px; }
.guide .guide-note { border-left: 3px solid var(--accent); padding: 2px 12px; color: var(--muted); }
.guide .guide-sources { font-size: 15px; }
.guide .guide-about, .guide .guide-report { color: var(--muted); font-size: 15px; }
