/* ==========================================================================
   TCG Scanner theme styles. Mobile first. No external dependencies.
   ========================================================================== */

/* Variables */
:root {
	--color-bg: #ffffff;
	--color-bg-soft: #f6f7f9;
	--color-text: #111318;
	--color-text-muted: #5c626d;
	--color-border: #e5e7eb;
	--color-primary: #d9000f;
	--color-primary-dark: #b0000c;
	--color-primary-soft: #fdecee;
	--color-white: #ffffff;
	--color-dark: #111114;
	--color-dark-2: #1c1c21;
	--color-dark-border: rgba(255, 255, 255, 0.1);
	--color-dark-muted: #b8b8c0;
	--color-glow: rgba(230, 3, 19, 0.32);
	--color-icon-glow: rgba(230, 3, 19, 0.5);
	--color-focus: #d9000f;

	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	--radius-pill: 999px;

	--container: 1160px;
	--container-narrow: 760px;
	--gutter: 20px;
	--header-h: 64px;

	--section-y: 72px;
	--shadow-sm: 0 1px 2px rgba(17, 19, 24, 0.06);
	--shadow-md: 0 10px 30px -12px rgba(17, 19, 24, 0.18);
	--shadow-phone: 0 40px 80px -30px rgba(20, 0, 0, 0.5);

	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--text-h1: clamp(2.375rem, 6.5vw + 0.5rem, 4rem);
	--text-h2: clamp(1.875rem, 3.5vw + 0.75rem, 2.75rem);
	--text-h3: clamp(1.25rem, 1vw + 1rem, 1.5rem);
	--text-body: clamp(1.0625rem, 0.25vw + 1rem, 1.1875rem);
	--text-small: 0.9375rem;
}

/* Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ol,
ul {
	margin: 0;
}

ul[class],
ol[class] {
	list-style: none;
	padding: 0;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

/* Base */
body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--text-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
	line-height: 1.15;
	letter-spacing: -0.022em;
	font-weight: 700;
}

h1 { font-size: var(--text-h1); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: var(--text-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--text-h3); }

a {
	color: var(--color-primary);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--color-primary-dark);
}

:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.section-dark :focus-visible,
.cta-panel :focus-visible {
	outline-color: var(--color-white);
}

#main:focus {
	outline: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--color-text);
	color: var(--color-white);
	border-radius: var(--radius-sm);
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
	color: var(--color-white);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
}

/* Layout */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container-narrow {
	max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.section {
	padding-block: var(--section-y);
}

.section-tight {
	padding-block: 32px var(--section-y);
}

.section-soft {
	background: var(--color-bg-soft);
}

.section-dark {
	position: relative;
	background:
		radial-gradient(60% 50% at 50% 0%, rgba(230, 3, 19, 0.28), transparent 70%),
		var(--color-dark);
	color: var(--color-white);
}

.section-heading {
	max-width: 680px;
	margin: 0 auto 40px;
	text-align: center;
}

.section-heading p:not(.eyebrow) {
	margin-top: 16px;
	color: var(--color-text-muted);
	font-size: 1.125rem;
}

.section-heading-left {
	margin-inline: 0;
	text-align: left;
}

.section-dark .section-heading p:not(.eyebrow) {
	color: var(--color-dark-muted);
}

.section-title-sm {
	font-size: 1.75rem;
	margin-bottom: 28px;
}

.section-link {
	margin-top: 32px;
	text-align: center;
}

.section-link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
}

.eyebrow {
	margin-bottom: 12px;
	color: var(--color-primary);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.section-dark .eyebrow {
	color: #ff8a92;
}

.grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid var(--color-border);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	gap: 8px 16px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text);
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.brand:hover {
	color: var(--color-text);
}

/* App icon: iOS-style continuous corner radius (~22.37% of size). */
.brand-mark,
.cta-icon,
.inline-cta-icon {
	border-radius: 22.37%;
	box-shadow: 0 0 0 1px rgba(17, 19, 24, 0.06), 0 6px 16px -8px var(--color-icon-glow);
}

.brand-mark {
	width: 36px;
	height: 36px;
}

