@font-face { font-family: "Plex"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Colors come from the plugin icon: teal tile, white shield, amber to orange drop. */
:root {
	--teal: #14b8a6;
	--teal-deep: #0f5f59;
	--hero-from: #0f766e;
	--hero-to: #0b4a45;
	--on-hero: #dff5f1;
	--ink: #0b3532;
	--ink-soft: #3d5f5b;
	--mist: #eef6f4;
	--line: #d3e6e2;
	--white: #ffffff;
	--amber: #fbbf24;
	--orange: #f97316;
	--loss: #c2410c;
	--loss-bg: #fff4ec;
	--field-border: #5b8a84;
	--tile: 28px;
	--field: 12px;
	--wrap: 1120px;
	color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--mist);
	color: var(--ink);
	font: 400 1.0625rem/1.6 "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
/* Dark ring with an amber halo: at least 3:1 on both the white surfaces and the teal band. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--amber); border-radius: 6px; }
.sprite { position: absolute; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header, laid over the top of the teal band so that main can start with the hero */
.site-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; }
.brand:hover { color: var(--white); }
.top-link { color: var(--white); font-weight: 500; font-size: 0.95rem; text-align: right; }
.top-link:hover { color: var(--white); text-decoration-thickness: 2px; }

/* Hero: the icon tile, stretched into a band */
.hero {
	/* The icon gradient starts at #14b8a6, too light for white text, so the band starts one step darker. */
	background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
	color: var(--white);
	border-radius: 0 0 48px 48px;
	padding: 84px 0 72px;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 700; max-width: 14ch; }
.hero .lede { margin-top: 20px; font-size: 1.2rem; max-width: 34ch; color: var(--on-hero); }

/* Preflight demo: the white shield on the tile */
.demo { background: var(--white); color: var(--ink); border-radius: var(--tile); padding: 28px; box-shadow: 0 30px 60px -30px rgba(4, 40, 37, 0.55); }
.demo-title { font-size: 1.25rem; font-weight: 700; }
.demo-sub { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }
.demo-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 20px 0 8px; }
.demo-control label { font-weight: 600; }
.demo-control output { font-weight: 700; font-size: 1.35rem; min-width: 3.2ch; text-align: right; }
/* Darker than the drop orange, so the slider stays at 3:1 against white. */
input[type="range"] { width: 100%; accent-color: #ea580c; }
.demo-summary { font-weight: 500; margin: 6px 0 14px; min-height: 1.6em; }
.demo-summary strong { color: var(--loss); }
.demo table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.demo th { text-align: right; font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; padding: 0 0 8px 8px; }
.demo th:first-child, .demo td:first-child { text-align: left; padding-left: 0; }
.demo td { text-align: right; padding: 9px 0 9px 8px; border-top: 1px solid var(--line); }
.demo td:first-child span { vertical-align: middle; }
.demo .drop { display: inline-block; vertical-align: middle; width: 14px; height: 18px; margin-right: 10px; visibility: hidden; }
.demo tr.is-loss td { color: var(--loss); }
.demo tr.is-loss td:first-child { color: var(--ink); }
.demo tr.is-loss .drop { visibility: visible; }
.demo .note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }

.demo input[type="range"]:disabled { opacity: 0.6; }
.feature-title { font-size: 1.1rem; font-weight: 600; }

