/* ============================================================
   WELCOME TV — /welcome-tv (resources/views/v3/product/welcome-tv.blade.php)

   Page-only pieces on top of v3.css + home.css + product.css:
   the split hero, the TV frame around the pre-rendered screens,
   the screen tabs, the check lists, the app row, the stacked
   how-it-works steps and the phone mockup.
   ============================================================ */

/* ---------- Split hero (layout.blade.php adds .page-hero--split) ---------- */
.page-hero--split{padding:72px 0 88px;background:linear-gradient(180deg,var(--white) 0%,var(--surface) 100%)}
.page-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:56px;align-items:center}
.page-hero--split .page-hero-in{max-width:600px}
.page-hero--split .lead{font-size:1.06rem;line-height:1.75}
.page-hero-visual{min-width:0}
@media(max-width:1100px){
  .page-hero-grid{grid-template-columns:1fr;gap:44px}
  .page-hero-visual{display:flex;justify-content:center}
}
@media(max-width:640px){.page-hero--split{padding:64px 0 56px}}

/* ---------- App row + activation tip ---------- */
.tv-app{display:flex;align-items:center;gap:20px;margin-top:30px}
.tv-app-icon{width:116px;height:116px;border-radius:26px;flex:none;box-shadow:0 14px 30px -18px rgba(1,44,24,.6)}
.tv-app-body{min-height:116px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0}
.tv-app-name{font-size:1.2rem;font-weight:800;letter-spacing:-.01em;line-height:1.2}
.tv-app-price{font-size:.88rem;font-weight:500;color:#475569;margin-top:4px}
.tv-app-price b{color:var(--primary);font-weight:800}
.tv-tip{display:flex;align-items:flex-start;gap:10px;max-width:560px;margin-top:24px;font-size:.94rem;line-height:1.6;color:#475569}
.tv-tip svg{flex:none;margin-top:2px;color:var(--accent-dark)}
.tv-tip b{color:var(--foreground);font-weight:700}
@media(max-width:480px){
  .tv-app{gap:14px}
  .tv-app-icon{width:84px;height:84px;border-radius:20px}
  .tv-app-body{min-height:84px}
}

/* Google Play badge (only rendered once config has the store URL) */
.tv-play{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;min-height:48px;padding:6px 20px 6px 14px;background:#000;color:#fff;border:1px solid #3c3c3c;border-radius:11px;transition:transform .25s var(--ease)}
.tv-play:hover{transform:translateY(-2px)}
.tv-play .st-top{display:block;font-size:.62rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;line-height:1.1}
.tv-play .st-main{display:block;font-size:1.1rem;font-weight:600;letter-spacing:-.01em;line-height:1.1}
.tv-play--sm{min-height:44px;margin-top:10px;padding:5px 16px 5px 12px}
.tv-play--sm .st-main{font-size:1rem}

/* TV frame (.tvf, <x-v3::tv-frame>) lives in home.css: the homepage teaser uses it too. */

/* ---------- Screen tabs + panels ---------- */
.tv-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:40px}
.tv-tabs[hidden]{display:none}
.tv-tab{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 20px;border-radius:999px;font:inherit;cursor:pointer;background:#fff;color:var(--foreground);border:1px solid var(--border-strong);transition:background .2s,color .2s,border-color .2s}
.tv-tab:hover{border-color:var(--primary)}
.tv-tab:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.tv-tab-l{font-size:.94rem;font-weight:700}
.tv-tab-s{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:var(--surface-alt);color:#475569}
.tv-tab[aria-pressed="true"]{background:var(--primary);color:#fff;border-color:var(--primary)}
.tv-tab[aria-pressed="true"] .tv-tab-s{background:var(--accent);color:var(--primary)}

.tv-panel{display:flex;flex-direction:column;align-items:center;gap:36px;margin-top:40px}
.tv-panel[hidden]{display:none}
/* Without JS every panel shows: separate them. */
.tv-panel+.tv-panel{padding-top:40px;border-top:1px solid var(--border)}
.js-tabs .tv-panel+.tv-panel{padding-top:0;border-top:0}
.tv-panel-copy{display:flex;flex-wrap:wrap;gap:32px;max-width:960px;width:100%}
.tv-panel-copy>div{flex:1 1 320px;display:flex;flex-direction:column;gap:8px}
.tv-panel-h{margin:0;font-size:1.38rem;font-weight:800}
.tv-panel-p{margin:0;font-size:1rem;color:var(--muted);line-height:1.6}
.tv-checks{flex:1 1 420px;margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;font-size:.94rem;font-weight:600}
.tv-checks li{display:flex;gap:10px;align-items:center}
.tv-checks svg{flex:none;color:#3fa87a}
@media(max-width:520px){.tv-checks{grid-template-columns:1fr}}

/* ---------- Bands ---------- */
.tv-band{border-top:1px solid var(--border)}
.bg-cream.tv-band{border-bottom:1px solid var(--border)}

/* home.css .feat-grid is 5-up; these six cards run 3-up */
.feat-grid.three{grid-template-columns:repeat(3,1fr)}
.feat-grid .fcard h3.fh{margin:0;font-size:1.08rem}
.feat-grid .fcard p.fp{margin:8px 0 0;font-size:.92rem;line-height:1.55}
@media(max-width:960px){.feat-grid.three{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.feat-grid.three{grid-template-columns:1fr}}

/* ---------- How it works: product.css .steps, stacked ---------- */
.steps.steps--stack{grid-template-columns:1fr;gap:14px;margin:28px 0 0;padding:0;list-style:none}
.steps--stack .step{display:flex;gap:18px;align-items:flex-start;padding:20px}
.steps--stack .step:hover{transform:none}
.steps--stack .sn{flex:none;width:36px;height:36px;margin:0}
.steps--stack .sn--accent{background:var(--accent);color:var(--primary)}
.steps--stack .st{font-size:1.06rem}
.steps--stack .sd{font-size:.94rem}

/* ---------- Link panel: TV on the "Link this TV" screen + the phone ---------- */
.tv-link-panel{display:flex;flex-direction:column;align-items:center;gap:20px;padding:36px 24px 40px;background:var(--surface-alt);border-radius:24px}
.tv-link-wm{width:152px;height:auto}
.tv-link-stage{position:relative;width:100%;display:flex;justify-content:center;padding-bottom:28px}
.tv-link-cap{margin:16px 0 0;max-width:400px;font-size:.88rem;font-weight:500;color:#475569;text-align:center}

/* The phone is drawn at 260×540 and scaled, so its insides keep one set of px. */
.tv-phone{position:absolute;right:-14px;bottom:-16px;width:130px;height:270px;filter:drop-shadow(0 24px 30px rgba(1,44,24,.35))}
.tv-phone-in{position:absolute;left:0;top:0;width:260px;height:540px;box-sizing:border-box;transform-origin:0 0;transform:scale(.5);
  padding:42px 26px 28px;background:var(--surface);border:8px solid #111312;border-radius:40px;
  display:flex;flex-direction:column;color:var(--foreground);font-family:inherit}
.tvp-back{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:700}
.tvp-h{margin-top:16px;font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.tvp-sub{margin-top:4px;font-size:13px;line-height:1.45;color:#475569}
.tvp-label{margin-top:16px;font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#475569}
.tvp-select{margin-top:6px;display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 12px;background:#fff;border:1px solid var(--border-strong);border-radius:12px;font-size:14px;font-weight:600}
.tvp-code{margin-top:6px;display:flex;align-items:center;gap:5px}
.tvp-code span{width:28px;height:42px;display:flex;align-items:center;justify-content:center;background:#fff;border:1.5px solid var(--primary);border-radius:9px;font-size:18px;font-weight:800}
.tvp-code i{width:4px}
.tvp-btn{margin-top:auto;display:flex;align-items:center;justify-content:center;height:48px;background:var(--primary);color:#fff;border-radius:14px;font-size:15px;font-weight:700}
.tvp-foot{margin-top:10px;font-size:11px;font-weight:500;color:#475569;text-align:center}
@media(max-width:760px){
  .tv-link-panel{padding:28px 12px 32px}
  .tv-phone{right:-4px;bottom:-14px;width:96px;height:200px}
  .tv-phone-in{transform:scale(.37)}
}
