/* Timegravity public pages - shared brand shell (foundations round
   2026-08-27). ION / Neon-Gravity palette: cyan #4CC9FF (Blueshift,
   gravity) + violet #8B7BFF (Pulseshift, time); the gradient is the ONLY
   accent fill (hero, primary CTA, active state, logo). Glow budget: at
   most three luminous elements per screen. Dark default, light override. */
@font-face{font-family:"Space Grotesk";
  src:url("/static/fonts/SpaceGrotesk-var.woff2") format("woff2");
  font-weight:300 700;font-display:swap}

:root, :root[data-theme=dark]{color-scheme:dark;
  --bg0:#05070d; --bg1:#0a0f1c; --panel:#0d1322; --abyss:#03040a;
  --glass:rgba(13,19,34,.78);
  --line:rgba(148,184,255,.14); --line-bright:rgba(148,184,255,.28);
  --ink:#e9eef9; --ink2:#a7b0bf; --ink3:#8a94a6;
  --cy:#4cc9ff; --vi:#8b7bff; --ice:#7fdbff; --lavender:#b3a8ff;
  --grad:linear-gradient(135deg,#4cc9ff,#8b7bff);
  --glow:0 0 22px rgba(90,170,255,.28);
  --ok:#59e3a7;
  --field:#12161f; --fieldline:rgba(255,255,255,.1)}
:root[data-theme=light]{color-scheme:light;
  --bg0:#eef1f7; --bg1:#e6eaf3; --panel:#ffffff; --glass:rgba(255,255,255,.8);
  --line:rgba(10,20,40,.1); --line-bright:rgba(10,20,40,.2);
  --ink:#17202b; --ink2:#51617a; --ink3:#8b97a8;
  --glow:0 0 22px rgba(76,110,245,.18);
  --field:#fff; --fieldline:rgba(10,20,40,.16)}

*{box-sizing:border-box}
html{font-size:calc(1rem * var(--tg-fs, 1))}
body{margin:0;font:16px/1.6 "Space Grotesk",system-ui,sans-serif;color:var(--ink);
  background:radial-gradient(1100px 620px at 72% -12%,var(--bg1),var(--bg0));
  background-attachment:fixed;-webkit-text-size-adjust:100%}
a{color:var(--ice);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
h1,h2,h3{font-weight:600;line-height:1.2;letter-spacing:-.01em}
.muted{color:var(--ink2)}
.wrap{max-width:1080px;margin:0 auto;padding:0 22px}
.narrow{max-width:760px;margin:0 auto;padding:0 22px}

/* header */
.pubhead{display:flex;align-items:center;justify-content:space-between;
  gap:14px;padding:18px 22px;max-width:1080px;margin:0 auto;flex-wrap:wrap}
.pubhead .brand{display:flex;align-items:center;gap:10px}
.pubhead .brand img{height:34px;width:auto;display:block}
.pubnav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pubnav a{color:var(--ink2);padding:7px 13px;border-radius:999px;
  font-size:14px;border:1px solid transparent;
  min-height:40px;display:inline-flex;align-items:center}
.pubnav a:hover{color:var(--ink);text-decoration:none;border-color:var(--line)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:999px;padding:12px 22px;font:inherit;font-weight:600;
  font-size:15px;cursor:pointer;border:1px solid var(--line);
  background:var(--panel);color:var(--ink);text-decoration:none}
.btn:hover{border-color:var(--line-bright);text-decoration:none}
.btn.primary{background:var(--grad);color:#071018;border-color:transparent;
  box-shadow:var(--glow)}
.btn.primary:hover{filter:brightness(1.04)}

/* cards / tiles */
.card{background:var(--glass);border:1px solid var(--line);border-radius:16px;
  padding:22px;backdrop-filter:blur(8px)}
.badge{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ice);border:1px solid var(--line-bright);
  border-radius:999px;padding:3px 9px;vertical-align:middle}
.badge.soon{color:var(--lavender)}
/* a surface that is actually open (hotfix 2026-09-04) */
.badge.live{color:var(--ok, #59e3a7);border-color:currentColor}

/* footer */
.pubfoot{border-top:1px solid var(--line);margin-top:64px;
  padding:30px 22px 50px}
.pubfoot .inner{max-width:1080px;margin:0 auto;
  display:flex;flex-wrap:wrap;gap:14px 26px;justify-content:space-between;
  align-items:flex-start;font-size:13.5px;color:var(--ink3)}
.pubfoot a{color:var(--ink2)}
.pubfoot .links{display:flex;flex-wrap:wrap;gap:8px 18px}
.pubfoot .links a{display:inline-block;padding:10px 0;margin:-10px 0}
.pubfoot .legal{max-width:520px;line-height:1.55}

/* legal-page typography */
.legal-body{padding:8px 0 20px}
.legal-body h1{font-size:30px;margin:14px 0 6px}
.legal-body h2{font-size:20px;margin:34px 0 8px}
.legal-body h3{font-size:16px;margin:20px 0 4px}
.legal-body p,.legal-body li{color:var(--ink2);font-size:15.5px}
.legal-body ul{padding-left:20px}
.legal-body li{margin:5px 0}
.legal-body .updated{color:var(--ink3);font-size:13px}
.facts{display:grid;grid-template-columns:minmax(140px,auto) 1fr;gap:6px 18px;
  border:1px solid var(--line);border-radius:14px;padding:18px 20px;
  background:var(--glass);margin:18px 0}
.facts dt{color:var(--ink3);font-size:13px}
.facts dd{margin:0;color:var(--ink);font-size:14.5px}

@media (max-width:520px){
  .pubhead{padding:14px 16px}
  .wrap,.narrow{padding:0 16px}
  .legal-body h1{font-size:25px}
  .facts{grid-template-columns:1fr;gap:2px 0}
  .facts dd{margin-bottom:8px}
}

/* ---- HOMEPAGE: demonstrate, then grid (founder round 2026-09-04) ---- */
.heroAsk{display:flex;gap:8px;flex-wrap:wrap;max-width:640px;margin:18px 0 10px}
.heroAsk input{flex:1;min-width:220px;min-height:48px;padding:0 14px;
  border-radius:12px;border:1px solid var(--line-bright);background:var(--field);
  color:var(--ink);font:inherit;font-size:16px}
.heroAsk input:focus{outline:none;border-color:var(--ice)}
.heroAsk .btn{min-height:48px}
#heroDemo{margin:8px 0 18px;max-width:640px}
#heroDemoStage{border:1px solid var(--line);border-radius:14px;overflow:hidden;
  background:var(--glass);min-height:180px;display:flex;align-items:center;
  justify-content:center}
#heroDemoStage img{max-width:100%;height:auto;display:block}
#heroDemoBar{display:flex;align-items:center;gap:10px;margin-top:6px;
  font-size:12.5px}
.quietrow{display:flex;flex-direction:column;gap:10px;max-width:720px}
.quietrow .q{font-size:13.5px;color:var(--ink2)}
.quietrow .q b{color:var(--ink);margin-right:6px}
.tiles{display:flex;flex-wrap:wrap;gap:14px}
.tiles .tile{flex:1 1 260px}
@media (max-width:560px){
  .heroAsk input{min-width:0;width:100%}
  .heroAsk .btn{width:100%}
  .tiles .tile{flex:1 1 100%}
}
@media (prefers-reduced-motion: reduce){
  /* a still frame per example, advanced by hand */
  #heroDemoStage *{animation:none !important;transition:none !important}
}

/* THE SECTION BAR (positioning round 2026-09-14). Every page shares one
   site header; a section that needs its own links (Labs: Back to lab,
   Guide, Superbrain, Contribute) keeps them here, directly under it.
   44px targets, the same pill links as the site nav. */
.sectionbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;
  max-width:1080px;margin:0 auto;padding:0 22px 6px}
.sectionbar a{color:var(--ink2);padding:0 13px;min-height:44px;
  display:inline-flex;align-items:center;border-radius:999px;
  border:1px solid transparent;font-size:14px}
.sectionbar a:hover{color:var(--ink);text-decoration:none;border-color:var(--line)}
.sectionbar a.btn.primary{color:#071018;min-height:44px}
.sectionbar .beta-chip{margin:0 6px 0 13px}

/* PRICING AND ADDRESS BLOCKS (Razorpay activation round 2026-09-25).
   390px first: a price table scrolls inside its own box, never the page. */
.legal-body .address{margin:0 0 18px;line-height:1.6}
.pricing-body .lead{font-size:18px;line-height:1.55;color:var(--ink);
  margin:0 0 18px;max-width:40ch}
.pricing-body .tablewrap{overflow-x:auto;margin:0 0 20px;max-width:100%;
  border:1px solid var(--line);border-radius:10px}
.pricing-body table.pricetable{border-collapse:collapse;width:100%;
  font-size:14.5px;line-height:1.45}
.pricing-body table.pricetable th,
.pricing-body table.pricetable td{text-align:left;padding:9px 12px;
  border-bottom:1px solid var(--line);vertical-align:top}
.pricing-body table.pricetable thead th{color:var(--ink);font-weight:600;
  white-space:nowrap}
.pricing-body table.pricetable tbody th{font-weight:400;color:var(--ink2)}
/* only the price column resists wrapping; a credits cell may wrap, or it
   gets clipped at 390px (found in the round's own screenshot) */
.pricing-body table.pricetable td:nth-child(2){white-space:nowrap}
.pricing-body table.pricetable tr:last-child>*{border-bottom:0}
