/* T Bubble public website: the landing page, terms and privacy. Loads after app.css and uses its tokens (so day and
   night follow the visitor's device, like the sign-in page). Nothing here is used by the hub. */

html{scroll-behavior:smooth;scroll-padding-top:80px}
.s-body{overflow-x:hidden}
.s-wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.s-narrow{max-width:760px}
.s-skip{position:absolute;left:-9999px;top:8px;z-index:20;padding:10px 16px;border-radius:var(--radius-pill);background:var(--ink);color:var(--surface);font-weight:600}
.s-skip:focus{left:16px;color:var(--surface)}
.s-body main{max-width:none;margin:0;padding:0;display:block} /* app.css gives the hub's <main> a width and a gap; the website sets its own per section */

/* top bar */
.s-top{position:sticky;top:0;z-index:10;background:var(--surface);border-bottom:1px solid var(--line)}
.s-top .s-wrap{display:flex;align-items:center;gap:20px;min-height:68px}
.s-brand{display:flex;align-items:center;gap:10px;flex:none;text-decoration:none;min-height:44px}
.s-brand img{width:36px;height:36px;display:block}
.s-word{height:22px;width:auto;display:block;overflow:visible}
.s-word .ws{fill:var(--ink);stroke:var(--ink)}
.s-word .wf{fill:var(--bubble);stroke:#3a0f24}
.s-word .wg{fill:#fff}
.s-nav{display:flex;gap:4px;flex:1;min-width:0;justify-content:center}
.s-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:var(--radius-pill);color:var(--ink-muted);font-weight:500;text-decoration:none;white-space:nowrap}
.s-nav a:hover{background:var(--bubble-soft);color:var(--ink)}
.s-acts{display:flex;align-items:center;gap:8px;flex:none}

/* hero */
.s-hero{position:relative;padding:64px 0 56px;text-align:center;overflow:hidden}
.s-hero .s-wrap{position:relative;display:flex;flex-direction:column;align-items:center;gap:18px}
.s-kicker{display:inline-flex;align-items:center;min-height:30px;padding:0 14px;border-radius:var(--radius-pill);background:var(--bubble-soft);color:var(--ink);font:600 13px/1 var(--font-sans);letter-spacing:.02em}
.s-hero h1{max-width:820px;font:700 clamp(36px,6.4vw,64px)/1.04 var(--font-display);letter-spacing:-.01em;text-wrap:balance}
.s-lead{max-width:640px;font-size:clamp(17px,2.1vw,20px);line-height:1.5;color:var(--ink-muted);text-wrap:pretty}
.s-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:6px}
.s-big{min-height:52px;padding:0 26px;font-size:17px}
.s-shot{margin:28px 0 0;width:100%;max-width:1040px}
.s-shot picture{display:block;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface-raised);box-shadow:0 2px 4px rgba(58,15,36,.06),0 30px 60px -30px rgba(58,15,36,.45);overflow:hidden}
.s-shot img{display:block;width:100%;height:auto}
.s-shot figcaption{margin-top:10px;font-size:13px;color:var(--ink-muted);text-align:center}

/* the bubbles behind the hero: decoration only, still under reduced motion */
.s-bubbles{position:absolute;inset:0;pointer-events:none}
.s-bubbles i{position:absolute;bottom:-90px;border-radius:50%;border:2px solid var(--bubble);background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.85) 0 9%,rgba(255,166,201,.28) 10% 100%);opacity:.5;animation:s-rise 18s linear infinite}
.s-bubbles i:nth-child(1){left:4%;width:54px;height:54px;animation-duration:19s}
.s-bubbles i:nth-child(2){left:13%;width:26px;height:26px;animation-duration:14s;animation-delay:-6s}
.s-bubbles i:nth-child(3){left:24%;width:38px;height:38px;animation-duration:22s;animation-delay:-11s}
.s-bubbles i:nth-child(4){left:39%;width:20px;height:20px;animation-duration:16s;animation-delay:-3s}
.s-bubbles i:nth-child(5){left:58%;width:30px;height:30px;animation-duration:20s;animation-delay:-14s}
.s-bubbles i:nth-child(6){left:71%;width:60px;height:60px;animation-duration:24s;animation-delay:-8s}
.s-bubbles i:nth-child(7){left:82%;width:24px;height:24px;animation-duration:15s;animation-delay:-1s}
.s-bubbles i:nth-child(8){left:91%;width:42px;height:42px;animation-duration:21s;animation-delay:-16s}
.s-bubbles i:nth-child(9){left:48%;width:16px;height:16px;animation-duration:13s;animation-delay:-9s}
@keyframes s-rise{from{transform:translate3d(0,0,0)}50%{transform:translate3d(14px,-55vh,0)}to{transform:translate3d(-8px,-115vh,0)}}
@media (prefers-reduced-motion:reduce){.s-bubbles i{bottom:auto;top:12%;opacity:.35}.s-bubbles i:nth-child(even){top:58%}html{scroll-behavior:auto}}

/* sections */
.s-sec{padding:72px 0}
.s-tint{background:var(--surface-sunk)}
.s-sec h2{font:700 clamp(26px,3.6vw,38px)/1.12 var(--font-display);text-wrap:balance}
.s-sub{margin-top:12px;max-width:640px;font-size:17px;line-height:1.55;color:var(--ink-muted);text-wrap:pretty}
.s-sec .s-kicker{margin-bottom:14px;background:var(--surface-raised)}

