/* AI Style Upgrade - marketing site. Single shared stylesheet. */
:root {
  --bg: #0b1020;
  --bg-2: #121a33;
  --surface: #17213f;
  --surface-2: #1d294d;
  --text: #eef1fb;
  --muted: #a9b4d6;
  --magenta: #e535d6;
  --blue: #4a7dff;
  --green: #35d49a;
  --border: rgba(255, 255, 255, .1);
  --grad: linear-gradient(120deg, var(--magenta), var(--blue));
  --radius: 16px;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
section { padding: 72px 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; color: #000; padding: 8px; z-index: 99; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 32, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { background: #fff; border-radius: 8px; padding: 4px 8px; display: block; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--magenta); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1.2rem; cursor: pointer; }

/* buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(229, 53, 214, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(74, 125, 255, .45); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); }
.btn:focus-visible, .nav a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: 0; animation: float 14s ease-in-out infinite; }
.hero::before { width: 420px; height: 420px; background: var(--magenta); top: -120px; left: -80px; }
.hero::after { width: 460px; height: 460px; background: var(--blue); bottom: -160px; right: -100px; animation-delay: -7s; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
/* "Free to test" badge: lifted so it sits about halfway between the menu bar and the headline */
.hero .badge { position: relative; top: -32px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.badge { display: inline-block; font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: rgba(53, 212, 154, .12); color: var(--green); border: 1px solid rgba(53, 212, 154, .35); margin-bottom: 16px; }
@keyframes float { 50% { transform: translate(30px, 20px); } }

/* before/after mock (pure CSS illustration) */
.mock { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; }
.mock-pane { position: absolute; inset: 0; padding: 14px; }
.mock-after { background: linear-gradient(160deg, #101a3a, #1d1050); clip-path: inset(0 0 0 var(--split, 50%)); }
.mock-before { background: #f3f3f3; color: #222; font-family: "Times New Roman", serif; }
.mock-bar { height: 22px; border-radius: 4px; margin-bottom: 10px; background: #bbb; }
.mock-after .mock-bar { background: var(--grad); border-radius: 999px; }
.mock-line { height: 9px; border-radius: 4px; background: #c9c9c9; margin-bottom: 8px; }
.mock-after .mock-line { background: rgba(255, 255, 255, .25); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mock-cards i { display: block; height: 54px; background: #ddd; border: 1px solid #aaa; }
.mock-after .mock-cards i { border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.mock-label { position: absolute; bottom: 10px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; }
.mock-label.l { left: 10px; } .mock-label.r { right: 10px; }
.mock-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 12px rgba(0, 0, 0, .5); pointer-events: none; }
.mock input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* cards / grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--blue); }
.card .num { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }

/* example cards */
/* Everything inside a card scales with the card's width (1cqw = 1% of card width;
   reference design: 550px wide card, ~300px tall), so height changes proportionally. */
.example { padding: 0; overflow: hidden; container-type: inline-size; }
.example .media { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); aspect-ratio: 55 / 18; } /* videos = ~60% of card height */
.example figure { margin: 0; position: relative; background: #000; height: auto; }
.example figure img, .example video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.example video { opacity: 0; transition: opacity .2s; }
.example figure.playing video { opacity: 1; }
.example figure.playing .fallback { display: none; }
.example figcaption { z-index: 2; }
/* play hint: semi-transparent round icon, bottom right of each clip; hidden while playing */
.example figure::after { content: ""; position: absolute; right: 1.45cqw; bottom: 1.45cqw; z-index: 2; width: max(24px, 5.2cqw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 70% no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); transition: opacity .2s; }
.example figure.playing::after, .example figure.nofile::after { opacity: 0; }
.example figure:not(.hasvideo)::after { display: none; }   /* no video file: no play hint */
.example figcaption { position: absolute; left: 1.45cqw; bottom: 1.45cqw; font-size: max(9px, 2.1cqw); font-weight: 700; background: rgba(0, 0, 0, .35); padding: .4cqw 1.8cqw; border-radius: 999px; }
.example figure.after figcaption { background: linear-gradient(120deg, rgba(229, 53, 214, .55), rgba(74, 125, 255, .55)); }
.example .fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 1.8cqw; font-size: max(9px, 2.3cqw); color: var(--muted); background: repeating-linear-gradient(45deg, #101830, #101830 10px, #141e3d 10px, #141e3d 20px); }
.example figure.nofile .fallback { display: grid; }
.example .body { padding: 2.2cqw 3.6cqw 2.5cqw; }
.example .body .tag { display: block; font-size: max(8px, 1.9cqw); padding-bottom: 1.1cqw; }
.example .body h3 { margin: 0 0 .2em; font-size: max(13px, 3.2cqw); }
.example .body p { margin: 0; font-size: max(11px, 2.67cqw); line-height: 1.45; }
.tag { font-size: .75rem; color: var(--green); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filters button { background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: .95rem; }
.filters button[aria-pressed="true"] { background: var(--grad); border-color: transparent; }

/* examples: one card per row, so visitors see the videos in more detail */
#examples-grid { grid-template-columns: minmax(0, 960px); justify-content: center; gap: 48px; }

.example { cursor: pointer; }
.example-item .credit { margin: 10px 4px 0; font-size: .8rem; }
.example-item .credit a { color: inherit; text-decoration: underline; }

/* pricing */
.price-card { max-width: 480px; margin: 0 auto; background: var(--surface); border: 2px solid transparent; border-radius: 24px; padding: 40px 34px; text-align: center;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; }
.price { font-size: 4rem; font-weight: 800; line-height: 1; }
.price { margin-bottom: 18px; }
.price-intro { font-size: 1.3rem; }
.price small { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.price-card li { padding: 7px 0 7px 30px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.notice { border: 1px solid rgba(229, 53, 214, .45); background: rgba(229, 53, 214, .08); border-radius: 12px; padding: 14px 16px; font-size: .95rem; text-align: left; margin: 20px 0; }

/* strong emphasis that stays readable inside muted text */
.hl { color: var(--text); font-weight: 800; font-size: 1.12em; white-space: nowrap; }
/* PayPal hosted button: its domain text box has a 5-line minimum height; one line is enough for a domain name */
#paypal-container-PY2W7552P36M4 #memo { min-height: 0; height: calc(1.5rem + 1rem + 2px); }
.license-form { text-align: left; }
.license-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.license-form input { width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 12px; }
.license-form input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.license-form input[aria-invalid="true"] { border-color: var(--magenta); }
.license-msg { min-height: 1.4em; margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.license-msg.bad { color: var(--magenta); }
.license-msg a { color: inherit; text-decoration: underline; }
.paypal-buy { display: block; margin: 14px auto 0; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 26px; max-width: 100%; }
.paypal-buy img { display: block; max-width: 100%; height: auto; }
.paypal-buy:hover { filter: brightness(1.06); }
.paypal-note { margin: 10px 0 0; font-size: .9rem; text-align: center; }

/* faq */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; color: var(--magenta); }

/* code block */
pre { background: #060a17; border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-x: auto; font-size: .9rem; }

/* legal / statement pages */
.prose { max-width: 800px; }
.prose h2 { margin: 2em 0 .5em; font-size: 1.4rem; }
.prose p, .prose li { line-height: 1.65; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose code { background: rgba(255, 255, 255, .08); padding: .1em .4em; border-radius: 6px; }
.prose .notice { margin: 1em 0; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* reveal on scroll (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 20px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  section { padding: 52px 0; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* cookie consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 760px; margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.consent p { margin: 0; flex: 1 1 320px; font-size: .95rem; }
.consent a { color: inherit; text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { min-width: 110px; text-align: center; cursor: pointer; }
