/* Recast product site. Same world as the plugin: white page, near-black ink, soft grey
   rounded surfaces, heavy Poppins headings, black pill buttons. */

@font-face { font-family: "Recast Display"; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Recast Display"; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Recast Display"; font-weight: 800; font-display: swap; src: url(fonts/poppins-latin-800-normal.woff2) format("woff2"); }

:root {
	--page: #fff;
	--card: #f4f4f6;
	--card-2: #ebebef;
	--line: #e3e3e8;
	--line-strong: #c4c4cc;
	--ink: #0d0d0f;
	--ink-2: #4d4d57;
	--ink-3: #6b6b75;
	--night: #0e0e11;
	--night-card: #1a1a1f;
	--night-line: #2c2c33;
	--night-ink-2: #b4b4bf;
	--green: #177245;
	--green-night: #6fdc9f;
	--focus: #2563eb;
	--display: "Recast Display", system-ui, -apple-system, "Segoe UI", roboto, sans-serif;
	--font: system-ui, -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
	--radius: 16px;
	--radius-lg: 28px;
	--gutter: clamp(16px, 4vw, 48px);
	--max: 1200px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--shot-shadow: 0 1px 2px rgba(13, 13, 15, 0.08), 0 30px 80px -30px rgba(13, 13, 15, 0.45);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -0.038em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease); white-space: nowrap; }
.btn:hover { background: var(--card); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2b2b31; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.night .btn { border-color: #fff; color: #fff; }
.night .btn:hover { background: rgba(255, 255, 255, 0.08); }
.night .btn-primary { background: #fff; color: var(--ink); }
.night .btn-primary:hover { background: #e9e9ee; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--page); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }
.brand + .nav-cta { margin-inline-start: auto; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-inline-start: auto; } }
@media (max-width: 420px) { .nav-buy { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 5vw, 56px) 0; text-align: center; }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero .lede { max-width: 60ch; margin: 20px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.hero-shot { margin: clamp(32px, 4vw, 48px) auto 0; width: min(100% - 2 * var(--gutter), 1320px); perspective: 1600px; }
.hero-shot figure { margin: 0; }
.hero-shot img { border-radius: 22px; box-shadow: var(--shot-shadow); border: 1px solid var(--line); transform-origin: 50% 0; }
.hero-shot figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hero-shot img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
		@keyframes settle { from { transform: rotateX(18deg) scale(0.94); } to { transform: none; } }
	}
}

/* Facts strip */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; padding: 44px 0 0; margin: 0 auto; max-width: 980px; list-style: none; color: var(--ink-2); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--ink); }

/* Sections */
section { padding-block: clamp(80px, 11vw, 140px); }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.shot { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shot-shadow); }

.findings { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.findings li { padding-inline-start: 30px; position: relative; }
.findings li::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); }
.findings b { font-weight: 700; }
.findings span { display: block; color: var(--ink-2); font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 64px); margin-top: 56px; align-items: start; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step-list { display: grid; gap: 8px; }
.step-tab { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; text-align: start; width: 100%; padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid transparent; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background 200ms var(--ease), border-color 200ms var(--ease); }
.step-tab:hover { background: var(--card); }
.step-tab[aria-selected="true"] { background: var(--card); border-color: var(--ink); }
.step-num { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); font: 700 14px/1 var(--display); }
.step-tab[aria-selected="true"] .step-num { background: var(--ink); color: #fff; }
.step-tab b { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.step-tab span:last-child { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.step-panel { margin: 0; }
.step-panel[hidden] { display: none; }
.step-panel img { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shot-shadow); }
@media (prefers-reduced-motion: no-preference) { .step-panel:not([hidden]) img { animation: panel-in 420ms var(--ease); } }
@keyframes panel-in { from { opacity: 0.4; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Night band */
.night { background: var(--night); color: #fff; }
.night .lede { color: var(--night-ink-2); }
.guarantees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--night-line); }
.guarantees div { padding: 28px 28px 0 0; }
.guarantees div + div { padding-inline-start: 28px; border-inline-start: 1px solid var(--night-line); }
.guarantees p { color: var(--night-ink-2); margin-top: 10px; font-size: 16px; }
@media (max-width: 860px) { .guarantees { grid-template-columns: 1fr; } .guarantees div, .guarantees div + div { padding: 24px 0; border-inline-start: 0; border-bottom: 1px solid var(--night-line); } }
.night-shot { margin-top: 64px; }
.night-shot img { border-radius: 20px; border: 1px solid var(--night-line); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.night figcaption { margin-top: 14px; color: var(--night-ink-2); font-size: 14px; }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } }
.caps h3 { padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.caps ul { list-style: none; padding: 0; margin: 0; }
.caps li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.caps li b { display: block; color: var(--ink); font-weight: 650; }

/* Pricing */
.billing { display: inline-flex; margin-top: 32px; padding: 4px; border-radius: 999px; background: var(--card); }
.billing button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font: 600 15px/1 var(--font); color: var(--ink-2); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; text-align: start; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--card); }
.plan.featured { background: var(--ink); color: #fff; }
.plan h3 { font-size: 1.1rem; }
.plan .sites { color: var(--ink-3); font-size: 15px; margin-top: 2px; }
.plan.featured .sites, .plan.featured .per, .plan.featured li { color: var(--night-ink-2); }
.price { margin-top: 22px; font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.per { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink); }
.plan.featured li svg { color: #fff; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.featured .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.plan.featured .btn-primary:hover { background: #e9e9ee; }
.pricing-note { margin-top: 28px; color: var(--ink-3); font-size: 15px; text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-inline-end: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); margin-inline-end: 6px; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 68ch; }

/* Closing */
.closing { text-align: center; }
.closing .card { padding: clamp(48px, 8vw, 96px) var(--gutter); border-radius: 36px; background: var(--card); }
.closing h2 { max-width: 18ch; margin-inline: auto; }
.closing .lede { max-width: 56ch; margin: 20px auto 0; }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.trademark { margin-top: 20px; font-size: 13px; max-width: 80ch; }

/* Legal pages */
.doc { max-width: 760px; padding-block: 64px 96px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc .updated { margin-top: 12px; color: var(--ink-3); }
.doc h2 { font-size: 1.4rem; margin-top: 44px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); margin-top: 14px; }
.doc ul { padding-inline-start: 22px; }

/* Health check: copy in two columns, the screen full width below */
.health-head { align-items: start; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.health-head .section-head .lede { margin-top: 20px; }
.health-head .findings { margin-top: 8px; }
.wide-shot { margin-top: clamp(40px, 6vw, 72px); width: 100%; }

section.flush { padding-top: 0; }
section.flush { scroll-margin-top: 40px; }

/* Phones: Health copy in one column */
@media (max-width: 900px) { .health-head { grid-template-columns: 1fr; } }

/* Phones: each step shows its own screen under it, no tabs */
@media (max-width: 900px) {
	.steps { display: flex; flex-direction: column; gap: 16px; }
	.step-list, .step-panels { display: contents; }
	.step-tab, .step-tab[aria-selected="true"] { background: transparent; border-color: transparent; cursor: default; padding-inline: 0; }
	.step-tab .step-num, .step-tab[aria-selected="true"] .step-num { background: var(--ink); color: #fff; }
	.step-panel[hidden] { display: block; }
	.step-panel { margin-bottom: 32px; }
	#tab-select { order: 1; } #panel-select { order: 2; }
	#tab-change { order: 3; } #panel-change { order: 4; }
	#tab-preview { order: 5; } #panel-preview { order: 6; }
	#tab-apply { order: 7; } #panel-apply { order: 8; }
}

/* Checkout button while Freemius loads */
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
