/* CaptureFlow Studio — soft neumorphic theme matching the Windows app */
:root {
  --bg: #E4E6EC;
  --surface: #E4E6EC;
  --navy: #1C2C8A;
  --navy-2: #2A3DB0;
  --yellow: #F2B21B;
  --yellow-2: #FFC94A;
  --text: #1E2235;
  --muted: #5B6176;
  --light: #FFFFFF;
  --shadow-dark: rgba(163, 168, 186, 0.75);
  --shadow-light: rgba(255, 255, 255, 0.95);
  --ok: #1E8E5A;
  --err: #C0392B;
  --radius: 22px;
  --radius-sm: 14px;
  --raised: 8px 8px 18px var(--shadow-dark), -8px -8px 18px var(--shadow-light);
  --raised-sm: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
  --inset: inset 4px 4px 9px var(--shadow-dark), inset -4px -4px 9px var(--shadow-light);
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(228, 230, 236, 0.88); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--raised-sm); background: var(--surface); }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 12px; }
.nav a:hover { color: var(--navy); box-shadow: var(--raised-sm); }
.nav .btn { padding: 9px 18px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; box-shadow: 6px 6px 14px rgba(28, 44, 138, .35), -6px -6px 14px var(--shadow-light); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700;
  padding: 14px 26px; border-radius: 16px; color: var(--navy);
  background: var(--surface); box-shadow: var(--raised-sm);
  transition: box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--raised); }
.btn:active { box-shadow: var(--inset); transform: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-primary { background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: #fff; box-shadow: 6px 6px 14px rgba(28, 44, 138, .35), -6px -6px 14px var(--shadow-light); }
.btn-primary:hover { color: #fff; }
.btn-yellow { background: linear-gradient(145deg, var(--yellow-2), var(--yellow)); color: #1d1a10; box-shadow: 6px 6px 14px rgba(190, 140, 20, .35), -6px -6px 14px var(--shadow-light); }
.btn-yellow:hover { color: #1d1a10; }
.btn-lg { font-size: 1.1rem; padding: 18px 34px; border-radius: 20px; }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 12px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--raised); padding: 28px; }
.inset { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--inset); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--navy); padding: 6px 14px; border-radius: 999px; box-shadow: var(--inset); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.05; margin: 18px 0 12px; color: var(--navy); letter-spacing: -0.02em; }
.hero .tagline { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; margin: 0 0 14px; }
.hero .tagline span { background: linear-gradient(transparent 62%, rgba(242, 178, 27, .55) 62%); }
.hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin: 0 0 26px; }
.price-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 8px; padding: 12px 20px; border-radius: 18px; box-shadow: var(--inset); }
.price strong { font-size: 2.1rem; color: var(--navy); line-height: 1; }
.price small { color: var(--muted); font-weight: 600; }
.req { margin-top: 18px; color: var(--muted); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.req svg { flex: none; }

.hero-visual { position: relative; }
.mock { padding: 18px; }
.mock-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mock-bar img { width: 28px; height: 28px; border-radius: 8px; }
.mock-bar b { color: var(--navy); }
.mock-bar .rec { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--err); padding: 4px 10px; border-radius: 999px; box-shadow: var(--inset); }
.mock-bar .rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--err); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.mock-screen { aspect-ratio: 16 / 10; border-radius: 16px; box-shadow: var(--inset); position: relative; overflow: hidden; display: grid; place-items: center; }
.mock-screen .area { position: absolute; inset: 18% 14% 22% 18%; border: 2px dashed var(--yellow); border-radius: 10px; background: rgba(242, 178, 27, .08); }
.mock-screen .area::after { content: "1280 × 720"; position: absolute; top: -26px; left: 0; font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--surface); padding: 2px 8px; border-radius: 8px; box-shadow: var(--raised-sm); }
.mock-screen .logo-big { width: 44%; opacity: .9; }
.mock-controls { display: flex; gap: 12px; margin-top: 16px; justify-content: center; }
.mock-controls span { width: 48px; height: 48px; border-radius: 16px; box-shadow: var(--raised-sm); display: grid; place-items: center; color: var(--navy); }
.mock-controls span.on { box-shadow: var(--inset); color: var(--err); }

