/* ───────────────────────────────────────────────────────────────────────────
   Homepage layout. Tokens, type, buttons, tags, header and footer come from
   brand.css — only section-specific layout lives here.

   The homepage is a hub. Every door into the site has one colour and keeps it
   all the way down the page: paid = ember, free = green, coming soon = steel,
   learn = amber. The hero's "where to start" rows, the section tags, the card
   tags and the nav dots all use the same four.
   ─────────────────────────────────────────────────────────────────────────── */

.btn--sm { min-height: 42px; padding: .5rem 1.05rem; font-size: var(--fs-label); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero #forge { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 18% 10%, rgba(255,107,44,.13), transparent 58%),
    linear-gradient(180deg, rgba(7,12,20,.35) 0%, rgba(7,12,20,.82) 72%, var(--bg) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem);
}
@media (max-width: 1020px) { .hero-inner { grid-template-columns: 1fr; } .hero .hero-facts { display: none; } }
.hero h1 { max-width: none; font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 1.5rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
  margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-facts dt {
  font-family: var(--mono); font-size: var(--fs-label);
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.hero-facts dd { margin: .3rem 0 0; font-weight: 600; font-size: 1rem; }

/* where to start: four big, colour-coded doors */
.start {
  padding: 1.1rem;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: linear-gradient(180deg, rgba(20,33,50,.92), rgba(15,25,38,.92));
  box-shadow: 0 40px 80px -36px rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
}
.start-title {
  margin: .2rem .4rem .9rem;
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.start-row {
  --c: var(--accent);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 1rem; align-items: center;
  padding: .95rem 1rem; margin-top: .55rem;
  border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 12px;
  background: rgba(7,12,20,.55);
  text-decoration: none; color: inherit;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.start-row:first-of-type { margin-top: 0; }
.start-row:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, rgba(7,12,20,.6)); transform: translateX(3px); }
.start-row--paid { --c: var(--c-paid); }
.start-row--free { --c: var(--c-free); }
.start-row--soon { --c: var(--c-soon); }
.start-row--learn { --c: var(--c-learn); }
.start-ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.start-txt b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.start-txt span { display: block; margin-top: .1rem; font-size: var(--fs-small); color: var(--ink-2); }
.start-count {
  min-width: 2rem; padding: .2rem .55rem; border-radius: 999px; text-align: center;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.start-go { font-size: 1.15rem; color: var(--ink-3); transition: color .18s ease, transform .18s ease; }
.start-row:hover .start-go { color: var(--c); transform: translateX(3px); }
@media (max-width: 460px) {
  .start { padding: .8rem; }
  .start-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; padding: .85rem; }
  .start-go { display: none; }
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.section { padding-block: clamp(3.75rem, 7vw, 6rem); }
.section--tint { background: linear-gradient(180deg, rgba(15,25,38,.55), rgba(15,25,38,.25)); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head .lede { margin-top: 1.1rem; }

/* ── 01 Paid: the featured system ──────────────────────────────────────── */

.feature {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--panel);
  border: 1px solid var(--line); border-top: 3px solid var(--c-paid);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, transform .25s ease;
}
.feature:hover { border-color: var(--c-paid); transform: translateY(-3px); }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } }

.feature-media {
  position: relative;
  display: flex; flex-direction: column; gap: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255,107,44,.10), transparent 60%),
    linear-gradient(rgba(80,147,214,.05) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(80,147,214,.05) 1px, transparent 1px) 0 0 / 34px 100%,
    var(--panel-2);
  border-right: 1px solid var(--line);
}
@media (max-width: 880px) { .feature-media { border-right: 0; border-bottom: 1px solid var(--line); } }

.flow { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.flow-node {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .07em;
  padding: .45rem .7rem; border: 1px solid var(--line-2); border-radius: 7px;
  color: var(--ink-2); background: rgba(7,12,20,.55);
}
.flow-node--hot { color: var(--accent); border-color: rgba(255,107,44,.45); background: var(--accent-dim); }
.flow-arrow { width: 26px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--accent)); flex: none; }

