/* Grafium site: one dark stylesheet for the landing page and the legal pages. */
:root {
	--bg: #0a0a0b;
	--surface: #141416;
	--ink: #f5f5f7;
	--ink-2: #a1a1a6;
	--ink-3: #6e6e73;
	--line: rgba(255, 255, 255, 0.08);
	--accent: #ff7a3d;
	--sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.07; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.eyebrow { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.accent { color: var(--accent); }
.reg { font-size: 0.42em; vertical-align: 0.95em; margin-left: 0.04em; letter-spacing: 0; font-weight: 600; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
	position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line);
	background: rgba(10, 10, 11, 0.72); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.nav nav a:hover { color: var(--ink); }
.get { display: inline-flex; align-items: center; height: 32px; padding: 0 15px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; text-decoration: none; }
.get:hover { background: #fff; }
@media (max-width: 720px) { .nav nav { display: none; } .get { margin-left: auto; } }

/* ── iPhone frame (proportions of the App Store screenshots) ── */
.phone {
	--w: 320px; position: relative; width: var(--w); flex: none;
	padding: calc(var(--w) * 0.0292); border-radius: calc(var(--w) * 0.147);
	background: linear-gradient(150deg, #8a8a90 0%, #34343a 16%, #5d5d63 42%, #222226 68%, #74747a 100%);
	box-shadow: 0 50px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone::before { content: ""; position: absolute; inset: calc(var(--w) * 0.0078); border-radius: calc(var(--w) * 0.139); background: #030303; }
.phone > img { position: relative; width: 100%; border-radius: calc(var(--w) * 0.118); aspect-ratio: 1320 / 2868; }
.phone::after {
	content: ""; position: absolute; left: 50%; top: calc(var(--w) * 0.0525); transform: translateX(-50%);
	width: calc(var(--w) * 0.269); height: calc(var(--w) * 0.0788); border-radius: 999px; background: #000;
}
.phone > img.over {
	position: absolute; z-index: 1; aspect-ratio: auto; border-radius: 0; max-width: none;
	filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-top: 88px; text-align: center; }
.hero::before {
	content: ""; position: absolute; left: 50%; top: 360px; width: 1000px; height: 820px; transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(255, 122, 61, 0.22), transparent); pointer-events: none;
}
.new {
	display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 4px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background 0.2s;
}
.new:hover { background: rgba(255, 255, 255, 0.1); }
.new .chip {
	height: 28px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center;
	background: linear-gradient(180deg, #ff8c55, #f2600c); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.new svg { width: 12px; height: 12px; color: var(--ink-2); }
.hero h1 { font-size: clamp(44px, 7vw, 80px); max-width: 13.5em; margin: 26px auto 0; letter-spacing: -0.045em; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 32em; margin: 24px auto 0; line-height: 1.45; }
.badge { display: inline-block; line-height: 0; margin-top: 36px; }
.badge img { height: 52px; width: auto; }
.stage { position: relative; display: flex; justify-content: center; align-items: flex-start; margin-top: 72px; height: 600px; }
.stage .phone { --w: 360px; }
.stage .push { animation: arrive 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.4s both; }
@keyframes arrive { from { opacity: 0; transform: translateY(-26px) scale(0.97); } to { opacity: 1; transform: none; } }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, var(--bg)); }
@media (max-width: 560px) {
	.hero { padding-top: 56px; }
	.stage { height: 470px; margin-top: 52px; }
	.stage .phone { --w: 260px; }
}

/* ── Sections ───────────────────────────────────────────── */
.section { position: relative; padding: 128px 0; }
.head { text-align: center; max-width: 820px; margin: 0 auto 72px; }
.head h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.04em; margin-top: 14px; }
.head p { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 20px auto 0; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio figure { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.trio .phone { --w: 290px; }
.trio h3 { font-size: 22px; letter-spacing: -0.02em; margin-top: 36px; }
.trio p { color: var(--ink-2); font-size: 16px; margin-top: 10px; max-width: 19em; }
@media (max-width: 900px) {
	.section { padding: 88px 0; }
	.trio { grid-template-columns: 1fr; gap: 72px; }
	.trio .phone { --w: 270px; }
}

/* ── Grafium Pro ────────────────────────────────────────── */
.pro::before {
	content: ""; position: absolute; left: 50%; top: 0; width: 1100px; height: 700px; transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(255, 122, 61, 0.16), transparent); pointer-events: none;
}
.bento { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
	position: relative; overflow: hidden; border-radius: 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
	padding: 40px 40px 0; min-height: 620px; display: flex; flex-direction: column;
}
.card h3 { font-size: 30px; margin: 12px 0 14px; }
.card p { color: var(--ink-2); }
.shot { position: relative; margin: auto -40px 0; height: 340px; overflow: hidden; display: flex; justify-content: center; }
.shot .phone { --w: 370px; position: absolute; }
.shot.bottom .phone { bottom: 24px; }
.shot.bottom::before { content: ""; position: absolute; inset: 0 0 auto; height: 90px; z-index: 2; background: linear-gradient(var(--surface), transparent); }
.shot.top .phone { top: 0; }
.price { position: relative; text-align: center; margin-top: 56px; font-size: 19px; color: var(--ink-2); }
.price b { color: var(--ink); font-weight: 600; }
.fine { position: relative; text-align: center; font-size: 13px; color: var(--ink-3); max-width: 46em; margin: 14px auto 0; }
.fine a { color: var(--ink-2); }
@media (max-width: 900px) {
	.bento { grid-template-columns: 1fr; }
	.card { padding: 30px 24px 0; min-height: 560px; }
	.shot { margin-inline: -24px; }
	.shot .phone { --w: 320px; }
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--ink-2); padding: 0 0 24px; max-width: 44em; }

/* ── Final call, footer ─────────────────────────────────── */
.final { text-align: center; padding: 40px 0 128px; }
.final .icon { width: 108px; height: 108px; margin: 0 auto 30px; }
.final h2 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -0.045em; }
.final p { color: var(--ink-2); font-size: 19px; margin-top: 18px; }
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 13px; color: var(--ink-3); }
.foot .wrap { display: grid; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ── Legal pages ────────────────────────────────────────── */
.legal { padding: 72px 0 56px; }
.legal h1 { font-size: clamp(38px, 5vw, 54px); letter-spacing: -0.035em; margin-top: 14px; }
.legal .meta { font-size: 14px; color: var(--ink-3); margin: 16px 0 40px; }
.legal .summary { border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 26px 28px; margin-bottom: 44px; }
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 14px; scroll-margin-top: 80px; }
.legal h3 { font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 1em; }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.2em; margin: 12px 0; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; }
.toc { columns: 2; column-gap: 32px; padding: 0; margin: 0; list-style: none; font-size: 15px; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
@media (max-width: 560px) { .toc { columns: 1; } }

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