/*
Theme Name: KeePair
Theme URI: https://keepair.app
Author: Almog Cohen
Description: One-page landing theme for the KeePair iPhone app, with a blog and article layout.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: keepair
*/

:root {
	--ink: #0b0920;
	--ink-2: #15123a;
	--blue: #3a33f0;
	--blue-hi: #524cfb;
	--blue-lo: #2621db;
	--lav: #9d99ff;
	--paper: #f3f3f8;
	--white: #fff;
	--text: #0e0b3d;
	--muted: #5d5b7c;
	--line: #dcdcea;
	--alarm: #ff4d3d;
	--display: "Outfit", system-ui, sans-serif;
	--body: "Figtree", system-ui, sans-serif;
	--wrap: 1120px;
	--gutter: clamp(20px, 5vw, 40px);
	--i-icon: url(assets/img/icon.png);
	--i-mark: url(assets/img/mark.png);
	--i-bud-l: url(assets/img/bud-left.png);
	--i-bud-r: url(assets/img/bud-right.png);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Display type: light and bold lines, the same pairing as the logo */
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.display .thin { font-weight: 300; display: block; }
.h2 { font-size: clamp(34px, 5.6vw, 64px); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34em; text-wrap: pretty; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.38em; text-decoration: none; font-size: 26px; color: inherit; }
.logo__icon { width: 1.42em; height: 1.42em; border-radius: 22.5%; background: var(--i-icon) center/cover; flex: none; box-shadow: 0 4px 16px rgb(58 51 240 / 0.45); }
.logo__word { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1; padding-bottom: 0.06em; }
.logo__word b { font-weight: 700; }
.logo--color .logo__word b { color: var(--blue); }

/* ---------- App Store button ---------- */
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; padding: 10px 20px 10px 16px; border-radius: 14px; border: 1px solid rgb(255 255 255 / 0.28); line-height: 1.1; transition: transform 0.2s, box-shadow 0.2s; }
.store__apple { width: 26px; height: 26px; flex: none; margin-top: -3px; }
.store__text { font: 600 20px/1.05 var(--display); letter-spacing: -0.01em; display: grid; text-align: left; }
.store__text small { font: 500 11px/1.2 var(--body); letter-spacing: 0.01em; opacity: 0.85; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(58 51 240 / 0.45); }
.store--soon { cursor: default; }
.store--light { background: #fff; color: #000; border-color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--display); padding: 14px 22px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.btn:hover { background: var(--blue-lo); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgb(58 51 240 / 0.08); }

/* ---------- Floating nav ---------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; pointer-events: none; }
.nav__bar { pointer-events: auto; width: min(100% - 24px, 980px); margin-inline: auto; display: flex; align-items: center; gap: 20px; padding: 9px 10px 9px 16px; border-radius: 22px; background: rgb(11 9 32 / 0.78); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: #fff; border: 1px solid rgb(255 255 255 / 0.1); transition: box-shadow 0.3s; }
/* Logged-in admins: sit below the WordPress toolbar */
.admin-bar .nav { top: 46px; }
@media (max-width: 782px) { .admin-bar .nav { top: 60px; } }
.nav.is-stuck .nav__bar { box-shadow: 0 14px 40px rgb(11 9 32 / 0.28); }
.nav .logo { font-size: 34px; }
.nav__bar { padding-block: 10px; }
.nav__links { display: flex; gap: 2px; margin-inline: auto; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; opacity: 0.78; transition: opacity 0.2s, background 0.2s; }
.nav__links a:hover, .nav__links a[aria-current] { opacity: 1; background: rgb(255 255 255 / 0.1); }
.lang { position: relative; font-size: 14px; font-weight: 600; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; opacity: 0.85; transition: background 0.2s, opacity 0.2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgb(255 255 255 / 0.1); opacity: 1; }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 150px; padding: 6px; border-radius: 14px; background: #1b1840; border: 1px solid rgb(255 255 255 / 0.12); box-shadow: 0 18px 40px rgb(0 0 0 / 0.4); }
.lang a { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-weight: 500; }
.lang a:hover { background: rgb(255 255 255 / 0.08); }
.lang a[aria-current]::after { content: ""; width: 6px; height: 11px; border: solid var(--lav); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nav__cta { font-size: 14px; padding: 11px 16px; background: #fff; color: var(--ink); }
.nav__cta:hover { background: var(--lav); color: var(--ink); }
.nav__toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgb(255 255 255 / 0.1); cursor: pointer; position: relative; }
.nav__toggle::before, .nav__toggle::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.25s; }
.nav__toggle::before { top: 16px; }
.nav__toggle::after { top: 24px; }
.nav.is-open .nav__toggle::before { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle::after { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 800px) {
	.nav__bar { flex-wrap: wrap; gap: 8px; }
	.nav__toggle { display: block; }
	.nav .logo { font-size: 29px; }
	.nav__cta { margin-inline-start: auto; }
	.lang { order: 6; flex-basis: 100%; display: none; border-top: 1px solid rgb(255 255 255 / 0.12); padding: 8px 0 4px; font-size: 16px; }
	.nav.is-open .lang { display: block; }
	.lang ul { position: static; background: none; border: 0; box-shadow: none; padding: 0; }
	.nav__links { order: 5; flex-basis: 100%; flex-direction: column; margin: 0; display: none; padding: 6px 0 8px; }
	.nav.is-open .nav__links { display: flex; }
	.nav__links a { font-size: 18px; padding: 12px; }
}

/* ---------- Hero: pinned while the case opens ---------- */
.hero { position: relative; height: 210vh; height: 210svh; background: var(--ink); color: #fff; text-align: center; overflow: clip; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-top: clamp(96px, 13svh, 130px); }
.hero__pin::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 90%; background: radial-gradient(closest-side, rgb(82 76 251 / 0.75), rgb(38 33 219 / 0.35) 55%, transparent); pointer-events: none; }
.hero__copy { position: relative; z-index: 2; opacity: calc(1 - var(--copy, 0)); transform: translateY(calc(var(--copy, 0) * -40px)); }
.hero__title { font-size: clamp(32px, min(9.2vw, 12.5svh), 108px); overflow-wrap: break-word; }
.hero__title span { display: block; }
.hero__sub { margin: clamp(14px, 2.6svh, 26px) auto 0; max-width: 31em; font-size: clamp(16px, min(1.7vw, 2.5svh), 21px); color: rgb(255 255 255 / 0.74); text-wrap: pretty; }
.hero__cta { margin-top: clamp(16px, 3svh, 30px); display: grid; justify-items: center; gap: 10px; }
.hero__note { font-size: 14px; color: rgb(255 255 255 / 0.6); }
.hero__scene { position: relative; flex: 1; min-height: 0; display: grid; place-items: end center; padding-bottom: clamp(18px, 4svh, 44px); }

/* The case. Every size is in em so it scales with the viewport height. */
.case { position: relative; width: 8.6em; height: 9.6em; font-size: min(3.1svh, 5.6vw, 30px); perspective: 60em; transform: translateY(calc(var(--rise, 0) * -17svh)) scale(calc(1 + var(--rise, 0) * 0.22)); transform-origin: 50% 100%; }
.case > * { position: absolute; }
.case__shadow { left: -8%; right: -8%; bottom: -0.9em; height: 1.8em; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 0.6), transparent); }
/* The lid swings up and back: first its outside foreshortens, then its inside shows above the rim */
.case__lid-out, .case__lid-in { left: 0; width: 100%; transform-origin: 50% 100%; border-radius: 2.7em 2.7em 0.12em 0.12em; }
.case__lid-out { top: 0; height: 3.1em; transform: rotateX(calc(var(--open, 0) * 90deg)); background: linear-gradient(100deg, #d9dcea, #fff 28%, #f4f5fa 62%, #b9bed2); box-shadow: inset 0 -0.08em 0 #aab0c6, inset 0 0.5em 0.8em rgb(255 255 255 / 0.9); }
.case__lid-in { top: 0.5em; height: 2.6em; transform: scaleY(var(--open2, 0)); background: radial-gradient(1.4em 1em at 29% 60%, #8f95ae, transparent 72%), radial-gradient(1.4em 1em at 71% 60%, #8f95ae, transparent 72%), linear-gradient(180deg, #b9bdd0, #e2e4ee); box-shadow: inset 0 0 0 0.26em #eef0f6; }
.case__mouth { left: 0.35em; right: 0.35em; top: 2.75em; height: 1.1em; border-radius: 50%; background: radial-gradient(closest-side, #1b1c2a, #4b4f66); opacity: var(--open, 0); }
.case__body { left: 0; top: 3.16em; width: 100%; bottom: 0; }
.case__body i { position: absolute; inset: 0; border-radius: 0.12em 0.12em 2.9em 2.9em; background: linear-gradient(100deg, #d9dcea, #fff 28%, #f4f5fa 62%, #b3b8cd); box-shadow: inset 0 0.08em 0 #fff, inset 0 -0.9em 1.2em rgb(120 126 156 / 0.35); }
.case__body i::after { content: ""; position: absolute; left: 50%; top: 1.5em; width: 0.26em; height: 0.26em; margin-left: -0.13em; border-radius: 50%; background: #5df08a; box-shadow: 0 0 0.5em #5df08a; opacity: var(--open, 0); }
.case .pod { top: 1.3em; height: 7.6em; aspect-ratio: 220 / 440; will-change: transform; }
.case .pod svg { width: 100%; height: 100%; overflow: visible; }
.case .pod--l { left: 0.55em; transform: translate(calc(var(--rise, 0) * -0.9em), calc(var(--rise, 0) * -7.6em)) rotate(calc(var(--rise, 0) * -9deg)); }
.case .pod--r { left: 4.25em; transform: translate(calc(var(--rise, 0) * 0.9em), calc(var(--rise2, 0) * -7.2em)) rotate(calc(var(--rise, 0) * 9deg)); }
.case .pod--r svg { transform: scaleX(-1); }

/* Page-load sequence */
.hero__title span, .hero__sub, .hero__cta, .hero__scene { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.is-loaded .hero__title span, .is-loaded .hero__sub, .is-loaded .hero__cta, .is-loaded .hero__scene { opacity: 1; transform: none; }
.is-loaded .hero__title span:nth-child(2) { transition-delay: 0.12s; }
.is-loaded .hero__sub { transition-delay: 0.3s; }
.is-loaded .hero__cta { transition-delay: 0.42s; }
.is-loaded .hero__scene { transition-delay: 0.5s; }

/* ---------- Problem: words light up as you scroll ---------- */
.problem { padding: clamp(90px, 16vh, 180px) 0; background: var(--paper); }
.problem__text { font: 500 clamp(27px, 4.3vw, 54px)/1.16 var(--display); letter-spacing: -0.03em; max-width: 19em; text-wrap: pretty; }
.problem__text .w { opacity: 0.14; transition: opacity 0.25s linear; }
.problem__text .w.on { opacity: 1; }
.problem__text .w.blue { color: var(--blue); }

/* ---------- Scroll story ---------- */
.story { position: relative; height: 520vh; background: var(--ink); color: #fff; }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 4vw; padding: 90px var(--gutter) 30px; max-width: 1240px; margin-inline: auto; }
.story__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 70% 55%, rgb(58 51 240 / 0.5), transparent 70%); transition: background 0.6s; }
.story[data-beat="2"] .story__glow { background: radial-gradient(60% 50% at 70% 55%, rgb(255 77 61 / 0.42), transparent 70%); }
.story__beats { position: relative; display: grid; gap: clamp(14px, 3vh, 30px); }
.beat { opacity: 0.28; transition: opacity 0.4s; }
.beat.is-on { opacity: 1; }
.beat__n { font: 600 13px/1 var(--display); color: var(--lav); display: block; margin-bottom: 8px; }
.beat h3 { font: 600 clamp(24px, 2.9vw, 40px)/1.06 var(--display); letter-spacing: -0.03em; }
.beat p { margin-top: 8px; color: rgb(255 255 255 / 0.72); font-size: 16px; max-width: 26em; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s, opacity 0.4s; }
.beat.is-on p { max-height: 8em; opacity: 1; }
.story__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 16px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.14); }
.story__progress i { display: block; height: 100%; border-radius: 3px; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }

/* The scene scales as one unit: every size inside is in em */
.bud { position: absolute; inset: 0; background: center/contain no-repeat; will-change: transform; }
.bud--l { background-image: var(--i-bud-l); }
.bud--r { background-image: var(--i-bud-r); }
.viz { position: relative; width: 100em; height: 100em; font-size: min(0.6vh, 0.48vw, 5.4px); justify-self: center; }
.viz .k { position: absolute; left: 6em; top: 12em; width: 62em; height: 70em; transform: translate(calc(var(--shift, 0) * -14em), calc(var(--shift, 0) * -6em)) scale(calc(1 - var(--shift, 0) * 0.28)); transform-origin: 30% 50%; }
.viz .bud--r { transform: translate(calc(var(--fall, 0) * -4em), calc(var(--fall, 0) * 64em)) rotate(calc(var(--fall, 0) * 78deg)) scale(calc(1 - var(--fall, 0) * 0.45)); opacity: calc(1 - var(--fall, 0) * 0.45); }
.viz .rings { position: absolute; left: 12em; top: 6em; width: 28em; height: 28em; pointer-events: none; opacity: var(--alert, 0); }
.viz .rings i { position: absolute; inset: 0; border-radius: 50%; border: 0.5em solid var(--alarm); opacity: 0; }
.story[data-beat="2"] .rings i { animation: ring 1.5s ease-out infinite; }
.viz .rings i:nth-child(2) { animation-delay: 0.5s !important; }
.viz .rings i:nth-child(3) { animation-delay: 1s !important; }
@keyframes ring { from { transform: scale(0.3); opacity: 0.95; } to { transform: scale(1.5); opacity: 0; } }

.phone { position: absolute; left: 54em; top: 4em; width: 44em; height: 92em; border-radius: 7.4em; background: #05040f; border: 0.5em solid #2c2a45; box-shadow: 0 5em 12em rgb(0 0 0 / 0.55), inset 0 0 0 0.35em #000; padding: 1.3em; transform: translateY(calc((1 - var(--phone, 0)) * 70em)) rotate(calc((1 - var(--phone, 0)) * 9deg)); opacity: clamp(0, calc(var(--phone, 0) * 3), 1); }
.story[data-beat="2"] .phone { animation: buzz 0.45s linear infinite; }
@keyframes buzz { 0%, 100% { translate: 0 0; } 25% { translate: -0.5em 0.2em; } 75% { translate: 0.5em -0.2em; } }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 6.2em; overflow: hidden; background: var(--ink-2); font-family: var(--display); }
.phone__screen::before { content: ""; position: absolute; z-index: 5; top: 2em; left: 50%; width: 12.6em; height: 3.6em; margin-left: -6.3em; border-radius: 2em; background: #000; }
.screen { position: absolute; inset: 0; padding: 10em 3.4em 4em; display: flex; flex-direction: column; transition: opacity 0.45s; }
.screen--alert { background: linear-gradient(180deg, #ff6a4a, #e3261d); opacity: var(--alert, 0); align-items: center; text-align: center; }
.screen--alert .ico { width: 15em; height: 15em; border-radius: 50%; background: rgb(255 255 255 / 0.18); margin-top: 6em; display: grid; place-items: center; }
.screen--alert .ico i { width: 7.4em; height: 11em; background: var(--i-bud-r) center/contain no-repeat; transform: rotate(-24deg); }
.screen--alert h4 { margin: 3em 0 0; font-size: 4.3em; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.screen--alert p { font-size: 2.3em; opacity: 0.9; margin-top: 0.7em; font-family: var(--body); }
.screen--alert .b1, .screen--alert .b2 { width: 100%; border-radius: 3em; font-size: 2.5em; font-weight: 600; padding: 0.95em; }
.screen--alert .b1 { margin-top: auto; background: #fff; color: #c81e16; }
.screen--alert .b2 { margin-top: 0.6em; background: rgb(0 0 0 / 0.18); }
.screen--map { opacity: var(--map, 0); padding: 0; background: #e9ecf5; color: var(--text); }
.screen--map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen--map .card { position: absolute; left: 2.4em; right: 2.4em; bottom: 2.6em; background: #fff; border-radius: 3.6em; padding: 2.6em 2.8em; box-shadow: 0 2em 5em rgb(14 11 61 / 0.18); }
.screen--map .card small { display: block; font: 600 1.9em/1.2 var(--body); color: var(--alarm); }
.screen--map .card b { display: block; font-size: 2.9em; line-height: 1.12; letter-spacing: -0.02em; margin-top: 0.3em; }
.screen--map .card span { display: block; font: 400 2em/1.3 var(--body); color: var(--muted); margin-top: 0.35em; }
.screen--map .dot { position: absolute; left: 47%; top: 39%; width: 5em; height: 5em; margin: -2.5em; border-radius: 50% 50% 50% 0; background: var(--alarm); transform: rotate(-45deg); box-shadow: 0 0 0 1.6em rgb(255 77 61 / 0.2); }
.screen--map .dot::after { content: ""; position: absolute; inset: 1.5em; border-radius: 50%; background: #fff; }

@media (max-width: 800px) {
	.story { height: 480vh; }
	.story__stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 0; padding: 84px var(--gutter) 40px; }
	.viz { order: -1; font-size: min(0.5vh, 0.86vw); align-self: center; }
	.story__beats { display: block; min-height: 148px; }
	.beat { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(14px); transition: opacity 0.35s, transform 0.35s; }
	.beat.is-on { opacity: 1; transform: none; }
	.beat p { max-height: none; opacity: 1; font-size: 15.5px; }
	.story__glow, .story[data-beat="2"] .story__glow { background-position: center; }
}

/* ---------- Features ---------- */
.features { padding: clamp(80px, 13vh, 150px) 0; background: var(--paper); }
.features__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vh, 64px); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { grid-column: span 2; background: #fff; border-radius: 28px; padding: 26px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.tile h3 { font: 600 22px/1.12 var(--display); letter-spacing: -0.02em; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.5; max-width: 30em; }
.tile--side, .tile--map { grid-column: span 3; min-height: 400px; }
.tile--side { background: linear-gradient(140deg, var(--blue-hi), var(--blue-lo)); color: #fff; }
.tile--side p, .tile--dark p { color: rgb(255 255 255 / 0.78); }
.tile--dark { background: var(--ink); color: #fff; }
.tile--side h3, .tile--map h3 { font-size: clamp(26px, 3vw, 36px); }
.tile__art { position: absolute; inset: 0 0 42% 0; pointer-events: none; }
.side-art { display: flex; justify-content: center; align-items: center; gap: 9%; }
.side-art span { width: 22%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 700 clamp(18px, 2.4vw, 28px)/1 var(--display); position: relative; background: rgb(255 255 255 / 0.14); transition: background 0.5s, color 0.5s, transform 0.5s; }
.side-art span.is-out { background: #fff; color: var(--blue); transform: translateY(18%) rotate(8deg); }
.side-art span small { position: absolute; top: 108%; font: 500 13px/1 var(--body); white-space: nowrap; opacity: 0; transition: opacity 0.4s; color: #fff; }
.side-art span.is-out small { opacity: 0.9; }
.map-art { background: #e9ecf5; inset: 0 0 46% 0; }
.map-art svg { width: 100%; height: 100%; }
.map-art i { position: absolute; left: 58%; top: 46%; width: 30px; height: 30px; margin: -15px; border-radius: 50% 50% 50% 0; background: var(--alarm); transform: rotate(-45deg); box-shadow: 0 0 0 10px rgb(255 77 61 / 0.2); animation: pinpulse 2.2s ease-in-out infinite; }
.map-art i::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
@keyframes pinpulse { 50% { box-shadow: 0 0 0 20px rgb(255 77 61 / 0); } }
.tile__glyph { width: 46px; height: 46px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; margin-bottom: auto; color: var(--blue); }
.tile--dark .tile__glyph { background: rgb(255 255 255 / 0.1); color: var(--lav); }
.tile__glyph svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile { opacity: 0; transform: translateY(26px) scale(0.985); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.bento.in .tile { opacity: 1; transform: none; }
@media (max-width: 900px) {
	.tile { grid-column: span 3; }
	.tile--side, .tile--map { grid-column: span 6; min-height: 360px; }
}
@media (max-width: 560px) {
	.tile, .tile--side, .tile--map { grid-column: span 6; }
	.tile { min-height: 0; padding: 22px; }
	.tile--side, .tile--map { min-height: 340px; }
	.tile__glyph { margin-bottom: 26px; }
}

/* ---------- Compatibility ---------- */
.compat { background: #fff; padding: clamp(70px, 11vh, 120px) 0; }
.compat__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.compat__list { border-top: 1px solid var(--line); }
.compat__list li { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.compat__list li.wide { grid-template-columns: 1fr auto; }
.compat__list li.wide span { width: auto; }
.compat__list li.head b { font-weight: 500; }
.compat__list li.head { font: 500 13px/1.3 var(--body); color: var(--muted); padding: 10px 0; }
.compat__list span { width: 84px; text-align: center; font-size: 14px; color: var(--muted); }
.yes { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); position: relative; vertical-align: middle; }
.yes::after { content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 800px) { .compat__grid { grid-template-columns: 1fr; } .compat__list span { width: 62px; font-size: 12.5px; } }

/* ---------- Pricing ---------- */
.pricing { background: var(--paper); padding: clamp(80px, 13vh, 150px) 0; }
.price { display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--ink); color: #fff; border-radius: 36px; overflow: hidden; }
.price__main { padding: clamp(28px, 5vw, 64px); display: grid; gap: 22px; align-content: center; justify-items: start; }
.price__main p { color: rgb(255 255 255 / 0.74); max-width: 28em; }
.price__plans { background: linear-gradient(150deg, var(--blue-hi), var(--blue-lo)); padding: clamp(28px, 5vw, 64px); display: grid; gap: 14px; align-content: center; }
.plan { background: rgb(255 255 255 / 0.12); border-radius: 20px; padding: 20px 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan b { font: 600 clamp(30px, 4vw, 44px)/1 var(--display); letter-spacing: -0.03em; }
.plan span { font-size: 15px; opacity: 0.85; }
.plan--trial { background: #fff; color: var(--ink); }
.price__fine { font-size: 13.5px; opacity: 0.8; }
@media (max-width: 800px) { .price { grid-template-columns: 1fr; border-radius: 28px; } }

/* ---------- FAQ ---------- */
.faq { background: #fff; padding: clamp(80px, 13vh, 150px) 0; }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq__grid > :first-child { position: sticky; top: 110px; display: grid; gap: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font: 600 clamp(18px, 2vw, 22px)/1.25 var(--display); letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--blue); transition: transform 0.3s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); max-width: 38em; }
@media (max-width: 800px) { .faq__grid { grid-template-columns: 1fr; } .faq__grid > :first-child { position: static; } }

/* ---------- Blog teaser and cards ---------- */
.teaser { background: var(--paper); padding: clamp(80px, 13vh, 150px) 0; }
.teaser__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: grid; gap: 16px; align-content: start; text-decoration: none; }
.card__media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; display: block; }
.card__media img, .card__media .cover { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img, .card:hover .card__media .cover { transform: scale(1.04); }
.card__meta { font-size: 14px; color: var(--muted); display: flex; gap: 12px; }
.card__meta b { color: var(--blue); font-weight: 600; }
.card h3 { font: 600 clamp(21px, 2.2vw, 26px)/1.12 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; gap: 34px; } }

/* Generated covers */
.cover { display: block; position: relative; overflow: hidden; background: linear-gradient(140deg, var(--blue-hi), var(--blue-lo)); }
.cover i { position: absolute; display: block; }
.cover i:nth-child(1), .cover i:nth-child(2) { inset: 12% auto auto 50%; height: 76%; width: auto; aspect-ratio: 772 / 870; background: var(--i-bud-l) center/contain no-repeat; translate: -62% 0; }
.cover i:nth-child(2) { background-image: var(--i-bud-r); transform: translate(30%, 24%) rotate(38deg); opacity: 0.55; }
.cover--2 { background: var(--ink); }
.cover--2 i:nth-child(1) { inset: 0; height: auto; aspect-ratio: auto; translate: none; background: repeating-linear-gradient(0deg, transparent 0 46px, rgb(255 255 255 / 0.07) 46px 48px), repeating-linear-gradient(90deg, transparent 0 62px, rgb(255 255 255 / 0.07) 62px 64px); transform: rotate(-12deg) scale(1.5); }
.cover--2 i:nth-child(2) { inset: 34% auto auto 46%; margin: 0; translate: none; width: 15%; height: auto; aspect-ratio: 1; border-radius: 50% 50% 50% 0; background: var(--alarm); transform: rotate(-45deg); opacity: 1; box-shadow: 0 0 0 16px rgb(255 77 61 / 0.22); }
.cover--3 { background: #dfe0ff; }
.cover--3 i:nth-child(1) { translate: -38% 0; background: var(--blue); -webkit-mask: var(--i-bud-l) center/contain no-repeat; mask: var(--i-bud-l) center/contain no-repeat; }
.cover--3 i:nth-child(2) { inset: 4% auto auto 22%; margin: 0; translate: none; width: 38%; height: auto; aspect-ratio: 1; border-radius: 50%; background: none; border: 3px solid var(--blue); opacity: 0.35; transform: none; }
.cover--3 i:nth-child(3) { inset: -8% auto auto 10%; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--blue); opacity: 0.16; }
.cover--4 { background: linear-gradient(140deg, #ff6a4a, #e3261d); }
.cover--4 i:nth-child(1) { translate: -50% 0; background-image: var(--i-mark); }
.cover--4 i:nth-child(2) { display: none; }

/* ---------- Final call ---------- */
.final { position: relative; background: linear-gradient(150deg, var(--blue-hi), var(--blue-lo)); color: #fff; text-align: center; padding: clamp(90px, 15vh, 170px) 0; overflow: hidden; }
.final__mark { position: absolute; left: 50%; top: 50%; width: min(120vw, 900px); aspect-ratio: 772 / 870; transform: translate(-50%, -50%) rotate(calc(-8deg + var(--spin, 0) * 16deg)); background: var(--i-mark) center/contain no-repeat; opacity: 0.1; pointer-events: none; }
.final .display { font-size: clamp(42px, 8vw, 96px); position: relative; }
.final p { position: relative; margin: 22px auto 30px; max-width: 28em; color: rgb(255 255 255 / 0.85); font-size: clamp(17px, 1.7vw, 20px); }
.final .store { position: relative; }

/* ---------- Contact and footer ---------- */
.contact { background: var(--ink); color: #fff; padding: clamp(70px, 11vh, 120px) 0 40px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.contact__intro { display: grid; gap: 18px; align-content: start; }
.contact__intro p { color: rgb(255 255 255 / 0.72); max-width: 26em; }
.contact__intro a { color: var(--lav); }
.form { display: grid; gap: 12px; }
.form label { font-size: 14px; font-weight: 500; display: grid; gap: 6px; color: rgb(255 255 255 / 0.8); }
.form input, .form textarea { width: 100%; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.16); border-radius: 14px; padding: 13px 15px; color: #fff; font-size: 16px; transition: border-color 0.2s, background 0.2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--lav); background: rgb(255 255 255 / 0.1); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__status { font-size: 15px; min-height: 1.5em; }
.form__status.ok { color: #7ef0b1; }
.form__status.err { color: #ff9a8f; }
.form .btn { justify-self: start; background: #fff; color: var(--ink); }
.form .btn:hover { background: var(--lav); }
.form .btn[disabled] { opacity: 0.6; cursor: wait; }
.foot { margin-top: clamp(50px, 8vh, 90px); padding-top: 26px; border-top: 1px solid rgb(255 255 255 / 0.12); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; font-size: 14px; color: rgb(255 255 255 / 0.6); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-inline-start: auto; }
.foot a { color: rgb(255 255 255 / 0.8); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__legal { flex-basis: 100%; font-size: 12.5px; line-height: 1.5; max-width: 60em; }
@media (max-width: 800px) { .contact__grid { grid-template-columns: 1fr; } .foot nav { margin-inline-start: 0; } .form__row { grid-template-columns: 1fr; } }

/* ---------- Blog index ---------- */
.page-top { padding: clamp(130px, 20vh, 190px) 0 clamp(36px, 6vh, 60px); }
.page-top .display { font-size: clamp(44px, 8vw, 96px); }
.page-top .lede { margin-top: 20px; }
.lead-post { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(22px, 4vw, 54px); align-items: center; text-decoration: none; margin-bottom: clamp(50px, 8vh, 90px); }
.lead-post .card__media { aspect-ratio: 16 / 11; border-radius: 32px; }
.lead-post h2 { font: 600 clamp(30px, 4.2vw, 52px)/1.04 var(--display); letter-spacing: -0.035em; text-wrap: balance; margin: 14px 0; }
.lead-post p { color: var(--muted); max-width: 30em; }
.lead-post .more { display: inline-block; margin-top: 20px; font: 600 16px/1 var(--display); color: var(--blue); border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.blog-list { padding-bottom: clamp(80px, 12vh, 140px); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 54px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; background: #fff; text-decoration: none; font-weight: 600; }
.pager .page-numbers.current { background: var(--blue); color: #fff; }
@media (max-width: 800px) { .lead-post { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.readbar { position: fixed; z-index: 60; inset: 0 0 auto 0; height: 4px; background: var(--blue); transform-origin: left; transform: scaleX(var(--read, 0)); }
.article__top { padding: clamp(130px, 20vh, 190px) 0 0; }
.article__top .wrap { max-width: 860px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--muted); }
.article__meta a { color: var(--blue); font-weight: 600; text-decoration: none; }
.article__title { font-size: clamp(38px, 6.6vw, 76px); margin-top: 18px; }
.article__media { margin: clamp(30px, 5vh, 56px) auto 0; width: min(100% - 2 * var(--gutter), 1120px); border-radius: clamp(22px, 3vw, 40px); overflow: hidden; aspect-ratio: 21 / 9; }
.article__media img, .article__media .cover { width: 100%; height: 100%; object-fit: cover; }
.prose { width: min(100% - 2 * var(--gutter), 680px); margin: clamp(36px, 6vh, 70px) auto 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.68; }
.prose > * + * { margin-top: 1.15em; }
.prose .lead { font: 400 clamp(21px, 2.3vw, 26px)/1.4 var(--display); letter-spacing: -0.015em; color: var(--text); }
.prose h2 { font: 600 clamp(26px, 3vw, 34px)/1.12 var(--display); letter-spacing: -0.03em; margin-top: 1.9em; }
.prose h3 { font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; margin-top: 1.6em; }
.prose p, .prose li { color: #2b2952; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 0.45em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { padding-left: 1.5em; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0.1em; top: 0.62em; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--blue); }
.prose ol { list-style: decimal; }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 clamp(18px, 3vw, 30px); border-left: 4px solid var(--blue); font: 500 clamp(23px, 2.8vw, 31px)/1.24 var(--display); letter-spacing: -0.025em; color: var(--text); text-wrap: balance; }
.prose blockquote p { color: inherit; }
.prose img { border-radius: 20px; height: auto; }
.inline-cta { width: min(100% - 2 * var(--gutter), 860px); margin: clamp(50px, 8vh, 90px) auto 0; background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.inline-cta::before { content: ""; position: absolute; right: -40px; top: -60px; width: 260px; aspect-ratio: 772 / 870; background: var(--i-mark) center/contain no-repeat; opacity: 0.08; transform: rotate(14deg); }
.inline-cta h2 { font: 600 clamp(24px, 3vw, 34px)/1.08 var(--display); letter-spacing: -0.03em; }
.inline-cta p { color: rgb(255 255 255 / 0.74); margin-top: 8px; max-width: 30em; }
@media (max-width: 700px) { .inline-cta { grid-template-columns: 1fr; } }
.inline-cta .store { justify-self: start; position: relative; }
.related { padding: clamp(70px, 11vh, 120px) 0 clamp(80px, 12vh, 140px); }
.related .h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 30px; }
.page-body { padding-bottom: clamp(80px, 12vh, 140px); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
	.hero__title span, .hero__sub, .hero__cta, .hero__scene, .tile { opacity: 1; transform: none; }
	.hero { height: auto; }
	.hero__pin { position: static; height: auto; min-height: 100svh; }
	.problem__text .w { opacity: 1; }
}
