/* AutoEldo design tokens: dark "operations" look, brand accent #7c84f6.
   Contrast: text #f5f7fb, muted #a3abbd and faint #8a93a6 all pass 4.5:1 on the backgrounds below. */
:root {
  --bg: #07080d; --panel: #0d0f16; --panel2: #141722; --panel3: #1c2030; --line: #1c2030; --line2: #2a3045;
  --text: #f5f7fb; --muted: #a3abbd; --faint: #8a93a6;
  --accent: #7c84f6; --accent-hover: #929af8; --accent-soft: rgba(124,132,246,.14); --accent-line: rgba(124,132,246,.5);
  --green: #4ade80; --green-soft: rgba(74,222,128,.12); --red: #f87171; --red-soft: rgba(248,113,113,.12);
  --amber: #fbbf24; --amber-soft: rgba(251,191,36,.1);
  --radius: 16px; --radius-sm: 10px; --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms; --t-med: 250ms;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
.mono { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 10px 28px; min-height: 64px;
  background: rgba(7,8,13,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -.01em; font-size: 16px; min-height: 44px; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: url(/logo.svg) center / cover no-repeat; box-shadow: 0 0 18px rgba(124,132,246,.45); }
.nav .links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav .links a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; transition: color var(--t-fast), background var(--t-fast); }
.nav .links a:hover, .nav .links a.on { color: var(--text); background: var(--panel2); }
.nav .links a.btn { color: #fff; margin-left: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 40px 24px 80px; }
.narrow { max-width: 780px; }
h1 { font-size: 32px; letter-spacing: -.025em; margin: 0 0 8px; line-height: 1.15; }
h2 { font-size: 16px; margin: 0 0 4px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 28px; font-size: 16px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.card p { margin: 6px 0 0; }

/* buttons + inputs (44px tall: comfortable to click and tap) */
button, .btn { font: inherit; font-weight: 550; font-size: 14.5px; color: var(--text); background: var(--panel3); border: 1px solid var(--line2);
  border-radius: var(--radius-sm); padding: 10px 18px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-med); white-space: nowrap; }
button:hover, .btn:hover { background: #262b3d; border-color: #39405a; }
button:active, .btn:active { transform: scale(.97); }
button:disabled { opacity: .55; cursor: not-allowed; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(124,132,246,.7); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.big { padding: 13px 24px; min-height: 50px; font-size: 16px; border-radius: 12px; }
.ghost { background: transparent; }
.danger { color: var(--red); }
input, select { font: inherit; font-size: 15px; color: var(--text); background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius-sm);
  padding: 11px 13px; min-height: 44px; width: 100%; outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: block; font-size: 13.5px; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.field { margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1; min-width: 200px; }

/* hero: product preview right next to the pitch */
.hero { padding: 44px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; }
.hero h1 { font-size: 50px; letter-spacing: -.035em; margin: 0 0 16px; line-height: 1.06; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), #b9bdff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 17.5px; max-width: 520px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .ico { width: 18px; height: 18px; color: var(--green); }
.badge { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); border: 1px solid var(--line2);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 20px; background: var(--panel); }
.badge b { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; } .hero h1 { font-size: 40px; } }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid3, .grid2 { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } .nav { padding: 8px 14px; gap: 8px; } .nav .links a:not(.btn) { padding: 10px 8px; } }

/* sections */
.section { margin-top: 88px; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head .kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 650; margin-bottom: 8px; }
.section-head h2 { font-size: 32px; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 48px 0 14px; }
.feature { padding: 24px; transition: border-color var(--t-med), transform var(--t-med) var(--ease); }
.feature:hover { border-color: var(--line2); transform: translateY(-2px); }
.feature .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* how it works */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step-card { position: relative; padding: 24px; }
.step-card .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); margin-bottom: 14px; }
.step-card h3 { font-size: 17px; margin: 0 0 6px; }
.step-card p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color var(--t-fast); }
.faq details[open] { border-color: var(--line2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform var(--t-med) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* final call to action */
.cta-band { margin-top: 88px; text-align: center; padding: 48px 24px; border-radius: 20px; border: 1px solid var(--accent-line);
  background: radial-gradient(120% 140% at 50% 0%, rgba(124,132,246,.22), transparent 60%), var(--panel); }
.cta-band h2 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 10px; }
.cta-band p { color: var(--muted); margin: 0 auto 22px; max-width: 520px; }

/* animated demo */
.demo { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(124,132,246,.25), 0 1px 0 rgba(255,255,255,.03) inset; }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel3); display: block; }
.demo-title { font-size: 12.5px; color: var(--muted); }
.demo-live { margin-left: auto; font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 7px; }
.demo-live b { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.demo-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; min-height: 330px; }
.demo-col { padding: 16px; }
.demo-col + .demo-col { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .demo-body { grid-template-columns: 1fr; } .demo-col + .demo-col { border-left: 0; border-top: 1px solid var(--line); } }
.demo-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 10px; }
.demo-feed { display: flex; flex-direction: column; gap: 8px; }
.req { background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; font-size: 13px;
  animation: slideIn .45s var(--ease) both; transition: border-color .3s, opacity .3s; }
