/* ==========================================================================
   Tik4DL — "Pop Block" design system
   Neubrutalist / vibrant block-based (UI/UX Pro Max: Vibrant & Block-based + Neubrutalism)
   Type: Space Grotesk (display) · DM Sans (body) · JetBrains Mono (labels)
   ========================================================================== */

:root {
	--paper: #FFF7EA;
	--paper-2: #FFEFD6;
	--card: #FFFFFF;
	--ink: #121212;
	--text: #121212;
	--muted: #4A4A55;
	--line: #121212;
	--shadow: #121212;
	--pop: #FF3366;
	--tide: #2EE6D6;
	--flash: #FFD23F;
	--lime: #B8F35A;
	--on-color: #121212;
	--ok: #1F9D55;
	--err: #D7263D;
	--dots: rgba(18, 18, 18, .08);

	--bw: 3px;
	--off: 5px;
	--r: 16px;
	--r-sm: 10px;
	--wrap: 1180px;
	--narrow: 780px;

	--f-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0E0E11;
		--paper-2: #16161B;
		--card: #1B1B21;
		--text: #F7F1E6;
		--muted: #B9B4C2;
		--line: #F7F1E6;
		--shadow: #FF3366;
		--dots: rgba(247, 241, 230, .07);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #0E0E11;
	--paper-2: #16161B;
	--card: #1B1B21;
	--text: #F7F1E6;
	--muted: #B9B4C2;
	--line: #F7F1E6;
	--shadow: #FF3366;
	--dots: rgba(247, 241, 230, .07);
	color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px);
	background-size: 22px 22px;
	color: var(--text);
	font: 400 17px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--flash); color: var(--ink); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: var(--narrow); }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: var(--flash); color: var(--ink); padding: 10px 16px; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { left: 10px; }
.hp { position: absolute !important; left: -9999px; }
[hidden] { display: none !important; }

