/* Home page only */
:root {
  --accent-2: #8a6fdc;
  --amber: #e29a3a;
  --shadow: 0 18px 40px -18px rgba(30, 50, 110, 0.28);
}

body.home main,
body.home footer.site .inner { max-width: 1040px; }
body.home main { padding-top: 0; }

.home h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
.home h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 16px; padding: 0; }
.home h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.muted { color: var(--muted); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 72px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 30em; margin: 0 0 24px; }
/* Hero only: justified so the paragraph's right edge lines up with the buttons' right edge */
.hero-copy .lede, .hero-copy .cta { max-width: 30rem; }
.hero-copy .lede { text-align: justify; }
/* Two equal buttons that exactly fill the text column, so their right edge lines up with the copy above */
.cta { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 12px; width: 100%; max-width: 30rem; }
.cta > * { min-width: 0; font-size: 14.5px !important; text-wrap: balance; }
@media (max-width: 520px) { .cta { grid-template-columns: 1fr; } }
.store-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
}
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.facts li { margin: 0; display: flex; align-items: center; gap: 8px; }
.facts li::before {
  content: "";
  width: 16px; height: 16px; flex: none;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='%232f55c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.hero-visual { margin: 0; }
.hero-visual svg, .sec-visual svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Shared SVG pieces */
svg text { font-family: inherit; }
.link { fill: none; stroke: var(--border); stroke-width: 2; }
.link.soon { stroke-dasharray: 3 5; }
.flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 13; opacity: 0.55; animation: flow 1.2s linear infinite; }
.dot { fill: var(--accent); }
.dot.alt { fill: var(--accent-2); }
@keyframes flow { to { stroke-dashoffset: -16; } }