/* ---------- sections ---------- */
section { padding: 56px 0; scroll-margin-top: 64px; }
#success, #recover { scroll-margin-top: 90px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } .features .feature:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px; }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; box-shadow: var(--inset); color: var(--navy); margin-bottom: 16px; }
.feature .ico.y { color: #b07c00; }
.feature h3 { margin: 0 0 6px; font-size: 1.12rem; color: var(--text); }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; counter-reset: s; }
.step { padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #1d1a10; background: linear-gradient(145deg, var(--yellow-2), var(--yellow)); box-shadow: var(--raised-sm); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
.note { margin-top: 26px; padding: 18px 22px; color: var(--muted); font-size: .95rem; }
.note b { color: var(--text); }

/* ---------- buy / checkout ---------- */
.buy-card { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .buy-card { grid-template-columns: 1fr; } }
.buy-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.buy-card li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: var(--text); }
.buy-card li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--yellow); box-shadow: var(--raised-sm); mask: none; }
.big-price { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.big-price small { font-size: 1rem; color: var(--muted); font-weight: 600; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input {
  width: 100%; font: inherit; color: var(--text); border: 0; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); box-shadow: var(--inset);
}
.field input::placeholder { color: #9aa0b3; }
.field input:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.hint { color: var(--muted); font-size: .86rem; margin: 10px 0 0; }
.msg { margin: 12px 0 0; font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.form-actions { display: flex; flex-direction: column; gap: 10px; }
.secure { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; justify-content: center; }

/* success panel */
.success { max-width: 760px; margin: 0 auto; }
.success[hidden] { display: none; }
.success h2 { color: var(--navy); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.success .check { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: var(--raised-sm); }
.key-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; margin: 18px 0 8px; flex-wrap: wrap; }
.key-box code { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: clamp(1.1rem, 3.4vw, 1.5rem); font-weight: 700; letter-spacing: .06em; color: var(--navy); flex: 1; word-break: break-all; }
.meta { color: var(--muted); font-size: .95rem; margin: 4px 0; }
.meta b { color: var(--text); }
.download-row { margin: 22px 0; }
.install { margin: 0; padding-left: 0; list-style: none; counter-reset: i; display: grid; gap: 12px; }
.install li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; }
.install li::before { counter-increment: i; content: counter(i); flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: var(--navy); }
.success .foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .88rem; align-items: center; }

/* recover */
.recover { max-width: 760px; margin: 28px auto 0; }
.recover summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recover summary::-webkit-details-marker { display: none; }
.recover summary::after { content: "+"; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; box-shadow: var(--raised-sm); font-size: 1.2rem; }
.recover[open] summary::after { content: "–"; box-shadow: var(--inset); }
.recover form { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.recover form .field { margin: 0; }
@media (max-width: 760px) { .recover form { grid-template-columns: 1fr; } }
.recover-result { margin-top: 14px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.faq details { padding: 18px 22px; border-radius: 18px; box-shadow: var(--raised-sm); }
.faq details[open] { box-shadow: var(--inset); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--navy); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* footer */
.site-footer { padding: 44px 0 36px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 10px; color: var(--navy); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer p, .site-footer li { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.copyright { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 28px; }

/* legal pages */
.legal { padding: 40px 0 20px; }
.legal .card { max-width: 860px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); }
.legal h1 { color: var(--navy); margin: 0 0 4px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal .updated { color: var(--muted); margin: 0 0 24px; font-size: .92rem; }
.legal h2 { color: var(--navy); font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: #353a50; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #cfd2dc; vertical-align: top; }
.legal .contact-box { padding: 18px 22px; margin: 14px 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; transition: all .2s ease; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
