/* ReelDownloadr — navy, teal, white, a little violet */
:root {
  --navy: #0d1b3d;
  --navy-deep: #08122b;
  --navy-soft: #1c2b52;
  --teal: #0e7c76;
  --teal-hover: #0a655f;
  --teal-bright: #2dd4bf;
  --violet: #6d5bd0;
  --violet-tint: #efedfc;
  --white: #ffffff;
  --mist: #eef3f7;
  --line: #d3dde7;
  --ink: #16213b;
  --ink-soft: #46536d;
  --err: #b42318;
  --err-tint: #fef3f2;
  --ok-tint: #e7f6f4;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--mist); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header */
.top { background: var(--navy); color: var(--white); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--white); }
.brand-mark { width: 28px; height: 28px; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: #c9d4ea; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; font-size: .95rem; font-weight: 600; }
.nav a:hover { color: var(--white); background: var(--navy-soft); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--teal-bright); border-radius: 0; }

/* Hero + tool */
.hero { background: var(--navy); color: #dbe3f3; padding: 1.5rem 0 3rem; }
@media (max-width: 599px) { .hero .lede { font-size: 1rem; margin-bottom: 0; } .hero-grid { gap: 1.25rem; } }
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-grid > * { min-width: 0; }
.hero h1 { color: var(--white); }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; }
.hero .lede { color: #c3cee4; }
@media (min-width: 900px) {
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3.5rem; }
}
.tool { background: var(--white); color: var(--ink); border-radius: 20px; padding: 1.1rem; box-shadow: 0 24px 60px -24px rgba(2, 8, 24, .7); }
@media (min-width: 600px) { .tool { padding: 1.5rem; } }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--mist); border-radius: 12px; padding: 4px; margin-bottom: 1rem; }
.modes a { text-align: center; text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .95rem; padding: .55rem .25rem; border-radius: 9px; }
.modes a:hover { color: var(--navy); }
.modes a[aria-selected="true"] { background: var(--navy); color: var(--white); }
.grab { display: grid; gap: .7rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .grab { grid-template-columns: minmax(0, 1fr) auto; } }
.field { min-width: 0; position: relative; display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .15s; }
.field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(109, 91, 208, .25); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: .95rem .9rem; color: var(--ink); outline: none; }
.field input::placeholder { color: #8a96ad; }
.ghost { border: 0; background: var(--mist); color: var(--navy); font: inherit; font-size: .85rem; font-weight: 700; padding: .45rem .7rem; border-radius: 8px; margin-right: .4rem; cursor: pointer; }
.ghost:hover { background: #dfe7ef; }
.go { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 12px; background: var(--teal); color: var(--white); font: inherit; font-weight: 800; font-size: 1.05rem; padding: .95rem 1.6rem; cursor: pointer; min-height: 56px; }
.go:hover { background: var(--teal-hover); }
.go[disabled] { cursor: progress; opacity: .85; }
.go-inline { justify-self: start; margin-top: .5rem; }
.spin { display: none; width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { font-size: .9rem; color: var(--ink-soft); margin: .7rem 0 0; }
.status:empty { display: none; }
.status { margin-top: .9rem; font-size: .95rem; }
.status .loading { color: var(--ink-soft); }
.err, .err-box { color: var(--err); background: var(--err-tint); border-radius: 10px; padding: .75rem .9rem; margin: 0; }
.ok-box { background: var(--ok-tint); border-radius: 10px; padding: .75rem .9rem; }

/* Results */
.results { margin-top: 2rem; background: var(--white); color: var(--ink); border-radius: 20px; padding: 1.25rem; outline: none; }
@media (min-width: 600px) { .results { padding: 1.75rem; } }
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; margin-bottom: 1.25rem; }
.res-head h2 { margin: 0; font-size: 1.3rem; }
.res-head p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.cards.single .card { grid-template-columns: minmax(0, 260px) 1fr; }
@media (min-width: 720px) { .cards.multi { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.card { display: grid; gap: 1rem; align-items: start; }
@media (max-width: 560px) { .cards.single .card { grid-template-columns: 1fr; } .cards.single .frame { max-width: 180px; } }
.side { min-width: 0; max-width: 480px; }
.frame { position: relative; border-radius: 16px; overflow: hidden; background: var(--navy); aspect-ratio: 9 / 16; box-shadow: 0 0 0 2px var(--teal-bright), 0 18px 40px -22px rgba(13, 27, 61, .8); max-width: 260px; }
.frame.square { aspect-ratio: 4 / 5; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .badge { position: absolute; left: .6rem; top: .6rem; background: rgba(8, 18, 43, .82); color: var(--white); font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.frame .noimg { display: grid; place-items: center; height: 100%; color: #9fb0d3; font-size: .9rem; padding: 1rem; text-align: center; }
.meta-list { margin: 0 0 .9rem; padding: 0; list-style: none; color: var(--ink-soft); font-size: .93rem; }
.meta-list li { margin: .15rem 0; }
.dl { display: grid; gap: .55rem; }
.dl a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; text-decoration: none; border-radius: 11px; padding: .8rem 1rem; font-weight: 700; border: 2px solid var(--line); color: var(--navy); }
.dl a:hover { border-color: var(--navy); color: var(--navy); }
.dl a.primary { background: var(--teal); border-color: var(--teal); color: var(--white); }
.dl a.primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.dl a.audio { border-color: #c9c1f3; }
.dl a.audio .fmt { background: var(--violet-tint); color: var(--violet); }
.fmt { font-size: .75rem; font-weight: 800; letter-spacing: .02em; padding: .15rem .5rem; border-radius: 6px; background: var(--mist); color: var(--navy); }
.dl a.primary .fmt { background: rgba(255, 255, 255, .18); color: var(--white); }
.note { font-size: .88rem; color: var(--ink-soft); margin: .7rem 0 0; }
.caption { font-size: .93rem; color: var(--ink-soft); border-left: 3px solid var(--line); padding-left: .8rem; margin: 0 0 1rem; overflow-wrap: anywhere; }
.reveal { animation: reveal .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* Content bands */
.band { padding: 3.5rem 0; }
.band-mist { background: var(--mist); }
.two { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1.2fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: s; position: relative; padding-top: 3rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding: .7rem .9rem .7rem 2.6rem; background: var(--white); border-radius: 10px; }
.checks li::before { position: absolute; left: .85rem; top: .7rem; font-weight: 900; }
.checks .yes::before { content: "✓"; color: var(--teal); }
.checks .no::before { content: "✕"; color: var(--err); }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--white); border-radius: 12px; overflow: hidden; font-size: .97rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); font-weight: 700; }
tbody th { font-weight: 700; color: var(--navy); }
tbody tr:last-child > * { border-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.faq { display: grid; gap: .6rem; margin-top: 1.25rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 1rem; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: .95rem 0; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .8rem; font-size: 1.3rem; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1rem; color: var(--ink-soft); }
.more { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .8rem; }
@media (min-width: 720px) { .more { grid-template-columns: repeat(2, 1fr); } }
.more a { display: block; text-decoration: none; padding: 1rem 1.1rem; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.more a:hover { border-color: var(--teal); }
.more strong { display: block; color: var(--navy); }
.more span { font-size: .93rem; color: var(--ink-soft); }

/* Text pages and article */
.page-text { padding: 3rem 0 4rem; }
.article-head { padding: 3rem 0 1rem; }
.article .prose { padding-bottom: 2rem; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.meta { font-size: .9rem; color: var(--ink-soft); }
.contact { display: grid; gap: .35rem; margin-top: 1.5rem; }
.contact label { font-weight: 700; color: var(--navy); margin-top: .6rem; }
.contact input, .contact textarea { font: inherit; padding: .75rem .85rem; border: 2px solid var(--line); border-radius: 10px; width: 100%; }
.contact input:focus, .contact textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(109, 91, 208, .25); }
.hp { position: absolute; left: -5000px; }

/* Footer */
.foot { background: var(--navy-deep); color: #a9b6d1; padding: 3rem 0 1.5rem; font-size: .95rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot a { display: block; color: #d3dcef; text-decoration: none; padding: .2rem 0; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot-brand { color: var(--white); font-weight: 800; font-size: 1.1rem; }
.foot-h { color: var(--white); font-weight: 700; margin-bottom: .4rem; }
.foot-note { max-width: 46ch; }
.foot-base { border-top: 1px solid #1f2d52; margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }

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