/* Needlemap website — hand-written, mobile-first, RTL-aware (logical properties). */
:root {
  --lagoon: #0F7A85;
  --lagoon-deep: #0A5F69;
  --lagoon-light: #2FB8B2;
  --coral: #FF6F5E;
  --coral-deep: #C7412F;
  --ink: #111A2E;
  --ink-2: #1B2742;
  --ink-3: #26344F;
  --paper: #F6F3EC;
  --paper-2: #EFEAE0;
  --slate: #8C96AA;
  --text: #111A2E;
  --muted: #55607A;
  --line: #E3DED2;
  --white: #FFFFFF;
  --ok: #1E8E5A;
  --warn: #B7791F;
  --error: #C7412F;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(17, 26, 46, .06), 0 8px 24px rgba(17, 26, 46, .08);
  --shadow-lg: 0 2px 6px rgba(17, 26, 46, .10), 0 24px 60px rgba(17, 26, 46, .22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Devanagari", "Microsoft YaHei", "Yu Gothic UI", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", Menlo, monospace;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--white); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); text-underline-offset: .18em; }
a:hover { color: var(--lagoon-deep); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, .license-key { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--coral); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- buttons ---------- */
.btn { --b: var(--lagoon); display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .72rem 1.25rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--lagoon); color: var(--white); box-shadow: 0 6px 18px rgba(15, 122, 133, .28); }
.btn-accent:hover { background: var(--lagoon-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(246, 243, 236, .35); }
.btn-ghost:hover { border-color: var(--paper); color: var(--white); background: rgba(246, 243, 236, .06); }
.btn-outline { background: var(--white); color: var(--lagoon-deep); border-color: var(--lagoon); }
.btn-outline:hover { background: var(--lagoon); color: var(--white); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: .3em; font-weight: 650; text-decoration: none; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow .icon, [dir="rtl"] .lb-next .icon, [dir="rtl"] .lb-prev .icon { transform: scaleX(-1); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center-row { justify-content: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 26, 46, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(246, 243, 236, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand img { height: 38px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(246, 243, 236, .2); background: transparent; color: var(--paper); cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.site-nav { display: none; position: absolute; inset-inline: 0; top: 64px; background: var(--ink); border-bottom: 1px solid rgba(246, 243, 236, .1); padding: .5rem 1.25rem 1.25rem; max-height: calc(100vh - 64px); overflow-y: auto; }
.nav-open .site-nav, .no-js .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul a { display: block; padding: .8rem .25rem; color: rgba(246, 243, 236, .85); text-decoration: none; font-weight: 550; border-bottom: 1px solid rgba(246, 243, 236, .07); }
.site-nav > ul a:hover, .site-nav > ul a[aria-current="page"] { color: var(--white); }
.site-nav > ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--coral); padding-inline-start: .75rem; }
[dir="rtl"] .site-nav > ul a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--coral); }
.nav-actions { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }

.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; border: 1px solid rgba(246, 243, 236, .22); color: var(--paper); cursor: pointer; font-size: .92rem; user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary .icon { width: 1.1em; height: 1.1em; }
.lang-switch[open] summary { background: rgba(246, 243, 236, .08); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 60; background: var(--white); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; width: min(92vw, 420px); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; margin: 0; max-height: 70vh; overflow-y: auto; }
.lang-menu a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .93rem; text-align: start; }
.lang-menu a:hover { background: var(--paper); }
.lang-menu a[aria-current="true"] { background: rgba(15, 122, 133, .1); color: var(--lagoon-deep); font-weight: 700; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: flex; position: static; align-items: center; gap: 1.25rem; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; gap: .15rem; }
  .site-nav > ul a { border: 0; padding: .5rem .7rem; border-radius: 8px; font-size: .95rem; }
  .site-nav > ul a[aria-current="page"], [dir="rtl"] .site-nav > ul a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--coral); padding-inline-start: .7rem; border-radius: 0; }
  .nav-actions { margin: 0; }
}

