/* Timeline Visualizer 1.11.0 — modern gold + red look.
 * Third colour: golden yellow (--tv-gold). Loads LAST, after timeline-visualizer.css and tvx.css.
 * It restyles surfaces only (cards, badges, buttons, footer, 404). Page layout, section order, the header and the
 * mobile header animation are not touched. Dark mode keeps ALL text white; gold is used on shapes, never on text. */
:root {
  --tv-gold: #ffb400; --tv-gold-2: #ffd23f; --tv-gold-deep: #e69500; --tv-gold-soft: #fff1bf; --tv-gold-wash: #fff8dc;
  --tv-ink: #1b1b1d;
  --tv-r-card: 22px;
  --tv-sh: 0 10px 30px rgba(140, 84, 0, 0.10);
  --tv-sh-lg: 0 22px 48px rgba(140, 84, 0, 0.18);
  --tv-ease: cubic-bezier(.2, .7, .2, 1);
  --tv-m-check: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2012.5l4.5%204.5L19%207.5'/%3E%3C/svg%3E"); --tv-m-arrow: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2012h14M13%206l6%206-6%206'/%3E%3C/svg%3E"); --tv-m-upload: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2016V4m0%200L8%208m4-4l4%204M4%2016v3a1%201%200%20001%201h14a1%201%200%20001-1v-3'/%3E%3C/svg%3E"); --tv-m-sliders: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%207h9M18%207h2M4%2017h3M12%2017h8'/%3E%3Ccircle%20cx='15.5'%20cy='7'%20r='2.2'/%3E%3Ccircle%20cx='9.5'%20cy='17'%20r='2.2'/%3E%3C/svg%3E"); --tv-m-download: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%204v12m0%200l-4-4m4%204l4-4M4%2020h16'/%3E%3C/svg%3E"); --tv-m-play: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8%205l11%207-11%207z'/%3E%3C/svg%3E");
}

