/* Shared styles for the screenmirroring.app tutorials section.
   Matches the /tools design system (accent #e91e63, glass panels, grain,
   staggered reveal). Loaded by the hub (index.html) and every guide page. */

ins.adsbygoogle, .adsbygoogle-noablate { background: rgba(255, 255, 255, 0.96) !important; border-radius: 12px 22px 0px 0px; }
.google-auto-placed { margin-top: 14px; margin-bottom: 14px; padding-top: 10px; padding-bottom: 10px; background: rgba(255, 255, 255, 0.96); border-radius: 22px; }

:root {
	color-scheme: light;
	--accent: #e91e63; --accent-strong: #c2185b; --accent-darker: #a51048; --accent-tint: #fdeef3;
	--ink: #141414; --muted: #555; --line: rgba(20, 20, 20, 0.10);
	--panel: rgba(255, 255, 255, 0.96); --field: #ffffff; --field-soft: #faf6f8;
	--success: #16a368; --success-tint: #e9fbf2; --warn: #c47d00; --warn-tint: #fff8e6; --danger: #d83a2f;
	--shadow: 0 24px 60px rgba(120, 30, 70, 0.10); --shadow-sm: 0 8px 24px rgba(120, 30, 70, 0.08);
	--radius-lg: 22px; --radius-md: 14px; --radius-pill: 999px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #f7f7f8; }
body { margin: 0; font-family: "Segoe UI", "SF Pro Text", "Helvetica Neue", Arial, sans-serif; color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before {
	content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes revealUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
	.do-reveal .brand-stripe, .do-reveal .hero-strap, .do-reveal .answer-panel, .do-reveal .steps-panel, .do-reveal .video-panel, .do-reveal .apps-panel, .do-reveal .related-panel, .do-reveal .faq-panel, .do-reveal .site-footer,
	.do-reveal .tut-group { animation: revealUp 0.55s cubic-bezier(.2, .7, .2, 1) both; }
	.do-reveal .hero-strap { animation-delay: 70ms; } .do-reveal .answer-panel { animation-delay: 140ms; }
	.do-reveal .steps-panel, .do-reveal .tut-group.g1 { animation-delay: 210ms; } .do-reveal .video-panel, .do-reveal .tut-group.g2 { animation-delay: 280ms; }
	.do-reveal .apps-panel, .do-reveal .tut-group.g3 { animation-delay: 340ms; } .do-reveal .related-panel, .do-reveal .tut-group.g4 { animation-delay: 400ms; }
	.do-reveal .tut-group.g5 { animation-delay: 460ms; } .do-reveal .tut-group.g6 { animation-delay: 520ms; }
	.do-reveal .faq-panel { animation-delay: 460ms; } .do-reveal .site-footer { animation-delay: 520ms; }
}
a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
#welcome { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
#welcome.wide { width: min(960px, calc(100% - 32px)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 28px; margin-top: 22px; }
@media (max-width: 600px) { .panel { padding: 20px; } }

/* Header */
.brand-stripe { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 4px 2px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.brand-name { font-size: 1.18rem; font-weight: 700; color: var(--ink); }
.brand-eyebrow { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; color: var(--muted); text-align: left; }
.brand-actions { display: flex; align-items: center; gap: 8px; }
.brand-link { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1; color: var(--muted); cursor: pointer; background: transparent; border: 1px solid var(--line); padding: 8px 12px; border-radius: var(--radius-pill); transition: color .15s, background .15s, border-color .15s; }
.brand-link:hover { color: var(--accent-strong); border-color: var(--accent); background: rgba(20, 20, 20, 0.02); text-decoration: none; }
.brand-link svg { width: 18px; height: 18px; display: block; flex: 0 0 auto; }

/* Breadcrumb + hero */
.crumbs { font-size: 0.82rem; color: var(--muted); margin: 26px 4px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--accent-strong); }
.crumbs span { opacity: 0.5; }
.hero-strap { margin: 10px 4px 4px; text-align: left; }
.hero-strap.spaced { margin: 26px 4px 22px; }
.hero-strap h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
.hero-strap p { margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; }
.panel-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 14px; }
.panel > h2 { font-size: 1.35rem; margin-bottom: 4px; }

/* Quick answer + needs */
.answer-panel .lead { font-size: 1.05rem; color: var(--ink); margin: 0; }
.answer-panel .lead b { font-weight: 700; }
.needs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.needs li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.98rem; }
.needs li svg { width: 20px; height: 20px; color: var(--accent-strong); flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.btn-primary { background: var(--accent-strong); color: #fff; font-weight: 700; font-size: 1rem; padding: 14px 28px; min-height: 50px; border: 1px solid transparent; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, background .15s; }
.btn-primary:hover { background: var(--accent-darker); color: #fff; transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); font-weight: 600; font-size: 1rem; padding: 13px 24px; min-height: 50px; border: 1px solid var(--line); border-radius: var(--radius-pill); display: inline-flex; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,0.06); transition: border-color .15s, color .15s, transform .15s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-1px); text-decoration: none; }

/* Numbered steps */
.steps { counter-reset: step; margin-top: 10px; }
.step { position: relative; padding: 0 0 28px 60px; }
.step:last-child { padding-bottom: 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; }
.step::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 8px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { margin: 0 0 12px; color: var(--muted); font-size: 0.99rem; }
.step p:last-child { margin-bottom: 0; }
.shot { display: block; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--field-soft); margin: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot.is-phone { max-width: 260px; }
.shot-ph { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 0.82rem; padding: 16px; aspect-ratio: 16 / 10; background: repeating-linear-gradient(45deg, #faf6f8, #faf6f8 12px, #f2e7ec 12px, #f2e7ec 24px); }
.is-phone .shot-ph { aspect-ratio: 9 / 18; }

/* Callout + note */
.callout { display: flex; gap: 14px; align-items: flex-start; background: var(--accent-tint); border: 1px solid rgba(233, 30, 99, 0.18); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 22px; }
.callout svg { width: 22px; height: 22px; color: var(--accent-strong); flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout p { margin: 0; font-size: 0.96rem; color: var(--ink); }
.callout a { text-decoration: underline; }
.note { background: var(--field-soft); border: 1px solid var(--line); border-left: 3px solid var(--success); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 22px; }
.note h3 { font-size: 1.02rem; margin-bottom: 6px; }
.note p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.note a { text-decoration: underline; }

/* Video */
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--field-soft); margin-top: 14px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 0.85rem; padding: 20px; }

/* Related */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.related-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--field-soft); color: var(--ink); font-weight: 600; font-size: 0.96rem; transition: transform .15s, border-color .15s; }
.related-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.related-card svg { width: 18px; height: 18px; color: var(--accent-strong); flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq-panel h2 { font-size: 1.35rem; margin-bottom: 4px; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-item:first-of-type { border-top: 0; padding-top: 8px; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.faq-item a { text-decoration: underline; }

/* Download badges */
.apps-panel { text-align: center; }
.apps-panel p { color: var(--muted); margin-top: 0; }
.apps-panel h2 { font-size: 1.35rem; margin-bottom: 4px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.badge { background-color: #000; background-image: url(/badge.png); background-repeat: no-repeat; background-size: contain; background-position: center; display: inline-block; height: 46px; width: 9.6rem; border-radius: 8px; }
.badge-play { background-color: #727272 !important; background-image: url(/badge_play.png) !important; }
.badge-amazon { background-image: url(/badge_amazon.png) !important; }
.badge-huawei { background-image: url(/badge_huawei.png) !important; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.site-footer a { color: var(--muted); font-weight: 600; }
.site-footer a:hover { color: var(--accent-strong); }
.footer-sep { opacity: 0.4; }

/* Hub (index) groups + cards */
.tut-group { margin-top: 34px; }
.tut-group:first-of-type { margin-top: 26px; }
.group-head { display: flex; align-items: center; gap: 12px; margin: 0 4px 14px; }
.group-head .gic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.group-head .gic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.group-head h2 { font-size: 1.2rem; }
.group-head p { margin: 2px 0 0; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.tuts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tut-card { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 22px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tut-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); text-decoration: none; }
.tut-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; }
.tut-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tut-card h3 { font-size: 1.1rem; }
.tut-card p { margin: 0; color: var(--muted); font-size: 0.94rem; flex: 1 1 auto; }
.tut-card .go { color: var(--accent-strong); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.tut-card .go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Target-type icon accents (so cards read by device type, not one repeated icon) */
.tut-ic.ti-purple { background: #f2ecfb; color: #7c3aed; }
.tut-ic.ti-amber { background: #fdefe1; color: #b45309; }
.tut-ic.ti-blue { background: #e8f1fd; color: #1d6fd6; }
.tut-ic.ti-green { background: #e6f7ee; color: #12855a; }
.tut-ic.ti-indigo { background: #ebedfb; color: #4f46e5; }
.tut-ic.ti-teal { background: #e2f6f4; color: #0d8f86; }

/* YouTube channel link under a guide video */
.yt-more { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.yt-more:hover { color: #c4302b; text-decoration: none; }
.yt-more svg { width: 22px; height: 22px; fill: #c4302b; flex: 0 0 auto; }

@media (max-width: 600px) { .brand-link span { display: none; } .hero-strap h1 { font-size: 1.6rem; } }