.req.active { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.req.done { opacity: .55; }
.req .top { display: flex; justify-content: space-between; gap: 8px; }
.req .cat { font-weight: 600; }
.req .who { color: var(--faint); font-size: 12px; }
.req .desc { color: var(--muted); margin-top: 3px; }
.req .tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel3); color: var(--muted); white-space: nowrap; height: fit-content; }
.req .tag.sent { background: var(--green-soft); color: var(--green); }
.req .tag.won { background: var(--accent-soft); color: var(--accent); }
.demo-steps { display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.step { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); animation: fadeUp .35s var(--ease) both; }
.step .ic { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 10px; margin-top: 1px; background: var(--panel3); color: var(--muted); }
.step.ok .ic { background: var(--green-soft); color: var(--green); }
.step b { color: var(--text); font-weight: 600; }
.step .mono { color: var(--text); }
.typing { display: inline-flex; gap: 3px; } .typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.demo-chat { display: flex; flex-direction: column; gap: 7px; min-height: 92px; }
.bubble { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.45; animation: fadeUp .35s var(--ease) both; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--panel3); color: var(--text); border-bottom-left-radius: 4px; }
.bubble small { display: block; opacity: .7; font-size: 11px; margin-top: 2px; }
.demo-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.demo-stats > div { padding: 14px 16px; }
.demo-stats > div + div { border-left: 1px solid var(--line); }
.demo-stats span { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.demo-stats span.bump { color: var(--green); }
.demo-stats small { color: var(--faint); font-size: 12px; }
@media (max-width: 760px) { .demo-stats { grid-template-columns: repeat(2, 1fr); } .demo-stats > div:nth-child(3) { border-left: 0; } .demo-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .req, .step, .bubble { animation: none; } .demo-live b { animation: none; } }

/* pricing */
.plan { display: flex; flex-direction: column; gap: 4px; position: relative; }
.plan.best { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.plan .tag { position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.plan .price { font-size: 34px; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 0; }
.plan .per { color: var(--faint); font-size: 12.5px; margin-bottom: 14px; }
.plan button { margin-top: auto; justify-content: center; }

/* stats + chips */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 12.5px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { font-size: 12.5px; border: 1px solid var(--line2); background: var(--panel2); border-radius: 999px; padding: 6px 12px; color: var(--muted); }
.chip b { color: var(--green); font-weight: 600; }
.fine { color: var(--faint); font-size: 12.5px; margin: 14px 0 0; padding-left: 18px; }
.fine li { margin: 3px 0; }

/* referrals page */
.rsec-head { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.refcode { font-size: 30px; font-weight: 700; letter-spacing: -.01em; color: var(--accent); font-family: ui-monospace, Consolas, monospace; }
.icon-btn { padding: 6px 10px; font-size: 15px; }
.stat .n.accent { color: var(--accent); }
.claims { display: flex; flex-direction: column; }
.claim { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.claim:last-child { border-bottom: 0; }
.claim-days { font-weight: 600; color: var(--green); white-space: nowrap; }
.small-btn { padding: 6px 12px; font-size: 12.5px; background: var(--accent); border-color: var(--accent); color: #fff; }
.small-btn:hover { background: #8c93f8; }
.empty-claims { border: 1px dashed var(--line2); border-radius: 12px; padding: 18px 20px; }
.steps-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; font-size: 13.5px; }
.steps-list b { color: var(--text); }
@media (max-width: 760px) { .claim { grid-template-columns: 1fr; gap: 6px; } }

/* segmented toggle */
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 3px; }
.seg button { background: transparent; border: 0; padding: 5px 13px; color: var(--muted); border-radius: 7px; }
.seg button.on { background: var(--panel3); color: var(--text); }
.post { white-space: pre-wrap; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 14px 0; font-size: 13.5px; min-height: 80px; }

/* account */
.big { font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.pill.ok { color: var(--green); background: var(--green-soft); }
.pill.off { color: var(--red); background: var(--red-soft); }
.pill.own { color: var(--accent); background: var(--accent-soft); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--faint); font-weight: 500; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }

/* auth */
.auth { max-width: 400px; margin: 60px auto; }
.err { color: var(--red); font-size: 13px; min-height: 20px; margin: 4px 0 10px; }
.note { background: var(--amber-soft); border: 1px solid rgba(251,191,36,.25); color: var(--amber); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.note.ok { background: var(--green-soft); border-color: rgba(74,222,128,.25); color: var(--green); }

/* toast */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--panel3); border: 1px solid var(--line2); padding: 10px 16px; border-radius: 10px; font-size: 13.5px;
  transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { color: var(--red); }
footer { color: var(--faint); font-size: 12.5px; text-align: center; padding: 30px; border-top: 1px solid var(--line); }
.foot-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* legal pages */
.legal h2 { margin: 28px 0 8px; font-size: 16px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal b { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent); }
.agree { color: var(--faint); font-size: 12.5px; text-align: center; margin: 12px 0 0; }
.agree a { color: var(--muted); }

/* respect people who turn off animations */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