/* ---------- Page canvas: warm cream with soft golden light ---------- */
html:not([data-theme="dark"]) body.tv-body { background: #fffff0; }
html:not([data-theme="dark"]) body.tv-body .tv-main {
  background-color: #fffff0 !important;
  background-image:
    radial-gradient(760px 340px at 100% 0%, rgba(255, 196, 0, 0.30), transparent 68%),
    radial-gradient(620px 300px at 0% 22%, rgba(255, 0, 13, 0.06), transparent 70%),
    radial-gradient(700px 360px at 100% 62%, rgba(255, 196, 0, 0.16), transparent 70%) !important;
}
html[data-theme="dark"] body.tv-body .tv-main {
  background-image:
    radial-gradient(700px 320px at 100% 0%, rgba(255, 180, 0, 0.10), transparent 70%),
    radial-gradient(600px 300px at 0% 30%, rgba(255, 0, 13, 0.10), transparent 70%) !important;
}
/* header: only a thin gold line under it (no change in size or behaviour) */
html:not([data-theme="dark"]) body.tv-body .tv-header { box-shadow: 0 3px 0 var(--tv-gold); }

/* ---------- Small headings and section titles ---------- */
.tv-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px !important; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; max-width: none !important; }
.tv-kicker::before { content: ""; width: 30px; height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--tv-gold), var(--tv-gold-2)); }
html:not([data-theme="dark"]) .tv-kicker { color: #a85f00; }
body.tv-body .tv-section > h2, body.tv-body .tv-features > h2, body.tv-body .tv-guide > h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.022em; line-height: 1.12; margin-bottom: 6px; }
body.tv-body .tv-section > h2::after { content: ""; display: block; width: 72px; height: 6px; margin-top: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--tv-red, #ff000d), var(--tv-gold)); }
.tv-section { margin-top: clamp(56px, 8vw, 96px); }

/* ---------- Start screen touches (layout unchanged) ---------- */
html:not([data-theme="dark"]) body.tv-body .tv-start-copy::before { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--tv-gold-soft); color: #9a5b00 !important; letter-spacing: .14em; }
html[data-theme="dark"] body.tv-body .tv-start-copy::before { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: rgba(255, 180, 0, 0.18); }
body.tv-body .tv-proof-list li::before { background: var(--tv-gold); box-shadow: 0 0 0 3px rgba(255, 0, 13, 0.20); }
html body.tv-body .tv-btn-primary, html body.tv-body .tv-play { background-image: linear-gradient(180deg, #ff3340, #ff000d) !important; box-shadow: 0 10px 22px rgba(255, 0, 13, 0.28) !important; transition: transform .18s var(--tv-ease), box-shadow .18s var(--tv-ease); }
html body.tv-body .tv-btn-primary:hover, html body.tv-body .tv-play:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255, 0, 13, 0.34) !important; }
html:not([data-theme="dark"]) body.tv-body .tv-tool[data-tv-step="start"] .tv-tool-visuals { filter: drop-shadow(0 26px 38px rgba(255, 160, 0, 0.34)); }

/* ---------- How it works (3 cards) ---------- */
html body.tv-body .tv-steps-list { gap: 20px; }
html body.tv-body .tv-steps-list li { position: relative; padding: 30px 26px 26px !important; border-radius: 26px; transition: transform .22s var(--tv-ease), box-shadow .22s var(--tv-ease); }
html:not([data-theme="dark"]) body.tv-body .tv-steps-list li { background: #ffffff !important; box-shadow: var(--tv-sh) !important; }
html:not([data-theme="dark"]) body.tv-body .tv-steps-list li::after { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 5px; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, var(--tv-gold), var(--tv-gold-2)); }
html:not([data-theme="dark"]) body.tv-body .tv-steps-list li:hover { transform: translateY(-5px); box-shadow: var(--tv-sh-lg) !important; }
html[data-theme="dark"] body.tv-body .tv-steps-list li { border-top: 4px solid var(--tv-gold) !important; border-top-color: var(--tv-gold) !important; }
.tv-step-ic { position: relative; display: block; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(145deg, var(--tv-gold-2), var(--tv-gold)); box-shadow: 0 10px 20px rgba(255, 160, 0, 0.38); }
.tv-step-ic::after { content: ""; position: absolute; inset: 0; background: #ffffff; -webkit-mask: var(--m) center / 54% no-repeat; mask: var(--m) center / 54% no-repeat; }
.tv-step-ic-1::after { --m: var(--tv-m-upload); } .tv-step-ic-2::after { --m: var(--tv-m-sliders); } .tv-step-ic-3::after { --m: var(--tv-m-download); } .tv-step-ic-4::after { --m: var(--tv-m-play); }
body.tv-body .tv-steps-list h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
body.tv-body .tv-steps-list p { margin: 0; }

/* ---------- Features: golden band with white check cards ---------- */
body.tv-body .tv-features { position: relative; margin: clamp(56px, 8vw, 96px) 0; padding: clamp(24px, 5vw, 56px); border-radius: 34px; overflow: hidden; isolation: isolate; }
html:not([data-theme="dark"]) body.tv-body .tv-features { background: linear-gradient(135deg, #fff8d6 0%, #ffefaa 55%, #ffe27a 100%); }
html[data-theme="dark"] body.tv-body .tv-features { background: linear-gradient(135deg, rgba(255, 180, 0, 0.16), rgba(255, 0, 13, 0.12)); }
body.tv-body .tv-features::before, body.tv-body .tv-features::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
body.tv-body .tv-features::before { width: 360px; height: 360px; right: -110px; top: -130px; background: radial-gradient(circle, rgba(255, 0, 13, 0.16), transparent 70%); }
body.tv-body .tv-features::after { width: 300px; height: 300px; left: -90px; bottom: -120px; background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 70%); }
body.tv-body .tv-feature-list { list-style: none; padding: 0; margin: 28px 0 0; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
body.tv-body .tv-feature-list li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 20px; line-height: 1.45; font-weight: 500; transition: transform .2s var(--tv-ease), box-shadow .2s var(--tv-ease); }
html:not([data-theme="dark"]) body.tv-body .tv-feature-list li { background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 22px rgba(150, 90, 0, 0.10); }
html[data-theme="dark"] body.tv-body .tv-feature-list li { background: rgba(255, 255, 255, 0.07); }
body.tv-body .tv-feature-list li:hover { transform: translateY(-3px); }
html:not([data-theme="dark"]) body.tv-body .tv-feature-list li:hover { box-shadow: 0 14px 30px rgba(150, 90, 0, 0.18); }
.tv-feat-ic { position: relative; flex: none; width: 34px; height: 34px; margin-top: 1px; border-radius: 50%; background: linear-gradient(145deg, var(--tv-gold-2), var(--tv-gold)); box-shadow: 0 5px 12px rgba(255, 160, 0, 0.42); }
.tv-feat-ic::after { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--tv-m-check) center / 58% no-repeat; mask: var(--tv-m-check) center / 58% no-repeat; }

html[data-theme="dark"] body.tv-body .tv-features::after { background: radial-gradient(circle, rgba(255, 180, 0, 0.14), transparent 70%); }

/* ---------- How to use: step cards with a number badge and a golden picture frame ---------- */
body.tv-body .tv-guide-step { position: relative; margin: 26px 0; padding: clamp(22px, 4vw, 44px); border-radius: 30px; transition: box-shadow .25s var(--tv-ease); }
html:not([data-theme="dark"]) body.tv-body .tv-guide-step { background: rgba(255, 255, 255, 0.82); box-shadow: var(--tv-sh); }
html:not([data-theme="dark"]) body.tv-body .tv-guide-step:hover { box-shadow: var(--tv-sh-lg); }
html[data-theme="dark"] body.tv-body .tv-guide-step { background: rgba(255, 255, 255, 0.05); }
.tv-guide-num { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; margin: 0 0 14px; border-radius: 15px; background: linear-gradient(145deg, #ff3340, #ff000d); color: #fff !important; font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; box-shadow: 0 10px 20px rgba(255, 0, 13, 0.30); align-self: flex-start; }
body.tv-body .tv-guide-text h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -0.01em; }
body.tv-body .tv-guide-text p { color: var(--tv-muted); }
html[data-theme="dark"] body.tv-body .tv-guide-text p { color: #fff; }
body.tv-body .tv-guide-media { position: relative; }
body.tv-body .tv-guide-media::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border-radius: 28px; background: linear-gradient(135deg, var(--tv-gold-2), var(--tv-gold)); opacity: .6; }
body.tv-body .tv-guide-step:nth-of-type(even) .tv-guide-media::before { inset: 16px 16px -16px -16px; }
body.tv-body .tv-guide-media .tv-guide-img { position: relative; z-index: 1; border-radius: 24px !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16); background: #fffdf0; }
body.tv-body .tv-guide-art { aspect-ratio: 520 / 300; height: auto; }
@media (max-width: 800px) {
  body.tv-body .tv-features { border-radius: 26px; }
  body.tv-body .tv-guide-step { border-radius: 24px; }
  body.tv-body .tv-guide-media::before, body.tv-body .tv-guide-step:nth-of-type(even) .tv-guide-media::before { inset: 10px -8px -10px 8px; border-radius: 22px; }
  body.tv-body .tv-guide-media { margin-right: 8px !important; }
}

/* ---------- More free tools: cards with a gold arrow ---------- */
html body.tv-body .tv-tool-grid { gap: 18px; }
html body.tv-body .tv-tool-card { position: relative; padding: 26px 74px 26px 26px !important; border-radius: 24px !important; transition: transform .22s var(--tv-ease), box-shadow .22s var(--tv-ease), border-color .22s; }
html:not([data-theme="dark"]) body.tv-body .tv-tool-card { background: #ffffff !important; border: 2px solid rgba(255, 180, 0, 0.35) !important; border-color: rgba(255, 180, 0, 0.35) !important; box-shadow: var(--tv-sh) !important; }
html:not([data-theme="dark"]) body.tv-body .tv-tool-card:hover { background: #ffffff !important; border-color: var(--tv-gold) !important; transform: translateY(-5px); box-shadow: var(--tv-sh-lg) !important; }
html:not([data-theme="dark"]) body.tv-body .tv-tool-card:hover strong { color: #ff000d !important; }
html:not([data-theme="dark"]) body.tv-body .tv-tool-card:hover span { color: var(--tv-muted) !important; }
html[data-theme="dark"] body.tv-body .tv-tool-card { border-left: 4px solid var(--tv-gold) !important; border-left-color: var(--tv-gold) !important; }
.tv-tool-go { position: absolute; right: 22px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: linear-gradient(145deg, var(--tv-gold-2), var(--tv-gold)); box-shadow: 0 6px 14px rgba(255, 160, 0, 0.40); transition: transform .22s var(--tv-ease), background .22s; }
.tv-tool-go::after { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--tv-m-arrow) center / 52% no-repeat; mask: var(--tv-m-arrow) center / 52% no-repeat; }
body.tv-body .tv-tool-card:hover .tv-tool-go { transform: translateX(3px); background: linear-gradient(145deg, #ff3340, #ff000d); }

/* ---------- Reviews and trust cards ---------- */
html:not([data-theme="dark"]) body.tv-body .tv-rv-card { background: #ffffff !important; border-radius: 22px !important; box-shadow: var(--tv-sh) !important; }
html:not([data-theme="dark"]) body.tv-body .tv-trust, html:not([data-theme="dark"]) body.tv-body .mt-trust { background: #ffffff !important; border-radius: 24px !important; box-shadow: var(--tv-sh) !important; border-left: 5px solid var(--tv-gold) !important; border-left-color: var(--tv-gold) !important; }
body.tv-body .tv-rv-stars-in { color: var(--tv-gold); }

/* ---------- Footer: dark band with a red + gold wave ---------- */
body.tv-body .tv-footer { position: relative; margin-top: clamp(80px, 10vw, 120px); border-top: 0 !important; }
html:not([data-theme="dark"]) body.tv-body .tv-footer { background: var(--tv-ink) !important; }
.tv-footer-wave { position: absolute; left: 0; right: 0; top: -68px; height: 70px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201440%2070%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2044C240%202%20480%2066%20720%2034S1200%202%201440%2038V70H0z%27%20fill%3D%27%23ffb400%27/%3E%3Cpath%20d%3D%27M0%2054C260%2016%20520%2070%20760%2044S1220%2016%201440%2050V70H0z%27%20fill%3D%27%23ff000d%27/%3E%3Cpath%20d%3D%27M0%2064C300%2034%20560%2068%20800%2054S1240%2034%201440%2060V70H0z%27%20fill%3D%27%231b1b1d%27/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
html[data-theme="dark"] .tv-footer-wave { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201440%2070%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%2044C240%202%20480%2066%20720%2034S1200%202%201440%2038V70H0z%27%20fill%3D%27%23ffb400%27/%3E%3Cpath%20d%3D%27M0%2054C260%2016%20520%2070%20760%2044S1220%2016%201440%2050V70H0z%27%20fill%3D%27%23ff000d%27/%3E%3Cpath%20d%3D%27M0%2064C300%2034%20560%2068%20800%2054S1240%2034%201440%2060V70H0z%27%20fill%3D%27%232a1214%27/%3E%3C/svg%3E"); }
html:not([data-theme="dark"]) body.tv-body .tv-footer .tv-brand-mark { background: var(--tv-gold); border-color: var(--tv-gold); }
html:not([data-theme="dark"]) body.tv-body .tv-footer .tv-brand-mark::before { background: var(--tv-ink); }
html:not([data-theme="dark"]) body.tv-body .tv-footer .tv-footer-col h2 { color: var(--tv-gold-2) !important; font-weight: 700; letter-spacing: .02em; }
html:not([data-theme="dark"]) body.tv-body .tv-footer .tv-footer-col a:hover { color: var(--tv-gold-2) !important; text-decoration: underline; }
html:not([data-theme="dark"]) body.tv-body .tv-footer-note { border-top-color: rgba(255, 255, 255, 0.16); }
html[data-theme="dark"] body.tv-body .tv-footer { border-top: 0 !important; }

/* ---------- 404 page ---------- */
body.tv-body .tv-404 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding: clamp(36px, 7vw, 84px) 0 8px; }
body.tv-body .tv-404 .tv-h1 { border: 0 !important; padding: 0 !important; font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin: 0 0 14px; }
body.tv-body .tv-404 .tv-lede { max-width: 50ch; }
.tv-404-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.tv-404-search { display: flex; gap: 10px; max-width: 460px; }
.tv-404-search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 18px; border-radius: 999px; font: inherit; }
html:not([data-theme="dark"]) body.tv-body .tv-404-search input { background: #fff !important; background-color: #fff !important; border: 2px solid rgba(255, 180, 0, 0.6) !important; border-color: rgba(255, 180, 0, 0.6) !important; color: #1a1a1a; }
html:not([data-theme="dark"]) .tv-404-search input:focus { outline: 3px solid rgba(255, 0, 13, 0.35); outline-offset: 2px; }
.tv-404-art svg { display: block; width: 100%; height: auto; border-radius: 34px; box-shadow: var(--tv-sh-lg); }
@media (prefers-reduced-motion: no-preference) {
  .tv-404-art svg { animation: tv-404-float 6s ease-in-out infinite; }
  @keyframes tv-404-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
@media (max-width: 860px) { body.tv-body .tv-404 { grid-template-columns: minmax(0, 1fr); } .tv-404-art { order: -1; max-width: 420px; } }
@media (prefers-reduced-motion: reduce) {
  .tv-steps-list li, .tv-tool-card, .tv-feature-list li, .tv-guide-step, .tv-tool-go, .tv-btn-primary, .tv-play { transition: none !important; }
  .tv-steps-list li:hover, .tv-tool-card:hover, .tv-feature-list li:hover { transform: none !important; }
}

/* ---------- 404 page (1.12.1): fill the whole screen, footer always at the bottom ----------
 * Only body.tv-page-404. Short pages used to end halfway down the screen with the footer floating mid-screen
 * (worst on phones and tablets). The page is now a full-height column: header, a main area that grows, the footer. */
body.tv-page-404 { min-height: 100vh; display: flex; flex-direction: column; }
@supports (height: 100dvh) { body.tv-page-404 { min-height: 100dvh; } }
body.tv-page-404 > header, body.tv-page-404 > .tv-header, body.tv-page-404 > footer { flex: 0 0 auto; }
body.tv-page-404 .tv-main-404 { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; padding-bottom: clamp(24px, 5vw, 56px); }
body.tv-page-404 .tv-main-404 > .tv-wrap { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; max-width: none; padding-left: clamp(20px, 5vw, 80px); padding-right: clamp(20px, 5vw, 80px); }
body.tv-page-404 .tv-404 { flex: 1 0 auto; width: 100%; max-width: 1500px; margin-left: auto; margin-right: auto; align-content: center; padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(24px, 5vw, 64px); }
body.tv-page-404 .tv-404 .tv-lede { max-width: 60ch; }
body.tv-page-404 .tv-404-search { max-width: 560px; }
body.tv-page-404 .tv-footer { margin-top: 0; width: 100%; }
@media (max-width: 860px) {
  body.tv-page-404 .tv-404-art { width: 100%; max-width: 560px; margin: 0 auto; }
  body.tv-page-404 .tv-404-copy { text-align: left; }
}
