:root {
  --ink: #0C1A3B;
  --royal: #2747E0;
  --royal-dark: #1A33B0;
  --sun: #FFC93C;
  --sky: #E9EEFF;
  --bg: #F7F8FC;
  --white: #FFFFFF;
  --body: #4B5675;
  --light: #C9D2EA;
  --line: #E1E6F3;
  --chip-line: #DCE2F2;
  --danger: #B42318;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--royal); }
a:hover { color: var(--royal-dark); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.panel-wrap { padding: 0 16px; }
.panel { max-width: 1360px; margin: 0 auto; border-radius: 32px; }
.section { padding: 120px 0; }
.section-sm { padding: 72px 0; }

h1, h2, h3 { font-family: var(--display); margin: 0; color: inherit; }
.h1 { font-weight: 800; font-size: clamp(46px, 6.4vw, 92px); line-height: 0.95; letter-spacing: -0.045em; }
.h2 { font-weight: 800; font-size: clamp(36px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.04em; }
.h3 { font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.02; letter-spacing: -0.035em; }
.h4 { font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; }
.lead { font-size: 20px; line-height: 1.6; color: var(--body); margin: 0; }
.muted { color: var(--body); }
.label {
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--royal);
}
.center { text-align: center; }
p { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: var(--ink); font-weight: 800; }
.btn-sun:hover { color: var(--ink); background: #FFD45F; }
.btn-royal { background: var(--royal); color: var(--white); }
.btn-royal:hover { color: var(--white); background: var(--royal-dark); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { color: var(--white); background: #1A2A55; }
.btn-outline { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--bg); }
.btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,0.14); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 252, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--chip-line); object-fit: cover; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.02em; }
.brand-name span { color: var(--royal); }
.menu { display: flex; align-items: center; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.menu a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 999px; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--sky); color: var(--royal); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; padding: 12px 6px; }
.nav-cta .btn { min-height: 46px; padding: 11px 20px; font-size: 15px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 1060px) {
  .nav-phone { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; position: absolute; top: 74px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; border-radius: 20px; padding: 10px; box-shadow: 0 20px 40px -20px rgba(12,26,59,0.35); }
  .menu.open { display: flex; }
  .menu a { padding: 14px 16px; }
}
@media (max-width: 520px) {
  .nav-cta .btn { display: none; }
  .brand-name { font-size: 20px; }
}