/* ---------- hero ---------- */
.hero, .page-hero { position: relative; color: var(--paper); background: radial-gradient(1100px 520px at 85% -10%, rgba(47, 184, 178, .28), transparent 60%), radial-gradient(800px 420px at -10% 110%, rgba(255, 111, 94, .14), transparent 60%), var(--ink); overflow: hidden; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; background: url("../brand/pattern_stitch.svg") repeat; background-size: 48px; opacity: .9; pointer-events: none; }
.hero > .container, .page-hero > .container { position: relative; }
.hero { padding-block: 3rem 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: .4em; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.hero h1::after { content: ""; display: block; width: 88px; margin-top: .45em; border-top: 3px dashed var(--coral); }
[dir="rtl"] .hero h1::after { margin-inline-start: 0; }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: rgba(246, 243, 236, .82); max-width: 40em; }
.lead-dark { font-size: 1.12rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; color: var(--lagoon-light); margin-bottom: 1rem; }
.eyebrow-dark { color: var(--lagoon); }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .45rem; color: rgba(246, 243, 236, .85); font-size: .97rem; }
.hero-points li { display: flex; gap: .55rem; align-items: center; }
.hero-points .icon { color: var(--lagoon-light); }
.hero-media .shot, .hero-media .shot-placeholder { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(246, 243, 236, .1); }
@media (min-width: 980px) {
  .hero { padding-block: 4.5rem 5rem; }
  .hero-grid { grid-template-columns: 1fr 1.25fr; gap: 3.5rem; }
}
.page-hero { padding-block: 3.25rem 3rem; }
.page-hero.slim { padding-block: 2.5rem 2.25rem; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { margin-inline: auto; }
.page-hero .container:not(.center) .lead { margin-inline: 0; }
.muted-light { color: rgba(246, 243, 236, .65); }
.app-icon { margin: 0 auto 1rem; width: 96px; height: 96px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35)); }

/* ---------- format strip ---------- */
.format-strip { background: var(--ink-2); color: var(--paper); border-top: 1px solid rgba(246, 243, 236, .06); }
.format-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.25rem; padding-block: 1rem; }
.format-label { font-size: .9rem; color: rgba(246, 243, 236, .7); }
.format-badges { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.format-badges li { font-family: var(--mono); font-weight: 700; font-size: .9rem; letter-spacing: .06em; padding: .3rem .7rem; border-radius: 6px; border: 1px solid rgba(246, 243, 236, .22); }
.format-badges .badge-primary { background: var(--coral); border-color: var(--coral); color: var(--ink); }

/* ---------- sections ---------- */
.section { padding-block: 3.5rem; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-head { margin-bottom: 2.25rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(15, 122, 133, .1); color: var(--lagoon); margin-bottom: 1rem; }
.icon-badge .icon { width: 24px; height: 24px; }
.section-ink .icon-badge { background: rgba(47, 184, 178, .15); color: var(--lagoon-light); }

/* showcase rows */
.showcase { display: grid; gap: 3.5rem; margin-top: 2.5rem; }
.showcase-row { display: grid; gap: 1.5rem; align-items: center; }
.showcase-text p { color: var(--muted); font-size: 1.04rem; }
@media (min-width: 900px) {
  .showcase-row { grid-template-columns: 1fr 1.35fr; gap: 3.5rem; }
  .showcase-row.reverse .showcase-text { order: 2; }
  .showcase-row.no-media { grid-template-columns: minmax(0, 720px); justify-content: center; }
}

/* screenshot frames */
.shot { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow); cursor: zoom-in; aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.015); }
.shot-zoom { position: absolute; inset-inline-end: .7rem; bottom: .7rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(17, 26, 46, .7); color: var(--white); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; }
.shot-zoom .icon { width: 20px; height: 20px; }
.shot-placeholder { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); border: 1px solid rgba(140, 150, 170, .25); box-shadow: var(--shadow); display: flex; flex-direction: column; color: rgba(246, 243, 236, .75); }
.shot-placeholder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(246, 243, 236, .06) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.ph-bar { display: flex; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid rgba(246, 243, 236, .08); }
.ph-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(246, 243, 236, .18); }
.ph-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; gap: .35rem; }
.ph-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: rgba(47, 184, 178, .14); color: var(--lagoon-light); margin-bottom: .4rem; }
.ph-icon .icon { width: 28px; height: 28px; }
.ph-caption { font-weight: 650; color: var(--paper); font-size: .98rem; }
.ph-note { font-size: .82rem; color: rgba(246, 243, 236, .55); }
.section-paper .shot-placeholder, .section .shot-placeholder { border-color: transparent; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.25rem; counter-reset: none; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.step p { color: var(--muted); margin: 0; }
.step p + p { margin-top: .6rem; }
.step-num { position: absolute; inset-inline-end: 1.2rem; top: 1rem; font-size: 2.4rem; font-weight: 800; line-height: 1; color: rgba(15, 122, 133, .14); }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps .step:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; inset-inline-end: -1.25rem; width: 1.25rem; border-top: 2px dashed var(--coral); }
}
.steps-detailed { margin-top: 3rem; }

