/*
 * Site-b styles for the home page hero (the only site-b markup left):
 * headline, CTAs, proof row and the phone mockup showing the parent-app
 * screenshot. Linked from app/views/pages/home.html.erb with:
 *
 *   <% content_for :head do %>
 *     <%= stylesheet_link_tag "site_b", "data-turbo-track": "reload" %>
 *   <% end %>
 *
 * Isolation from application.css (which shares names like .wrap, .btn):
 *   1. Every class is prefixed `b-`, so application.css selectors cannot
 *      match this markup.
 *   2. Element rules stay scoped under `.site-b` so they contest the global
 *      h1/p/a rules on every property those set.
 *
 * This sheet must load AFTER application.css; the layout's `yield :head`
 * sits below the app stylesheet for that reason. The :root palette comes
 * from application.css and is not duplicated here.
 */
.site-b *, .site-b *::before, .site-b *::after{box-sizing:border-box}
.site-b{margin:0;background:var(--ivory);color:var(--body); font:500 1.09rem/1.65 'Nunito',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.site-b h1{font-family:'Fredoka','Nunito',sans-serif;color:var(--ink); font-weight:600;letter-spacing:-.01em}
.site-b h1{font-size:clamp(2.6rem,5.4vw,4.4rem);line-height:1.02;margin:0 0 1.2rem}
.site-b a{color:var(--teal-btn);text-decoration-thickness:2px;text-underline-offset:3px}
.site-b a:hover{color:var(--teal-deep)}
.site-b :focus-visible{outline:3px solid var(--teal-deep);outline-offset:3px;border-radius:6px}
.site-b .b-wrap{width:min(1180px,90vw);margin-inline:auto}

.site-b .b-btn{display:inline-flex;align-items:center;gap:.5rem;border:0;cursor:pointer;text-decoration:none; font:600 1.02rem/1 'Fredoka',sans-serif;padding:.92rem 1.5rem;border-radius:12px; background:var(--teal-btn);color:#fff;transition:transform .12s ease,filter .12s ease}
.site-b .b-btn:hover{color:#fff;filter:brightness(1.08)}
.site-b .b-btn:active{transform:translateY(1px)}
.site-b .b-btn svg{width:19px;height:19px;flex:none}
.site-b .b-btn-line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
.site-b .b-btn-line:hover{color:#fff;background:var(--ink);filter:none}

.site-b .b-btns{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}

.site-b .b-hero{padding:clamp(2.8rem,5vw,4.8rem) 0 clamp(3rem,6vw,5rem); background: radial-gradient(46rem 30rem at 90% 0%, rgba(0,184,169,.15), transparent 60%), radial-gradient(38rem 26rem at 0% 20%, rgba(168,214,114,.20), transparent 58%)}
.site-b .b-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,4rem);align-items:center}
@media (max-width:960px){
  .site-b .b-hero-grid{grid-template-columns:1fr}
}

.site-b .b-stars{display:inline-flex;gap:2px;color:var(--amber)}
.site-b .b-stars svg{width:19px;height:19px;fill:currentColor;stroke:none}

/* --- Home hero: app-style layout (headline + phone mockup) --- */
.site-b .b-hero-app{background:linear-gradient(115deg,#fff 0%,var(--mint-soft) 45%,#C9F3EA 100%)}
.site-b .b-hero-app .b-hero-grid{grid-template-columns:1.25fr .75fr}
.site-b .b-hero-app h1{font-size:clamp(2.4rem,4.6vw,3.9rem);font-weight:600;line-height:1.06;margin-bottom:2rem;max-width:15.5ch}
.site-b .b-underline{position:relative;display:inline-block;white-space:nowrap}
/* Marker stroke traced from the design comp as a filled shape: round caps,
   tapering slightly left-to-right (9px -> 7px at comp size), with its high
   point right of centre. Spans 12.8%-82.6% of "from home."; the viewBox keeps
   its aspect (height:auto), so it scales with the headline and never distorts. */
.site-b .b-underline svg{position:absolute;left:12.8%;top:calc(100% + .08em);width:69.8%;height:auto;overflow:visible}
.site-b .b-underline path{fill:#45D41C}
.site-b .b-hero-btns{gap:1rem}
.site-b .b-btn-lg{font-size:1.08rem;padding:1.05rem 2.1rem;border-radius:14px;justify-content:center;min-width:12rem}
.site-b .b-hero-app .b-btn:not(.b-btn-line){background:#118A5C}
.site-b .b-hero-app .b-btn-line{background:#fff}
.site-b .b-hero-app .b-btn-line:hover{background:var(--ink);color:#fff}
.site-b .b-proof{display:flex;align-items:center;flex-wrap:wrap;gap:1.1rem 1.4rem;margin-top:2.4rem;padding-top:2rem;border-top:1.5px solid var(--line)}
.site-b .b-proof .b-stars{color:var(--ink);gap:5px}
.site-b .b-proof .b-stars svg{width:28px;height:28px;fill:currentColor}
.site-b .b-proof-sep{width:1.5px;height:2.2rem;background:var(--line)}
.site-b .b-pill{position:relative;display:inline-block;background:#D9F7C9;color:var(--ink);font:600 .98rem/1 'Fredoka',sans-serif;padding:.62rem 1.15rem;border-radius:999px}
.site-b .b-pill-spark{position:absolute;right:-.4rem;top:-1rem;width:22px;height:22px;fill:none;stroke:#3DDC4E;stroke-width:2.4;stroke-linecap:round}
.site-b .b-stores{display:inline-flex;align-items:center;gap:1.1rem;color:var(--ink)}
/* Each icon's viewBox is cropped to its artwork, so equal heights render equal sizes. */
.site-b .b-stores svg{width:auto;height:30px;fill:currentColor}
/* Phone */
.site-b .b-phone-col{display:flex;justify-content:center}
.site-b .b-phone{width:min(240px,62vw);padding:8px;border-radius:38px;background:linear-gradient(145deg,#3a3f44,#0f1215);box-shadow:var(--shadow-lg),inset 0 0 0 2px #5b6168}
.site-b .b-phone-screen{container-type:inline-size;background:#FBFDF4;border-radius:31px;overflow:hidden}
.site-b .b-phone svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.site-b .b-phone-status{display:flex;align-items:center;justify-content:space-between;padding:.6rem 1.15rem .3rem;font:700 .74rem/1 'Nunito',sans-serif;color:var(--ink)}
.site-b .b-phone-island{width:72px;height:21px;border-radius:999px;background:#0f1215}
.site-b .b-phone-sys{display:inline-flex;align-items:flex-end;gap:2px}
.site-b .b-phone-sys i{width:3px;background:var(--ink);border-radius:1px}
.site-b .b-phone-sys i:nth-child(1){height:5px}.site-b .b-phone-sys i:nth-child(2){height:8px}.site-b .b-phone-sys i:nth-child(3){height:11px}
.site-b .b-phone-sys b{width:16px;height:8px;margin-left:4px;border-radius:3px;background:var(--ink)}
/* App screen = real screenshot (home-app-screen.webp) + an HTML tab bar that
   overlaps its bottom edge. Sizes are in cqw of the phone screen (1cqw =
   4.6px of the 460px-wide source), so the bar stays registered to the
   screenshot at any phone width. */
.site-b .b-app-shot{position:relative}
.site-b .b-app-img{display:block;width:100%;height:auto}
.site-b .b-app-nav{position:relative;display:grid;grid-template-columns:repeat(4,1fr);align-items:end;
  margin:-1.7cqw 4.6cqw 2.6cqw;height:19cqw;padding-bottom:2.2cqw;background:#fff;border-radius:8.7cqw;
  box-shadow:0 1.2cqw 4cqw -1.4cqw rgba(11,46,42,.22)}
.site-b .b-app-nav span{display:flex;flex-direction:column;align-items:center;gap:1.3cqw;
  font:500 3.2cqw/1 'Fredoka',sans-serif;color:#9AB4B4}
.site-b .b-app-nav svg{width:5.2cqw;height:5.2cqw;margin-bottom:2.4cqw}
.site-b .b-app-nav span.on{color:#0B2E2A}
.site-b .b-app-nav span.on i{display:grid;place-items:center;width:10cqw;height:10cqw;border-radius:50%;
  background:#127E6D;color:#fff;box-shadow:0 0 0 .9cqw #CFF0D0}
.site-b .b-app-nav span.on svg{width:5cqw;height:5cqw;margin:0;stroke-width:2.1}
@media (max-width:960px){
  .site-b .b-hero-app .b-hero-grid{grid-template-columns:1fr}
  .site-b .b-hero-app h1{max-width:none}
}
@media (max-width:560px){
  .site-b .b-hero-btns .b-btn{flex:1 1 100%}
  .site-b .b-proof-sep{display:none}
}

@media (prefers-reduced-motion:reduce){
  .site-b *{animation:none!important;transition:none!important; scroll-behavior:auto!important}
}