.brand-logo {
	width: auto;
	max-height: 34px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Phones: keep the header on one row. */
@media (max-width: 599px) {
	.header-inner {
		gap: 8px;
	}

	.header-actions {
		gap: 4px;
	}

	.brand {
		gap: 8px;
		font-size: 1.0625rem;
	}

	.brand .brand-mark {
		width: 32px;
		height: 32px;
	}

	.header-actions .btn-sm {
		padding: 8px 12px;
	}

	.nav-toggle {
		width: 40px;
	}
}

@media (max-width: 399px) {
	:root {
		--gutter: 16px;
	}
}

.cta-note {
	font-size: var(--text-small);
}

.cta-panel .cta-note {
	margin: 16px auto 0;
}

.nav-toggle {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	cursor: pointer;
}

.nav-toggle:hover {
	background: var(--color-bg-soft);
}

.nav-toggle .icon {
	width: 24px;
	height: 24px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.primary-nav {
	order: 3;
	width: 100%;
}

.primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0 0 10px;
	list-style: none;
}

.primary-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-size: var(--text-small);
	font-weight: 500;
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
	background: var(--color-bg-soft);
	color: var(--color-text);
}

/* With JS on small screens, the menu collapses behind the toggle. */
.js .nav-toggle {
	display: grid;
}

.js .primary-nav {
	display: none;
}

.js .primary-nav.is-open {
	display: block;
}

.js .primary-nav.is-open ul {
	flex-direction: column;
	padding: 8px 0 16px;
	border-top: 1px solid var(--color-border);
}

.js .primary-nav.is-open a {
	padding: 12px;
	font-size: 1.0625rem;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn .icon {
	width: 18px;
	height: 18px;
}

.btn-primary {
	background: var(--color-primary);
	color: var(--color-white);
	box-shadow: 0 8px 20px -8px var(--color-glow);
}

.btn-primary:hover {
	background: var(--color-primary-dark);
	color: var(--color-white);
}

.btn-secondary {
	background: var(--color-white);
	border-color: var(--color-border);
	color: var(--color-text);
}

.btn-secondary:hover {
	background: var(--color-bg-soft);
	color: var(--color-text);
}

.btn-sm {
	min-height: 40px;
	padding: 8px 16px;
	font-size: var(--text-small);
}

.btn-lg {
	min-height: 54px;
	padding: 14px 26px;
	font-size: 1.0625rem;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn-row-center {
	justify-content: center;
}

/* Official store badges (artwork is never recolored or altered). */
.store-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.store-badges-center {
	justify-content: center;
}

.store-badge {
	display: inline-block;
	flex-shrink: 0;
	border-radius: 9px;
	line-height: 0;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-badge:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -10px rgba(17, 19, 24, 0.5);
}

/* Size comes from the width/height attributes set in tcgscanner_store_badges(). */
.store-badge img {
	max-width: none;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	text-decoration: none;
}

.text-link .icon {
	width: 16px;
	height: 16px;
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	padding-block: 40px 64px;
	background:
		radial-gradient(70% 60% at 85% 30%, rgba(230, 3, 19, 0.12), transparent 70%),
		var(--color-bg);
}

.hero-grid {
	display: grid;
	gap: 48px;
	align-items: center;
}

.hero-title {
	max-width: 12ch;
}

.hero-lead {
	max-width: 560px;
	margin: 20px 0 28px;
	color: var(--color-text-muted);
	font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
}

.hero-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	margin-top: 16px;
	color: var(--color-text-muted);
	font-size: var(--text-small);
}

.badge-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	background: var(--color-white);
	color: var(--color-text);
	font-size: 0.875rem;
	font-weight: 500;
}

.badge .icon {
	width: 16px;
	height: 16px;
	color: var(--color-primary);
}

.hero-visual {
	position: relative;
	display: flex;
	justify-content: center;
}

.hero-glow {
	position: absolute;
	inset: 10% 5%;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--color-glow), transparent);
	filter: blur(20px);
}

.hero .phone {
	width: min(260px, 70vw);
}