.chip rect { fill: var(--bg); stroke: var(--border); stroke-width: 1.5; }
.chip.soon rect { stroke-dasharray: 4 4; fill: var(--surface); }
.chip { animation: bob 4s ease-in-out infinite; }
.chip.c2 { animation-delay: 0.5s; }
.chip.c3 { animation-delay: 1s; }
.chip.soon { animation: none; opacity: 0.8; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.sym { fill: var(--accent); }
.sym.alt { fill: var(--accent-2); }
.sym.muted { fill: var(--border); }
.sym-t { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; }
.trend { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip-t { fill: var(--text); font-size: 11.5px; font-weight: 600; }
.chip-s { fill: var(--muted); font-size: 10px; }

.dash { filter: drop-shadow(0 14px 22px rgba(30, 50, 110, 0.14)); }
.card-bg { fill: var(--bg); stroke: var(--border); stroke-width: 1.5; }
.tile { fill: var(--surface); stroke: color-mix(in srgb, var(--border) 60%, transparent); }
.skel { fill: #cdd8ee; }
.k1 { fill: var(--accent); }
.k2 { fill: var(--accent-2); }
.k3 { fill: var(--amber); }
.k4 { fill: var(--muted); opacity: 0.45; }

.bars rect { fill: color-mix(in srgb, var(--accent) 35%, transparent); transform-box: fill-box; transform-origin: bottom; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
.bars rect.hi { fill: var(--accent); }
.bars rect:nth-child(2) { animation-delay: .08s; }
.bars rect:nth-child(3) { animation-delay: .16s; }
.bars rect:nth-child(4) { animation-delay: .24s; }
.bars rect:nth-child(5) { animation-delay: .32s; }
.bars rect:nth-child(6) { animation-delay: .40s; }
@keyframes grow { from { transform: scaleY(0); } }

.seg { fill: none; stroke-width: 10; }
.s1 { stroke: var(--accent); }
.s2 { stroke: var(--accent-2); }
.s3 { stroke: var(--amber); }
.s4 { stroke: var(--muted); opacity: 0.45; }
.donut { animation: spin-in 1.2s cubic-bezier(.2,.8,.2,1) both; transform-box: fill-box; transform-origin: center; }
@keyframes spin-in { from { opacity: 0; transform: rotate(-90deg) scale(.8); } }

.line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 1.6s .3s ease-out forwards; }
.line.alt { stroke: var(--accent-2); stroke-width: 2; animation-delay: .5s; }
.area { fill: color-mix(in srgb, var(--accent) 14%, transparent); animation: fade 1.2s .6s both; }
.line-end { fill: var(--accent); animation: fade .4s 1.8s both; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.tree rect { transform-box: fill-box; transform-origin: center; animation: pop .6s cubic-bezier(.2,.8,.2,1) both; }
.tree rect:nth-child(2) { animation-delay: .12s; }
.tree rect:nth-child(3) { animation-delay: .24s; }
.tree rect:nth-child(4) { animation-delay: .36s; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
@keyframes fade { from { opacity: 0; } }

/* Sections */
.band { padding: 72px 0; border-top: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.prose p { margin: 0 0 14px; font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.feature { background: var(--bg); border: 1.5px solid var(--border); box-shadow: var(--card-shadow); border-radius: 14px; padding: 22px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
}
.ico svg, .reg-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill-line { stroke-width: 3.2; }

.audience { margin-top: 40px; }
.audience ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.audience li { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); font-weight: 500; }

.roadmap { list-style: none; margin: 0; padding: 0; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.roadmap li { position: relative; margin: 0 0 26px; padding-left: 36px; }
.roadmap li:last-child { margin-bottom: 0; }
.roadmap li::before {
  content: ""; box-sizing: border-box; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent-2);
}
.roadmap li.done::before { background: var(--accent); border-color: var(--accent); }
.roadmap strong { display: block; font-size: 1.08rem; }
.roadmap span:not(.status) { color: var(--muted); font-size: 15px; }
.status {
  display: inline-block; margin-bottom: 4px;
  font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px;
  color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 14%, transparent);
}
.done .status { color: var(--accent); background: var(--accent-soft); }

.sec-visual { margin: 36px auto 8px; max-width: 560px; }
.node rect { fill: var(--bg); stroke: var(--border); stroke-width: 1.5; }
.node.mid rect { fill: var(--accent-soft); stroke: var(--accent); }
.ico-s { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.node.mid .ico-s { stroke: var(--accent); }
.tick-mark { stroke-dasharray: 30; animation: draw 2.4s ease-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 30; } 40%, 100% { stroke-dashoffset: 0; } }
.n-t { fill: var(--text); font-size: 14px; font-weight: 600; text-anchor: middle; }
.n-s { fill: var(--muted); font-size: 12px; text-anchor: middle; }
.lock-body { fill: var(--accent); }
.shackle { fill: none; stroke: var(--accent); stroke-width: 2.2; animation: snap 2.4s ease-in-out infinite; }
@keyframes snap { 0%, 15% { transform: translateY(-3px); } 30%, 100% { transform: translateY(0); } }
.blocked { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: 0.6; }
.x-bg { fill: var(--bg); stroke: #c94a4a; stroke-width: 1.6; }
.x { stroke: #c94a4a; stroke-width: 2; stroke-linecap: round; }

.sec-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0; }
.sec-points strong { display: block; margin-bottom: 4px; }
.sec-points span { color: var(--muted); font-size: 15px; }

.reg {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg); border: 1.5px solid var(--border); box-shadow: var(--card-shadow);
  border-radius: 14px; padding: 18px 22px; margin: 0 0 20px;
}
.reg p { margin: 0; font-size: 15px; color: var(--muted); }
.reg strong { color: var(--text); }
.reg-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); }

.contact { text-align: center; }
.contact .muted { max-width: 34em; margin: 0 auto; }

/* Responsive */
@media (max-width: 860px) {
  .hero-split, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-split { padding: 40px 0 56px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .sec-points { grid-template-columns: repeat(2, 1fr); }
  .audience ul { grid-template-columns: 1fr; gap: 12px; }
  .band { padding: 56px 0; }
}
@media (max-width: 560px) {
  .features, .sec-points { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before { animation: none !important; }
  .dots, .sec-visual .dot { display: none; }
  .line { stroke-dashoffset: 0; }
}

/* Ambition: what makes ARCA different */
.diff {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px 48px;
  margin-top: 56px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}
.diff h3 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 12px; }
.diff-copy .muted { margin: 0; font-size: 15px; }
.chart-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.chart-list li {
  margin: 0; padding: 18px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px;
}
.chart-list svg {
  display: block; width: 26px; height: 26px; margin-bottom: 12px;
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.chart-list strong { display: block; margin-bottom: 4px; font-size: 15px; }
.chart-list span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.and-more { grid-column: 2; margin: -16px 0 0; color: var(--muted); font-size: 14px; font-style: italic; }
@media (max-width: 860px) {
  .diff { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 860px) {
  .and-more { grid-column: auto; }
}
@media (max-width: 640px) {
  .chart-list { grid-template-columns: 1fr; }
}

/* Ambition: prototype video */
.video-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; aspect-ratio: 16 / 9; margin-top: 20px;
  background: var(--accent-soft); color: var(--muted); font-size: 14px; font-weight: 500;
  border: 1.5px dashed var(--border); border-radius: 14px;
}
.video-slot.has-video { display: block; background: #000; border: 0; box-shadow: var(--shadow); }
.video-slot.portrait { width: auto; max-width: 100%; height: 480px; aspect-ratio: 9 / 16; }
.play { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); }
.play svg { width: 24px; height: 24px; fill: #fff; }
.video-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Ambition: waitlist */
.btn {
  display: block; padding: 13px 22px; border-radius: 999px; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 600;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }

/* Header "Join waitlist" button */
nav a.nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; }
nav a.nav-cta:hover { color: #fff; background: color-mix(in srgb, var(--accent) 85%, #000); }
@media (max-width: 640px) { nav a.nav-cta { display: none; } }

/* Hero: waitlist button first, quieter store badge */
.btn-inline { display: inline-block; width: auto; border: 1.5px solid transparent; padding: 11px 14px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.4; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(47, 85, 196, 0.6); }
/* Same box as .btn-inline so the two hero buttons match in size */
.store-pill-quiet { display: inline-block; padding: 11px 14px; text-align: center; background: transparent; color: var(--muted); border: 1.5px solid var(--border); font-weight: 500; font-size: 15px; line-height: 1.4; }

/* Bank sync waitlist block (end of Our ambition) */
.cta-block {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px 48px; align-items: center;
  margin-top: 56px; padding: 40px; border-radius: 22px; scroll-margin-top: 16px;
  background: linear-gradient(135deg, #2f55c4 0%, #3f63d6 55%, #5a5ad4 100%);
  color: #fff; box-shadow: 0 24px 48px -24px rgba(47, 85, 196, 0.7);
}
.cta-block .eyebrow { color: rgba(255, 255, 255, 0.78); }
.cta-block h3 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 12px; color: #fff; }
.cta-block p { margin: 0; font-size: 15.5px; color: rgba(255, 255, 255, 0.92); }
.cta-block > div:first-child p:last-child { max-width: 30em; }
.cta-block .btn { width: 100%; border: 0; padding: 15px 22px; background: #fff; color: var(--accent); font: inherit; font-weight: 700; font-size: 16.5px; cursor: pointer; }
.cta-block .btn:hover { background: #eef3ff; }
.cta-action { text-align: center; }
.cta-action a { color: #fff; }
.cta-action .cta-safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.cta-action .cta-safe::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f55c4' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat;
}
.cta-action .cta-fine { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.65); }
.cta-block ~ .diff { margin-top: 40px; }
@media (max-width: 860px) { .cta-block { grid-template-columns: 1fr; padding: 28px 24px; } }

/* Waitlist sign-up (two-step dialog) */
.btn:disabled { opacity: 0.6; cursor: default; }
.wl {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100svh - 48px);
  padding: 0; border: 0; border-radius: 20px; background: var(--bg); color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(20, 35, 90, 0.45);
  overflow: hidden; overflow: clip; /* only .wl-inner scrolls; clip also stops the browser scrolling the frame itself */
}
.wl::backdrop { background: rgba(20, 30, 60, 0.45); backdrop-filter: blur(2px); }
.wl-inner {
  padding: 28px 28px 24px; overflow-y: auto; max-height: calc(100vh - 48px); max-height: calc(100svh - 48px);
  overscroll-behavior: contain; /* scrolling past the end doesn't move the page behind */
}
/* Freeze the page while the popup is open, so the browser bar can't resize the screen under it */
html:has(.wl[open]) { overflow: hidden; }
.wl-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.wl-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.wl-steps span { height: 4px; flex: 1; border-radius: 4px; background: var(--surface); }
.wl-steps span.on { background: var(--accent); }
.wl h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 6px; padding: 0 32px 0 0; }
.wl-sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.wl-field { margin-bottom: 16px; }
.wl-field label, .wl-q legend { display: block; padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.wl-opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.wl input[type=text], .wl input[type=email], .wl textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  font: inherit; color: var(--text); background: #fff;
}
.wl input:focus, .wl textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* Step 1 submit button: centred in its row */
#wl-step1 > .btn { margin: 0 auto; border: 0; padding: 13px 30px; font: inherit; font-weight: 600; cursor: pointer; }
.wl-notice { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.wl input.wl-other { margin-top: 10px; padding: 9px 12px; font-size: 14px; }
.wl-error { color: #b42318; font-size: 13px; margin: -6px 0 14px; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-q { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.wl-hint { font-size: 12.5px; color: var(--muted); margin: -2px 0 8px; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-chip { position: relative; } /* keeps each hidden input inside its own chip */
.wl-chip input { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; }
.wl-chip span {
  display: inline-block; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 999px;
  font-size: 14px; cursor: pointer; user-select: none; transition: background 0.12s, border-color 0.12s;
}
.wl-chip span:hover { border-color: var(--accent); }
.wl-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.wl-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.wl-followup { margin: 12px 0 0; padding: 14px; background: var(--surface); border-radius: 12px; }
.wl-followup legend { font-size: 14px; }
.wl-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.wl-actions .btn { width: 100%; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.wl-skip { padding: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.wl-skip:hover { color: var(--accent); }
.wl-done { text-align: center; padding: 18px 0 6px; }
.wl-done h2 { padding: 0; }
.wl-tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); }
.wl-tick svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wl [hidden] { display: none !important; }