/* features */
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature-card { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature-card:hover { border-color: rgba(15, 122, 133, .4); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature-grid.compact .feature-card { background: var(--white); }
.disclaimer { margin-top: 2rem; font-size: .9rem; color: var(--muted); text-align: center; }

.check-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list .icon { color: var(--lagoon-light); margin-top: .2em; width: 1.1em; height: 1.1em; }
.check-list.dark .icon { color: var(--lagoon); }
.check-list.small { font-size: .93rem; }

/* formats */
.formats-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .formats-grid { grid-template-columns: 1.3fr 1fr; } }
.formats-card { background: var(--ink-2); border: 1px solid rgba(246, 243, 236, .08); border-radius: var(--radius); padding: 1.5rem; }
.formats-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.formats-table th { text-align: start; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(246, 243, 236, .55); padding: .5rem 0; border-bottom: 1px solid rgba(246, 243, 236, .12); }
.formats-table td { padding: .75rem 0; border-bottom: 1px solid rgba(246, 243, 236, .07); vertical-align: top; }
.formats-table td:first-child { width: 34%; padding-inline-end: 1rem; font-family: var(--mono); }
.pill { display: inline-block; font-family: var(--font); font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: .12rem .5rem; border-radius: 999px; background: rgba(255, 111, 94, .16); color: var(--coral-deep); vertical-align: middle; }
.section-ink .pill { background: var(--coral); color: var(--ink); }
.pill-warn { background: #FFF1D6; color: #8A5A00; }

/* FAQ */
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--lagoon); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--lagoon-deep), var(--lagoon) 55%, #138C8E); color: var(--white); }
.cta-inner { display: grid; gap: 1.5rem; padding-block: 3rem; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-band .btn-accent { background: var(--white); color: var(--lagoon-deep); box-shadow: none; }
.cta-band .btn-accent:hover { background: var(--paper); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* pricing */
.pricing-section { background: linear-gradient(var(--paper), var(--white)); }
.pricing-grid { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.6rem 1.6rem; box-shadow: var(--shadow); }
.price-card.best { border: 2px solid var(--lagoon); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .price-card.best { transform: translateY(-10px); } }
.price-card .btn { margin-top: auto; }
.price-card .check-list { margin-bottom: 1.6rem; }
.ribbon { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .35rem; background: var(--coral); color: var(--ink); font-weight: 750; font-size: .8rem; padding: .32rem .85rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 14px rgba(255, 111, 94, .35); }
[dir="rtl"] .ribbon { transform: translateX(50%); }
.ribbon .icon { width: 1em; height: 1em; }
.price-tagline { color: var(--muted); }
@media (min-width: 900px) { .price-tagline { min-height: 3.2em; } }
.price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); }
.pricing-note { display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--muted); font-size: .93rem; margin-top: 1.4rem; text-align: center; flex-wrap: wrap; }

