/* NovaByteWorks site: one stylesheet for every page. The product pages (Instagram, Pinterest,
   TikTok) share every component; each page sets its product's colours as the tokens below in its
   <head>, so the same components come out in the platform's palette. Built by web/build.py. */

:root {
  --ink: #101828; --muted: #475467; --faint: #667085; --rule: #E4E7EC; --bg: #FFFFFF; --soft: #F8F9FC;
  --accent: #E1306C; --accent-soft: #FDF2F6; --accent-glow: rgba(225, 48, 108, .6);
  --grad: linear-gradient(100deg, #E1306C, #FD7C3C);
  --brand: linear-gradient(100deg, #833AB4 0%, #E1306C 45%, #FD7C3C 80%, #FCAF45 100%);
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);
  --ok: #12B76A; --surface: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
body::before { content: ""; display: block; height: 4px; background: var(--brand); }
a { color: #175CD3; }
img { max-width: 100%; height: auto; display: block; }
code { font-size: .92em; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* buttons: one primary, one ghost, everywhere */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; border-radius: 10px; padding: 12px 20px; white-space: nowrap; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px var(--accent-glow); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { color: var(--ink); border: 1px solid var(--rule); background: #fff; }
.btn.ghost:hover { background: var(--soft); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: default; }

/* top bar */
.nav { display: flex; align-items: center; gap: 12px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* the product tiles: the family's three downloaders in their platforms' colours, the current one filled */
.site-products { margin: 2px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .site-products { grid-template-columns: repeat(3, 236px); } }
.site-products .sp { --g: linear-gradient(100deg, #FCAF45, #F77737 40%, #E1306C 80%, #C13584); --glow: rgba(225, 48, 108, .38); display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 9px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--g) border-box; transition: transform .15s, box-shadow .15s; }
.site-products .sp-pin { --g: linear-gradient(100deg, #E60023, #BD081C); --glow: rgba(230, 0, 35, .38); }
/* TikTok is black with cyan and rose: white with that edge like the others, black only when it is the page */
.site-products .sp-tt { --g: linear-gradient(100deg, #25F4EE, #FE2C55); --glow: rgba(37, 244, 238, .35); }
.site-products .sp.sp-tt.cur { background: linear-gradient(120deg, #0B0B10, #1E1E2A) padding-box, var(--g) border-box; color: #fff; border-width: 2.5px; box-shadow: 0 10px 22px -10px var(--glow), 0 0 0 4px rgba(37, 244, 238, .12); }
.site-products .sp.sp-tt.cur small { color: #A3A9B5; }
.site-products .sp img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.site-products .sp span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.site-products .sp b { font-size: .98rem; letter-spacing: -.01em; }
.site-products .sp small { font-size: .76rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-products .sp.cur { background: var(--g) border-box; color: #fff; box-shadow: 0 10px 22px -10px var(--glow); }
.site-products .sp.cur small { color: rgba(255, 255, 255, .88); }
.site-products .sp.soon { opacity: .9; }
.site-products a.sp:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--glow); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-block: 36px 24px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; margin: 16px 0 16px; }
.grad-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dek { font-size: 1.18rem; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow-lg); background: #111; }
.also { margin: 16px 0 0; font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.also img { width: 20px; height: 20px; border-radius: 5px; }
.also a { color: var(--ink); font-weight: 700; }
@media (min-width: 940px) { .hero { grid-template-columns: 1fr 1.1fr; padding-block: 56px 40px; } }

/* sections of a product page */
.product section { padding-block: 64px; }
.section-head { max-width: 40em; margin-bottom: 32px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }
.band { background: var(--soft); border-block: 1px solid var(--rule); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.new { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.split + .split { margin-top: 72px; }
.split > * { min-width: 0; }   /* a long line in a <pre> must not widen the column past the page */
.split h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 12px; }
.split p { color: var(--muted); margin: 0 0 12px; }
.split ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.25fr; gap: 56px; } .split.flip { grid-template-columns: 1.25fr 1fr; } .split.flip > :first-child { order: 2; } }

.tree { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .92rem; line-height: 1.5; margin: 14px 0 0; }

.video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); max-width: 920px; margin: 0 auto; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 72px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* plans: the same three cards on the product pages and the pricing page */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 28px 26px 26px; box-shadow: var(--shadow); }
.plan.best { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--brand) border-box; box-shadow: var(--shadow-lg); }
.badge { position: absolute; top: -13px; left: 26px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan h3, .plan h2 { font-size: 1.1rem; margin: 0; }
.plan .for { color: var(--faint); font-size: .93rem; margin: 2px 0 16px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.plan .price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan .price .per { color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 26px; padding: 22px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; flex: 1; }
.plan li { position: relative; padding-left: 30px; color: var(--muted); font-size: .97rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .18em; width: 20px; height: 20px; border-radius: 50%; background: #ECFDF3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312B76A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan li b { color: var(--ink); font-weight: 650; }
.plans-note { color: var(--muted); margin: 22px 0 0; font-size: .96rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px 32px; margin-top: 40px; padding: 26px 28px; background: var(--soft); border: 1px solid var(--rule); border-radius: 16px; }
.fact { display: flex; gap: 14px; }
.fact .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.fact .ico svg { width: 20px; height: 20px; }
.fact h3 { font-size: 1rem; margin: 0 0 2px; }
.fact p { margin: 0; color: var(--muted); font-size: .94rem; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; border-radius: 20px; padding: 56px 24px; background: var(--brand); color: #fff; margin-block: 24px 64px; }
.final h2 { color: #fff; margin-bottom: 8px; }
.final p { margin: 0 0 24px; opacity: .92; }
.final .btn { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }

/* article pages: a centred head, then sections */
main.article { padding-block: 48px 24px; }
main.article .head { text-align: center; max-width: 40em; margin: 0 auto 48px; }
main.article .head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; margin: 14px 0; }
main.article .head .dek { margin: 0 auto 26px; }
main.article .head .ctas { justify-content: center; }
main.article section { margin-top: 72px; }
main.article > section > h2, main.article > h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 22px; }
main.article .final { margin-top: 80px; padding: 48px 24px; }
main.article .final h2 { margin: 0 0 8px; }
main.article .final p { margin: 0 0 22px; }
main.prose { max-width: 68ch; margin-inline: 0; padding-block: 48px 64px; }
main.narrow { max-width: 680px; margin-inline: 0; padding-block: 48px 64px; }
main.narrow h1 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 6px; }
main.narrow h2 { font-size: 1.25rem; margin: 26px 0 8px; }
@media (min-width: 1160px) { main.prose, main.narrow { margin-left: calc((100% - 1120px) / 2); } }
main.prose h1 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 4px; }
main.prose .date { color: var(--faint); margin: 0 0 28px; }
main.prose h2 { font-size: 1.2rem; margin: 28px 0 8px; }
main.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
main.prose th, main.prose td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.number { background: var(--soft); border: 1px solid var(--rule); border-radius: 16px; padding: 24px 26px; }
.number b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; }
.number p { margin: 0; color: var(--muted); font-size: .96rem; }

.two { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.box { border: 1px solid var(--rule); border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow); }
.box h2 { font-size: 1.3rem; margin-bottom: 16px; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.box li { position: relative; padding-left: 30px; color: var(--muted); }
.box li b { color: var(--ink); }
.box li::before { content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 50%; }
.box.yes li::before { background: #ECFDF3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312B76A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.box.rules li::before { background: #FEF3F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D92D20' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 12px no-repeat; }
.box .after { margin: 16px 0 0; font-size: .92rem; color: var(--faint); }

.qa { display: grid; gap: 20px 56px; }
@media (min-width: 900px) { .qa { grid-template-columns: 1fr 2fr; } }
.qa h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.qa .side p { color: var(--muted); margin: 0; }
.qa details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.qa details:first-child { padding-top: 4px; }
.qa summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.qa details[open] summary::after { content: "–"; }
.qa details p { color: var(--muted); margin: 10px 0 0; }

/* forms (buy, feedback, manage, thanks) */
.card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow); }
label { display: block; font-weight: 650; margin: 14px 0 6px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.muted { color: var(--muted); }
.err { color: #D92D20; }

footer { border-top: 1px solid var(--rule); padding-block: 26px 40px; color: var(--faint); font-size: .9rem; margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .fine { flex-basis: 100%; font-size: .82rem; }

@media (max-width: 640px) {
  .nav nav a.hide-sm { display: none; }
  .product section { padding-block: 48px; }
  .site-products { gap: 8px; }
  .site-products .sp { min-height: 48px; padding: 6px 10px; gap: 8px; border-radius: 12px; }
  .site-products .sp img { width: 28px; height: 28px; }
  .site-products .sp small { display: none; }
}