/* ---------- Colour utilities ---------- */
.c-pop { background: var(--pop); color: var(--on-color); }
.c-tide { background: var(--tide); color: var(--on-color); }
.c-flash { background: var(--flash); color: var(--on-color); }
.c-lime { background: var(--lime); color: var(--on-color); }
.c-ink { background: var(--ink); color: #F7F1E6; }
:root[data-theme="dark"] .c-ink { background: #26262E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-ink { background: #26262E; } }

/* ---------- Block primitive ---------- */
.block {
	background: var(--card);
	border: var(--bw) solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--off) var(--off) 0 var(--shadow);
}
.block.c-pop { background: var(--pop); color: var(--on-color); border-color: var(--ink); }
.block.c-tide { background: var(--tide); color: var(--on-color); border-color: var(--ink); }
.block.c-flash { background: var(--flash); color: var(--on-color); border-color: var(--ink); }
.block.c-lime { background: var(--lime); color: var(--on-color); border-color: var(--ink); }
.block.c-ink { background: var(--ink); color: #F7F1E6; }
:root[data-theme="dark"] .block.c-ink { background: #26262E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .block.c-ink { background: #26262E; } }
.lift { text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.lift:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--off) + 3px) calc(var(--off) + 3px) 0 var(--shadow); }
.lift:active { transform: translate(var(--off), var(--off)); box-shadow: 0 0 0 var(--shadow); }

.chip {
	display: inline-grid; place-items: center;
	width: 38px; height: 38px; border-radius: 11px;
	border: 2.5px solid var(--ink); flex: none;
}
.chip .ico { width: 20px; height: 20px; }
.chip.lg { width: 52px; height: 52px; border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
.chip.lg .ico { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
	--bg: var(--card); --fg: var(--text);
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .7em 1.25em;
	background: var(--bg); color: var(--fg);
	border: var(--bw) solid var(--line); border-radius: 12px;
	box-shadow: 4px 4px 0 var(--shadow);
	font: 700 16px/1.1 var(--f-display); letter-spacing: -.01em;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shadow); }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn-pop { --bg: var(--pop); --fg: var(--ink); border-color: var(--ink); }
.btn-tide { --bg: var(--tide); --fg: var(--ink); border-color: var(--ink); }
.btn-flash { --bg: var(--flash); --fg: var(--ink); border-color: var(--ink); }
.btn-lime { --bg: var(--lime); --fg: var(--ink); border-color: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: #F7F1E6; border-color: var(--ink); }
.btn-paper { --bg: var(--card); --fg: var(--text); }
.btn-ghost { --bg: transparent; box-shadow: none; }
.btn-ghost:hover { box-shadow: 4px 4px 0 var(--shadow); }
.btn-sm { min-height: 40px; padding: .55em 1em; font-size: 14.5px; border-radius: 10px; box-shadow: 3px 3px 0 var(--shadow); }
.btn-lg { min-height: 58px; padding: .8em 1.5em; font-size: 18px; border-radius: 14px; }
.c-pop .btn-ink, .c-tide .btn-ink, .cta .btn-ink { box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.cta .btn-paper { --bg: #FFF7EA; --fg: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	background: var(--card); color: var(--text);
	border: var(--bw) solid var(--line); border-radius: 12px;
	box-shadow: 3px 3px 0 var(--shadow);
	transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.icon-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.icon-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow); }

.pill {
	display: inline-flex; align-items: center; gap: .4em; padding: .45em .95em;
	background: var(--card); border: 2.5px solid var(--line); border-radius: 999px;
	font: 700 14px/1.2 var(--f-display); text-decoration: none; color: var(--text);
	transition: background-color .15s, transform .15s;
}
.pill:hover { transform: translateY(-1px); }
.pill.is-active, .pill[aria-pressed="true"] { background: var(--ink); color: #F7F1E6; border-color: var(--ink); }
:root[data-theme="dark"] .pill.is-active { background: var(--pop); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.is-active { background: var(--pop); color: var(--ink); } }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: var(--bw) solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { width: 40px; height: 40px; }
.logo-word { font: 700 25px/1 var(--f-display); letter-spacing: -.04em; }
.logo-word b { display: inline-block; color: var(--ink); background: var(--flash); border: 2.5px solid var(--ink); border-radius: 7px; padding: 0 .14em; margin: 0 .04em; transform: rotate(-6deg); line-height: 1.05; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li > a, .nav-sub-toggle {
	display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px;
	font: 700 15.5px/1 var(--f-display); text-decoration: none; color: var(--text);
	background: none; border: 2.5px solid transparent; border-radius: 10px;
	transition: border-color .15s, background-color .15s;
}
.nav-list > li > a:hover, .nav-sub-toggle:hover, .nav-sub-toggle[aria-expanded="true"] { border-color: var(--line); background: var(--card); }
.nav-sub-toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav-sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.has-sub { position: relative; }
/* Mega menu: the transparent top padding is a hover bridge, so the pointer can cross the gap */
.mega { position: absolute; top: 100%; left: 50%; z-index: 60; width: 640px; padding-top: 14px; transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s linear .16s; }
.has-sub.open .mega { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s; }
.mega-panel { position: relative; background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: 7px 7px 0 var(--shadow); padding: 14px; }
.mega-panel::before { content: ""; position: absolute; top: -9px; left: 50%; width: 14px; height: 14px; background: var(--card); border-left: var(--bw) solid var(--line); border-top: var(--bw) solid var(--line); transform: translateX(-50%) rotate(45deg); border-top-left-radius: 3px; }
.mega-head { margin: 2px 8px 10px; font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-grid a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; text-decoration: none; border: 2px solid transparent; transition: background-color .12s, border-color .12s; }
.mega-grid a:hover, .mega-grid a:focus-visible { border-color: var(--line); background: var(--paper); outline: none; }
.mega-grid a:hover .chip { transform: rotate(-6deg); }
.mega-grid .chip { transition: transform .15s var(--ease); }
.mega-text strong { display: block; font: 700 15px/1.25 var(--f-display); white-space: nowrap; }
.mega-text small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.mega-foot { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 2px dashed color-mix(in srgb, var(--line) 25%, transparent); }
.mega-foot a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; background: var(--paper-2); font: 700 14px/1 var(--f-display); text-decoration: none; transition: background-color .12s; }
.mega-foot a:hover { background: var(--flash); color: var(--ink); }
.mega-foot .ico { width: 17px; height: 17px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.main-nav + .header-actions { margin-left: 8px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }

/* Tool tabs */
.tool-tabs { border-bottom: var(--bw) solid var(--line); background: var(--paper-2); }
.tabs-scroll { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab {
	display: inline-flex; align-items: center; gap: 7px; flex: none; scroll-snap-align: start;
	padding: 8px 14px; border: 2.5px solid var(--line); border-radius: 999px;
	background: var(--card); text-decoration: none; font: 700 14.5px/1 var(--f-display);
	transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.tab:hover { transform: translateY(-2px); box-shadow: 0 3px 0 var(--shadow); }
.tab .ico { width: 17px; height: 17px; }
.tab.is-active { background: var(--pop); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Hero / downloader ---------- */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero-inner { position: relative; text-align: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border: var(--bw) solid var(--line); border-radius: 50%; }
.blob.b1 { width: 260px; height: 260px; background: var(--tide); left: -110px; top: 70px; }
.blob.b2 { width: 180px; height: 180px; background: var(--flash); right: -60px; top: -60px; border-radius: 34px; transform: rotate(18deg); }
.sticker {
	position: absolute; z-index: 1; display: inline-block; padding: 8px 14px;
	font: 700 15px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em;
	background: var(--card); border: var(--bw) solid var(--line); border-radius: 10px; box-shadow: 3px 3px 0 var(--shadow);
	animation: bob 5s ease-in-out infinite;
}
.sticker.s1 { left: 9%; top: 34%; transform: rotate(-10deg); background: var(--lime); color: var(--ink); border-color: var(--ink); }
.sticker.s2 { right: 10%; top: 22%; transform: rotate(8deg); background: var(--pop); color: var(--ink); border-color: var(--ink); animation-delay: -1.5s; }
.sticker.s3 { right: 6%; bottom: 10%; transform: rotate(-5deg); animation-delay: -3s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
	padding: 7px 14px; background: var(--card); border: 2.5px solid var(--line); border-radius: 999px;
	font: 700 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pop) 30%, transparent); }
.hero-title { font-size: clamp(42px, 7.4vw, 86px); letter-spacing: -.045em; margin-bottom: 16px; }
.hero-title.sm { font-size: clamp(32px, 5vw, 54px); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.lead p:last-child { margin: 0; }

.dl-form { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 18px; text-align: left; box-shadow: 8px 8px 0 var(--shadow); }
.dl-label { display: block; margin: 0 0 10px 4px; font: 700 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.dl-row { display: flex; gap: 12px; }
.dl-input {
	position: relative; flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
	padding: 0 8px 0 16px; background: var(--paper); border: var(--bw) solid var(--line); border-radius: 13px;
	transition: box-shadow .15s;
}
.dl-input:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pop) 35%, transparent); }
.dl-input > .ico { color: var(--muted); }
.dl-input input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; outline: none; font-size: 17px; }
.dl-input input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.paste-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; flex: none;
	background: var(--flash); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 9px;
	font: 700 14px/1 var(--f-display); transition: transform .12s;
}
.paste-btn:active { transform: scale(.95); }
.paste-btn .ico { width: 16px; height: 16px; }
.clear-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; color: var(--muted); }
.clear-btn:hover { background: var(--paper-2); color: var(--text); }
.dl-submit { position: relative; min-width: 170px; }
.dl-submit .i-go { transition: transform .2s var(--ease); }
.dl-submit:hover .i-go { transform: translateX(3px); }
.dl-submit .spinner { display: none; width: 22px; height: 22px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.dl-form.is-loading .dl-submit .spinner { display: block; }
.dl-form.is-loading .dl-submit .i-go { display: none; }
.dl-form.is-loading .dl-submit { pointer-events: none; opacity: .92; }
@keyframes spin { to { transform: rotate(360deg); } }
.dl-msg { margin: 0; min-height: 0; font-weight: 700; color: var(--err); }
.dl-msg:not(:empty) { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
:root[data-theme="dark"] .dl-msg { color: #FF8A9B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dl-msg { color: #FF8A9B; } }
.dl-form.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.badges { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font: 700 15px/1.2 var(--f-display); }
.badges.left { justify-content: flex-start; }
.badges li { display: inline-flex; align-items: center; gap: 7px; }
.badges .ico { color: var(--pop); width: 20px; height: 20px; }

/* ---------- Result ---------- */
.result-wrap { padding: 0 0 40px; scroll-margin-top: 92px; }
#download { scroll-margin-top: 80px; }
.result { max-width: 920px; margin: 0 auto; padding: 22px; animation: pop-in .35s var(--ease); outline: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.result-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.r-media { position: relative; border: var(--bw) solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper-2); aspect-ratio: 9 / 16; }
.r-media img { width: 100%; height: 100%; object-fit: cover; }
.r-media .dur { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; background: var(--ink); color: #fff; border-radius: 7px; font: 700 12px/1 var(--f-mono); }
.r-author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.r-author img { width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--line); object-fit: cover; }
.r-author strong { display: block; font: 700 16px/1.2 var(--f-display); }
.r-author span { color: var(--muted); font-size: 14px; }
.r-title { font-size: 15.5px; color: var(--muted); margin-bottom: 12px; max-height: 4.9em; overflow: hidden; overflow-wrap: anywhere; }
.r-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; font: 700 13px/1 var(--f-mono); }
.r-stats span { display: inline-flex; align-items: center; gap: 5px; }
.r-stats .ico { width: 15px; height: 15px; }
.r-actions { display: grid; gap: 10px; }
.r-actions .btn { justify-content: space-between; width: 100%; }
.r-actions .btn small { font: 500 13px/1 var(--f-mono); opacity: .8; }
.r-actions .btn .lbl { display: inline-flex; align-items: center; gap: .5em; }
.r-again { margin-top: 18px; padding-top: 16px; border-top: 2px dashed color-mix(in srgb, var(--line) 35%, transparent); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.r-again button { background: none; border: 0; padding: 0; font: 700 15px/1 var(--f-display); color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.r-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 6px 0 16px; }
.r-photo { position: relative; border: var(--bw) solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper-2); aspect-ratio: 3 / 4; }
.r-photo img { width: 100%; height: 100%; object-fit: cover; }
.r-photo a { position: absolute; right: 8px; bottom: 8px; display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--pop); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
.r-photo .n { position: absolute; left: 8px; top: 8px; padding: 3px 7px; background: var(--card); border: 2px solid var(--line); border-radius: 6px; font: 700 12px/1 var(--f-mono); }
.r-profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.r-profile .pfp { width: min(320px, 80%); aspect-ratio: 1; border-radius: 50%; border: var(--bw) solid var(--line); box-shadow: var(--off) var(--off) 0 var(--shadow); object-fit: cover; margin-bottom: 12px; background: var(--paper-2); }
.r-profile .bio { color: var(--muted); max-width: 520px; overflow-wrap: anywhere; }
.r-caption { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--paper); border: 2.5px solid var(--line); border-radius: 12px; margin-bottom: 14px; font-size: 16px; }
.r-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.r-tags span { padding: 4px 10px; background: var(--paper-2); border: 2px solid var(--line); border-radius: 999px; font: 700 13px/1.2 var(--f-mono); overflow-wrap: anywhere; }
.r-head { font: 700 20px/1.2 var(--f-display); margin: 0 0 12px; }
.music-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 12px; }
.music-row .chip { flex: none; }
.music-row div { min-width: 0; flex: 1; }
.music-row strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-display); }
.music-row span { color: var(--muted); font-size: 14px; }
.copy-done { background: var(--lime) !important; }
.result-ad .ad-slot { margin: 24px auto 0; max-width: 920px; }
.ad-slot { text-align: center; margin: 24px auto; overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.pt-0 { padding-top: 0; }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 0; }
.section-head.row { display: flex; align-items: end; justify-content: space-between; gap: 20px; text-align: left; flex-wrap: wrap; }
.kicker { display: inline-block; margin-bottom: 12px; padding: 6px 12px; background: var(--flash); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 8px; font: 700 12.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; transform: rotate(-2deg); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 22px; }
.step-num { position: absolute; top: -18px; right: 18px; display: grid; place-items: center; width: 46px; height: 46px; background: var(--pop); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 50%; font: 700 20px/1 var(--f-display); box-shadow: 3px 3px 0 var(--ink); }
.step:nth-child(2) .step-num { background: var(--tide); }
.step:nth-child(3) .step-num { background: var(--flash); }
.step-ico { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border: var(--bw) solid var(--line); border-radius: 14px; background: var(--paper); }
.step-ico .ico { width: 26px; height: 26px; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 24px; }
.feature.wide { grid-column: span 2; }
.feature .chip { margin-bottom: 16px; }
.feature h3 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; }
.feature-cta { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.feature-cta p { color: rgba(247, 241, 230, .8); }
.feature-cta .btn { align-self: flex-start; }
.feature.c-pop p, .feature.c-tide p, .feature.c-flash p { color: rgba(18,18,18,.78); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.device { display: block; padding: 26px; }
.device .chip { margin-bottom: 16px; }
.device h3 { font-size: 22px; margin-bottom: 6px; }
.device p { color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; font: 700 15px/1 var(--f-display); }
.more .ico { transition: transform .2s; }
a:hover .more .ico, a.more:hover .ico { transform: translateX(3px); }

.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; min-height: 172px; position: relative; }
.tool-text strong { display: block; font: 700 18px/1.2 var(--f-display); margin-bottom: 4px; }
.tool-text small { color: var(--muted); font-size: 14.5px; line-height: 1.35; display: block; }
.tool-arrow { position: absolute; top: 20px; right: 18px; opacity: .5; transition: transform .2s, opacity .2s; }
.tool-card:hover .tool-arrow { opacity: 1; transform: translateX(3px) rotate(-45deg); }

.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card { display: flex; flex-direction: column; overflow: hidden; }
.guide-cover { position: relative; display: grid; place-items: center; height: 132px; border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.guide-cover::before, .guide-cover::after { content: ""; position: absolute; border: var(--bw) solid var(--ink); border-radius: 50%; opacity: .9; }
.guide-cover::before { width: 120px; height: 120px; left: -30px; bottom: -60px; background: rgba(255,255,255,.35); }
.guide-cover::after { width: 70px; height: 70px; right: 22px; top: -26px; border-radius: 18px; transform: rotate(20deg); background: rgba(18,18,18,.08); }
.guide-cover .ico { position: relative; z-index: 1; width: 64px; height: 64px; padding: 14px; background: var(--card); color: var(--text); border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
.guide-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.guide-body .tag { font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.guide-body strong { font: 700 19px/1.25 var(--f-display); }
.guide-body small { color: var(--muted); font-size: 15px; line-height: 1.5; }
.guide-card.is-hidden { display: none; }

.faq-list { display: grid; gap: 14px; }
.faq { padding: 0; box-shadow: 4px 4px 0 var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font: 700 18px/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { position: relative; flex: none; width: 30px; height: 30px; border: 2.5px solid var(--line); border-radius: 8px; background: var(--flash); transition: transform .2s var(--ease), background-color .2s; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.faq[open] .faq-ico { background: var(--pop); transform: rotate(180deg); }
.faq[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-group { margin-bottom: 44px; scroll-margin-top: 100px; }
.faq-group h2 { font-size: 28px; margin-bottom: 18px; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px 48px; padding: 48px 52px; box-shadow: 10px 10px 0 var(--shadow); }
.cta::before, .cta::after { content: ""; position: absolute; border: var(--bw) solid var(--ink); pointer-events: none; }
.cta::before { width: 170px; height: 170px; right: -85px; top: -95px; border-radius: 50%; background: var(--flash); }
.cta::after { width: 110px; height: 110px; right: 36%; bottom: -78px; border-radius: 26px; background: var(--tide); transform: rotate(18deg); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 10px; color: var(--ink); }
.cta p { margin: 0; max-width: 520px; color: rgba(18, 18, 18, .82); font-size: 18px; line-height: 1.6; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; min-width: 250px; }
.cta-actions .btn { width: 100%; justify-content: center; }
.cta .btn-ink { box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.cta .btn-ink:hover { box-shadow: 6px 6px 0 rgba(0,0,0,.35); }

/* ---------- Page hero & prose ---------- */
.page-hero { padding: 64px 0 36px; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -.04em; }
.page-hero .lead { margin-left: 0; margin-bottom: 0; }
.page-hero .meta { margin-top: 16px; font: 700 13px/1.4 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; font: 700 13px/1 var(--f-mono); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; margin-bottom: 16px; border: 2.5px solid var(--ink); border-radius: 999px; font: 700 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
.tag-chip .ico { width: 15px; height: 15px; }

.prose { font-size: 18px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 1.8em 0 .55em; scroll-margin-top: 100px; }
.prose h3 { font-size: 22px; margin: 1.5em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose a:not(.btn) { color: var(--text); font-weight: 600; text-decoration: none; background-image: linear-gradient(var(--pop), var(--pop)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; transition: background-size .2s var(--ease), color .2s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.prose a:not(.btn):hover { background-size: 100% 100%; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--pop); font-weight: 700; }
.prose strong { font-weight: 700; }
.prose code, .prose kbd { font: 500 .88em/1 var(--f-mono); background: var(--paper-2); border: 2px solid var(--line); border-radius: 6px; padding: .15em .4em; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border: var(--bw) solid var(--line); border-left-width: 10px; border-radius: 12px; background: var(--card); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4em 0; font-size: 16px; border: var(--bw) solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--off) var(--off) 0 var(--shadow); background: var(--card); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 2px solid color-mix(in srgb, var(--line) 18%, transparent); vertical-align: top; }
.prose th { background: var(--flash); color: var(--ink); font-family: var(--f-display); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose ol.steps-list { list-style: none; padding: 0; counter-reset: st; }
.prose ol.steps-list > li { counter-increment: st; position: relative; padding: 4px 0 4px 58px; margin-bottom: 18px; min-height: 42px; }
.prose ol.steps-list > li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; background: var(--tide); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 12px; font: 700 18px/1 var(--f-display); box-shadow: 3px 3px 0 var(--ink); }
.prose ol.steps-list > li:nth-child(3n+2)::before { background: var(--flash); }
.prose ol.steps-list > li:nth-child(3n)::before { background: var(--pop); }

.callout { position: relative; margin: 1.6em 0; padding: 20px 22px; border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.callout p { margin: 0 0 .5em; color: rgba(18,18,18,.86); font-size: 16.5px; }
.callout p:last-child { margin: 0; }
.callout a { color: var(--ink); text-decoration-color: var(--ink); }
.callout-title { display: flex; align-items: center; gap: 8px; font: 700 17px/1.3 var(--f-display); color: var(--ink) !important; }
.callout .btn { margin: 6px 8px 0 0; }
.prose .callout p { font-size: 16.5px; }
.notice-box { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: var(--bw) solid var(--ink); border-radius: 12px; margin-bottom: 20px; color: var(--ink); font-weight: 600; }
.notice-box p { margin: 0; }
.notice-box.ok { background: var(--lime); }
.notice-box.err { background: #FFB3C1; }

/* Guide layout */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; max-width: 1080px; }
.guide-aside { position: sticky; top: 100px; display: grid; gap: 22px; }
.toc { padding: 0; }
.toc .label, .mini-dl .label { font: 700 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: var(--bw) solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -3px; border-left: var(--bw) solid transparent; text-decoration: none; font-size: 15px; line-height: 1.4; color: var(--muted); }
.toc a:hover, .toc a.is-active { color: var(--text); border-left-color: var(--pop); font-weight: 700; }
.mini-dl { padding: 18px; }
.mini-dl p { font-size: 15px; color: var(--muted); }
.guide-end { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px; margin-top: 2.4em; }
.guide-end strong { font: 700 22px/1.2 var(--f-display); color: var(--ink); }
.guide-end p { margin: 4px 0 0; color: rgba(18,18,18,.8); font-size: 16px; }

.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Contact form */
.contact-form { padding: 24px; display: grid; gap: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0 0 14px; }
.field label { display: block; margin-bottom: 6px; font: 700 14px/1.2 var(--f-display); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; background: var(--paper); border: var(--bw) solid var(--line); border-radius: 11px; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pop) 35%, transparent); }
.contact-form .btn { justify-self: start; }

/* App page */
.app-hero { padding-bottom: 72px; }
.app-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.app-hero .lead { margin-left: 0; }
.app-hero .hero-title { font-size: clamp(40px, 6vw, 72px); }
.app-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.installed-msg { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; padding: 10px 14px; background: var(--lime); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px; font-weight: 700; }
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone { position: relative; width: 270px; aspect-ratio: 9 / 18.5; background: var(--ink); border: var(--bw) solid var(--ink); border-radius: 44px; padding: 12px; box-shadow: 12px 12px 0 var(--pop); transform: rotate(4deg); }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 80px; height: 22px; transform: translateX(-50%); background: var(--ink); border-radius: 12px; z-index: 2; }
.phone-screen { position: relative; height: 100%; background: #FFF7EA; border-radius: 33px; padding: 50px 16px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; background-image: radial-gradient(rgba(18,18,18,.08) 1.2px, transparent 1.2px); background-size: 16px 16px; }
.ps-top { display: flex; align-items: center; gap: 8px; }
.ps-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--pop); border: 2.5px solid var(--ink); }
.ps-bar { height: 10px; flex: 1; max-width: 80px; background: var(--ink); border-radius: 6px; }
.ps-card { height: 70px; border: 2.5px solid var(--ink); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 3px 3px 0 var(--ink); }
.ps-card span { height: 10px; background: var(--ink); border-radius: 6px; width: 80%; }
.ps-card span + span { width: 50%; opacity: .5; }
.ps-input { display: flex; gap: 6px; }
.ps-input span { flex: 1; height: 36px; background: #fff; border: 2.5px solid var(--ink); border-radius: 10px; }
.ps-input b { width: 52px; height: 36px; background: var(--pop); border: 2.5px solid var(--ink); border-radius: 10px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-grid i { height: 46px; border: 2.5px solid var(--ink); border-radius: 10px; }
.ps-share { margin-top: auto; background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 10px 12px 14px; animation: slide-up 3.5s var(--ease) infinite; }
.ps-share p { margin: 0 0 8px; font: 700 11px/1 var(--f-mono); color: #121212; text-transform: uppercase; }
.ps-share div { display: flex; justify-content: space-between; }
.ps-share i { width: 36px; height: 36px; border-radius: 50%; background: #E9E3D8; border: 2px solid var(--ink); }
.ps-share i.me { background: var(--pop); box-shadow: 0 0 0 4px var(--flash); }
@keyframes slide-up { 0%, 15% { transform: translateY(110%); } 35%, 85% { transform: translateY(0); } 100% { transform: translateY(110%); } }
.phone-wrap .sticker.s1 { left: auto; right: 2%; top: 12%; transform: rotate(-8deg); background: var(--flash); }
.platform-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.platform-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--card); border: var(--bw) solid var(--line); border-radius: 12px; font: 700 16px/1 var(--f-display); box-shadow: 3px 3px 0 var(--shadow); transition: transform .15s; }
.platform-tabs button[aria-selected="true"] { background: var(--pop); color: var(--ink); border-color: var(--ink); }
.platform-tabs button:hover { transform: translate(-1px, -1px); }
.platform-panel { max-width: 820px; margin: 0 auto; padding: 30px; }
.install-steps { list-style: none; margin: 0 0 8px; padding: 0; counter-reset: i; display: grid; gap: 16px; }
.install-steps li { counter-increment: i; position: relative; padding-left: 58px; min-height: 42px; font-size: 17px; }
.install-steps li::before { content: counter(i); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 40px; height: 40px; background: var(--flash); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 12px; font: 700 18px/1 var(--f-display); }
.bookmarklet { cursor: grab; }

/* 404 */
.err-hero { padding: 80px 0; }
.big-404 { font: 700 clamp(110px, 22vw, 220px)/.9 var(--f-display); letter-spacing: -.06em; margin: 0 0 12px; -webkit-text-stroke: var(--bw) var(--line); color: var(--flash); text-shadow: 8px 8px 0 var(--shadow); }
.big-404 span { color: var(--pop); display: inline-block; animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.center-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 2.5px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; font-weight: 700; }
.pagination .current { background: var(--ink); color: #F7F1E6; }
.post-thumb { overflow: hidden; margin: 0 0 28px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: var(--ink); color: #E9E3D8; border-top: var(--bw) solid var(--ink); padding: 64px 0 28px; }
:root[data-theme="dark"] .site-footer { background: #08080A; border-top-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #08080A; border-top-color: var(--line); } }
.site-footer .logo-word { color: #F7F1E6; }
.site-footer .logo-mark rect:first-child { fill: var(--pop); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; }
.footer-brand p { margin: 16px 0 20px; color: #BDB7C6; max-width: 360px; font-size: 15.5px; }
.footer-brand .btn { --line: #121212; }
.footer-title { font: 700 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--flash); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { text-decoration: none; color: #E9E3D8; font-size: 15px; }
.site-footer ul a:hover { color: var(--tide); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 2px dashed rgba(233, 227, 216, .18); display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; font-size: 14px; line-height: 1.6; color: #B9B3C4; }
.footer-bottom p { margin: 0; max-width: 720px; }
.footer-bottom p strong { color: #F7F1E6; font-weight: 700; }
.to-top { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 16px; border: 2px solid rgba(233, 227, 216, .35); border-radius: 999px; color: #F7F1E6; font: 700 14px/1 var(--f-display); text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.to-top:hover { background: var(--flash); color: var(--ink); border-color: var(--flash); }
.to-top .ico { width: 16px; height: 16px; transform: rotate(-90deg); }
.site-footer .btn-tide { box-shadow: 4px 4px 0 var(--pop); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 99; transform: translate(-50%, 140%); padding: 12px 18px; background: var(--ink); color: #F7F1E6; border: var(--bw) solid var(--flash); border-radius: 12px; font-weight: 700; transition: transform .3s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.tools-grid { grid-template-columns: repeat(2, 1fr); }
	.bento { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.menu-toggle { display: inline-grid; }
	.hide-sm { display: none; }
	.main-nav {
		position: fixed; inset: 75px 0 auto 0; max-height: calc(100dvh - 75px); overflow-y: auto;
		background: var(--paper); border-bottom: var(--bw) solid var(--line);
		padding: 12px 20px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.main-nav.open { transform: none; opacity: 1; visibility: visible; }
	.main-nav + .header-actions { margin-left: auto; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
	.nav-list > li > a, .nav-sub-toggle { width: 100%; justify-content: space-between; padding: 14px; font-size: 18px; border-color: var(--line); background: var(--card); }
	.mega, .has-sub.open .mega { position: static; width: auto; padding-top: 6px; transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: none; display: none; }
	.has-sub.open .mega { display: block; }
	.mega-panel { box-shadow: none; padding: 8px; }
	.mega-panel::before, .mega-head { display: none; }
	.mega-grid { grid-template-columns: 1fr; }
	.mega-foot { flex-direction: column; }
	.guide-layout { grid-template-columns: 1fr; gap: 28px; }
	.guide-aside { position: static; }
	.mini-dl { display: none; }
	.app-hero-grid { grid-template-columns: 1fr; }
	.phone-wrap { margin-top: 20px; }
	.sticker.s1, .sticker.s3 { display: none; }
	.sticker.s2 { top: 6%; right: 4%; }
}
@media (max-width: 760px) {
	body { font-size: 16.5px; }
	.hero { padding: 40px 0 40px; }
	.dl-form { padding: 14px; box-shadow: 6px 6px 0 var(--shadow); }
	.dl-row { flex-direction: column; }
	.dl-submit { width: 100%; }
	.paste-btn span { display: none; }
	.paste-btn { padding: 9px; }
	.steps, .grid-3, .guides-grid { grid-template-columns: 1fr; }
	.steps { gap: 30px; }
	.bento { grid-template-columns: 1fr; }
	.feature.wide, .feature-cta { grid-column: auto; }
	.tools-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.tool-card { min-height: 0; padding: 16px; }
	.tool-text strong { font-size: 16px; }
	.tool-arrow { display: none; }
	.section { padding: 52px 0; }
	.result { padding: 16px; }
	.result-grid { grid-template-columns: 1fr; }
	.r-media { max-width: 220px; margin: 0 auto; }
	.cta { grid-template-columns: 1fr; padding: 30px 22px; }
	.cta::after { right: -40px; bottom: -80px; }
	.cta::before { width: 120px; height: 120px; right: -60px; top: -60px; }
	.cta-actions { min-width: 0; }
	.field-row { grid-template-columns: 1fr; gap: 0; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
	.footer-brand { grid-column: 1 / -1; }
	.blob.b1 { width: 160px; height: 160px; left: -90px; }
	.blob.b2 { width: 120px; height: 120px; }
	.platform-panel { padding: 22px 18px; }
	.prose { font-size: 17px; }
	.logo-word { font-size: 23px; }
	.logo-mark { width: 36px; height: 36px; }
}
@media (max-width: 420px) {
	.tools-grid { grid-template-columns: 1fr; }
	.tool-card { flex-direction: row; align-items: center; }
	.badges { gap: 8px 14px; font-size: 14px; }
	.header-row { gap: 10px; }
	.header-actions { gap: 8px; }
	.icon-btn { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .tool-tabs, .site-footer, .hero-bg, .ad-slot, .cta-section { display: none; }
	body { background: #fff; }
}

/* Fixes: buttons inside prose/callouts keep their own colours */
.prose a.btn, .callout a.btn, .guide-end a.btn { color: var(--fg); background: var(--bg); text-decoration: none; }
.prose a.btn:hover, .callout a.btn:hover { background: var(--bg); }
/* Keep the decorative blob clear of headings */
.blob.b1 { top: auto; bottom: -90px; left: -120px; }
@media (max-width: 760px) { .blob.b1 { display: none; } .blob.b2 { right: -70px; top: -70px; } }
