/* Home page only. Loaded after global.css. */

/* ---------- hero ---------- */
.hero { padding: 64px 0 28px; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.hero .eyebrow i, .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); display: inline-block; box-shadow: 0 0 0 0 rgba(178, 217, 89, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(178, 217, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(178, 217, 89, 0); } }
.hero h1 { font-size: clamp(46px, 8.2vw, 92px); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 6px auto 0; max-width: 13ch; }
.hero .lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 640px; margin: 28px auto 0; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.meta { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

/* ---------- embedded live app (the real FlowGet UI, built in demo mode) ---------- */
.demo-wrap { margin-top: 56px; text-align: left; scroll-margin-top: 90px; }
.appframe {
  position: relative; width: 100%; overflow: hidden; border-radius: 0; background: #0f0f12 url("/img/app-main.webp") center / cover no-repeat;
  box-shadow: var(--shadow); height: calc(780px * var(--s, 1)); transition: height .15s;
}
.appframe iframe { position: absolute; left: 0; top: 0; width: calc(100% / var(--s, 1)); height: 780px; border: 0; background: #0f0f12; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.demo-caption { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.demo-caption b { color: var(--text); font-weight: 600; }
.demo-caption .dot { margin-right: 8px; }
.demo-caption span { font-variant-numeric: tabular-nums; }
.demo-caption a, .demo-caption button { color: inherit; background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-caption a:hover, .demo-caption button:hover { color: var(--text); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 12px; margin-top: 44px; }
.stat { background: var(--bg-soft); border-radius: 0; padding: 34px 20px 30px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.stat strong { font-size: clamp(34px, 3.8vw, 44px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
.stat.dark { background: var(--ink); color: #fff; }
.stat.dark b { font-size: 16.5px; line-height: 1.35; letter-spacing: -.015em; font-weight: 600; display: block; }
.stat.dark span { color: #9a9a94; }
.worksw { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; margin-top: 44px; padding: 38px 0; border-block: 1px solid var(--line-strong); font-size: 21px; font-weight: 600; color: #5a5a55; letter-spacing: -.02em; }

/* ---------- statement ---------- */
.statement { padding: 150px 0 120px; }
.statement p { max-width: 960px; margin-inline: auto; text-align: center; font-size: clamp(25px, 3.1vw, 36px); line-height: 1.32; font-weight: 600; letter-spacing: -.03em; color: #a5a5a0; }
.statement p em { font-style: normal; color: #6a6a65; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { border-radius: 0; padding: 28px; position: relative; background: var(--bg-soft); display: flex; flex-direction: column; }
.tile h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 10px; }
.tile p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tile .ico { background: #fff; }
.tile.white { background: #fff; }
.tile.white .ico { background: var(--grad); }
.tile.dark { background: var(--ink); color: #fff; }
.tile.dark p { color: #a2a29c; }
.tile.dark .ico { background: transparent; color: var(--lime); padding: 0; justify-content: start; }
.tile.lime { background: var(--grad); grid-column: span 2; min-height: 300px; justify-content: flex-end; }
.tile.lime h3 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.04em; line-height: .98; margin-bottom: 14px; }
.tile.lime p { color: #2a3a10; max-width: 440px; }
.tile.lime small { color: rgba(21, 32, 10, .62); font-size: 13px; margin-top: 14px; }
.tile.lime .badge { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 0; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.tile.lime .badge svg { width: 20px; height: 20px; }
.tile.lime { overflow: hidden; }
.tile.lime p { max-width: 400px; }
.tile.lime .stack { position: absolute; z-index: 0; right: 64px; top: 50%; height: 296px; width: auto; margin-top: -148px; pointer-events: none; }
.tile.lime > :not(.stack) { position: relative; z-index: 1; }
.tile.lime > .badge { position: absolute; }
@media (max-width: 1200px) { .tile.lime .stack { display: none; } }
.tile.tall { grid-row: span 2; }
.tile.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 28px; }
.tile.wide > div:first-child { flex: 1; }
.mini { margin-top: auto; background: var(--ink); color: #fff; border-radius: 0; padding: 6px 14px; font-size: 12px; }
.mini div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.mini div:last-child { border-bottom: 0; }
.mini .g { color: #7EC151; } .mini .l { color: var(--lime); }
.mini.light { background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); padding: 14px 16px; flex: 1.15; margin: 0; }
.mini.light div { border-bottom: 0; padding: 7px 0; }
.mini.light header { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); margin-bottom: 4px; }
.mini.light .m { color: #6a6a65; }
.mini.light .l { color: #4B7E31; font-weight: 600; }
.mini .pip { width: 6px; height: 6px; border-radius: 50%; background: #7EC151; flex: none; margin-right: 10px; }
.mini .pip.l { background: #FED24F; }
.mini .row { display: flex; align-items: center; justify-content: flex-start; }
.mini .row .r { margin-left: auto; }

/* ---------- two-column rows ---------- */
.rowsec { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 58px 0; }
.rowsec + .rowsec { border-top: 1px solid var(--line-strong); }
.rowsec h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; margin-bottom: 16px; }
.rowsec .t p { color: var(--muted); max-width: 460px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; color: #4a4a46; font-size: 15.5px; }
.ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); flex: none; }
.codecard { background: var(--ink); color: #e8e8e3; border-radius: 0; overflow: hidden; }
.codecard header { display: flex; justify-content: space-between; padding: 15px 20px; font-size: 12px; color: #a8a8a2; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.codecard pre { margin: 0; padding: 24px 22px 28px; font: 500 13px/1.8 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-x: auto; }
.codecard .k { color: #FED24F; font-weight: 700; } .codecard .s { color: #7EC151; } .codecard .c { color: #8a8a84; } .codecard .n { color: #79b8ff; }

/* ---------- speed lab ---------- */
.lab { max-width: 900px; margin-inline: auto; background: #fff; border-radius: 0; padding: 30px; }
.lab-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-tabs button { border: 1px solid var(--line-strong); background: transparent; border-radius: 0; padding: 10px 18px; font: 600 14.5px/1 "Outfit", sans-serif; cursor: pointer; color: var(--text); transition: background .15s, border-color .15s; }
.lab-tabs button:hover { border-color: var(--text); }
.lab-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lab-run { margin-left: auto; }
.lab-desc { color: var(--muted); font-size: 15.5px; margin: 18px 0 8px; min-height: 48px; }
.lab-bars { display: grid; gap: 14px; margin-top: 12px; }
.lab-bar { display: grid; grid-template-columns: 130px 1fr 70px; gap: 14px; align-items: center; font-size: 14.5px; color: var(--muted); }
.lab-bar .tr { height: 14px; border-radius: 0; background: var(--bg-soft); overflow: hidden; }
.lab-bar .tr i { display: block; height: 100%; width: 0; border-radius: 0; background: #b4b4ad; }
.lab-bar.us { color: var(--text); font-weight: 700; }
.lab-bar.us .tr i { background: var(--grad); }
.lab-bar .tm { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.lab-bar.won .tm::after { content: " ✓"; color: #4B7E31; }
.lab-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 22px; font-size: 13.5px; color: var(--faint); }
.lab-foot b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- pricing card ---------- */
.pricecard { display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; border-radius: 0; overflow: hidden; }
.pricecard .l { position: relative; isolation: isolate; background: #1c2a0a url("/img/price-bg.webp") center / cover no-repeat; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.pricecard .l::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 16, 2, .46); }
.pricecard .l small { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: rgba(255, 255, 255, .78); }
.pricecard .amt { font-size: clamp(60px, 8vw, 92px); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin: 10px 0 8px; color: #fff; }
.pricecard .l p { color: rgba(255, 255, 255, .88); }
.pricecard .r { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.pricecard .r h3 { font-size: 28px; margin-bottom: 18px; }
.pricecard .r .btn { align-self: flex-start; margin-top: 26px; }

/* ---------- blog + cta ---------- */
.band .spark { position: absolute; width: 22px; height: 22px; color: rgba(17, 17, 17, .22); }
.band .spark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.band .cta-row { margin-top: 0; }
.more { text-align: center; margin-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
}
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.lime, .tile.wide { grid-column: span 2; }
  .tile.lime .stack { display: none; }
  .tile.tall { grid-row: auto; }
  .tile.wide { flex-direction: column; align-items: stretch; }
  .rowsec, .pricecard { grid-template-columns: 1fr; }
  .rowsec { gap: 28px; padding: 40px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat.dark { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .appframe { border-radius: 0; }
  .tile.lime, .tile.wide { grid-column: auto; }
  .bento { grid-template-columns: 1fr; }
  .lab { padding: 20px; border-radius: 0; }
  .lab-bar { grid-template-columns: 90px 1fr 56px; gap: 10px; font-size: 13px; }
  .pricecard .l, .pricecard .r { padding: 32px 24px; }
  .statement { padding: 90px 0 70px; }
  .worksw { font-size: 17px; }
  .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .dot, .hero .eyebrow i { animation: none; }
}
