/* Free HTML to APK : site styles. Brand: the launcher icon's orange "HTML" / green "APK" split. */
:root {
  --orange: #E2552A;
  --orange-deep: #B8401C;
  --green: #1E8F55;
  --green-deep: #146B3F;
  --ink: #1B1714;
  --ink-2: #3D3530;
  --muted: #6B625C;
  --paper: #FBF8F6;
  --paper-2: #F4EEEA;
  --card: #FFFFFF;
  --line: #EADFD8;
  --code-bg: #1F1A17;
  --code-ink: #F6EDE7;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(27, 23, 20, .05), 0 8px 28px rgba(27, 23, 20, .07);
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F6EFEA; --ink-2: #DCD2CB; --muted: #A89D95;
    --paper: #14110F; --paper-2: #1C1815; --card: #1E1A17; --line: #2F2925;
    --code-bg: #0E0C0B; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--orange-deep); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #FF9B78; } }
code, pre, kbd { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
:not(pre) > code { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 850; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.08rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { color: var(--orange); font-weight: 850; }
.brand span.apk { color: var(--green); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.brand { flex-shrink: 0; }
.nav .lang-pick { max-width: 150px; }
/* Set by the header script when the full nav does not fit on one row (long labels in some languages). */
.site-head.nav-compact .menu-btn { display: block; }
.site-head.nav-compact .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
.site-head.nav-compact .nav.open { display: flex; }
.site-head.nav-compact .nav .btn { margin: 6px 0 0; text-align: center; }
.site-head.nav-compact .nav .lang-pick, .nav.open .lang-pick { max-width: none; margin: 6px 0 0; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.nav .btn { margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--ink); font-size: 20px; cursor: pointer; }
@media (max-width: 1060px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 6px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; padding: 13px 20px; font-weight: 750; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff !important; box-shadow: 0 6px 18px rgba(226, 85, 42, .32); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-green { background: var(--green); color: #fff !important; box-shadow: 0 6px 18px rgba(30, 143, 85, .28); }
.btn-green:hover { background: var(--green-deep); }
.btn-ghost { background: var(--card); color: var(--ink) !important; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 9px 14px; font-size: .92rem; border-radius: 11px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.play-btn small { display: block; font-size: .7rem; font-weight: 600; opacity: .85; letter-spacing: .02em; }
.play-btn span { text-align: left; line-height: 1.15; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--green-deep); background: color-mix(in srgb, var(--green) 12%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #7BD9A6; } }
.hero h1 .o { color: var(--orange); }
.hero h1 .g { color: var(--green); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: .88rem; font-weight: 650; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.chips li::before { content: "✓ "; color: var(--green); font-weight: 800; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; } }

/* The signature visual: an HTML card on orange, an arrow badge, an app on green : split diagonally like the icon. */
.split-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--orange) 0 50%, var(--green) 50% 100%); }
.split-art .code-card { position: absolute; left: 6%; top: 6%; width: 52%; background: var(--code-bg); color: var(--code-ink); border-radius: 16px; padding: 12px 12px 14px; font: clamp(9px, 1.15vw, 12px)/1.6 ui-monospace, Menlo, Consolas, monospace; box-shadow: 0 18px 40px rgba(0,0,0,.28); transform: rotate(-4deg); }
.code-card .dots { display: flex; gap: 6px; margin-bottom: 10px; }
.code-card .dots i { width: 9px; height: 9px; border-radius: 50%; background: #5A4F48; }
.code-card .dots i:first-child { background: var(--orange); }
.code-card .dots i:nth-child(2) { background: #E8B04B; }
.code-card .dots i:nth-child(3) { background: var(--green); }
.code-card .t { color: #FF9B78; } .code-card .a { color: #9ED8B8; } .code-card .s { color: #F2D38A; } .code-card .c { color: #9C8F86; }
.split-art .badge { position: absolute; left: 52%; top: 57%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); background: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.split-art .badge svg { width: 52%; height: 52%; }
.split-art .phone { position: absolute; right: 8%; bottom: 7%; width: 36%; aspect-ratio: 9 / 18; background: #0F0D0C; border-radius: 26px; padding: 7px; box-shadow: 0 22px 44px rgba(0,0,0,.32); transform: rotate(5deg); }
.phone .screen { width: 100%; height: 100%; border-radius: 20px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.phone .bar { height: 22%; background: linear-gradient(135deg, var(--orange), #F08A4B); padding: 12% 10% 0; color: #fff; font-weight: 800; font-size: 11px; }
.phone .rows { padding: 9%; display: grid; gap: 7px; }
.phone .rows i { display: block; height: 10px; border-radius: 6px; background: var(--paper-2); }
.phone .rows i:nth-child(2) { width: 70%; } .phone .rows i:nth-child(4) { width: 55%; }
.phone .tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 9%; }
.phone .tile-row b { aspect-ratio: 1; border-radius: 10px; background: color-mix(in srgb, var(--green) 18%, var(--card)); }
.phone .tile-row b:first-child { background: color-mix(in srgb, var(--orange) 18%, var(--card)); }
.split-art .label { position: absolute; font-weight: 900; color: #fff; letter-spacing: -.02em; font-size: clamp(18px, 3.6vw, 30px); text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.split-art .label.l1 { right: 9%; top: 9%; }
.split-art .label.l2 { left: 9%; bottom: 8%; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; display: block; }
.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 54px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: 6px; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; background: color-mix(in srgb, var(--orange) 12%, transparent); }
.card:nth-child(even) .ico { background: color-mix(in srgb, var(--green) 13%, transparent); }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 850; color: #fff; background: var(--orange); }
.step:nth-child(2)::before { background: linear-gradient(135deg, var(--orange) 0 50%, var(--green) 50%); }
.step:nth-child(3)::before { background: var(--green); }

/* Code block */
pre.code { background: var(--code-bg); color: var(--code-ink); border-radius: 16px; padding: 18px 20px; overflow-x: auto; line-height: 1.6; margin: 0; box-shadow: var(--shadow); font-size: .9rem; }
pre.code .k { color: #FF9B78; } pre.code .s { color: #F2D38A; } pre.code .f { color: #9ED8B8; } pre.code .c { color: #9C8F86; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--orange) 0 50%, var(--green) 50%); }

/* Free band: full-width diagonal split */
.band { background: linear-gradient(115deg, var(--orange) 0 50%, var(--green) 50% 100%); color: #fff; padding: 64px 0; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.92); }
.band .grid > div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(4px); }
.band strong { display: block; font-size: 1.6rem; font-weight: 850; letter-spacing: -.02em; }

/* Templates */
.tpl { display: flex; gap: 14px; align-items: flex-start; }
.tpl .em { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex: none; }
.tpl h3 { font-size: 1.02rem; margin: 0 0 4px; }
.tpl p { font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { font-size: .75rem; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.tags span.off { color: var(--green-deep); background: color-mix(in srgb, var(--green) 12%, transparent); border-color: transparent; }
@media (prefers-color-scheme: dark) { .tags span.off { color: #7BD9A6; } }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter button { font: inherit; font-weight: 650; font-size: .9rem; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); }

/* Docs */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-layout > * { min-width: 0; }
.doc-nav { position: sticky; top: 86px; font-size: .92rem; max-height: calc(100vh - 110px); overflow: auto; }
.doc-nav a { display: block; color: var(--ink-2); text-decoration: none; padding: 5px 10px; border-radius: 8px; }
.doc-nav a:hover { background: var(--paper-2); }
.doc-nav strong { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 10px 6px; }
.api { border-top: 1px solid var(--line); padding: 18px 0; }
.api code.sig { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }
.api p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } .doc-nav { position: static; max-height: none; } }

/* Long-form pages (privacy, terms, guide) */
.wrap.prose > * { max-width: 780px; }
.prose table { max-width: 860px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 700; font-size: .85rem; }
.note { border-left: 4px solid var(--green); background: var(--card); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 1.2em 0; }
.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 46em; }
.updated { font-size: .9rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 36px; margin-top: 24px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.site-foot h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--orange); }
.site-foot .fine { color: var(--muted); margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

.center { text-align: center; }
.mt0 { margin-top: 0; }
.final-cta { text-align: center; }
.final-cta .cta-row { justify-content: center; }

/* ---------- live app showcase: real screens in a phone frame ---------- */
.showcase { position: relative; overflow: hidden; padding: 84px 0; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; gap: 36px; } }
.stage { position: sticky; top: 84px; display: grid; place-items: center; min-height: 640px; }
@media (max-width: 900px) { .stage { position: relative; top: 0; } }
.glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 9s ease-in-out infinite alternate; pointer-events: none; }
.glow.o { background: var(--orange); left: 4%; top: 6%; }
.glow.g { background: var(--green); right: 4%; bottom: 4%; animation-delay: -4.5s; }
@keyframes drift { from { transform: translate(-20px, 10px) scale(1); } to { transform: translate(24px, -18px) scale(1.12); } }
.device { position: relative; z-index: 2; width: 300px; aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2A2420, #0E0B0A); box-shadow: 0 40px 80px rgba(27, 23, 20, .35), inset 0 0 0 2px rgba(255,255,255,.07), 0 0 0 1px rgba(0,0,0,.4); transform: rotate(-2deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.stage:hover .device { transform: rotate(0deg) translateY(-6px); }
.device::before { content: ""; position: absolute; top: 20px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: #050404; z-index: 3; }
.device .side { position: absolute; right: -3px; top: 120px; width: 3px; height: 60px; border-radius: 2px; background: #2A2420; }
.screen-wrap { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #FBF8F6; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 6px 26px 0; font: 600 12px/1 system-ui, sans-serif; color: #1B1714; pointer-events: none; }
.statusbar i { display: inline-block; width: 15px; height: 9px; border: 1.5px solid currentColor; border-radius: 3px; margin-left: 4px; position: relative; }
.statusbar i::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: currentColor; border-radius: 1px; }
.slides { position: absolute; inset: 40px 0 0 0; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: translateX(14%) scale(1.04); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.slides img.on { opacity: 1; transform: none; }
.slides img.off { opacity: 0; transform: translateX(-10%) scale(.98); }
.homebar { position: absolute; bottom: 8px; left: 50%; width: 96px; height: 4px; margin-left: -48px; border-radius: 3px; background: rgba(27,23,20,.55); z-index: 2; }
.pop { position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 750; font-size: .9rem; display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0; transform: translateY(14px) scale(.92); transition: opacity .45s ease, transform .55s cubic-bezier(.2,1.4,.4,1); }
.pop.on { opacity: 1; transform: none; }
.pop b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font-size: .95rem; }
.pop.p1 { left: 0; top: 18%; } .pop.p1 b { background: var(--orange); }
.pop.p2 { right: 0; top: 46%; } .pop.p2 b { background: var(--green); }
.pop.p3 { left: 4%; bottom: 14%; } .pop.p3 b { background: linear-gradient(135deg, var(--orange) 0 50%, var(--green) 50%); }
@media (max-width: 520px) { .pop { font-size: .8rem; padding: 8px 10px; } .pop.p1 { left: -6px; } .pop.p2 { right: -6px; } .device { width: 264px; } .stage { min-height: 580px; } }
.steps-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.steps-list li { position: relative; overflow: hidden; border-radius: 16px; padding: 14px 16px 16px 58px; background: transparent; border: 1px solid transparent; cursor: pointer; transition: background .3s, border-color .3s, transform .3s; }
.steps-list li .n { position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 850; font-size: .9rem; background: var(--paper-2); color: var(--muted); transition: background .3s, color .3s; }
.steps-list li strong { display: block; font-size: 1.04rem; }
.steps-list li span { color: var(--muted); font-size: .94rem; }
.steps-list li.on { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); transform: translateX(4px); }
.steps-list li.on .n { background: var(--orange); color: #fff; }
.steps-list li:nth-child(even).on .n { background: var(--green); }
.steps-list li .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--orange), var(--green)); }
.steps-list li.on .bar { animation: fill var(--dur, 3.4s) linear forwards; }
.paused .steps-list li.on .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; } .slides img, .pop, .device { transition: none; } .steps-list li.on .bar { animation: none; width: 100%; }
}

/* ---------- blog ---------- */
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(27,23,20,.06), 0 16px 40px rgba(27,23,20,.1); }
.post-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; color: var(--ink); }
.post-card p { flex: 1; }
.post-tag { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-meta { font-size: .85rem; color: var(--muted); }
.back-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.back-link:hover { color: var(--orange); }
.post-title { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22em; }
.post-body { font-size: 1.06rem; }
.post-body h2 { font-size: 1.5rem; }
.post-body pre.code { margin: 1.2em 0; white-space: pre-wrap; word-break: break-word; }

/* ---------- compact rhythm: every section should fit one screen ---------- */
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
section { padding: 52px 0; }
.section-head { margin-bottom: 22px; }
.section-head p { font-size: 1rem; margin-bottom: 0; }
.hero { padding: 36px 0 20px; }
.hero-grid { gap: 36px; }
.lead { font-size: clamp(1rem, 1.4vw, 1.12rem); }
.cta-row { margin: 20px 0 14px; }
.split-art { max-width: 430px; }
.card { padding: 18px; }
.ico { width: 40px; height: 40px; font-size: 20px; margin-bottom: 10px; border-radius: 12px; }
.grid { gap: 14px; }
.step { padding-top: 54px; }
.band { padding: 44px 0; }
.band strong { font-size: 1.4rem; }
.ticks { gap: 7px; }
.faq details { margin-bottom: 8px; }
.faq summary { padding: 11px 0; }
.page-head { padding-top: 40px; }
@media (max-width: 620px) { section { padding: 38px 0; } .hero { padding-top: 24px; } .band { padding: 36px 0; } }

/* Showcase: smaller phone, steps show titles only; the active one expands. */
.showcase { padding: 52px 0; }
.showcase-grid { gap: 40px; align-items: center; }
.stage { position: relative; top: 0; min-height: 0; padding: 18px 0; }
.device { width: 248px; border-radius: 40px; padding: 10px; }
.device::before { top: 17px; width: 64px; height: 17px; margin-left: -32px; }
.screen-wrap { border-radius: 31px; }
.statusbar { height: 34px; padding: 4px 22px 0; font-size: 11px; }
.slides { top: 34px; }
.glow { width: 340px; height: 340px; }
.steps-list { gap: 2px; margin-top: 16px; }
.steps-list li { padding: 9px 14px 10px 50px; border-radius: 13px; }
.steps-list li .n { left: 13px; top: 8px; width: 26px; height: 26px; border-radius: 8px; font-size: .82rem; }
.steps-list li strong { font-size: .98rem; line-height: 1.5; }
.steps-list li > span:not(.n) { display: block; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .35s ease; }
.steps-list li.on > span:not(.n) { max-height: 3em; opacity: 1; }
.steps-list li.on { transform: none; }
@media (max-width: 900px) { .stage { order: -1; } }
@media (max-width: 520px) { .device { width: 220px; } .stage { min-height: 0; } .pop { display: none; } }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Showcase layout: desktop = phone left, heading + steps right; mobile = heading, phone, current step only. */
.showcase-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "stage head" "stage steps"; row-gap: 0; }
.show-head { grid-area: head; align-self: end; }
.show-steps { grid-area: steps; align-self: start; }
.stage { grid-area: stage; }
.show-dots { display: none; }
@media (max-width: 900px) {
  .showcase { padding: 32px 0 36px; }
  .showcase-grid { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "steps"; gap: 0; }
  .show-head { text-align: center; }
  .show-head p { display: none; }
  .stage { order: 0; padding: 14px 0 6px; }
  .device { width: 196px; border-radius: 34px; padding: 8px; }
  .screen-wrap { border-radius: 27px; }
  .glow { width: 240px; height: 240px; }
  .steps-list { margin-top: 6px; }
  .steps-list li { display: none; text-align: center; padding: 10px 16px 14px; }
  .steps-list li.on { display: block; background: transparent; border-color: transparent; box-shadow: none; }
  .steps-list li .n { display: none; }
  .steps-list li .bar { display: none; }
  .show-dots { display: flex; justify-content: center; gap: 7px; margin-top: 4px; }
  .show-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 6px; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
  .show-dots button.on { width: 22px; background: var(--orange); }
}
@media (max-width: 380px) { .device { width: 176px; } }

/* Carousel pause/play control (visible on every layout). */
.show-pause { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.show-pause:hover, .show-pause:focus-visible { color: var(--ink, inherit); border-color: var(--orange); }

/* ---------- pricing: plan cards, comparison table, feature tags ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--orange); }
.plan h2 { font-size: 1.4rem; margin: 6px 0 2px; }
.plan-sub { color: var(--muted); margin: 0 0 12px; }
.ribbon { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--orange); border-radius: 999px; padding: 4px 10px; }
.ribbon.green { background: var(--green); }
.price { font-size: 2.6rem; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: .92rem; margin: 6px 0 16px; }
.plan .ticks { flex: 1; }
.plan-btn { width: 100%; margin-top: 8px; }
.plans-note { color: var(--muted); font-size: .92rem; text-align: center; max-width: 52em; margin: 22px auto 0; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cmp { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: .85rem; color: var(--muted); font-weight: 750; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; }
.cmp tr.grp td { background: var(--paper-2); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
@media (prefers-color-scheme: dark) { .cmp tr.grp td { color: #FF9B78; } }
.cmp td.yes { color: var(--green); font-weight: 750; }
.cmp td.no { color: var(--muted); }
.cmp tr.price-row td { font-weight: 850; font-size: 1.05rem; border-bottom: 0; }
.ftag { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: var(--green-deep); background: color-mix(in srgb, var(--green) 14%, transparent); }
@media (prefers-color-scheme: dark) { .ftag { color: #7BD9A6; } }
.band .btn { margin-top: 22px; }

/* Right-to-left pages (ar, fa: i18n/build.mjs sets dir="rtl"). Mirrors every rule above that is
   placed by left/right; code, the phone mock-ups and the hero art stay left-to-right. Letter
   spacing is off because it breaks the joins between Arabic letters. */
[dir="rtl"] :is(h1, h2, h3, .brand, .kicker, .band strong, .doc-nav strong, .site-foot h4, .post-tag, .ribbon, .price, .play-btn small, .split-art .label) { letter-spacing: 0; }
[dir="rtl"] .nav, [dir="rtl"] .menu-btn { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .play-btn span, [dir="rtl"] .prose th, [dir="rtl"] .prose td { text-align: right; }
[dir="rtl"] .step::before { left: auto; right: 22px; }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .note { border-left: 0; border-right: 4px solid var(--green); border-radius: 12px 0 0 12px; }
[dir="rtl"] .steps-list li { padding: 14px 58px 16px 16px; }
[dir="rtl"] .steps-list li .n { left: auto; right: 16px; }
[dir="rtl"] .steps-list li .bar { left: auto; right: 0; background: linear-gradient(270deg, var(--orange), var(--green)); }
[dir="rtl"] .steps-list li.on { transform: translateX(-4px); }
@media (max-width: 520px) { [dir="rtl"] .steps-list li .n { right: 13px; } [dir="rtl"] .steps-list li.on { transform: none; } }
[dir="rtl"] pre, [dir="rtl"] .split-art, [dir="rtl"] .stage, [dir="rtl"] .device { direction: ltr; text-align: left; }
[dir="rtl"] code, [dir="rtl"] kbd { unicode-bidi: isolate; }
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 16px; }
[dir="rtl"] .brand { direction: ltr; } /* the name is English: "Free HTML to APK", never reversed */

/* Narrow phones (320px) and long words (Russian, Persian): headings and table cells wrap instead of pushing the page sideways. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.prose th, .prose td { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 560px) { .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .9rem; } .prose th, .prose td { padding: 8px 8px; min-width: 8.5em; } }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid a { overflow-wrap: anywhere; } }
/* The brand's "Free" is translated (Russian "Бесплатно" is longer): at 320px it ran under the menu button. */
.menu-btn { flex-shrink: 0; }
@media (max-width: 400px) { header .brand { font-size: .94rem; gap: 7px; min-width: 0; overflow: hidden; } header .brand img { width: 30px; height: 30px; } }

/* ---------- template live preview (templates page) ---------- */
.tpl-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#tpls .tpl-act .btn { height: 38px; box-sizing: border-box; }
.tpl-dlg { border: 0; border-radius: 22px; padding: 16px; width: min(420px, 94vw); max-height: 96vh; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tpl-dlg::backdrop { background: rgba(10, 12, 16, .55); }
.tpl-dlg[open] { display: flex; flex-direction: column; gap: 10px; }
.tpl-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tpl-dlg-x { background: none; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; color: var(--ink); font-size: 16px; cursor: pointer; flex: none; }
.tpl-phone { border: 10px solid #111; border-radius: 30px; overflow: hidden; background: #fff; height: min(680px, 70vh); }
.tpl-phone iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.tpl-dlg-note { font-size: .82rem; color: var(--muted); margin: 0; }
.tpl-dlg-act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 560px) {
  .tpl-dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 10px; margin: 0; }
  .tpl-dlg .tpl-phone { border: 0; border-radius: 12px; flex: 1; height: auto; }
}
/* The full nav needs about 1300px; give only the header row more room than the 1160px content column. */
.site-head .head-row { max-width: 1400px; }

/* ---------- one page per template (/templates/<id>) ---------- */
.tpl-title { color: inherit; text-decoration: none; }
.tpl-title:hover { text-decoration: underline; }
.tpl-hero { display: flex; gap: 18px; align-items: flex-start; margin-top: 14px; }
.tpl-hero .em { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; flex: none; }
.tpl-hero h1 { margin: 4px 0 8px; }
.tpl-page { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
.tpl-page-preview { position: sticky; top: 86px; }
.tpl-page-preview .tpl-phone { height: 640px; }
.tf-list { display: grid; gap: 10px; margin: 16px 0 22px; }
.tf { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tf-ic { font-size: 22px; line-height: 1; flex: none; }
.tf strong { display: block; }
.tf p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }
.tf-calls code { font-size: .8rem; }
.tf-calls a { text-decoration: none; margin-right: 6px; }
.tpl-prompt summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
.tpl-prompt pre { max-height: 360px; overflow: auto; white-space: pre-wrap; }
.tpl-page pre.code { white-space: pre-wrap; overflow-wrap: anywhere; }
a.tpl-link { color: inherit; text-decoration: none; }
@media (max-width: 860px) {
  .tpl-page { grid-template-columns: minmax(0, 1fr); }
  .tpl-page-preview { position: static; }
  .tpl-page-preview .tpl-phone { height: 560px; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 560px) { .tpl-hero { flex-direction: column; } }

/* ---------- pricing: unlimited free band ---------- */
.free-band { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--radius-lg); border: 2px solid var(--green); background: color-mix(in srgb, var(--green) 8%, var(--card)); }
.free-band-ic { font-size: 36px; flex: none; }
.free-band h2 { font-size: 1.25rem; margin: 0 0 6px; }
.free-band p { margin: 0; color: var(--ink-2); }
.free-band .btn { flex: none; }
@media (max-width: 760px) { .free-band { flex-direction: column; align-items: flex-start; } }

/* ---------- web builder (/create) ---------- */
.wiz-section { padding: 36px 0 60px; }
.wiz-head h1 { margin: 6px 0 8px; }
.wiz-head .lede { color: var(--muted); max-width: 44em; margin: 0 0 22px; }
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.wiz-top { position: sticky; top: 64px; z-index: 5; background: var(--paper); padding: 6px 0 8px; }
.wiz-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.wiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--green)); transition: width .3s; }
.wiz-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
.wiz-chips button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .88rem; cursor: pointer; }
.wiz-chips button[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 700; }
.wiz-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px 26px; box-shadow: var(--shadow); }
.wiz-step-no { margin: 0; color: var(--muted); font-size: .88rem; }
.wiz-card h2 { margin: 2px 0 16px; font-size: 1.5rem; }
.wiz-card h3 { margin: 22px 0 8px; font-size: 1.02rem; }
.wiz-nav { display: flex; gap: 12px; margin-top: 16px; }
.wiz-nav .btn:last-child { flex: 1; }
.f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.f-l { font-weight: 650; font-size: .94rem; }
.f-l em { font-style: normal; color: var(--orange); float: right; font-weight: 700; }
.f-h, .f-note { color: var(--muted); font-size: .86rem; margin: 0; }
.f-note { margin: 0 0 12px; }
.f-note.warn, .qc.warn { color: #B45309; }
.f-note.err, .qc.err { color: #C2410C; font-weight: 600; }
.qc { margin: 4px 0; }
.qc.ok { color: var(--green); font-weight: 650; }
.wiz input:not([type=checkbox]):not([type=range]):not([type=color]), .wiz select, .wiz textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; font: inherit; background: var(--paper); color: var(--ink); }
.wiz input:focus, .wiz select:focus, .wiz textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.wiz input[type=range] { width: 100%; accent-color: var(--orange); }
.cw { display: flex; gap: 8px; align-items: center; }
.cw input[type=color] { width: 46px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: var(--card); cursor: pointer; flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.seg button.on { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 650; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.sw > span { display: flex; flex-direction: column; }
.sw small { color: var(--muted); font-size: .85rem; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { flex: none; width: 44px; height: 26px; border-radius: 26px; background: var(--line); position: relative; transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sw input:checked + i { background: var(--green); }
.sw input:checked + i::after { transform: translateX(18px); }
.sw input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-row { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.icon-row canvas { width: 84px; height: 84px; flex: none; }
.icon-row > div { display: flex; flex-direction: column; gap: 6px; }
.pkg-row { display: flex; gap: 8px; }
.pkg-row .btn { flex: none; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; margin-bottom: 14px; transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--orange); background: rgba(226, 85, 42, .06); }
.drop > span { color: var(--muted); font-size: .88rem; }
.drop .btn-row { justify-content: center; }
.file-sum { margin: 0 0 6px; }
.linkish { border: 0; background: none; color: var(--orange); cursor: pointer; font: inherit; text-decoration: underline; }
.file-list { list-style: none; margin: 0 0 14px; padding: 0; max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; font-size: .86rem; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 10px; border-bottom: 1px solid var(--line); word-break: break-all; }
.file-list li span { color: var(--muted); flex: none; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 380px; overflow: auto; margin-bottom: 14px; }
.tpl-grid .tpl { text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--c); background: var(--paper); color: var(--ink); border-radius: 11px; padding: 9px 10px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 2px; }
.tpl-grid .tpl:hover { border-color: var(--c); }
.tpl-grid .tpl span { font-size: 1.3rem; }
.tpl-grid .tpl small { color: var(--muted); font-size: .76rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.perm-list { display: grid; gap: 4px; }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.perm input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.perm span { display: flex; flex-direction: column; }
.perm small { color: var(--muted); font-size: .85rem; }
.nav-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; align-items: flex-start; }
.nav-item { display: grid; grid-template-columns: 48px 1fr 1.3fr 34px 34px; gap: 6px; width: 100%; }
.nav-item .ni-icon { text-align: center; padding: 8px 4px !important; }
.nav-item button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 9px; cursor: pointer; }
.fmt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.fmt button { text-align: left; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 14px; padding: 14px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 2px; }
.fmt button.on { border: 2px solid var(--orange); background: rgba(226, 85, 42, .08); }
.fmt small, .key-opt small, .key-card small { color: var(--muted); font-size: .85rem; }
.key-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.key-opt, .key-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.key-opt .f, .key-card .f, .key-opt .two, .key-card .two { width: 100%; margin: 0; }
.key-card .mono { word-break: break-all; }
.key-card .sw { width: 100%; border: 0; }
.sum-card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.sum-card canvas { width: 64px; height: 64px; }
.sum-card div { display: flex; flex-direction: column; }
.sum-card strong { font-size: 1.2rem; }
.sum-card small { color: var(--muted); }
.sum-lines { border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; display: grid; gap: 6px; }
.sum-lines div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: .93rem; }
.sum-lines span { color: var(--muted); }
.sum-lines b { font-weight: 550; word-break: break-word; }
.build-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 14px 0; }
.build-box .bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.build-box .bar span { display: block; height: 100%; width: 2%; background: linear-gradient(90deg, var(--orange), var(--green)); transition: width .3s; }
.build-box p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.build-done { border: 2px solid var(--green); border-radius: 16px; padding: 16px; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; background: rgba(30, 143, 85, .06); }
.build-done > b { font-size: 1.1rem; }
.build-done .mono { color: var(--muted); font-size: .78rem; word-break: break-all; }
.dl-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dl-row span { display: flex; flex-direction: column; min-width: 0; }
.dl-row b { word-break: break-all; }
.dl-row small { color: var(--muted); }
.wiz-side { position: sticky; top: 80px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wiz-phone { width: 250px; height: 500px; border-radius: 36px; border: 10px solid #1F1A17; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; background: #fff; }
.wp-status { height: 22px; flex: none; position: relative; }
.wp-status::after { content: "9:41"; position: absolute; left: 14px; top: 4px; font-size: 10px; font-weight: 700; color: #111; }
.wp-status.dark::after { color: #fff; }
.wp-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; flex: none; }
.wp-toolbar b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-screen { flex: 1; position: relative; }
.wp-page { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; box-sizing: border-box; }
.wp-page img { width: 64px; height: 64px; }
.wp-page small { opacity: .7; font-size: 11px; word-break: break-all; }
.wp-splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 2; }
.wp-splash img.full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-splash span { font-size: 12px; position: relative; }
.wp-splash i { display: none; position: relative; }
.wp-splash img.full ~ i { position: absolute; bottom: 40px; }
.wp-splash i.ld-circle { display: block; width: 20px; height: 20px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wpspin .9s linear infinite; }
.wp-splash i.ld-bar { display: block; width: 80px; height: 4px; border-radius: 4px; background: currentColor; opacity: .85; }
@keyframes wpspin { to { transform: rotate(360deg); } }
.wp-tabs { display: flex; flex: none; border-top: 1px solid rgba(0,0,0,.08); }
.wp-tabs span { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 9px; padding: 5px 2px; color: #6B7280; overflow: hidden; white-space: nowrap; }
.wp-tabs i { font-style: normal; font-size: 13px; }
.wp-nav { height: 20px; flex: none; }
.wiz-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140px); background: #1F1A17; color: #fff; padding: 11px 18px; border-radius: 12px; max-width: min(92vw, 520px); font-size: .93rem; transition: transform .25s; z-index: 50; box-shadow: 0 8px 26px rgba(0,0,0,.25); }
.wiz-toast.show { transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .wiz { grid-template-columns: minmax(0, 1fr); }
  .wiz-side { display: none; }
  .wiz-top { top: 56px; }
}
@media (max-width: 560px) {
  .wiz-section { padding-top: 22px; }
  .wiz-card { padding: 16px 14px 20px; border-radius: 18px; }
  .two, .key-choice, .fmt { grid-template-columns: 1fr; }
  .nav-item { grid-template-columns: 42px 1fr 30px 30px; }
  .nav-item .ni-url { grid-column: 1 / -1; grid-row: 2; }
  .sum-lines div { grid-template-columns: 90px 1fr; }
  .wiz-nav { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0; margin-top: 8px; z-index: 4; }
}

/* ---------- home quick start ---------- */
.qs { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px 16px 12px; max-width: 560px; }
.qs-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.qs-tabs button { flex: 1; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 9px 8px; font: inherit; font-weight: 650; font-size: .93rem; cursor: pointer; }
.qs-tabs button[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.qs-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.qs label { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 650; color: var(--ink-2); }
.qs input:not([type=file]), .qs textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; font: inherit; font-size: 1rem; font-weight: 400; background: var(--paper); color: var(--ink); }
.qs textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; margin: 10px 0; resize: vertical; }
.qs input:focus, .qs textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.qs-go { width: 100%; margin-top: 12px; font-size: 1.05rem; }
.qs-one { margin-bottom: 10px; }
.qs-drop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; align-items: center; transition: border-color .2s, background .2s; }
.qs-drop:hover, .qs-drop.over { border-color: var(--orange); background: rgba(226, 85, 42, .06); }
.qs-drop b { color: var(--orange); font-size: 1rem; }
.qs-drop span { font-weight: 400; color: var(--muted); }
.qs-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qs-row .qs-go { flex: 1; width: auto; margin-top: 0; }
.qs-err { color: #C2410C; font-weight: 600; font-size: .9rem; margin: 10px 0 0; }
.qs-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .84rem; color: var(--muted); }
.qs-foot span { color: var(--green); font-weight: 650; }
.qs-foot a { margin-left: auto; font-weight: 650; }
@media (max-width: 560px) {
  .qs { padding: 12px; }
  .qs-fields { grid-template-columns: 1fr; }
  .qs-foot a { margin-left: 0; width: 100%; }
}
.wiz-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.wiz-head .lede { font-size: .95rem; margin-bottom: 12px; }

/* ---------- keyword landing pages + footer tags ---------- */
.kw-hero { padding-top: 28px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.kw-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow); align-self: start; margin-top: 40px; }
.kw-side h2 { font-size: 1.2rem; margin: 0 0 10px; }
.kw-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.kw-steps li::marker { color: var(--orange); font-weight: 800; }
.kw-body { padding-top: 16px; }
.kw-ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.kw-ticks li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.kw-faq { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 8px 0; background: var(--card); }
.kw-faq summary { font-weight: 700; cursor: pointer; }
.kw-faq p { margin: 8px 0 0; }
.kw-related, .tags-foot p { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-related a, .tags-foot a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .86rem; text-decoration: none; color: var(--ink-2); background: var(--card); }
.kw-related a:hover, .tags-foot a:hover { border-color: var(--orange); color: var(--orange); }
.tags-foot { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; }
.tags-foot h4 { margin: 0 0 10px; }
.tags-foot p { margin: 0; }
.tags-foot a { font-size: .8rem; padding: 5px 10px; }
@media (max-width: 900px) { .kw-side { margin-top: 0; } }

/* ---------- friendlier wizard ---------- */
.wiz-lead { margin: -8px 0 16px; color: var(--ink-2); font-size: 1rem; }
.wiz-card h2 { font-size: 1.6rem; }
.opt-tag { display: inline-block; background: var(--paper-2, #F3EEE8); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.wiz-chips button span { font-size: 1rem; }
.wiz-chips button.opt:not([aria-selected="true"]) { border-style: dashed; color: var(--muted); }
.wiz-skip { flex: none; }
.more { border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; background: var(--paper); }
.more > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: .93rem; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "▸"; color: var(--orange); transition: transform .2s; }
.more[open] > summary::before { transform: rotate(90deg); }
.more-body { padding: 0 14px 6px; }
.key-opt .more, .key-card .more { width: 100%; margin: 4px 0; }
.sum-lines div { grid-template-columns: 120px 1fr auto; align-items: center; }
.sum-lines .linkish { font-size: .85rem; }
.sw-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0,0,0,.15); }
@media (max-width: 560px) {
  .wiz-nav { flex-wrap: wrap; }
  .wiz-skip { order: 3; width: 100%; padding: 8px; font-size: .9rem; }
  /* Label on its own line: three columns left the value about 46px at 320px, one word per line. */
  .sum-lines div { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .sum-lines div > span { grid-column: 1 / -1; font-size: .82rem; }
  .wiz-chips button { padding: 7px 11px; }
}
.wiz-skip[hidden] { display: none !important; }
@media (max-width: 560px) { .wiz-toast { bottom: 132px; } }

/* ---------- partner ad: Closed Test Pro ---------- */
.ct-section { padding: 36px 0; }
.ct-card { background: linear-gradient(135deg, #0F172A, #1E293B); color: #E2E8F0; border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.ct-card h3 { color: #fff; margin: 0 0 4px; font-size: 1.35rem; }
.ct-card p { color: #CBD5E1; margin: 14px 0 10px; }
.ct-top { display: flex; align-items: center; gap: 14px; }
.ct-logo { border-radius: 50%; flex: none; background: #fff; }
.ct-chip { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid #94A3B8; color: #94A3B8; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.ct-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; }
.ct-list li::before { content: "✓ "; color: #4ADE80; font-weight: 800; }
.ct-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-card .btn-ghost { background: transparent; color: #fff !important; border-color: #475569; }
.ct-note { display: block; margin-top: 14px; color: #94A3B8; font-size: .8rem; }
.ct-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #0F172A; color: #E2E8F0; text-decoration: none; margin: 6px 0; }
.ct-banner .ct-logo { width: 42px; height: 42px; }
.ct-banner > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ct-banner b { color: #fff; }
.ct-banner small { color: #94A3B8; font-size: .82rem; }
.ct-banner i { font-style: normal; font-size: 1.4rem; color: #94A3B8; }
.ct-banner:hover { background: #1E293B; }
.ct-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.ct-steps { display: grid; gap: 10px; }
.ct-find { margin-top: 0; }
.prose .ct-card { margin: 18px 0; }
@media (max-width: 900px) { .ct-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ct-card { padding: 20px 18px; } .ct-btns .btn { width: 100%; } }

/* Right-to-left pages: see the [dir="rtl"] block in site.css. */
[dir="rtl"] .f-l em { float: left; }
[dir="rtl"] .sw i::after { left: auto; right: 3px; }
[dir="rtl"] .sw input:checked + i::after { transform: translateX(-18px); }
[dir="rtl"] .tpl-grid .tpl { text-align: right; border-left: 1px solid var(--line); border-right: 4px solid var(--c); }
[dir="rtl"] .fmt button { text-align: right; }
[dir="rtl"] .qs-foot a { margin-left: 0; margin-right: auto; }
@media (max-width: 560px) { [dir="rtl"] .qs-foot a { margin-right: 0; } }
[dir="rtl"] .kw-steps { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .sw-dot { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .wp-status, [dir="rtl"] .wp-splash { direction: ltr; }
[dir="rtl"] .ct-chip { letter-spacing: 0; }

/* code editor for any file (create.js openEditor) */
.file-list li{display:flex;gap:10px;align-items:center}.file-list li .fl-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-list li .linkish{flex:none}
.editor{margin-top:12px;border:1px solid var(--line, #2a2a2a);border-radius:14px;padding:10px}
.editor .ed-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.editor .ed-head select{max-width:100%}
.editor .ed-state{color:#e2552a;font-size:12px}.editor .ed-info{margin-left:auto;font-size:12px;opacity:.7}
.editor textarea{width:100%;min-height:340px;font-size:13px;line-height:1.5;tab-size:2;white-space:pre;overflow:auto;resize:vertical}
.tpl-act{margin:12px 0 0}

/* ---------- live phone: real page, menus, ads, dark mode, offline, rotate ---------- */
.wiz-phone.land { width: 280px; height: 158px; border-radius: 22px; border-width: 8px; }
.wp-frame { position: absolute; left: 0; top: 0; border: 0; background: transparent; transform-origin: 0 0; }
[dir="rtl"] .wp-frame { left: auto; right: 0; transform-origin: 100% 0; }
.wp-screen { overflow: hidden; }
.wp-toolbar span, .wp-menu { cursor: pointer; }
.wp-menu { background: none; border: 0; color: inherit; font: inherit; padding: 0; }
.wp-ad { flex: none; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #6B7280; background: repeating-linear-gradient(45deg, #F3F4F6, #F3F4F6 6px, #E5E7EB 6px, #E5E7EB 12px); border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
.wp-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 9px; padding: 5px 2px; color: #6B7280; overflow: hidden; white-space: nowrap; background: none; border: 0; cursor: pointer; font-family: inherit; }
.wp-tabs button i { font-style: normal; font-size: 13px; }
.wp-offline { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; z-index: 2; }
.wp-offline b { font-size: 28px; }
.wp-offline small { opacity: .75; font-size: 11px; }
.wp-drawer { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, 0); pointer-events: none; transition: background .2s; }
.wp-drawer.open { background: rgba(0, 0, 0, .35); pointer-events: auto; }
.wp-drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: 75%; background: #fff; color: #1F2937; transform: translateX(-102%); transition: transform .2s; display: flex; flex-direction: column; overflow: auto; }
.wp-drawer.open .wp-drawer-panel { transform: none; }
.wp-drawer-head { padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.wp-drawer-head small { opacity: .8; font-size: 10px; }
.wp-drawer-panel button { display: flex; gap: 8px; align-items: center; text-align: left; padding: 9px 12px; border: 0; background: none; font: inherit; font-size: 12px; color: inherit; cursor: pointer; }
.wp-drawer-panel button i { font-style: normal; }
.wp-note { max-width: 260px; font-size: .78rem; color: var(--muted); text-align: center; margin: 0; }
.wiz-side-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 280px; }
.wiz-side-btns [aria-pressed="true"] { background: var(--paper-2); border-color: var(--ink-2); }
[dir="rtl"] .wp-drawer-panel { left: auto; right: 0; transform: translateX(102%); }
[dir="rtl"] .wp-drawer.open .wp-drawer-panel { transform: none; }
/* Phones and small tablets: the live phone opens as an overlay from a floating button. */
.wiz-prev-fab { display: none; }
.wiz-prev-close { display: none; }
@media (max-width: 900px) {
  .wiz-prev-fab { display: inline-flex; position: fixed; right: 14px; bottom: 84px; z-index: 40; box-shadow: var(--shadow); }
  .wiz-side.show { display: flex; position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 16, .92); justify-content: flex-start; padding: 14px; overflow: auto; }
  .wiz-side.show .wiz-phone { flex: none; }
  .wiz-side.show .wp-note { color: #E5E7EB; }
  .wiz-prev-close { display: inline-flex; }
}
