/* Soothia landing. Tokens mirror extension/src/styles.ts. */
@font-face { font-family: "Soothia Lora"; src: url("/fonts/soothia-lora.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Soothia Lora"; src: url("/fonts/soothia-lora-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Soothia Inter"; src: url("/fonts/soothia-inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Soothia JetBrains Mono"; src: url("/fonts/soothia-jetbrains-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --sth-orb-fill: radial-gradient(circle at 38% 34%, #FFFFFF 0%, #F4F1FF 24%, #D6D1F6 52%, #AFA9EC 76%, #7F77DD 100%);
  --sth-orb-fill-bright: radial-gradient(circle at 38% 34%, #FFFFFF 0%, #F8F6FF 30%, #DFDAF9 56%, #B8B2F0 78%, #8A82E4 100%);
  --sth-ink: #000000; --sth-raised: #0B0B0F; --sth-raised-hover: #121218;
  --sth-hairline: rgba(175,169,236,.22); --sth-hairline-soft: rgba(175,169,236,.14);
  --sth-shadow: 0 0 0 1px rgba(127,119,221,.12), 0 12px 40px rgba(83,74,183,.28);
  --sth-text: #F5F0E6; --sth-text-2: #A9A5BD; --sth-text-3: #8C88A0; --sth-link: #CFCAF6; --sth-on-orb: #16131F;
  --sth-yes: #5DCAA5; --sth-orb-mid: #AFA9EC; --sth-orb-edge: #7F77DD; --sth-orb-deep: #534AB7;
  --serif: "Soothia Lora", Georgia, serif; --sans: "Soothia Inter", system-ui, -apple-system, sans-serif; --mono: "Soothia JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sth-ink); color: var(--sth-text); font: 400 16px/1.6 var(--sans); overflow-x: hidden; }
a { color: var(--sth-link); text-decoration: none; }
a:hover { color: var(--sth-text); text-decoration: underline; }
:focus-visible { outline: 2px solid #F4F1FF; outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
.mono { font-family: var(--mono); }
.dim { color: var(--sth-text-3); }

@keyframes breathe { 0%,100% { box-shadow: 0 0 16px 2px rgba(127,119,221,.42), 0 0 40px 6px rgba(83,74,183,.26); } 50% { box-shadow: 0 0 24px 5px rgba(127,119,221,.6), 0 0 60px 12px rgba(83,74,183,.36); } }
@keyframes breatheBig { 0%,100% { box-shadow: 0 0 40px 6px rgba(127,119,221,.45), 0 0 120px 20px rgba(83,74,183,.3); } 50% { box-shadow: 0 0 60px 12px rgba(127,119,221,.6), 0 0 160px 32px rgba(83,74,183,.4); } }
@keyframes shimmer { 0% { transform: translate(-14%,-10%) rotate(0); } 50% { transform: translate(10%,8%) rotate(180deg); } 100% { transform: translate(-14%,-10%) rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0% { transform: scale(0) rotate(-45deg); opacity: 0; } 60% { transform: scale(1.25) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
/* Each star rests at its own --rest opacity and peaks bright, a little larger, with a soft glow. */
@keyframes skyTwinkle { 0%,70%,100% { opacity: var(--rest, .4); transform: scale(1); filter: none; } 85% { opacity: .9; transform: scale(1.25) rotate(6deg); filter: drop-shadow(0 0 5px rgba(244,241,255,.85)); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* The orb floats about 10px over 5s, as on the welcome page; the glow is brightest at the top. */
@keyframes floatY { 0%, 100% { transform: translateY(5px); } 50% { transform: translateY(-5px); } }
@keyframes floatGlow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Night sky */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky-star { position: absolute; opacity: var(--rest, .4); animation: skyTwinkle 4.5s ease-in-out infinite; }

/* Stars and the mark */
.star { display: block; width: 100%; height: 100%; }
svg.star { overflow: visible; }
.mark { position: relative; display: inline-block; width: 24px; height: 24px; flex: none; }
.mark-body { position: absolute; inset: 0; border-radius: 50%; background: var(--sth-orb-fill); box-shadow: 0 0 10px rgba(127,119,221,.6); }
.mark-star { position: absolute; right: -5px; top: -6px; width: 13px; height: 13px; }
.mark.big { width: 56px; height: 56px; }
.mark.big .mark-star { right: -10px; top: -14px; width: 28px; height: 28px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--sth-text); }
.lockup:hover { text-decoration: none; }
.wordmark { font: 500 22px/1 var(--serif); letter-spacing: -.01em; }

/* Nav */
.nav { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; max-width: 1080px; margin: 0 auto; padding: 22px 24px; }
.nav-links { display: flex; gap: 22px; font: 500 14px/1 var(--sans); }
.nav-links a { color: var(--sth-text-2); white-space: nowrap; }
.nav-links a:hover { color: var(--sth-text); text-decoration: none; }

main, .footer { position: relative; z-index: 1; }

/* Hero */
.hero { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; text-align: center; }
.hero-orb-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.orb { position: relative; width: 120px; height: 120px; animation: floatY 5s ease-in-out infinite; }
/* A glow layer under the ball that rides the float and brightens at the top of it. */
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 50px 14px rgba(175,169,236,.45), 0 0 120px 30px rgba(127,119,221,.3); animation: floatGlow 5s ease-in-out infinite; }
.orb-body { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--sth-orb-fill); box-shadow: 0 0 40px 6px rgba(127,119,221,.45), 0 0 120px 20px rgba(83,74,183,.3); animation: breatheBig 4.8s ease-in-out infinite; }
.orb-shimmer { position: absolute; inset: -20%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 32%), radial-gradient(circle at 72% 70%, rgba(127,119,221,.35) 0%, rgba(127,119,221,0) 36%); animation: shimmer 9s ease-in-out infinite; }
/* The "eye": a soft highlight that drifts toward the cursor. */
.orb-eye { position: absolute; inset: 0; background: radial-gradient(circle at 38% 34%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 30%); transition: transform .6s var(--ease); }
.orb-glint { position: absolute; right: -14px; top: -18px; width: 48px; height: 48px; }
.orb-arc { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--sth-text); border-right-color: rgba(245,240,230,.35); opacity: 0; }
.hero-orb-wrap.thinking .orb-arc { opacity: 1; animation: spin 1.2s linear 1; }
.orb-stars .star { position: absolute; opacity: 0; }
.hero.found .orb-stars .star { animation: twinkle .6s var(--ease) both; }
.orb-stars .star:nth-child(1) { left: -46px; top: -20px; width: 34px; height: 34px; }
.orb-stars .star:nth-child(2) { left: -72px; top: 36px; width: 24px; height: 24px; animation-delay: .12s; }
.orb-stars .star:nth-child(3) { left: 8px; top: -64px; width: 28px; height: 28px; animation-delay: .24s; }
.hero.found .orb-body { background: var(--sth-orb-fill-bright); }

h1 { margin: 0 0 20px; font: 400 clamp(38px, 6.4vw, 64px)/1.1 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.underline { background: linear-gradient(90deg, var(--sth-orb-edge), var(--sth-orb-mid)) no-repeat 0 92% / 0% 3px; transition: background-size .9s var(--ease); }
/* The line under the headline, in the same serif, between the headline and the supporting paragraph. */
.hero-tagline { margin: -4px 0 26px; color: var(--sth-text); font: 400 clamp(20px, 2.6vw, 26px)/1.3 var(--serif); letter-spacing: -.005em; }
/* Keep "into a market" on one line so the headline breaks after "take", not inside the underline. */
h1 .underline { white-space: nowrap; }
.hero.read .underline { background-size: 100% 3px; }
.sub { margin: 0 auto 28px; max-width: 620px; color: var(--sth-text-2); font-size: 18px; text-wrap: pretty; }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border: 1px solid rgba(175,169,236,.3); border-radius: 999px; background: var(--sth-raised); color: var(--sth-text); font: 600 14px/1 var(--sans); text-decoration: none; }
.btn:hover { background: var(--sth-raised-hover); color: var(--sth-text); text-decoration: none; }
.btn.primary { border: 0; background: linear-gradient(180deg, #F4F1FF, #C9C3F2); color: var(--sth-on-orb); box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 6px 20px -6px rgba(127,119,221,.7); }
.btn.primary:hover { background: linear-gradient(180deg, #FFFFFF, #D6D1F6); box-shadow: 0 6px 20px -4px rgba(175,169,236,.7); }
.btn-star { position: absolute; right: -8px; top: -10px; width: 18px; height: 18px; opacity: 0; pointer-events: none; }
.btn.primary:hover .btn-star, .btn.primary:focus-visible .btn-star { animation: twinkle .6s var(--ease) both; }
.fine { margin: 18px 0 0; color: var(--sth-text-3); font-size: 12px; letter-spacing: .02em; }

/* Traction strip */
.stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; max-width: 1080px; margin: -28px auto 8px; padding: 0 24px; color: var(--sth-text-2); font: 400 15px/1.4 var(--serif); }
.stats[hidden] { display: none; }
.stat-n { color: var(--sth-text); font-size: 15px; font-weight: 500; }
.stat-sep { color: var(--sth-text-3); }
.stats .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sth-yes); box-shadow: 0 0 6px var(--sth-yes); animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity: .55; box-shadow: 0 0 4px var(--sth-yes); } 50% { opacity: 1; box-shadow: 0 0 10px var(--sth-yes); } }

/* 3D tilt (tilt.js) */
.cards, #proof { perspective: 900px; }
.tilt { position: relative; transition: border-color .4s var(--ease), box-shadow .4s var(--ease); will-change: transform; }
.tilt .sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.tilt.tilting { border-color: rgba(175,169,236,.45); box-shadow: 0 0 0 1px rgba(127,119,221,.18), 0 18px 50px rgba(83,74,183,.25); }
.tilt.tilting .sheen { opacity: 1; }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
h2 { margin: 0 0 24px; font: 400 clamp(28px, 3.6vw, 36px)/1.2 var(--serif); }
h3 { margin: 18px 0 6px; font: 500 20px/1.3 var(--serif); }
.card p, .line { margin: 0; color: var(--sth-text-2); }
.line { max-width: 640px; margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 16px; border: 1px solid var(--sth-hairline-soft); border-radius: 20px; background: var(--sth-raised); }
/* One frame only: the landing card's border. The screenshot sits directly inside on black and fades out at the bottom. */
.shot { position: relative; height: 320px; overflow: hidden; border-radius: 14px; background: #000; }
.shot > img:first-child { display: block; width: 100%; height: auto; }
.shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(180deg, rgba(0,0,0,0), #000); }
/* Read: the card sits left, the orb with its found stars has the right column to itself. */
.shot-read > img:first-child { width: 64%; }
.shot-orb { position: absolute; right: -4px; bottom: 30px; width: 118px; height: auto; }

/* Proof tile, like a claim tile */
.tile { max-width: 520px; padding: 16px; border: 1px solid var(--sth-hairline-soft); border-radius: 14px; background: var(--sth-raised); display: flex; flex-direction: column; gap: 12px; }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; }
.chip { padding: 5px 8px; border-radius: 999px; background: var(--sth-raised-hover); color: var(--sth-link); font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.question { margin: 0; font: 400 20px/1.4 var(--serif); }
.links { display: flex; flex-wrap: wrap; gap: 16px; font: 500 14px/1 var(--sans); }

/* Built on Panta */
.flows { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.flows li { padding: 9px 12px; border: 1px solid var(--sth-hairline-soft); border-radius: 999px; background: var(--sth-raised); }

/* Demo */
.demo { position: relative; aspect-ratio: 16 / 9; max-width: 880px; overflow: hidden; border: 1px solid var(--sth-hairline-soft); border-radius: 20px; background: var(--sth-raised); box-shadow: var(--sth-shadow); }
.demo iframe, .demo video { width: 100%; height: 100%; border: 0; display: block; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--sth-text-2); font: 400 20px/1.4 var(--serif); }
.placeholder p { margin: 0; }

/* Install */
.steps { max-width: 640px; margin: 24px 0 0; padding-left: 22px; color: var(--sth-text-2); }
.steps li { padding: 4px 0; }
.steps .mono { color: var(--sth-text); font-size: 14px; }

/* Footer */
.footer { max-width: 1080px; margin: 24px auto 0; padding: 40px 24px 56px; border-top: 1px solid var(--sth-hairline-soft); display: flex; flex-direction: column; gap: 14px; }
.tagline { margin: 0; color: var(--sth-text-2); font: 400 18px/1.4 var(--serif); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font: 500 14px/1 var(--sans); }

/* The maker: a wizard above the copyright line, one link to X. */
.maker { display: flex; flex-direction: column; align-items: center; gap: 6px; align-self: center; margin: 12px 0 4px; color: var(--sth-text); text-decoration: none; transition: transform .5s var(--ease); }
.maker:hover, .maker:focus-visible { transform: translateY(-2px); color: var(--sth-text); text-decoration: none; }
.maker-art { position: relative; height: 200px; display: block; }
.maker-art img { height: 200px; width: auto; display: block; }
.maker-glow { position: absolute; left: 50%; top: 24%; width: 180px; height: 180px; margin-left: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(175,169,236,.55) 0%, rgba(127,119,221,.28) 40%, rgba(83,74,183,0) 70%); opacity: 0; filter: blur(6px); transition: opacity .6s var(--ease); pointer-events: none; }
.maker:hover .maker-glow, .maker:focus-visible .maker-glow { opacity: 1; }
.hat-star { position: absolute; opacity: 0; width: 14px; height: 14px; pointer-events: none; }
.hat-star:nth-of-type(1) { left: 54%; top: 2%; }
.hat-star:nth-of-type(2) { left: 72%; top: 10%; width: 10px; height: 10px; }
.hat-star:nth-of-type(3) { left: 62%; top: 22%; width: 11px; height: 11px; }
.maker:hover .hat-star, .maker:focus-visible .hat-star { animation: twinkle .6s var(--ease) both; }
.maker:hover .hat-star:nth-of-type(2), .maker:focus-visible .hat-star:nth-of-type(2) { animation-delay: .12s; }
.maker:hover .hat-star:nth-of-type(3), .maker:focus-visible .hat-star:nth-of-type(3) { animation-delay: .24s; }
.maker-name { font: 400 18px/1.3 var(--serif); }
.maker-handle { color: var(--sth-text-3); font-size: 12px; }

/* Reveals */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .shot { height: 280px; }
}
@media (max-width: 600px) {
  .nav { padding: 16px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .hero { padding: 36px 16px 56px; }
  /* Room for the found stars above the orb, clear of the nav. */
  .hero-orb-wrap { padding-top: 56px; }
  .hero-tagline { margin-bottom: 16px; }
  .section { padding: 40px 16px; }
  .footer { padding: 32px 16px 48px; }
  .maker-art, .maker-art img { height: 160px; }
  .btn { width: 100%; }
  .meta { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sky-star { opacity: .4; }
  .orb-stars .star, .btn.primary:hover .btn-star { opacity: 1; }
  .orb-stars .star { transform: none; }
  .underline { background-size: 100% 3px; }
  .reveal { opacity: 1; transform: none; }
  .tilt { transform: none !important; }
  .maker:hover, .maker:focus-visible { transform: none; }
  .maker:hover .hat-star, .maker:focus-visible .hat-star { animation: none; opacity: 0; }
}

/* Markets page */
.markets { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 24px 24px 64px; }
.mhead h1 { margin: 0 0 10px; font: 400 clamp(32px, 4.6vw, 44px)/1.15 var(--serif); letter-spacing: -.01em; }
.mhead .sub { max-width: 620px; margin: 0 0 22px; color: var(--sth-text-2); }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.filter-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-cat { padding: 7px 12px; border: 1px solid var(--sth-hairline-soft); border-radius: 999px; background: transparent; color: var(--sth-text-2); font: 500 12px/1 var(--sans); letter-spacing: .04em; text-transform: capitalize; cursor: pointer; }
.filter-cat:hover { color: var(--sth-text); border-color: var(--sth-hairline); }
.filter-cat.selected { background: var(--sth-raised-hover); border-color: var(--sth-orb-mid); color: var(--sth-text); }
.filter-right { display: flex; align-items: center; gap: 10px; }
.sort-label { color: var(--sth-text-3); font: 500 12px/1 var(--sans); }
.sort { margin-left: 6px; padding: 7px 10px; border: 1px solid var(--sth-hairline-soft); border-radius: 999px; background: var(--sth-raised); color: var(--sth-text); font: 500 12px/1 var(--sans); }
.msection { padding: 28px 0 8px; }
.msection[hidden] { display: none; }
.msection h2 { margin-bottom: 6px; }
.msection .line { margin: 0 0 18px; }
.mcount { font-size: 16px; margin-left: 6px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 900px; }
.mcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--sth-hairline-soft); border-radius: 18px; background: var(--sth-raised); }
.mcard[hidden] { display: none; }
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mcard-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #000; }
.mcard-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chip.soothia { background: rgba(93,202,165,.14); color: var(--sth-yes); }
.mcard .question { font-size: 18px; line-height: 1.35; flex: 1; }
.mcard .question a { color: var(--sth-text); }
.mcard .question a:hover { text-decoration: none; color: var(--sth-link); }
.mcard-odds .odds { font: 500 14px/1 var(--mono); color: var(--sth-text-2); }
.mcard-odds .yes { color: var(--sth-yes); font-weight: 600; } .mcard-odds .no { color: #E88A8A; font-weight: 600; }
.mcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.mcard-foot .btn { height: 38px; padding: 0 16px; font-size: 13px; white-space: nowrap; }
.mempty { padding: 24px; border: 1px dashed var(--sth-hairline-soft); border-radius: 18px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.mempty[hidden] { display: none; }
.markets .foot { margin-top: 36px; font-size: 13px; }
.chip-outcome { display: inline-block; padding: 6px 10px; border-radius: 999px; font: 600 12px/1 var(--mono); letter-spacing: .06em; }
.chip-outcome.yes { background: rgba(93,202,165,.16); color: var(--sth-yes); }
.chip-outcome.no { background: rgba(232,138,138,.16); color: #E88A8A; }
@media (max-width: 860px) { .mgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .markets { padding: 12px 16px 48px; }
  .mgrid { grid-template-columns: 1fr; }
  .mcard-foot { flex-wrap: wrap; }
  .mcard-foot .btn { width: 100%; }
  .filters { flex-direction: column; align-items: flex-start; }
}