/* Hero */
.hero {
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--white);
  overflow: hidden;
}
.hero-inner { max-width: 1240px; margin: 0 auto; padding: 88px 32px 96px; display: grid; gap: 56px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.hero .lead { color: var(--light); max-width: 540px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); padding: 8px 16px 8px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.pill b { background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.accent { color: var(--sun); }
.page-hero-inner { max-width: 1240px; margin: 0 auto; padding: 80px 32px; display: flex; flex-direction: column; gap: 20px; max-width: 900px; }

/* Industry finder */
.finder { background: var(--white); color: var(--ink); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); }
.finder-title { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--chip-line); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--royal); }
.chip[aria-pressed="true"] { background: var(--royal); border-color: var(--royal); color: var(--white); font-weight: 700; }
.finder-result { background: var(--sky); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.finder-result p { color: #33406A; }
.icon-sq { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--royal); display: flex; align-items: center; justify-content: center; }
.icon-soft { width: 52px; height: 52px; border-radius: 16px; background: var(--sky); display: flex; align-items: center; justify-content: center; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.ticket { background: var(--white); border: 1px solid var(--line); border-radius: 22px; display: flex; overflow: hidden; }
.ticket-main { flex-grow: 1; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.ticket-agency { font-size: 13px; font-weight: 700; color: var(--royal); }
.ticket-title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.ticket-due { border-left: 2px dashed var(--chip-line); padding: 24px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #FAFBFF; min-width: 92px; }
.ticket-due small { font-size: 12px; font-weight: 700; color: var(--body); text-transform: uppercase; letter-spacing: 0.08em; }
.ticket-due strong { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.cta-card { text-decoration: none; background: var(--sun); color: var(--ink); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.cta-card:hover { color: var(--ink); background: #FFD45F; }

/* Steps */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-num { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: var(--royal); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; }
.step-num.sun { background: var(--sun); color: var(--ink); }
.step-line { flex-grow: 1; height: 2px; background: var(--chip-line); }

/* Pricing */
.pricing-panel { background: var(--white); border: 1px solid var(--line); }
.toggle { display: inline-flex; background: #F0F3FB; border-radius: 999px; padding: 5px; gap: 4px; }
.toggle button { min-height: 44px; padding: 10px 20px; border: none; border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.plans { display: grid; gap: 16px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.plan { background: var(--bg); border-radius: 24px; padding: 30px 26px; display: flex; flex-direction: column; gap: 20px; }
.plan-name { font-weight: 800; font-size: 18px; }
.price { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.03em; }
.price-note { font-size: 14px; color: var(--body); }
.perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 15px; line-height: 1.45; color: #33406A; flex-grow: 1; }
.perks li { display: flex; gap: 10px; }
.perks svg { flex-shrink: 0; margin-top: 2px; }
.perks [data-tick] { color: var(--royal); display: inline-flex; }
.plan-featured .perks [data-tick] { color: var(--sun); }
.plan-featured { background: var(--royal); color: var(--white); box-shadow: 0 30px 60px -28px rgba(39,71,224,0.7); }
.plan-featured .price-note { color: #D6DEFF; }
.plan-featured .perks { color: #EEF2FF; }
.tag-sun { background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.plan-error { font-size: 14px; color: var(--danger); background: #FEF3F2; border-radius: 12px; padding: 10px 12px; }
.plan-featured .plan-error { color: var(--ink); background: #FFF4D6; }

/* Audience panels */
.aud { border-radius: 28px; padding: 44px 40px; display: flex; flex-direction: column; gap: 22px; }
.aud-light { background: var(--sky); }
.aud-dark { background: var(--ink); color: var(--white); }
.aud-dark p { color: var(--light); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.tags span { background: var(--white); padding: 8px 14px; border-radius: 999px; }

/* Founder */
.founder-photo { background: linear-gradient(180deg, #E4E6EB, #CFD2D9); min-height: 420px; display: flex; align-items: flex-end; justify-content: center; }
.founder-photo img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: center top; }

/* Testimonials */
.quote { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; flex-grow: 1; margin: 0; }
.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--sky); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.faq-item button { width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: none; background: transparent; color: var(--ink); font-size: 18px; font-weight: 700; text-align: left; cursor: pointer; }
.faq-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.faq-item button[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; color: var(--body); line-height: 1.65; }

/* Final CTA */
.final { background: var(--royal); color: var(--white); }
.final-inner { max-width: 1000px; margin: 0 auto; padding: 104px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.final-inner p { color: #DCE3FF; max-width: 620px; font-size: 20px; }
.final-logo { width: 72px; height: 72px; border-radius: 50%; background: var(--white); object-fit: cover; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
.wix-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.req { color: var(--royal); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="date"], .field input[type="number"], .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--chip-line); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 4px rgba(39,71,224,0.15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.choice-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--chip-line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--royal); background: var(--sky); }
.choice input { width: 18px; height: 18px; accent-color: var(--royal); }
.help { font-size: 14px; color: var(--body); }
.err { font-size: 14px; color: var(--danger); font-weight: 600; min-height: 0; }
.form-error { background: #FEF3F2; color: var(--danger); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.form-success { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.skeleton { height: 50px; border-radius: 14px; background: linear-gradient(90deg, #EEF1F8, #F7F8FC, #EEF1F8); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Footer */
.footer { padding: 72px 0 36px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer h4 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--body); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--royal); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--body); }
.footer-bottom a { color: var(--body); }

/* Prose pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; color: #2B3554; }
.prose h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 18px; color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero-inner { padding: 56px 20px 64px; }
  .page-hero-inner { padding: 56px 20px; }
  .form-card { padding: 24px; }
  .aud { padding: 32px 24px; }
  .final-inner { padding: 72px 20px; }
  .card { padding: 24px; }
}
/* Pay-in-4 switch inside the proposal card */
.toggle-card { align-self: flex-start; background: rgba(255,255,255,0.16); }
.toggle-card button { color: var(--white); min-height: 40px; padding: 8px 16px; font-size: 14px; }
.toggle-card button[aria-pressed="true"] { background: var(--white); color: var(--ink); }

/* Projects listing */
.bid { background: var(--white); border: 1px solid var(--line); border-radius: 22px; display: flex; overflow: hidden; }
.bid-main { flex: 1 1 auto; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.bid-tag { background: var(--sky); color: var(--royal); font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.bid-meta { font-size: 14px; font-weight: 700; color: var(--body); }
.bid-title { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; }
.bid-due { flex: 0 0 auto; border-left: 2px dashed var(--chip-line); padding: 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #FAFBFF; min-width: 130px; text-align: center; }
.bid-due small { font-size: 12px; font-weight: 700; color: var(--body); text-transform: uppercase; letter-spacing: 0.08em; }
.bid-due strong { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.bid-due span { font-size: 13px; font-weight: 700; color: var(--body); }
@media (max-width: 640px) {
  .bid { flex-direction: column; }
  .bid-due { border-left: none; border-top: 2px dashed var(--chip-line); flex-direction: row; gap: 10px; min-width: 0; padding: 16px 24px; justify-content: flex-start; }
  .bid-main { padding: 22px; }
}
