/* Argon's public front page, for visitors who aren't signed in. Self-contained: it doesn't load app.css. */
:root {
  --night: #2a1658;        /* hero background */
  --night-2: #1f1045;
  --violet: #673ab7;       /* Argon brand */
  --lilac: #cdb8ff;
  --marigold: #ffc24b;     /* highlighter and main buttons */
  --coral: #ff8a65;
  --paper: #fbf9ff;
  --ink: #1d1433;
  --muted: #5b5175;
  --line: #e4dafa;
  --bg: #ffffff;
  --soft: #f5f0ff;
  --display: "Readex Pro",system-ui,sans-serif;
  --body: "Readex Pro",system-ui,sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f1ecff; --muted: #b9addb; --line: #3a2c63; --bg: #160b33; --soft: #1d1142; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--marigold); color: var(--ink); padding: .5rem .9rem; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- hero */
.hero { background: radial-gradient(120% 90% at 85% 10%, #3b1f7a 0%, var(--night) 55%, var(--night-2) 100%); color: var(--paper); overflow: hidden; }
.top { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 1rem; position: relative; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.45rem/1 var(--display); letter-spacing: -.01em; }
.logo img { border-radius: 10px; }
.links { display: flex; align-items: center; gap: 2rem; flex: 1; margin-left: 3rem; }
.links a { text-decoration: none; font-weight: 500; opacity: .86; }
.links a:hover { opacity: 1; }
.links .gap { flex: 1; }
.links .signin { opacity: 1; }
.links .pill { opacity: 1; background: var(--paper); color: var(--night); padding: .55rem 1.3rem; border-radius: 999px; font-weight: 700; }
.links .pill:hover { background: #fff; }
.menu-check, .menu-btn { display: none; }

.hero-grid { max-width: 1180px; margin: 0 auto; padding: 40px 24px 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 2rem; }
.pitch h1 { font: 800 clamp(2.6rem, 5.4vw, 4.4rem)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 1.4rem; max-width: 13ch; text-wrap: balance; }
.pitch mark { color: inherit; background: linear-gradient(transparent 62%, var(--marigold) 62%, var(--marigold) 90%, transparent 90%); padding: 0 .08em; margin: 0 -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero mark { background: linear-gradient(transparent 62%, rgba(255, 194, 75, .85) 62%, rgba(255, 194, 75, .85) 90%, transparent 90%); }
.lede { font-size: 1.15rem; line-height: 1.6; max-width: 34em; color: #ddd2fb; margin: 0 0 2rem; }

.join { display: flex; gap: .5rem; max-width: 30rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(205, 184, 255, .3); border-radius: 999px; padding: 6px; }
.join input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; padding: .7rem 1rem; outline: none; }
.join input::placeholder { color: rgba(255, 255, 255, .6); }
.join:focus-within { border-color: var(--marigold); }
.join button { border: 0; border-radius: 999px; background: var(--marigold); color: #2a1658; font: 700 1rem/1 var(--body); padding: .85rem 1.4rem; cursor: pointer; white-space: nowrap; }
.join button:hover { background: #ffd06e; }
.aside { margin: 1rem 0 0 .4rem; font-size: .95rem; color: #bfb1e8; }
.aside a { color: var(--paper); font-weight: 600; text-underline-offset: 3px; }

.art { margin: 0; }
.art svg { width: 100%; height: auto; display: block; overflow: visible; }
.t-sm { font: 600 10px var(--body); fill: #673ab7; }
.t-md { font: 700 15px var(--display); fill: #24124d; }
.t-score { font: 800 17px var(--display); fill: #24124d; }

/* the one moving moment: the cards drift, and the score fills in once */
.float { animation: drift 7s ease-in-out infinite; transform-box: fill-box; }
.f1 { animation-delay: -2s; animation-duration: 8s; }
.f2 { animation-delay: -4s; animation-duration: 9s; }
.f3 { animation-delay: -1s; animation-duration: 7.5s; }
@keyframes drift { 50% { translate: 0 -9px; } }
.score { animation: fill 1.6s .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fill { from { stroke-dasharray: 0 100; } }
@media (prefers-reduced-motion: reduce) { .float, .score { animation: none; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- sections */
main section { padding: 96px 0; }
main h2 { font: 800 clamp(2rem, 3.6vw, 2.8rem)/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 2.5rem; }
main h3, dt { font: 700 1.25rem/1.25 var(--display); letter-spacing: -.01em; margin: 0 0 .5rem; }
main p, dd { margin: 0; color: var(--muted); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; border-top: 2px dashed var(--line); }
.steps li { counter-increment: s; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--violet); color: #fff; font: 800 1.35rem/1 var(--display); margin-bottom: 1.4rem; position: relative; box-shadow: 0 0 0 8px var(--bg); }
.steps li:last-child::before { background: var(--marigold); color: #2a1658; }

.what { background: var(--soft); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; align-items: start; }
.two h2 { position: sticky; top: 32px; }
.gets { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 3rem; }
.gets div { border-top: 3px solid var(--violet); padding-top: 1.1rem; }
.gets div:first-child { grid-column: 1 / -1; border-top-color: var(--marigold); }
.gets div:first-child dt { font-size: 1.6rem; }
.gets dd { max-width: 34em; }

.qs details { border-bottom: 1px solid var(--line); }
.qs details:first-child { border-top: 1px solid var(--line); }
.qs summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font: 600 1.15rem/1.3 var(--display); position: relative; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.qs details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.qs details p { padding: 0 2.5rem 1.4rem 0; max-width: 40em; }
.qs a { color: var(--violet); font-weight: 600; }
@media (prefers-color-scheme: dark) { .qs a { color: var(--lilac); } .qs summary::after { border-color: var(--lilac); } .gets div { border-top-color: var(--lilac); } }

.last { background: var(--night); color: var(--paper); text-align: center; }
.last h2 { margin-bottom: .8rem; }
.last p { color: #ddd2fb; margin-bottom: 2rem; }
.last .join { margin: 0 auto; }

.foot { background: var(--night-2); color: #bfb1e8; padding: 28px 0; font-size: .95rem; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot .logo.small { font-size: 1.1rem; color: var(--paper); }
.foot .logo.small img { border-radius: 7px; }
.foot nav { display: flex; gap: 1.6rem; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--paper); }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 64px; }
  .art { max-width: 520px; margin: 0 auto; order: -1; }
  .pitch h1 { max-width: 16ch; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .two h2 { position: static; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 22px; height: 2.5px; background: var(--paper); border-radius: 2px; position: relative; }
  .menu-btn span::before { position: absolute; top: -7px; }
  .menu-btn span::after { position: absolute; top: 7px; }
  .links { display: none; position: absolute; left: 16px; right: 16px; top: 76px; z-index: 5; flex-direction: column; align-items: stretch; gap: 0; margin: 0; background: var(--night-2); border: 1px solid rgba(205, 184, 255, .25); border-radius: 16px; padding: .5rem; }
  .menu-check:checked ~ .links { display: flex; }
  .links a { padding: .8rem 1rem; }
  .links .gap { display: none; }
  .links .pill { text-align: center; margin-top: .4rem; }
  main section { padding: 64px 0; }
  .wrap, .top, .hero-grid { padding-left: 16px; padding-right: 16px; }
  .steps, .gets { grid-template-columns: 1fr; gap: 2rem; }
  .join { flex-direction: column; border-radius: 20px; }
  .join button { width: 100%; }
}