/* Sections */
main section { padding: 80px 0 0; }
.section-head { max-width: 40rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.1rem; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.features svg { width: 44px; height: 44px; }
.features p { color: var(--ink-soft); margin-top: 4px; }

.signup { background: var(--white); border-radius: var(--tile); padding: 32px; border: 1px solid var(--line); }
.signup { color: var(--ink); box-shadow: 0 30px 60px -30px rgba(4, 40, 37, 0.55); border: 0; }
.signup h2 { font-size: 1.4rem; font-weight: 700; }
.signup > p { color: var(--ink-soft); margin-top: 6px; }
.field { margin-top: 20px; }
.field > label:not(.choice), .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
input[type="email"], input[type="text"] {
	width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--field-border); border-radius: var(--field); background: var(--white); color: var(--ink);
}
input[type="email"]:focus-visible, input[type="text"]:focus-visible { border-color: var(--teal-deep); }
input[aria-invalid="true"] { border-color: var(--loss); }
.field-error { color: var(--loss); font-size: 0.9rem; margin-top: 6px; }
.field-error[hidden] { display: none; }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.choice input { margin-top: 5px; accent-color: var(--teal-deep); width: 18px; height: 18px; flex: none; }
.consent { font-size: 0.95rem; }
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 24px;
	font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink); cursor: pointer;
	background: linear-gradient(180deg, var(--amber) -40%, var(--orange) 100%);
	border: 0; border-radius: var(--field); padding: 15px 20px;
}
.button:hover { filter: brightness(0.96); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.form-message { margin-top: 16px; padding: 14px 16px; border-radius: var(--field); display: none; }
.form-message.is-visible { display: block; }
.form-message.is-success { background: #e3f6f2; color: var(--teal-deep); }
.form-message.is-error { background: var(--loss-bg); color: var(--loss); }
.small { font-size: 0.875rem; color: var(--ink-soft); }
.consent-note { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 4px; background: var(--teal); }
.checks strong { font-weight: 600; }
.cta-secondary {
	display: inline-flex; margin-top: 28px; padding: 13px 20px; border-radius: var(--field);
	border: 2px solid var(--teal-deep); color: var(--teal-deep); font-weight: 600; text-decoration: none;
}
.cta-secondary:hover { background: var(--teal-deep); color: var(--white); }

/* Footer */
.foot { margin-top: 96px; padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot p + p { margin-top: 6px; }

/* Legal pages */
.legal-hero { padding-bottom: 40px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); padding-top: 24px; max-width: 26ch; }
.legal-hero p { margin-top: 10px; color: var(--on-hero); }
.legal { max-width: 46rem; padding-top: 48px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul, .legal ol, .legal dl { margin: 0 0 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.guide-shot { margin: 24px 0; }
.guide-shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.guide-shot figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--ink-soft); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 0 0 12px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }

/* Status pages (confirm, subscribed) */
.status { max-width: 36rem; padding: 40px 0 0; }
.status p { margin-top: 12px; font-size: 1.15rem; color: var(--on-hero); }

/* Home: hero with the Preflight demo */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 40px; }
.hero-split h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); max-width: 16ch; }
.hero-split .lede { max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
a.button { text-decoration: none; }
.button-inline { width: auto; margin-top: 0; }
.cta-ghost {
	display: inline-flex; align-items: center; padding: 13px 20px; border-radius: var(--field);
	border: 2px solid rgba(255, 255, 255, 0.75); color: var(--white); font-weight: 600; text-decoration: none;
}
.cta-ghost:hover { background: var(--white); color: var(--teal-deep); }
.hero-meta { margin-top: 18px; font-size: 0.95rem; color: var(--on-hero); max-width: 46ch; }
.demo tbody th { text-align: left; font-weight: 400; font-size: 1em; color: var(--ink); padding: 9px 0; border-top: 1px solid var(--line); }
.loss-tag { display: none; margin-left: 24px; font-size: 0.8rem; font-weight: 600; color: var(--loss); }
.demo-cta { margin-top: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compat { padding-top: 28px; text-align: center; color: var(--ink-soft); font-size: 0.95rem; }

/* Home: Free and Pro */
main section.plans-section { padding-top: 48px; }
.plans-title { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: stretch; }
.plan { background: var(--white); color: var(--ink); border-radius: var(--tile); padding: 32px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.plan-pro { border: 2px solid var(--teal-deep); }
.plan-label { align-self: flex-start; font-size: 0.85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #e3f6f2; color: var(--teal-deep); }
.plan-pro .plan-label { background: var(--loss-bg); color: var(--loss); }
.plan h3 { font-size: 1.6rem; font-weight: 700; margin-top: 14px; }
.plan h4 { margin: 0; line-height: 1.15; }
.plan-price { margin-top: 4px; color: var(--ink-soft); }
.plan .checks { margin-top: 24px; }
.plan-intro { margin-top: 24px; font-weight: 600; }
.plan-intro + .features { margin-top: 16px; }
.plan-pitch { margin-top: 24px; font-weight: 600; }
.plan-note { margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
.plan-foot { margin-top: auto; padding-top: 28px; }
.plan-foot .button { margin-top: 0; }
.cta-block { display: flex; justify-content: center; margin-top: 0; width: 100%; }
.plans-limit { margin-top: 20px; font-size: 0.95rem; color: var(--ink-soft); }

/* Home: demo video, waitlist, FAQ and closing band */
.compat strong { color: var(--ink); font-weight: 600; }
main section.inside-section { padding-top: 56px; }
.demo-video { position: relative; margin: 28px 0 0; }
.demo-video video { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 30px 60px -30px rgba(4, 40, 37, 0.35); }
.video-toggle {
	position: absolute; right: 14px; bottom: 14px; padding: 6px 14px; border: 0; border-radius: 999px;
	background: rgba(4, 30, 28, 0.72); color: var(--white); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.video-toggle:hover { background: rgba(4, 30, 28, 0.9); }
.video-toggle:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.inside-more { margin-top: 12px; font-size: 0.95rem; }
.waitlist-wrap { max-width: 640px; }
.waitlist-section .signup { border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(4, 40, 37, 0.35); }
.form-reassure { margin-top: 12px; text-align: center; }
.faq-section h2, .closing h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.faq { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; }
.faq h3 { font-size: 1.05rem; font-weight: 600; }
.faq p { margin-top: 4px; color: var(--ink-soft); }
.closing { text-align: center; padding: 48px 0 0; }
.closing .hero-ctas { justify-content: center; }
.cta-inline { margin-top: 0; }

@media (max-width: 860px) {
	.hero-split, .plans, .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.faq { gap: 20px; }
	.hero-split { padding-top: 16px; }
	.plans { gap: 24px; }
	.plans-title, .compat { text-align: left; }
	.plan { padding: 24px; }
}
@media (max-width: 480px) {
	.hero-ctas > * { width: 100%; justify-content: center; text-align: center; }
	/* The Margin column is hidden here, so the loss is spelled out under the name. */
	.demo tr.is-loss .loss-tag { display: block; }
}

/* Screenshot viewer */
a[data-viewer] { cursor: zoom-in; }
html.viewer-open { overflow: hidden; }
.viewer { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; overflow: hidden; }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer::backdrop { background: rgba(4, 30, 28, 0.55); animation: viewer-fade 0.38s ease both; }
.viewer.is-closing::backdrop { animation: viewer-fade-out 0.3s ease both; }
.viewer-body { width: min(1110px, 100vw - 32px); max-height: calc(100vh - 96px); overflow: auto; border-radius: 16px; background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); transform-origin: 0 0; }
.viewer-body img { display: block; width: 100%; height: auto; }
.viewer-body:focus-visible { outline-offset: -3px; }
.viewer-close {
	position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--white); color: var(--ink); font-size: 1.6rem; line-height: 1; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	animation: viewer-fade 0.38s ease both;
}
.viewer.is-closing .viewer-close { animation: viewer-fade-out 0.2s ease both; }
@keyframes viewer-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes viewer-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.viewer::backdrop, .viewer-close { animation: none; }
}

@media (max-width: 860px) {
	.hero { border-radius: 0 0 32px 32px; padding: 76px 0 48px; }
	main section { padding-top: 64px; }
	.demo, .signup { padding: 22px; }
}
@media (max-width: 480px) {
	.demo th:nth-child(4), .demo td:nth-child(4) { display: none; }
	.legal dl { grid-template-columns: 1fr; }
	.legal dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}

.legal-head p, .status p { margin-top: 10px; color: var(--on-hero); }
.status p { font-size: 1.15rem; }
.status p + p { margin-top: 14px; }
a.on-dark { color: var(--white); font-weight: 600; }
.legal th { font-weight: 600; }
@media (max-width: 720px) {
	.legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
	.legal thead { position: absolute; left: -9999px; }
	.legal tr { border-top: 1px solid var(--line); padding: 10px 0; }
	.legal td { border: 0; padding: 4px 0; }
	.legal td::before { display: block; font-weight: 600; font-size: 0.85rem; color: var(--ink-soft); }
	.legal td::before { content: attr(data-label); }
}