/* Phone mockup (pure CSS frame around a real screenshot) */
.phone {
	position: relative;
	width: 260px;
	max-width: 100%;
	padding: 9px;
	border-radius: 46px;
	background: linear-gradient(160deg, #2a2a30, #0b0a12 40%);
	box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone img {
	width: 100%;
	border-radius: 38px;
	background: var(--color-dark);
}

/* Components */
.card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-white);
}

.card-feature,
.card-case {
	padding: 26px;
}

.card-feature h3,
.card-case h3 {
	margin: 18px 0 8px;
	font-size: 1.1875rem;
}

.card-feature p,
.card-case p {
	color: var(--color-text-muted);
	font-size: 1rem;
}

.card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--color-primary-soft);
	color: var(--color-primary);
}

.card-link {
	display: inline-block;
	margin-top: 12px;
	font-size: var(--text-small);
	font-weight: 600;
}

.section-dark .card {
	border-color: var(--color-dark-border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.section-dark .card p {
	color: var(--color-dark-muted);
}

.section-dark .card-icon {
	background: rgba(230, 3, 19, 0.18);
	color: #ff8a92;
}

.effects {
	margin-top: 48px;
	text-align: center;
}

.effects-title {
	margin-bottom: 18px;
	font-size: 1.125rem;
	color: var(--color-dark-muted);
	font-weight: 600;
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.chip {
	padding: 8px 16px;
	border: 1px solid var(--color-dark-border);
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, 0.08);
	font-size: var(--text-small);
	font-weight: 500;
}

/* How it works */
.how-grid {
	display: grid;
	gap: 48px;
	align-items: center;
}

.steps {
	display: grid;
	gap: 14px;
}

.step {
	display: flex;
	gap: 18px;
	padding: 22px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-white);
}

.step-number {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--color-primary);
	color: var(--color-white);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.step h3 {
	margin-bottom: 4px;
	font-size: 1.1875rem;
}

.step p {
	color: var(--color-text-muted);
	font-size: 1rem;
}

.tip {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: var(--radius-md);
	background: var(--color-primary-soft);
	font-size: var(--text-small);
}

.how-visual {
	display: flex;
	justify-content: center;
}

/* Screenshots */
.screens {
	display: flex;
	gap: 20px;
	margin-inline: calc(var(--gutter) * -1);
	padding: 8px var(--gutter) 40px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.screens li {
	flex: 0 0 auto;
	scroll-snap-align: center;
}

.screens .phone {
	width: 240px;
}

.screens figcaption {
	margin-top: 18px;
	text-align: center;
	font-weight: 600;
}

/* CTA */
.cta-panel {
	position: relative;
	overflow: hidden;
	padding: 56px 24px;
	border-radius: var(--radius-xl);
	background: var(--color-dark);
	color: var(--color-white);
	text-align: center;
}

.cta-glow {
	position: absolute;
	left: 50%;
	top: -40%;
	width: 120%;
	height: 120%;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(230, 3, 19, 0.55), transparent);
	pointer-events: none;
}

.cta-panel > *:not(.cta-glow) {
	position: relative;
}

.cta-icon {
	display: block;
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px -12px var(--color-icon-glow);
}

.cta-panel h2 {
	max-width: 18ch;
	margin-inline: auto;
}

.cta-panel p {
	max-width: 520px;
	margin: 16px auto 28px;
	color: var(--color-dark-muted);
}

/* Cards (blog) */
.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.post-card-media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.post-card .eyebrow {
	margin-bottom: 8px;
}

.post-card-title {
	font-size: 1.25rem;
	line-height: 1.3;
}

.post-card-title a {
	color: var(--color-text);
	text-decoration: none;
}

.post-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.post-card-excerpt {
	margin: 10px 0 16px;
	color: var(--color-text-muted);
	font-size: 1rem;
}

.post-card .post-meta {
	margin-top: auto;
}

/* Blog */
.page-header {
	padding-block: 40px 32px;
}

.page-header-center {
	text-align: center;
}

.page-header-center .breadcrumbs ol {
	justify-content: center;
}

.page-title {
	font-size: clamp(2.125rem, 4vw + 1rem, 3.25rem);
}

.page-lead {
	max-width: 620px;
	margin: 16px auto 0;
	color: var(--color-text-muted);
	font-size: 1.125rem;
}

.post-meta {
	margin-top: 14px;
	color: var(--color-text-muted);
	font-size: var(--text-small);
}

.breadcrumbs {
	margin-bottom: 18px;
	font-size: 0.875rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-text-muted);
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 4px;
	opacity: 0.5;
}

