/* PadMouse app site — flat grey with the icon's amber gradient and the controller blue.
   System type (SF Pro) with size-specific tracking; translucent nav; press feedback on pointer-down. */
:root {
	--bg: #f5f5f7; --surface: #ffffff; --sunk: #ececf0; --ink: #1d1d1f; --sub: #6e6e73; --line: #d2d2d7;
	--stage: #2b2b2f; --stage-2: #38383d; --stage-ink: #f5f5f7; --stage-sub: #a1a1a8;
	--blue: #0066a3; --blue-ink: #0a5e94; --y1: #ffe000; --y2: #fbbf13; --y3: #f9a91b; --amber-ink: #a45f00;
	--nav: rgba(245, 245, 247, .72); --nav-edge: rgba(0, 0, 0, .08);
	--r-lg: 28px; --r-md: 18px; --r-sm: 12px;
	--max: 1120px; --read: 68ch;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #161617; --surface: #1f1f21; --sunk: #2a2a2d; --ink: #f5f5f7; --sub: #a1a1a6; --line: #38383c;
		--stage: #1f1f22; --stage-2: #2a2a2e; --blue-ink: #4aa8e6; --amber-ink: #fbbf13;
		--nav: rgba(22, 22, 23, .72); --nav-edge: rgba(255, 255, 255, .08); color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #161617; --surface: #1f1f21; --sunk: #2a2a2d; --ink: #f5f5f7; --sub: #a1a1a6; --line: #38383c;
	--stage: #1f1f22; --stage-2: #2a2a2e; --blue-ink: #4aa8e6; --amber-ink: #fbbf13;
	--nav: rgba(22, 22, 23, .72); --nav-edge: rgba(255, 255, 255, .08); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body.pm {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 400 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
	-webkit-font-smoothing: antialiased; letter-spacing: -.003em;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--y2); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -.028em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.022em; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.012em; font-weight: 650; }
p { margin: 0; }
kbd, code {
	font: 500 .88em ui-monospace, "SF Mono", Menlo, monospace; background: var(--sunk); border: 1px solid var(--line);
	border-radius: 6px; padding: .05em .4em; white-space: nowrap;
}

.pm-skip { position: absolute; left: -9999px; }
.pm-skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* Wrapper with the safe-area-aware gutter */
.pm-wrap, .pm-nav-in, .pm-foot-in {
	max-width: var(--max); margin: 0 auto;
	padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Translucent nav: content scrolls under it; the edge appears only once something is under it. */
.pm-nav {
	position: sticky; top: 0; z-index: 20;
	background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 1px 0 transparent; transition: box-shadow .2s ease;
}
.pm-nav.is-scrolled { box-shadow: 0 1px 0 var(--nav-edge); }
.pm-nav-in { height: 56px; display: flex; align-items: center; gap: 24px; }
.pm-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
.pm-brand:hover { text-decoration: none; }
.pm-brand img { border-radius: 7px; }
.pm-nav nav { display: flex; gap: 22px; margin-left: auto; font-size: .9rem; }
.pm-nav nav a { color: var(--sub); }
.pm-nav nav a:hover, .pm-nav nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.pm-buy {
	font-size: .85rem; font-weight: 650; padding: 6px 14px; border-radius: 999px; color: #241a00;
	background: linear-gradient(180deg, var(--y1), var(--y3));
}
@media (max-width: 640px) {
	.pm-nav-in { gap: 14px; }
	.pm-nav nav { gap: 14px; font-size: .82rem; }
	.pm-brand span, .pm-buy { display: none; }
}

/* Buttons: feedback on press, not on release */
.pm-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
	font-weight: 600; font-size: 1rem; letter-spacing: -.005em; transition: transform .1s ease-out, background-color .2s;
}
.pm-btn:hover { text-decoration: none; }
.pm-btn:active { transform: scale(.97); }
.pm-btn-primary { background: linear-gradient(180deg, var(--y1), var(--y3)); color: #241a00; }
.pm-btn-ghost { color: var(--stage-ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.pm-btn-ghost.on-light { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Hero stage: flat grey with the icon's sun and the controller's blue */
.pm-stage { position: relative; overflow: hidden; background: var(--stage); color: var(--stage-ink); }
.pm-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: var(--stage-2); }
.pm-sun { position: absolute; border-radius: 50%; background: radial-gradient(circle, var(--y1) 0%, var(--y2) 45%, var(--y3) 100%); z-index: 1; }
.pm-slab { position: absolute; background: var(--blue); border-radius: 44px; z-index: 1; }
.pm-hero-sun { width: min(56vw, 640px); aspect-ratio: 1; left: -14vw; top: 52%; }
.pm-hero-slab { width: min(40vw, 520px); height: min(32vw, 400px); right: -8vw; top: 46%; transform: rotate(-8deg); }
@media (max-width: 700px) {
	.pm-hero-sun { width: 90vw; left: -34vw; top: auto; bottom: -46vw; }
	.pm-hero-slab { width: 60vw; height: 46vw; right: -24vw; top: auto; bottom: 2vw; }
	.pm-diagram picture { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.pm-diagram img { min-width: 760px; }
}
.pm-hero { position: relative; z-index: 2; text-align: center; padding-block: clamp(56px, 9vw, 104px) 0; }
.pm-hero .pm-icon { width: 112px; height: 112px; margin: 0 auto 22px; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .35)); }
.pm-hero h1 { color: var(--stage-ink); }
.pm-hero .pm-lede { color: var(--stage-sub); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.4; max-width: 34ch; margin: 18px auto 0; letter-spacing: -.008em; }
.pm-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.pm-note { color: var(--stage-sub); font-size: .9rem; margin-top: 14px; }
.pm-shot {
	position: relative; z-index: 2; margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1040px;
	border-radius: 18px 18px 0 0; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
	aspect-ratio: 2120 / 1366;
}
.pm-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Sections */
.pm-section { padding-block: clamp(64px, 9vw, 120px); }
.pm-section.alt { background: var(--surface); }
.pm-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); display: grid; gap: 14px; }
.pm-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-ink); }
.pm-head p { color: var(--sub); font-size: 1.2rem; line-height: 1.45; }
.pm-diagram { max-width: 1100px; margin: 0 auto; }
.pm-diagram figcaption { text-align: center; color: var(--sub); font-size: .92rem; margin-top: 10px; }