/* cards & forms */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card h2 { font-size: 1.3rem; }
.two-col { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.form-narrow { max-width: 520px; margin-inline: auto; }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 620; margin-bottom: .35rem; font-size: .95rem; }
.req { color: var(--coral-deep); }
input[type="text"], input[type="email"], input[type="search"], input[type="password"], input[type="number"], textarea, select { width: 100%; font: inherit; padding: .7rem .85rem; border: 1.5px solid #CFC9BC; border-radius: var(--radius-sm); background: var(--white); color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px rgba(15, 122, 133, .15); }
.has-error input, .has-error textarea { border-color: var(--error); }
.hint { font-size: .86rem; color: var(--muted); margin: .35rem 0 0; }
.error { color: var(--error); font-size: .9rem; margin: .35rem 0 0; font-weight: 550; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.checkbox label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 450; }
.checkbox input { margin-top: .3em; width: 1.1rem; height: 1.1rem; accent-color: var(--lagoon); flex: none; }
.input-group { display: flex; gap: .5rem; }
.input-group input { flex: 1; text-transform: uppercase; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
legend { padding: 0; }

.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .96rem; border: 1px solid; }
.alert .icon { margin-top: .15em; }
.alert-ok { background: #E8F6EF; border-color: #BFE5D1; color: #14563A; }
.alert-error { background: #FDECEA; border-color: #F5C2BB; color: #8E2A1D; }
.alert-info { background: #E7F4F5; border-color: #BFE0E3; color: #0A4E56; }
.alert-warn { background: #FFF5E0; border-color: #F3D9A4; color: #6E4A00; }

/* checkout */
.checkout-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 1.5fr 1fr; } .order-summary { position: sticky; top: 88px; } }
.plan-picker { display: grid; gap: .6rem; }
.plan-option { display: block; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option-body { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 1.1rem; border: 1.5px solid #CFC9BC; border-radius: var(--radius-sm); transition: border-color .15s, background .15s; }
.plan-option input:checked + .plan-option-body { border-color: var(--lagoon); background: rgba(15, 122, 133, .06); box-shadow: 0 0 0 3px rgba(15, 122, 133, .12); }
.plan-option input:focus-visible + .plan-option-body { outline: 3px solid var(--coral); outline-offset: 2px; }
.plan-option-name { font-weight: 650; }
.plan-option-price { font-weight: 750; font-variant-numeric: tabular-nums; }
.provider-picker { display: grid; gap: .5rem; }
.provider-option { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1.5px solid #CFC9BC; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
.provider-option input { accent-color: var(--lagoon); width: 1.1rem; height: 1.1rem; }
.provider-option:has(input:checked) { border-color: var(--lagoon); background: rgba(15, 122, 133, .06); }
.coupon-msg { min-height: 1.4em; font-size: .92rem; margin: .4rem 0 0; }
.coupon-msg.ok { color: var(--ok); font-weight: 600; }
.summary-lines { margin: 0 0 1rem; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.summary-lines dt { color: var(--muted); }
.summary-lines dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.summary-lines .total { border-bottom: 0; font-size: 1.2rem; }
.summary-lines .total dt { color: var(--text); font-weight: 700; }
.summary-lines .total dd { font-weight: 800; }
[hidden] { display: none !important; }

/* success / licence */
.success-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--lagoon); color: var(--white); margin-bottom: 1rem; box-shadow: 0 0 0 8px rgba(47, 184, 178, .2); }
.success-mark .icon { width: 34px; height: 34px; stroke-width: 2.6; }
.key-card h2 { margin-bottom: .8rem; }
.key-box { display: flex; flex-direction: column; gap: .75rem; background: var(--paper); border: 1.5px dashed var(--lagoon); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .6rem; }
.license-key { font-size: .95rem; line-height: 1.55; word-break: break-all; color: var(--ink); user-select: all; direction: ltr; text-align: left; unicode-bidi: isolate; }
.key-inactive { border-color: var(--slate); opacity: .65; }
@media (min-width: 700px) { .key-box { flex-direction: row; align-items: center; } .key-box .license-key { flex: 1; } }
.copy-btn.copied { background: var(--ok); border-color: var(--ok); color: var(--white); }
.key-meta { font-size: .92rem; color: var(--muted); }
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.num-list { padding-inline-start: 1.3rem; display: grid; gap: .5rem; }
.order-facts { display: grid; gap: .25rem; }
.order-facts > div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .35rem 0; }
.order-facts dt { color: var(--muted); }
.order-facts dd { margin: 0; font-weight: 600; }
.status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--paper-2); color: var(--muted); }
.status-active, .status-valid, .status-fulfilled { background: #E3F4EC; color: #14563A; }
.status-revoked, .status-refunded { background: #FDE7E4; color: #8E2A1D; }
.status-expired, .status-replaced, .status-cancelled { background: #F0EDE6; color: #5B5B5B; }
.spinner { width: 42px; height: 42px; margin: 0 auto 1.5rem; border-radius: 50%; border: 4px solid rgba(15, 122, 133, .2); border-top-color: var(--lagoon); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: start; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .5rem; border-bottom: 1.5px solid var(--line); }
.table td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
code.small, .small { font-size: .82rem; }

/* download */
.download-box { margin-top: 1.75rem; display: grid; justify-items: center; gap: .6rem; }
.download-meta { color: rgba(246, 243, 236, .75); font-size: .92rem; margin: 0; }
.download-sha { font-size: .78rem; color: rgba(246, 243, 236, .55); margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.download-sha code { color: rgba(246, 243, 236, .75); }
.download-free { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; padding: .6rem 1rem; border-radius: 999px; background: rgba(47, 184, 178, .14); color: var(--paper); font-size: .93rem; }
.spec-list { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: .55rem 1rem; margin: 0; }
.spec-list dt { font-weight: 650; }
.spec-list dd { margin: 0; color: var(--muted); }

/* gallery & demo */
.demo-frame { max-width: 1040px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink); }
.demo-frame .shot-placeholder { border-radius: 0; box-shadow: none; }
.demo-video, .demo-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery-item { margin: 0; }
.gallery-item figcaption { margin-top: .6rem; font-weight: 600; font-size: .95rem; }

/* prose */
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p, .prose li { color: #2E384D; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9, 13, 24, .94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem 1rem; }
.lightbox figure { margin: 0; max-width: min(1600px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 8rem); width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: var(--paper); margin-top: .8rem; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(246, 243, 236, .12); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(246, 243, 236, .25); }
.lb-close { top: .75rem; inset-inline-end: .75rem; }
.lb-prev { inset-inline-start: .75rem; top: 50%; }
.lb-prev .icon { transform: scaleX(-1); }
[dir="rtl"] .lb-prev .icon { transform: none; }
.lb-next { inset-inline-end: .75rem; top: 50%; }
body.lb-open { overflow: hidden; }

/* footer */
.site-footer { background: var(--ink); color: rgba(246, 243, 236, .75); padding-top: 3rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 40px; width: auto; margin-bottom: .9rem; }
.footer-brand p { max-width: 30em; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: rgba(246, 243, 236, .78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid rgba(246, 243, 236, .1); margin-top: 2.5rem; padding-block: 1.25rem 1.5rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-formats { font-family: var(--mono); letter-spacing: .08em; color: var(--coral); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

@media print { .site-header, .site-footer, .lightbox, .copy-btn { display: none !important; } .page-hero { background: none; color: #000; } .page-hero h1 { color: #000; } }