.breadcrumbs a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.post-thumbnail {
	margin-bottom: 36px;
}

.post-thumbnail img {
	width: 100%;
	border-radius: var(--radius-lg);
}

.prose {
	padding-bottom: 32px;
	font-size: var(--text-body);
	line-height: 1.75;
}

.prose > * + * {
	margin-top: 1.25em;
}

.prose h2 {
	margin-top: 2em;
	font-size: clamp(1.625rem, 1.5vw + 1rem, 2rem);
}

.prose h3 {
	margin-top: 1.6em;
	font-size: 1.375rem;
}

.prose h2 + *,
.prose h3 + * {
	margin-top: 0.6em;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose blockquote {
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--color-primary);
	color: var(--color-text-muted);
}

.prose img {
	border-radius: var(--radius-md);
}

.prose figcaption {
	margin-top: 8px;
	color: var(--color-text-muted);
	font-size: var(--text-small);
	text-align: center;
}

.prose code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--color-bg-soft);
	font-size: 0.9em;
}

.prose pre {
	overflow-x: auto;
	padding: 16px;
	border-radius: var(--radius-md);
	background: var(--color-bg-soft);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
}

.prose .alignwide,
.prose .alignfull {
	max-width: none;
}

.prose .wp-block-table {
	overflow-x: auto;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.prose .wp-block-table table {
	min-width: 520px;
}

.prose .wp-block-table thead {
	border: 0;
}

.prose .wp-block-table th,
.prose .wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--color-border);
}

.prose .wp-block-table th {
	background: var(--color-bg-soft);
	font-size: var(--text-small);
	font-weight: 700;
}

.prose .wp-block-table tr:last-child td {
	border-bottom: 0;
}

/* Details blocks (FAQs written in the editor) */
.prose .wp-block-details {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-white);
}

.prose .wp-block-details + .wp-block-details {
	margin-top: 12px;
}

.prose .wp-block-details summary {
	position: relative;
	padding: 18px 52px 18px 20px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.prose .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.prose .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-primary);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.2s ease;
}

.prose .wp-block-details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.prose .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 20px 18px;
	color: var(--color-text-muted);
	font-size: 1rem;
}

/* Table of contents (inc/blog.php) */
.toc {
	margin-block: 1.5em 2em;
	padding: 20px 24px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-bg-soft);
}

.toc-title {
	margin-bottom: 8px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.prose .toc ol {
	margin: 0;
	padding-left: 0;
	list-style: none;
	font-size: 1rem;
	line-height: 1.5;
}

.prose .toc li + li {
	margin-top: 6px;
}

.toc a {
	color: var(--color-text);
	text-decoration: none;
}

.toc a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

/* Landing pages */
.landing-hero .breadcrumbs {
	margin-bottom: 20px;
}

.landing-title {
	max-width: 16ch;
	font-size: clamp(2.25rem, 5vw + 0.5rem, 3.5rem);
}

.landing-body {
	padding-top: 24px;
}

.landing-body .prose > h2:first-child {
	margin-top: 0.5em;
}

.inline-cta {
	display: grid;
	gap: 16px;
	align-items: center;
	margin: 16px 0 40px;
	padding: 24px;
	border: 1px solid #f7c6ca;
	border-radius: var(--radius-lg);
	background: var(--color-primary-soft);
}

.inline-cta-icon {
	width: 56px;
	height: 56px;
}

.inline-cta-title {
	font-weight: 700;
	font-size: 1.125rem;
}

.inline-cta p:not(.inline-cta-title) {
	color: var(--color-text-muted);
	font-size: 1rem;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
}

.post-tags a {
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	background: var(--color-bg-soft);
	color: var(--color-text-muted);
	font-size: 0.875rem;
	text-decoration: none;
}

.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	color: var(--color-text);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--color-text);
	border-color: var(--color-text);
	color: var(--color-white);
}

