/* AlgoDelta's public site. Same look as the app: white surfaces, Poppins, one green accent, pill buttons, dark terminal cards.
   Radius rule: interactive things are pills; containers are 28px; smaller inner blocks are 20px. */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(fonts/outfit-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(fonts/outfit-latin-600-normal.woff2) format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #f3f4f1;
  --surface: #ffffff;
  --surface-2: #f6f7f4;
  --ink: #0a0b0a;
  --ink-2: #33382f;
  --muted: #5d645a;
  --line: #e0e3dc;
  --brand: #16c60c;
  --brand-ink: #0a7a05;
  --lime: #cdf34a;
  --term: #0b0f0b;
  --term-line: #1f271e;
  --term-ink: #eef2ec;
  --term-muted: #a2aca0;
  --shadow: 0 24px 60px -30px rgb(20 40 20 / 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060806;
    --surface: #0d110d;
    --surface-2: #121712;
    --ink: #eef2ec;
    --ink-2: #c7cfc4;
    --muted: #97a195;
    --line: #1d241c;
    --brand: #2bdc1f;
    --brand-ink: #4ce840;
    --term: #0d120d;
    --shadow: 0 24px 60px -30px rgb(0 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 Poppins, system-ui, sans-serif; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: 24px; }
.num { font-family: Outfit, Poppins, sans-serif; font-variant-numeric: tabular-nums; }
.accent { color: var(--brand); }

h1 { font-size: clamp(2.35rem, 4.6vw, 4rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.14; font-weight: 600; letter-spacing: -0.028em; max-width: 22ch; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding-inline: 20px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; white-space: nowrap; text-decoration: none; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, box-shadow 0.25s; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { height: 52px; padding-inline: 28px; font-size: 0.975rem; }
.btn-primary { background: var(--brand); color: #061006; font-weight: 600; box-shadow: 0 14px 30px -14px rgb(22 198 12 / 0.75); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgb(22 198 12 / 0.85); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.nav.stuck { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.05em; text-decoration: none; position: relative; }
.brand span { color: var(--brand); position: relative; }
.brand span::after { content: ''; position: absolute; right: -8px; top: 0.34em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-login { font-size: 0.875rem; font-weight: 500; text-decoration: none; padding: 8px 10px; }

/* hero */
.hero { padding-block: 40px 28px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero-copy > * { animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.lead { margin-top: 22px; max-width: 44ch; font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-shot { position: relative; width: 118%; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); max-height: min(72dvh, 620px); animation: rise 1s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-shot img { width: 100%; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* price strip */
.ticker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-block: 18px 4px; font-size: 0.875rem; color: var(--muted); }
.ticker[hidden] { display: none; }
.ticker-items { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ticker-items b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.ticker-items .num { color: var(--ink); }
.chg { margin-left: 6px; font-weight: 500; }
.chg.up { color: var(--brand-ink); }
.chg.down { color: #d93636; }

/* sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-lead { margin-top: 14px; max-width: 52ch; font-size: 1.0625rem; color: var(--muted); }

/* steps: a path, not a card row */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.steps::before { content: ''; position: absolute; top: 22px; left: 22px; right: 12%; height: 2px; background: linear-gradient(90deg, var(--line), var(--brand)); transform-origin: left; }
.steps li { position: relative; }
.steps img { position: relative; width: 44px; height: 44px; padding: 6px; border-radius: 50%; background: var(--bg); box-sizing: content-box; margin: -6px 0 0 -6px; }
.steps h3 { margin-top: 12px; }
.steps p { margin-top: 4px; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 18px; margin-top: 40px; }
.tile { padding: 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); grid-column: span 2; }
.tile p { margin-top: 8px; font-size: 0.925rem; line-height: 1.6; color: var(--muted); }
.tile h3 + p { margin-top: 8px; }
.tile img + h3 { margin-top: 14px; }
.tile-templates { grid-column: span 4; grid-row: span 2; padding: 30px 30px 0; display: flex; flex-direction: column; overflow: hidden; border: 0; }
.tile-templates p { color: var(--term-muted); max-width: 48ch; }
.tile-shot { margin-top: 24px; border-radius: 20px 20px 0 0; overflow: hidden; flex: 1; max-height: 440px; border: 1px solid var(--term-line); border-bottom: 0; }
.tile-lime { background: var(--lime); border-color: transparent; color: #0a0b0a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: rgb(0 0 0 / 0.08); font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.tile-half { grid-column: span 3; }

.term { background: var(--term); color: var(--term-ink); }

/* proof */
.proof { padding: clamp(28px, 4.5vw, 56px); border-radius: 28px; overflow: hidden; }
.proof dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 36px; margin-top: 28px; }
.proof dt { font-weight: 600; }
.proof dd { margin-top: 4px; font-size: 0.925rem; color: var(--term-muted); }
.proof-shot { margin-top: 34px; border-radius: 20px; overflow: hidden; border: 1px solid var(--term-line); }
.proof-note { margin-top: 22px; font-size: 0.95rem; color: var(--lime); }

/* safety */
.safety { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 56px; align-items: center; }
.safety-shot { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 440px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: 32px; }
.facts p { margin-top: 6px; font-size: 0.925rem; color: var(--muted); }
.honest { margin-top: 30px; padding: 16px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 0.925rem; color: var(--ink-2); }
.honest b { color: var(--ink); }

/* limits */
.limits { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 34px; font-size: 0.95rem; color: var(--muted); }
.limits li { display: flex; flex-direction: column; }
.limits b { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 16px; height: 16px; background: var(--muted); -webkit-mask: url(icons/chevron-down.png) center / contain no-repeat; mask: url(icons/chevron-down.png) center / contain no-repeat; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 2px 20px; max-width: 62ch; font-size: 0.95rem; color: var(--muted); }

/* closing */
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(32px, 5vw, 64px); border-radius: 28px; }
.closing h2 { max-width: 20ch; }

/* footer */
.footer { padding-block: 44px 56px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 28px 56px; }
.footer-risk { max-width: 68ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; justify-content: flex-end; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-small { grid-column: 1 / -1; font-size: 0.8125rem; }
.footer-small a { color: inherit; }

/* legal pages */
.legal { max-width: 74ch; padding-block: 48px 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal .updated { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.legal h2 { margin-top: 38px; font-size: 1.25rem; letter-spacing: -0.01em; max-width: none; }
.legal p, .legal ul { margin-top: 12px; color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li + li { margin-top: 6px; }

/* a short plain page */
.plain { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 70dvh; }
.plain p { margin-top: 12px; max-width: 48ch; color: var(--muted); }
.plain .btn { margin-top: 26px; }

/* appear as they come into view; the point is to pace reading. Without JavaScript everything is simply there. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .steps.reveal::before { transform: scaleX(0); transition: transform 1.1s 0.15s cubic-bezier(0.16, 1, 0.3, 1); }
.js .steps.reveal.in::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .steps.reveal::before { transform: none; }
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-top: 24px; }
  .hero-shot { width: 100%; max-height: 560px; }
  .safety { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .safety-shot { order: 2; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile-half { grid-column: span 1; }
  .tile-templates { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 767px) {
  .wrap { padding-inline: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 32px; }
  .steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; transform-origin: top; background: linear-gradient(180deg, var(--line), var(--brand)); }
  .js .steps.reveal::before { transform: scaleY(0); }
  .js .steps.reveal.in::before { transform: scaleY(1); }
  .steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
  .steps img { grid-row: span 2; }
  .steps h3 { margin-top: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-templates, .tile-half { grid-column: span 1; }
  .tile-templates { padding: 24px 22px 0; }
  .proof dl { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
  .limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .nav-inner { gap: 8px; }
  .nav-login { padding-inline: 6px; }
  .nav .btn { padding-inline: 14px; height: 38px; font-size: 0.8125rem; }
}