.stock-chart { width: 100%; height: auto; overflow: visible; margin-block: auto; }
.sc-t { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; fill: var(--ink-3); }
.sc-t--hot { fill: var(--accent); }
.sc-t--ok { fill: var(--ok); }
@media (max-width: 560px) { .sc-t { font-size: 17px; letter-spacing: .04em; } }

.feature-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature-stats b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem); letter-spacing: -.02em; color: var(--ink);
}
.feature-stats span { display: block; margin-top: .3rem; font-size: var(--fs-label); line-height: 1.45; color: var(--ink-3); }
@media (max-width: 520px) {
  .feature-stats { gap: .75rem; }
  .feature-stats b { font-size: 1.12rem; }
}

.feature-body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sys-num { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.feature-body p { color: var(--ink-2); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: var(--fs-small); color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: rgba(53,208,138,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%2335D08A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; font-family: var(--mono); font-size: var(--fs-label); color: var(--ink-3); }
.feature-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.feature-cta { margin-top: auto; padding-top: .5rem; font-weight: 600; color: var(--accent); }
.feature-cta b { display: inline-block; transition: transform .2s ease; }
.feature:hover .feature-cta b { transform: translateX(4px); }

/* ── 02 Free tools ─────────────────────────────────────────────────────── */

.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 880px) { .tools { grid-template-columns: 1fr; } }
.tcard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-top: 3px solid var(--c-free); border-radius: 16px;
  background: var(--panel);
  transition: border-color .2s ease, transform .2s ease;
}
.tcard:hover { border-color: color-mix(in srgb, var(--c-free) 55%, var(--line)); transform: translateY(-2px); }
.tcard-media {
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 90% at 0% 0%, rgba(53,208,138,.09), transparent 60%),
    linear-gradient(rgba(80,147,214,.045) 1px, transparent 1px) 0 0 / 100% 30px,
    var(--panel-2);
}
.mini { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: rgba(7,12,20,.6); }
.mini-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .9fr);
  gap: .5rem; align-items: center; padding: .55rem .8rem;
  border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-2);
}
.mini-row:first-child { border-top: 0; }
.mini-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row span:first-child { color: var(--ink); }
.mini-row--h { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-3); background: rgba(15,25,38,.9); }
.mini-row--h span:first-child { color: var(--ink-3); }
.mini .st { font-size: .72rem; padding: 2px 8px; }
@media (max-width: 560px) {
  .mini .mh { display: none; }
  .mini-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, .6fr); }
  .mini--po .mini-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.2fr); }
}

.tcard-body { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.5rem 1.5rem; flex: 1; }
.tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fmt { font-family: var(--mono); font-size: var(--fs-label); color: var(--ink-3); }
.tcard h3 { margin-top: .2rem; }
.tcard p { color: var(--ink-2); font-size: var(--fs-small); margin: 0; }
.tcard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: auto; padding-top: .6rem; }
.tlink { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color .18s ease; }
.tlink:hover { color: var(--c-free); }

/* ── 03 Coming soon ────────────────────────────────────────────────────── */

.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1.25rem; }
.soon-card {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.4rem 1.5rem;
  border: 1px dashed var(--line-2); border-top: 3px solid var(--c-soon); border-radius: 14px;
  background: rgba(15,25,38,.45);
}
.soon-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.soon-card h3 { margin-top: .3rem; color: var(--ink); }
.soon-card p { color: var(--ink-2); font-size: var(--fs-small); margin: 0; }
.soon-notify {
  margin-top: auto; padding-top: .6rem;
  font-size: var(--fs-small); font-weight: 600; color: var(--c-soon); text-decoration: none;
}
.soon-notify:hover { color: var(--ink); }

/* ── 04 Steps ──────────────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.25rem; }
.steps li { position: relative; padding: 1.4rem 1.25rem; border: 1px solid var(--line); border-top: 2px solid var(--line-2); border-radius: 0 0 12px 12px; background: var(--panel); }
.steps b { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .1em; color: var(--ink-3); }
.steps h3 { margin: .7rem 0 .45rem; font-size: 1.12rem; }
.steps p { color: var(--ink-3); font-size: var(--fs-small); line-height: 1.55; }

/* ── 05 About ──────────────────────────────────────────────────────────── */