.s-grid{list-style:none;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.s-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.s-card{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-raised);padding:22px;display:flex;flex-direction:column;gap:8px;min-width:0}
.s-card h3{font:600 19px/1.25 var(--font-display)}
.s-card p{color:var(--ink-muted);line-height:1.5}
.s-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--bubble-soft);color:var(--accent);margin-bottom:4px}
.s-ic{width:24px;height:24px;display:block;flex:none}

.s-two{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:start}
.s-two-pic{align-items:center}
.s-shot-side{margin:0}
.s-rails{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px}
.s-rails li{display:flex;gap:12px;align-items:flex-start;min-width:0}
.s-rails h3{font:600 17px/1.3 var(--font-display)}
.s-rails p{margin-top:4px;color:var(--ink-muted);line-height:1.5}
.s-tick{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--ok-soft);color:var(--ok)}
.s-tick .s-ic{width:18px;height:18px}

/* pricing */
.s-plans{margin-top:32px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;max-width:860px}
.s-plan{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-raised);padding:26px;display:flex;flex-direction:column;gap:14px;min-width:0}
.s-plan-main{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),var(--shadow-raised)}
.s-plan h3{font:600 21px/1.2 var(--font-display)}
.s-price{font:700 24px/1.2 var(--font-display);color:var(--accent)}
.s-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;flex:1}
.s-list li{display:flex;gap:10px;align-items:flex-start;line-height:1.45}
.s-list .s-ic{width:20px;height:20px;margin-top:1px;color:var(--ok)}
.s-plan .btn{align-self:flex-start}

/* three steps */
.s-steps{list-style:none;margin:32px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.s-steps li{background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg);padding:22px;display:flex;flex-direction:column;gap:8px;min-width:0}
.s-steps b{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--bubble);color:#3a0f24;font:700 18px/1 var(--font-display)}
.s-steps h3{font:600 19px/1.25 var(--font-display)}
.s-steps p{color:var(--ink-muted);line-height:1.5}

/* questions */
.s-q{margin-top:10px;background:var(--surface-raised);border:1px solid var(--line);border-radius:var(--radius-lg)}
#questions h2{margin-bottom:22px}
.s-q summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:8px 20px;cursor:pointer;font:600 17px/1.3 var(--font-sans);list-style:none;border-radius:var(--radius-lg)}
.s-q summary::-webkit-details-marker{display:none}
.s-q summary::after{content:"+";flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--bubble-soft);color:var(--accent);font:600 20px/1 var(--font-sans);transition:transform .2s ease}
.s-q[open] summary::after{transform:rotate(45deg)}
.s-q summary:hover{background:var(--bubble-soft)}
.s-q p{padding:0 20px 18px;color:var(--ink-muted);line-height:1.55}

/* closing band and footer */
.s-end{padding-top:24px}
.s-band{display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center;padding:48px 24px;border-radius:28px;background:var(--bubble-soft);border:1px solid var(--line)}
.s-foot{border-top:1px solid var(--line);padding:32px 0 40px}
.s-foot .s-wrap{display:flex;flex-direction:column;gap:14px}
.s-foot-brand{display:flex;align-items:center;gap:10px}
.s-foot-brand b{font:700 20px/1 var(--font-display)}
.s-foot-nav{display:flex;flex-wrap:wrap;gap:4px;margin-left:-12px}
.s-foot-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:var(--radius-pill);font-weight:500;text-decoration:none}
.s-foot-nav a:hover{background:var(--bubble-soft)}

/* terms and privacy */
.s-doc{padding:48px 0 72px!important}
.s-doc h1{font:700 clamp(30px,5vw,42px)/1.1 var(--font-display);margin-bottom:18px}
.s-doc h2{font:600 21px/1.25 var(--font-display);margin:28px 0 8px}
.s-doc p,.s-doc li{line-height:1.6}
.s-doc p+p{margin-top:10px}
.s-doc ul{margin:8px 0 0;padding-left:22px;display:flex;flex-direction:column;gap:6px}

@media (max-width:980px){
  .s-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .s-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .s-two{grid-template-columns:minmax(0,1fr);gap:28px}
  .s-nav{visibility:hidden} /* the page is short enough to scroll; the bar keeps the brand and the two buttons */
}
@media (max-width:640px){
  .s-wrap{padding:0 16px}
  .s-top .s-wrap{gap:8px;min-height:60px}
  .s-nav{display:none}
  .s-acts{margin-left:auto;gap:4px}
  .s-acts .btn{padding:0 14px}
  .s-brand img{width:32px;height:32px}
  .s-word{height:18px}
  .s-hero{padding:40px 0 40px}
  .s-cta{width:100%;flex-direction:column}
  .s-cta .btn{width:100%}
  .s-sec{padding:52px 0}
  .s-grid,.s-grid-4,.s-rails,.s-plans,.s-steps{grid-template-columns:minmax(0,1fr)}
  .s-shot img{width:190%;max-width:none} /* a whole desktop screen is unreadable this small: show its left half at a readable size */
  .s-plan .btn{align-self:stretch}
  .s-band{padding:36px 18px;border-radius:22px}
  .s-band .btn{width:100%}
}
