/*
Theme Name: YT to MP3 Downloader
Theme URI: https://yttomp3downloader.com
Author: YT to MP3 Downloader
Author URI: https://yttomp3downloader.com
Description: A fast, accessible product theme for the YT to MP3 Downloader Windows app.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: yttomp3
*/

:root {
    --ink: #111827;
    --ink-soft: #495266;
    --ink-faint: #727b8e;
    --paper: #ffffff;
    --paper-soft: #f6f7f9;
    --paper-warm: #fbfaf8;
    --line: #e5e7eb;
    --accent: #3766e9;
    --accent-dark: #19379a;
    --accent-soft: #eef2ff;
    --brand-red: #e2291c;
    --navy: #101827;
    --success: #168a5b;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 10px 30px rgba(17, 24, 39, .08);
    --shadow-lg: 0 35px 90px rgba(17, 24, 39, .16);
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 400 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.site-main { overflow: hidden; }

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(229,231,235,.8);
    backdrop-filter: blur(16px);
}
.nav-shell { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; display: block; border-radius: 11px; box-shadow: 0 8px 22px rgba(25,55,154,.24); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.site-nav .menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; list-style: none; }
.site-nav a { color: #354052; text-decoration: none; font-size: .92rem; font-weight: 650; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 8px; color: var(--ink); }
.menu-toggle svg { display: block; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 750; line-height: 1.2; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 12px 30px rgba(55,102,233,.26); }
.site-nav a.button-primary,
.site-nav a.button-primary:visited { color: #fff; }
.button-primary:hover { background: var(--accent-dark); }
.site-nav a.button-primary:hover,
.site-nav a.button-primary:focus-visible { color: #fff; }

/* Dedicated installer download page. */
.download-hero { padding: 78px 0 84px; text-align: center; background: radial-gradient(circle at 20% 20%, #eef2ff 0, transparent 24rem), radial-gradient(circle at 82% 35%, #fff0ee 0, transparent 22rem), #fbfcff; border-bottom: 1px solid var(--line); }
.download-wrap { max-width: 860px; }
.download-app-icon { display: block; width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 24px; box-shadow: 0 20px 45px rgba(25,55,154,.22); }
.download-hero .eyebrow { margin-bottom: 12px; }
.download-hero h1 { max-width: 760px; margin: 0 auto 18px; font-size: clamp(2.35rem, 5.5vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; }
.download-lead { max-width: 680px; margin: 0 auto 34px; color: var(--ink-soft); font-size: 1.15rem; }
.download-card-main { padding: 26px; border: 1px solid #dce2f2; border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-lg); }
.download-file-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.download-file-meta span { padding: 2px 18px; border-right: 1px solid var(--line); }
.download-file-meta span:last-child { border-right: 0; }
.download-file-meta small, .download-file-meta strong { display: block; }
.download-file-meta small { color: var(--ink-faint); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.download-file-meta strong { margin-top: 4px; font-size: 1rem; }
.download-start { width: min(100%, 410px); min-height: 58px; color: #fff; font-size: 1.05rem; }
.download-start:visited, .download-start:hover, .download-start:focus-visible { color: #fff; }
.download-help { margin: 14px 0 0; color: var(--ink-faint); font-size: .9rem; }
.download-help a { color: var(--accent-dark); font-weight: 700; }
.download-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--success); font-size: .88rem; font-weight: 650; }
.download-details { background: #fff; }
.download-details-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.download-details h2 { margin: 0 0 26px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }
.download-steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.download-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.download-steps li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--accent); font-weight: 850; }
.download-steps h3 { margin: 1px 0 3px; font-size: 1.05rem; }
.download-steps p { margin: 0; color: var(--ink-soft); }
.requirements-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper-soft); box-shadow: var(--shadow-sm); }
.requirements-card img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; object-position: top; }
.requirements-card > div { padding: 26px; }
.requirements-card h2 { margin-bottom: 16px; font-size: 1.45rem; }
.requirements-card ul { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: var(--ink-soft); }
.button-secondary { border-color: #cfd4dc; background: #fff; color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); }
.button-small { min-height: 42px; padding: 10px 18px; font-size: .9rem; }

.hero { position: relative; padding: 86px 0 92px; background: radial-gradient(circle at 80% 12%, #edf2ff 0, transparent 30rem), radial-gradient(circle at 92% 42%, #fff0ee 0, transparent 18rem), linear-gradient(180deg, #fff 0%, #f8faff 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.92fr) minmax(520px,1.08fr); gap: 68px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--accent-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(3rem, 5.2vw, 5.15rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy { max-width: 620px; margin: 24px 0 0; color: var(--ink-soft); font-size: clamp(1.08rem, 1.6vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 21px; color: var(--ink-faint); font-size: .87rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--success); }

.app-stage { position: relative; padding: 22px 0 20px; }
.app-stage::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; right: -10%; top: -16%; border-radius: 50%; background: linear-gradient(145deg, #ffd8d5, #f1e5de); filter: blur(1px); opacity: .72; }
.app-window { position: relative; overflow: hidden; border: 1px solid rgba(17,24,39,.15); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); transform: rotate(1.3deg); }
.app-window img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; }
.stage-note { position: absolute; right: -22px; bottom: -5px; min-width: 190px; padding: 14px 16px; border: 1px solid #eee; border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm); }
.stage-note strong, .stage-note span { display: block; }
.stage-note strong { font-size: .9rem; }
.stage-note span { color: var(--ink-faint); font-size: .75rem; }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { min-height: 88px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.trust-item { padding: 0 24px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item strong, .trust-item span { display: block; }
.trust-item strong { font-size: .92rem; }
.trust-item span { color: var(--ink-faint); font-size: .78rem; }

.section { padding: 112px 0; }
.section-soft { background: var(--paper-soft); }
.section-dark { color: #fff; background: var(--navy); }
.section-head { max-width: 700px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.06; letter-spacing: -.055em; }
.section-head > p:last-child { margin: 18px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-head > p:last-child { color: #aeb8c9; }

.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card { padding: 36px 34px 38px 0; }
.feature-card + .feature-card { padding-left: 34px; border-left: 1px solid var(--line); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 13px; color: var(--accent); background: var(--accent-soft); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.25rem; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--ink-soft); }

.product-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.product-row.reverse { grid-template-columns: .95fr 1.05fr; }
.product-row.reverse .product-visual { order: 2; }
.product-copy h2 { margin: 0; }
.product-copy > p { margin: 20px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.check-list { display: grid; gap: 13px; padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: #354052; }
.check-list svg { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; color: var(--success); }
.product-visual { position: relative; padding: 20px; border-radius: var(--radius-lg); background: #e9ebef; }
.product-visual img { display: block; width: 100%; border-radius: 12px; box-shadow: var(--shadow-sm); }
.format-cloud { min-height: 420px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 50%, #2d394c 0, #141d2d 58%, #0e1521 100%); }
.format-cloud::before { content: ""; position: absolute; width: 290px; height: 290px; border: 1px solid #ffffff1f; border-radius: 50%; box-shadow: 0 0 0 70px #ffffff08, 0 0 0 140px #ffffff05; }
.format-core { z-index: 1; width: 128px; height: 128px; display: grid; place-items: center; border-radius: 34px; background: var(--accent); box-shadow: 0 24px 70px #0007; font-size: 1.6rem; font-weight: 900; }
.format-pill { position: absolute; z-index: 2; padding: 8px 13px; border: 1px solid #ffffff22; border-radius: 999px; color: #dfe5ee; background: #ffffff0d; font-weight: 750; font-size: .82rem; backdrop-filter: blur(8px); }
.format-pill:nth-of-type(1) { top: 18%; left: 15%; }
.format-pill:nth-of-type(2) { top: 23%; right: 13%; }
.format-pill:nth-of-type(3) { bottom: 21%; left: 12%; }
.format-pill:nth-of-type(4) { right: 16%; bottom: 16%; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; counter-reset: steps; }
.step { position: relative; min-height: 250px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; counter-increment: steps; }
.step::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: 54px; color: var(--accent); font-size: .8rem; font-weight: 850; letter-spacing: .08em; }
.step h3 { margin: 0 0 9px; font-size: 1.25rem; }
.step p { margin: 0; color: var(--ink-soft); }

.faq-list { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 25px 48px 25px 0; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 5px; top: 21px; color: var(--accent); font-size: 1.5rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -8px 0 24px; padding-right: 50px; color: var(--ink-soft); }

.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 62px 66px; border-radius: var(--radius-lg); color: #fff; background: var(--navy); }
.cta-panel::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -160px; border-radius: 50%; background: var(--accent); opacity: .22; }
.cta-panel h2 { position: relative; z-index: 1; max-width: 700px; }
.cta-panel p { position: relative; z-index: 1; margin: 14px 0 0; color: #aeb8c9; }
.cta-panel .button { position: relative; z-index: 1; }

.site-footer { padding: 64px 0 28px; color: #cbd2de; background: #0a101b; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 50px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 360px; margin: 18px 0 0; color: #8994a7; font-size: .92rem; }
.footer-col h3 { margin: 4px 0 16px; color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col a { display: block; margin: 9px 0; color: #9da8b9; text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #202a39; color: #707d91; font-size: .78rem; }

.content-shell { width: min(850px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 110px; }
.content-shell h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); line-height: 1.05; letter-spacing: -.055em; }
.entry-content > * { max-width: 100%; }
.section.download-details h2 { margin: 0 0 26px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }

@media (max-width: 980px) {
    .hero { padding-top: 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 42px; }
    .app-stage { max-width: 760px; }
    .product-row, .product-row.reverse { grid-template-columns: 1fr; gap: 44px; }
    .product-row.reverse .product-visual { order: 0; }
    .download-details-grid { grid-template-columns: 1fr; gap: 44px; }
    .requirements-card { max-width: 720px; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    body.admin-bar .site-header { top: 46px; }
    .wrap { width: min(100% - 28px, var(--wrap)); }
    .nav-shell { min-height: 68px; }
    .menu-toggle { display: block; }
    .site-nav { position: absolute; display: none; top: calc(100% + 1px); left: 0; right: 0; padding: 18px 20px 24px; flex-direction: column; align-items: stretch; gap: 15px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
    .site-nav .menu { flex-direction: column; align-items: stretch; gap: 15px; }
    .site-nav.is-open { display: flex; }
    .site-nav .button { margin-top: 4px; }
    .hero { padding: 54px 0 72px; }
    .hero h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
    .hero-grid { gap: 30px; }
    .stage-note { right: 8px; bottom: 4px; }
    .trust-grid { grid-template-columns: 1fr 1fr; padding: 14px 0; }
    .trust-item { padding: 12px 14px; border: 0; }
    .trust-item:first-child { padding-left: 14px; }
    .section { padding: 78px 0; }
    .download-hero { padding: 54px 0 64px; }
    .download-card-main { padding: 22px 18px; }
    .download-file-meta { grid-template-columns: 1fr; gap: 13px; text-align: left; }
    .download-file-meta span { padding: 0 4px 13px; border-right: 0; border-bottom: 1px solid var(--line); }
    .download-file-meta span:last-child { padding-bottom: 0; border-bottom: 0; }
    .download-trust { align-items: flex-start; flex-direction: column; }
    .section-head { margin-bottom: 38px; }
    .feature-grid, .steps { grid-template-columns: 1fr; }
    .feature-card, .feature-card + .feature-card { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .feature-card:last-child { border-bottom: 0; }
    .step { min-height: auto; }
    .step::before { margin-bottom: 34px; }
    .format-cloud { min-height: 330px; }
    .cta-panel { grid-template-columns: 1fr; padding: 42px 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
    .brand { font-size: .9rem; }
    .brand-mark { width: 34px; height: 34px; }
    .download-app-icon { width: 80px; height: 80px; border-radius: 20px; }
    .download-hero h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
    .hero-actions .button { width: 100%; }
    .stage-note { display: none; }
    .trust-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