.empty-state {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
	color: var(--color-text-muted);
}

.empty-state .search-form {
	margin-top: 20px;
}

/* Price example (homepage) */
.price-example-grid {
	display: grid;
	gap: 48px;
	align-items: center;
}

.price-example-grid > *,
.game-card > * {
	min-width: 0;
}

.price-example-visual {
	display: flex;
	justify-content: center;
}

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-white);
}

.price-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.price-table caption {
	padding: 14px 18px 0;
	color: var(--color-text-muted);
	font-size: 0.8125rem;
	text-align: left;
}

.price-table th,
.price-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

.price-table tbody tr:last-child > * {
	border-bottom: 0;
}

.price-table thead th {
	color: var(--color-text-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.price-table tbody th {
	white-space: nowrap;
}

.price-table tbody th span {
	display: block;
	color: var(--color-text-muted);
	font-size: 0.8125rem;
	font-weight: 400;
}

.price-cell {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Phones: each row becomes a small card (source + price, then the note). */
@media (max-width: 599px) {
	.price-table {
		min-width: 0;
	}

	.price-table thead {
		display: none;
	}

	.price-table tbody tr {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 4px 12px;
		padding: 14px 18px;
		border-bottom: 1px solid var(--color-border);
	}

	.price-table tbody tr:last-child {
		border-bottom: 0;
	}

	.price-table tbody th,
	.price-table tbody td {
		padding: 0;
		border: 0;
	}

	.price-table tbody td:last-child {
		grid-column: 1 / -1;
		color: var(--color-text-muted);
	}
}

.section-link-left {
	text-align: left;
}

/* Supported games */
.games-grid {
	display: grid;
	gap: 24px;
}

.game-card {
	display: grid;
	gap: 28px;
	align-items: center;
	padding: 28px;
	overflow: hidden;
}

.game-card h3 {
	margin-bottom: 16px;
}

.game-card-visual {
	display: flex;
	justify-content: center;
}

.game-card .phone {
	width: 220px;
}

.check-list {
	display: grid;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.check-list li {
	display: flex;
	gap: 10px;
	color: var(--color-text-muted);
	font-size: 1rem;
}

.check-list .icon {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	color: var(--color-primary);
}

.card-link .icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 4px;
	vertical-align: -3px;
}

/* Author box (inc/authors.php) */
.author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 0 0 32px;
	padding: 20px 24px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}

.author-avatar {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--color-dark);
	color: var(--color-white);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.author-box-name {
	margin-bottom: 4px;
	font-weight: 600;
}

.author-box p:not(.author-box-name) {
	color: var(--color-text-muted);
	font-size: 0.9375rem;
}

.disclaimer {
	margin: 32px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: 0.8125rem;
}

/* Callout used in articles: a Group block with the extra class "note" */
.prose .note {
	margin: 28px 0;
	padding: 18px 22px;
	border-left: 4px solid var(--color-primary);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: var(--color-bg-soft);
}

.prose .note > :last-child {
	margin-bottom: 0;
}

.prose .wp-block-image.is-phone img {
	width: 280px;
	aspect-ratio: 540 / 1125;
	max-width: 100%;
	margin-inline: auto;
	border-radius: 28px;
	box-shadow: var(--shadow-md);
}

.prose .wp-block-image.is-phone figcaption {
	text-align: center;
}

@media (min-width: 900px) {
	.price-example-grid {
		grid-template-columns: 1.3fr 0.7fr;
		gap: 64px;
	}

	.games-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.game-card {
		grid-template-columns: 1fr auto;
	}

	.game-card .phone {
		width: 200px;
	}
}

/* Forms */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 480px;
	margin: 24px auto 0;
}

.search-form label {
	flex: 1;
}

.search-field,
.field input,
.field textarea,
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-white);
	font-size: 1rem;
}

.search-field:focus,
.field input:focus,
.field textarea:focus {
	border-color: var(--color-primary);
}