/* Feature rows: copy beside a real window capture */
.pm-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pm-row + .pm-row { margin-top: clamp(56px, 8vw, 104px); }
.pm-row.flip { grid-template-columns: 1.35fr 1fr; }
.pm-row.flip .pm-copy { order: 2; }
.pm-copy { display: grid; gap: 14px; min-width: 0; }
.pm-copy p { color: var(--sub); font-size: 1.12rem; }
.pm-copy ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--sub); display: grid; gap: 6px; }
.pm-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); background: var(--stage); min-width: 0; }
@media (max-width: 860px) {
	.pm-row, .pm-row.flip { grid-template-columns: 1fr; }
	.pm-row.flip .pm-copy { order: 0; }
}

/* Small feature grid */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pm-card { background: var(--surface); border-radius: var(--r-md); padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start; }
.pm-section.alt .pm-card { background: var(--bg); }
.pm-card p { color: var(--sub); font-size: .98rem; }
.pm-chip { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; }
.c-y { background: radial-gradient(circle at 40% 35%, #ffe9a6, #fbbf13 60%, #f9a91b); color: #3a2a00; }
.c-b { background: radial-gradient(circle at 40% 35%, #4db8d2, #009cbf 60%, #007c86); }
.c-r { background: radial-gradient(circle at 40% 35%, #f47d68, #ec2a2e 60%, #e91d25); }
.c-g { background: radial-gradient(circle at 40% 35%, #63c48f, #00a651 60%, #00924b); }

/* Privacy band */
.pm-band { background: var(--stage); color: var(--stage-ink); text-align: center; }
.pm-band h2 { color: var(--stage-ink); }
.pm-band p { color: var(--stage-sub); font-size: 1.2rem; max-width: 46ch; margin: 16px auto 0; }
.pm-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pm-facts span { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .95rem; font-weight: 550; }

/* Specs table and long-form pages */
.pm-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pm-specs div { padding: 18px 4px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.pm-specs b { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); font-weight: 650; }

.pm-doc { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.pm-doc .pm-title { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: var(--read); }
.pm-doc .pm-title p { color: var(--sub); font-size: 1.2rem; }
.pm-prose { max-width: var(--read); display: grid; gap: 16px; }
.pm-prose h2 { font-size: 1.85rem; margin-top: 28px; }
.pm-prose h3 { margin-top: 10px; }
.pm-prose ul, .pm-prose ol { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; }
.pm-prose li::marker { color: var(--sub); }
.pm-wide { margin-block: 8px 12px; }
.pm-table { overflow-x: auto; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pm-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
.pm-table th, .pm-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pm-table th { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--sub); font-weight: 650; background: var(--sunk); }
.pm-table tr:last-child td { border-bottom: 0; }
.pm-table td:first-child { font-weight: 600; white-space: nowrap; }
.pm-steps { list-style: none; padding: 0 !important; counter-reset: s; gap: 18px !important; }
.pm-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; }
.pm-steps li::before {
	content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
	font-weight: 700; color: #241a00; background: linear-gradient(180deg, var(--y1), var(--y3));
}
.pm-steps li p { color: var(--sub); }
.pm-callout { background: var(--surface); border-radius: var(--r-md); padding: 18px 20px; box-shadow: inset 4px 0 0 var(--y2); }
.pm-faq { display: grid; gap: 10px; }
.pm-feature-access { display: grid; gap: 12px; padding: 26px 28px; }
.pm-feature-access ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.pm-faq details { background: var(--surface); border-radius: var(--r-sm); padding: 4px 18px; }
.pm-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::after { content: "+"; color: var(--sub); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.pm-faq details[open] summary::after { transform: rotate(45deg); }
.pm-faq details > div { padding: 0 0 16px; color: var(--sub); display: grid; gap: 10px; }
.pm-updated { color: var(--sub); font-size: .9rem; }

/* Footer */
.pm-foot { border-top: 1px solid var(--line); background: var(--bg); padding-block: 36px 48px; font-size: .9rem; color: var(--sub); }
.pm-foot-in { display: grid; gap: 18px; }
.pm-foot-brand { display: flex; align-items: center; gap: 12px; }
.pm-foot-brand img { border-radius: 9px; }
.pm-foot-brand div { display: grid; }
.pm-foot-brand strong { color: var(--ink); }
.pm-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pm-foot nav a { color: var(--ink); }
.pm-legal { font-size: .8rem; max-width: 90ch; }
.pm-legal a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.pm-btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
	.pm-nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
	.pm-nav { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
	.pm-card, .pm-faq details { box-shadow: 0 0 0 1px var(--line); }
}

/* Accessibility section: three even columns so the six cards fill two full rows */
.pm-access .pm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pm-access .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pm-access .pm-grid { grid-template-columns: 1fr; } }

/* Adaptive controller artwork on the brand stage (dark grey, amber sun, controller blue) */
.pm-adaptive {
	position: relative; overflow: hidden; margin: 0 auto clamp(28px, 4vw, 44px); max-width: 1040px;
	border-radius: var(--r-lg); background: var(--stage); padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 72px) clamp(22px, 3vw, 32px);
	display: grid; gap: clamp(18px, 3vw, 28px);
}
.pm-adaptive .pm-sun { width: 40%; aspect-ratio: 1; right: -6%; top: 4%; }
.pm-adaptive .pm-slab { width: 34%; height: 52%; left: -8%; top: -12%; transform: rotate(-8deg); border-radius: 36px; }
.pm-adaptive img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .45)); }
.pm-adaptive figcaption { position: relative; z-index: 2; color: var(--stage-sub); text-align: center; font-size: .98rem; max-width: 60ch; margin: 0 auto; }
.pm-doc > .pm-adaptive { margin-left: 0; }

/* Official App Store badge: unmodified artwork, at least 40px tall, clear space of a quarter of its height */
.pm-store { display: inline-flex; padding: 0; border-radius: 10px; transition: transform .1s ease-out; }
.pm-store:active { transform: scale(.97); }
.pm-store img { display: block; height: 52px; width: auto; }
.pm-cta .pm-store img { height: 52px; }
.pm-foot-badge .pm-store img { height: 40px; }
a.pm-buy:hover { text-decoration: none; }

/* Controller picker above the default-controls diagram */
.pm-padtabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 18px; padding: 5px; width: fit-content; max-width: 100%;
	background: var(--sunk); border-radius: 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pm-padtabs::-webkit-scrollbar { display: none; }
.pm-padtabs button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 14px 7px;
	border: 0; border-radius: 17px; background: transparent; color: var(--sub); cursor: pointer;
	font: 600 .82rem/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; letter-spacing: -.005em;
	transition: background-color .2s ease, color .2s ease, transform .1s ease-out; -webkit-tap-highlight-color: transparent; }
.pm-padtabs button img { width: 76px; min-width: 0; height: auto; opacity: .7; transition: opacity .2s ease; }
.pm-padtabs button:hover img, .pm-padtabs [aria-selected="true"] img { opacity: 1; }
.pm-padtabs button:active { transform: scale(.97); }
.pm-padtabs [aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.pm-padpanel[hidden] { display: none; }
@media (max-width: 640px) { .pm-padtabs { width: auto; justify-content: flex-start; } .pm-padtabs button img { width: 60px; } }
@media (prefers-reduced-motion: reduce) { .pm-padtabs button, .pm-padtabs button img { transition: none; } .pm-padtabs button:active { transform: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pm-padtabs button img { filter: drop-shadow(0 0 1px rgba(255,255,255,.45)); } }
:root[data-theme="dark"] .pm-padtabs button img { filter: drop-shadow(0 0 1px rgba(255,255,255,.45)); }