.why-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-copy { position: sticky; top: 104px; }
@media (max-width: 900px) { .why-copy { position: static; } }
.why-copy h2 { max-width: 16ch; }
.why-copy .lede { margin-top: 1.2rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.why-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
}
.why-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line-2); }
.why-list b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.why-list p { margin: .3rem 0 0; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; }

/* ── 06 Learn ──────────────────────────────────────────────────────────── */

.workshop {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line); border-top: 3px solid var(--c-learn); border-radius: 18px;
  background: radial-gradient(85% 120% at 0% 0%, rgba(255,176,32,.08), transparent 55%), var(--panel);
}
.workshop .lede { margin: 1.1rem 0 2rem; }
@media (max-width: 820px) { .workshop { grid-template-columns: 1fr; } .workshop-stamp { justify-self: start; } }
.workshop-stamp {
  display: grid; place-items: center; gap: .5rem;
  width: 180px; height: 180px; border-radius: 50%;
  border: 1px dashed var(--line-2);
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); text-align: center;
}
.workshop-stamp b { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.01em; color: var(--c-learn); text-transform: none; line-height: 1.1; }

/* ── 07 FAQ ────────────────────────────────────────────────────────────── */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-grid .section-head { margin-bottom: 0; }
.faq-grid .lede a { color: var(--accent); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.2rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 1.35rem; line-height: 1; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 2.5rem 1.35rem 0; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.7; }

/* ── Final CTA ─────────────────────────────────────────────────────────── */

.cta-box {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line-2); border-radius: 22px;
  background:
    radial-gradient(55% 90% at 25% 0%, rgba(53,208,138,.10), transparent 62%),
    radial-gradient(55% 90% at 75% 0%, rgba(255,107,44,.13), transparent 62%),
    linear-gradient(rgba(80,147,214,.045) 1px, transparent 1px) 0 0 / 100% 36px,
    var(--panel);
}
.cta-box .lede { margin: 1.2rem auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; margin-top: 2.2rem; }

/* ── Footer (homepage) ─────────────────────────────────────────────────── */

.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem 4rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: .9rem; color: var(--ink-3); font-size: var(--fs-small); max-width: 30ch; }
.footer-mail { display: inline-block; margin-top: .6rem; color: var(--ink-2); font-size: var(--fs-small); text-decoration: none; }
.footer-mail:hover { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 2rem 3.5rem; }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-cols div { display: flex; flex-direction: column; gap: .55rem; }
.footer-cols h4 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .35rem; font-family: var(--mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.footer-cols a { color: var(--ink-2); text-decoration: none; font-size: var(--fs-small); transition: color .18s ease; }
.footer-cols a:hover { color: var(--ink); }
.footer-row p { margin: 0; }

/* ── Paid: the kit card ────────────────────────────────────────────────── */

.feature--gap { margin-top: 1.25rem; }
.feature--kit .feature-media { justify-content: center; gap: 1rem; }
.kmini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.kmini-tile { --t: var(--steel); padding: .7rem .85rem; border: 1px solid var(--line-2); border-top: 3px solid var(--t); border-radius: 10px; background: rgba(7,12,20,.6); }
.kmini-tile span { display: block; font-size: var(--fs-label); color: var(--ink-3); }
.kmini-tile b { display: block; margin-top: .15rem; font-family: var(--mono); font-size: 1.35rem; font-weight: 700; color: var(--t); letter-spacing: -.02em; }

/* guides list inside the Learn block */
.glist { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: .55rem; }
.glist li { display: flex; gap: .7rem; align-items: baseline; }
.glist li::before { content: "→"; color: var(--c-learn); font-family: var(--mono); flex: none; }
.glist a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(255,176,32,.35); }
.glist a:hover { color: var(--c-learn); }
.glist-cta { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.tlink--learn:hover { color: var(--c-learn); }