.search-submit {
	min-height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--color-text);
	color: var(--color-white);
	font-weight: 600;
	cursor: pointer;
}

.contact-form {
	display: grid;
	gap: 18px;
	margin-bottom: var(--section-y);
	padding: 28px;
}

.field label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--text-small);
	font-weight: 600;
}

.field-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form .btn {
	justify-self: start;
}

.notice {
	padding: 14px 16px;
	border-radius: var(--radius-md);
	font-size: var(--text-small);
}

.notice-success {
	background: #e8f7ee;
	color: #11632f;
}

.notice-error {
	background: #fdecec;
	color: #9b1c1c;
}

.comments {
	padding-block: 32px var(--section-y);
	border-top: 1px solid var(--color-border);
}

.comment-list {
	padding-left: 0;
	list-style: none;
}

.comment-list .comment {
	margin-top: 24px;
}

.comment-form {
	display: grid;
	gap: 14px;
}

.error-404 {
	padding-block: 80px;
}

/* FAQ */
.faq-list {
	display: grid;
	gap: 12px;
}

.faq-item {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-white);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	cursor: pointer;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary:focus-visible {
	outline-offset: -3px;
	border-radius: var(--radius-md);
}

.faq-question {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.4;
}

.faq-icon {
	color: var(--color-primary);
	transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	padding: 0 22px 22px;
	color: var(--color-text-muted);
	font-size: 1rem;
}

/* Footer */
.site-footer {
	padding-block: 56px 32px;
	border-top: 1px solid var(--color-border);
	background: var(--color-bg-soft);
	font-size: var(--text-small);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px 24px;
}

.footer-brand {
	grid-column: 1 / -1;
	max-width: 320px;
}

.footer-brand p {
	margin: 14px 0 18px;
	color: var(--color-text-muted);
}

.footer-heading {
	margin-bottom: 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text);
}

.footer-col ul,
.footer-bottom ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col li + li {
	margin-top: 8px;
}

.footer-col a,
.footer-bottom a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.footer-col a:hover,
.footer-bottom a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-muted);
}

.footer-bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-note {
	flex-basis: 100%;
	font-size: 0.8125rem;
}

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text,
.wp-element-caption { color: var(--color-text-muted); font-size: var(--text-small); }
.sticky .post-card-title::before { content: "★ "; color: var(--color-primary); }
.bypostauthor { display: block; }

/* Responsive */
@media (min-width: 600px) {
	:root {
		--gutter: 28px;
	}

	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.inline-cta {
		grid-template-columns: auto 1fr;
	}

	.inline-cta .store-badges {
		grid-column: 2;
	}

	.cta-panel {
		padding: 72px 40px;
	}

	.footer-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 900px) {
	:root {
		--section-y: 104px;
		--header-h: 72px;
		--gutter: 32px;
	}

	.header-inner {
		flex-wrap: nowrap;
	}

	.js .nav-toggle,
	.nav-toggle {
		display: none;
	}

	.primary-nav,
	.js .primary-nav {
		display: block;
		order: 0;
		width: auto;
		margin-left: auto;
	}

	.primary-nav ul,
	.js .primary-nav.is-open ul {
		flex-direction: row;
		padding: 0;
		border: 0;
	}

	.hero {
		padding-block: 72px 96px;
	}

	.hero-grid {
		grid-template-columns: 1.1fr 0.9fr;
	}

	.hero .phone {
		width: 320px;
	}

	.how-grid {
		grid-template-columns: 1.15fr 0.85fr;
		gap: 72px;
	}

	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.grid-4 {
		grid-template-columns: repeat(4, 1fr);
	}

	.screens {
		justify-content: center;
		gap: 40px;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}

	.screens .phone {
		width: 270px;
	}

	.screens li:nth-child(2) {
		transform: translateY(-24px);
	}

	.page-header {
		padding-block: 64px 40px;
	}

	.footer-grid {
		grid-template-columns: 1.6fr repeat(4, 1fr);
	}

	.footer-brand {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}
}

@media print {
	.site-header,
	.site-footer,
	.inline-cta,
	.related-posts {
		display: none;
	}
}
