/*
 * The house template. Marketing site tokens carried into the CMS: white, Outfit
 * for display, the system stack for body, one blue for calls to action, 14px corners. The
 * values are src/marketing.css's, and the reasoning for each lives there.
 *
 * Every selector is anchored under .t-noddable (scripts/check-templates.mjs).
 */

@font-face {
	font-family: 'Outfit Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('/fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.t-noddable-shell {
	container-type: inline-size;
	min-height: 100%;
}

.t-noddable {
	--font-display: 'Outfit Variable', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--surface: #ffffff;
	--surface-2: #f7f6f3;
	--ink: #16130f;
	--ink-soft: #4f4840;
	--ink-faint: #6f675d;
	--line: #e9e6e0;
	--accent: #0a66d8;
	--accent-ink: #ffffff;
	--accent-lit: #4c8ff0;
	--accent-grad: linear-gradient(152deg, #2b7de9 0%, #0a66d8 100%);
	--accent-grad-ink: linear-gradient(152deg, #16130f 0%, #16130f 100%);
	--btn-bg: #0a66d8;
	--btn-ink: #ffffff;
	--btn-hover-bg: #0857bb;
	--btn-hover-ink: #ffffff;
	--btn-radius: 8px;
	--btn-size: 0.9375rem;
	--btn-tracking: 0;
	--btn-transform: none;
	--cta-surface: #ffffff;
	--cta-ink: #16130f;
	--radius: 14px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--measure: 68ch;
	--measure-wide: 1120px;
	--sp-1: 0.6rem;
	--sp-2: 1rem;
	--sp-3: 1.75rem;
	--sp-4: clamp(1.25rem, 5cqw, 2.5rem);
	--sp-5: clamp(3.25rem, 8cqw, 6.5rem);
	position: relative;
	min-height: 100%;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	background: var(--surface);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.t-noddable a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.t-noddable a:hover { color: #0850ad; }
.t-noddable :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ----------------------------------------------------------------- type */

.t-noddable .b-heading {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.022em;
	color: var(--ink);
	text-wrap: balance;
}
.t-noddable .b-heading.l-h2 { font-size: clamp(1.75rem, 3.6cqw, 2.5rem); max-width: 22ch; }
.t-noddable .b-heading.l-h3 { font-size: 1.2rem; letter-spacing: -0.012em; }
.t-noddable .b-body { margin: 0; color: var(--ink-faint); line-height: 1.6; font-size: 1rem; }
.t-noddable .b-body.s-large {
	font-size: clamp(1.05rem, 1.7cqw, 1.3rem);
	line-height: 1.5;
	color: var(--ink-soft);
	max-width: 56ch;
}
.t-noddable .b-body h2, .t-noddable .b-body h3 {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--ink);
	margin: 1.6em 0 0.5em;
}
.t-noddable .b-body h2 { font-size: 1.45rem; }
.t-noddable .b-body h3 { font-size: 1.15rem; }
.t-noddable .b-body p { margin: 0 0 1em; }
.t-noddable .b-body ul, .t-noddable .b-body ol { margin: 0 0 1em; padding-left: 1.3em; }
.t-noddable .b-body li { margin-block: 0.35em; }
.t-noddable .b-body strong { color: var(--ink); font-weight: 600; }
.t-noddable .b-cap {
	display: block;
	margin-top: 12px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ink-faint);
}
.t-noddable .b-cta-title {
	margin: 0 0 var(--sp-1);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.75rem, 3.6cqw, 2.5rem);
	letter-spacing: -0.022em;
	line-height: 1.1;
	color: var(--cta-ink);
	text-wrap: balance;
}
.t-noddable .b-cta-body {
	margin: 0 auto var(--sp-3);
	max-width: 52ch;
	color: var(--ink-soft);
	font-size: clamp(1.05rem, 1.7cqw, 1.3rem);
	line-height: 1.5;
}
.t-noddable .b-eyebrow {
	margin: 0 0 10px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}
.t-noddable .b-inline-link { color: var(--accent); }
.t-noddable .b-fine { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--ink-faint); }
.t-noddable .b-cap-inline { font-size: 0.8125rem; font-weight: 400; color: var(--ink-faint); margin-left: 0.15em; }
.t-noddable .b-price {
	margin: 6px 0 10px;
	font-family: var(--font-display);
	font-size: 1.9rem;
	font-weight: 500;
	line-height: 1.1;
	color: var(--ink);
}
/* The ordinals take the sunset as type; dark enough to clear 3:1 at their size. */
.t-noddable .b-step-n {
	margin: 0 0 12px;
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	background: var(--accent-grad-ink);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --------------------------------------------------------------- panels */

.t-noddable .b-panel {
	position: relative;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 6px 20px rgb(18 32 60 / 0.06);
	padding: 26px;
}
/* A hairline of the sunset along the top of every panel. */
.t-noddable .b-panel::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: var(--accent-grad);
	opacity: 0.9;
}
.t-noddable .b-panel.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ----------------------------------------------------------- controls */

.t-noddable .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	/* Notion's size as well as its shape: 36px in the nav, 38px in the hero
	   (measured from a recording of notion.com, 4 Oct 2026). */
	min-height: 36px;
	padding: 0 14px;
	/* Notion's shape: 8px corners, no border, a filled surface. The default is
	   the secondary, blue wash with deep-blue type (6.7:1). */
	border: 1px solid transparent;
	border-radius: var(--btn-radius);
	background: #eaf2fd;
	color: #0850ad;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background 140ms ease, transform 90ms ease;
}
.t-noddable .btn:hover { background: #dbe9fb; color: #0850ad; }
.t-noddable .btn:active { transform: scale(0.98); }
.t-noddable .btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.t-noddable .btn-primary:hover { background: var(--btn-hover-bg); color: var(--btn-ink); }
.t-noddable .btn-lg { min-height: 38px; padding: 0 18px; font-size: 0.9375rem; }
/* The shared Buttons block's outline variant, drawn as the secondary here.
   Three classes deep so it outranks the block's own scoped rule. */
.t-noddable .btn.v-ghost { background: #eaf2fd; color: #0850ad; border-color: transparent; }
.t-noddable .btn.v-ghost:hover { background: #dbe9fb; color: #0850ad; }
.t-noddable .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------------ hero */

.t-noddable .hero {
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	/* Room under the nav: the headline should not feel pinned to it. */
	padding-block: clamp(72px, 12vh, 136px) 0;
	text-align: center;
}
.t-noddable .hero.has-peek { min-height: 100svh; }
.t-noddable .hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	width: 100%;
	max-width: var(--measure-wide);
	margin-inline: auto;
	padding-inline: clamp(20px, 5cqw, 40px);
}
.t-noddable .b-hero-title {
	/* Sized and weighted from a recording of Notion's hero (4 Oct 2026):
	   semibold, tight, 6.4% of the page width (about 92px on a laptop, 96px
	   at 1512) and 40px on a phone. The measure is capped at the middle
	   70% of the page so a longer title runs wide, leaving 15-20% clear either
	   side, rather than stacking. Copy rule: two lines on desktop, three on a
	   phone; a title that breaks it gets shorter, not smaller. On a phone it takes the full width instead; a third of a
	   390px screen given to margins pushes it to four lines. */
	max-width: 100%;
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2.5rem, 6.4cqw, 6.25rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
@container (min-width: 760px) {
	.t-noddable .b-hero-title { max-width: 70cqw; }
}
.t-noddable .hero-lede {
	/* One line on a laptop: the tagline is a single sentence. */
	max-width: 62ch;
	text-wrap: balance;
	margin: 22px 0 0;
	font-size: clamp(1.05rem, 1.7cqw, 1.25rem);
	line-height: 1.5;
	color: var(--ink-soft);
}
.t-noddable .hero-actions { margin-top: 32px; justify-content: center; }
.t-noddable .trust-line { margin: 16px 0 0; font-size: 0.875rem; color: var(--ink-faint); }

/*
 * The picking deck at the end of the homepage headline (noddable/Deck.svelte).
 * Prints sized in em so the deck scales with the headline; the back prints
 * sit at the logo's angles, with the logo's thin paper-coloured gap between
 * cards. Designed in docs/brand/picking-deck.html, exit E1.
 */
/* The headline and its deck run as one line on a laptop, which is wider than the usual measure. */
.t-noddable .hero-inner.has-deck { max-width: none; }
.t-noddable .b-hero-title.has-deck { max-width: 100%; }
.t-noddable .pile {
	--pw: 0.7em; --ph: 0.86em;
	position: relative; display: inline-block; vertical-align: -0.1em;
	width: calc(var(--pw) + 0.22em); height: var(--ph);
	margin-left: 0.16em;
	isolation: isolate;
}
.t-noddable .print {
	position: absolute; left: 0.2em; top: 0; width: var(--pw); height: var(--ph);
	border-radius: 0.08em;
	transform-origin: 50% 88%;
	background: var(--surface);
	box-shadow: 0 0 0 0.03em var(--surface), 0 0.03em 0.1em rgb(22 19 15 / 0.18);
	transition: transform 760ms cubic-bezier(0.34, 1.35, 0.64, 1), opacity 520ms ease;
}
.t-noddable .print .img { position: absolute; inset: 0; border-radius: inherit; background-size: cover; background-repeat: no-repeat; }
/* Leaving: eased out rather than sprung, so it reads as a swipe. */
.t-noddable .print.leaving { transition: transform 460ms cubic-bezier(0.5, 0, 0.75, 0), opacity 370ms ease-in 90ms; }
.t-noddable .print.instant { transition: none; }
.t-noddable .print .badge {
	position: absolute; top: -0.07em; width: 0.24em; height: 0.24em; border-radius: 50%;
	display: grid; place-items: center; z-index: 2;
	box-shadow: 0 0 0 0.025em var(--surface);
	transform: scale(0); transition: transform 360ms cubic-bezier(0.34, 1.35, 0.64, 1);
}
.t-noddable .print .badge svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-noddable .print .tk { right: -0.07em; background: var(--accent); }
.t-noddable .print .x { left: -0.07em; background: var(--ink); }
.t-noddable .print.on .tk, .t-noddable .print.off .x { transform: scale(1); }

.t-noddable .hero-inner { position: relative; }
.t-noddable .deck-pause {
	position: absolute; right: clamp(20px, 5cqw, 40px); bottom: 0;
	display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-faint);
	cursor: pointer; transition: color 140ms ease, border-color 140ms ease;
}
.t-noddable .deck-pause:hover { color: var(--ink); border-color: var(--ink-faint); }
.t-noddable .deck-pause svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-noddable .deck-pause .vh, .t-noddable .vh {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
	.t-noddable .print, .t-noddable .print .badge { transition: none; }
	/* Nothing moves, so there is nothing to pause. */
	.t-noddable .deck-pause { display: none; }
}

.t-noddable .marked { position: relative; display: inline-block; padding-bottom: 0.12em; }
/* In the hero the marked sentence is a line of its own, so a two-sentence
   headline stacks rather than running on once the type is small enough to fit. */
.t-noddable .b-hero-title .marked { display: table; margin-inline: auto; }
.t-noddable .marked .mark-box { position: absolute; left: -0.04em; right: -0.04em; bottom: -0.1em; height: 0.34em; }

.t-noddable .hero-peek {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	overflow: hidden;
	min-height: clamp(96px, 16vh, 260px);
	margin-top: clamp(40px, 6vh, 72px);
	pointer-events: none;
}
.t-noddable .hero-peek img, .t-noddable .hero-peek picture, .t-noddable .hero-peek figure {
	display: block;
	width: min(1140px, 82cqw);
	height: auto;
	aspect-ratio: 1440 / 900;
	object-fit: cover;
	object-position: 50% 0;
	border-radius: 14px 14px 0 0;
	border: 1px solid var(--line);
	border-bottom: 0;
	box-shadow: 0 -20px 60px -22px rgb(64 46 30 / 0.3);
}
/* A product clip draws its own window, so it takes no frame here, only the
   width of a wide figure further down the page. */
.t-noddable .hero-peek video {
	display: block;
	width: min(1040px, 100% - 80px);
	height: auto;
	border-radius: 14px;
}
@media (max-width: 1023px) {
	.t-noddable .hero.has-peek { min-height: 0; display: block; padding-bottom: clamp(48px, 9vh, 80px); }
	.t-noddable .hero-peek { display: none; }
}

/* The hero button under test: control by default, the variant when <html>
   carries its token. One rule per variant; hero-cta is the only test today. */
.t-noddable .xv-b { display: none; }
:root[data-exp~='hero-cta:b'] .t-noddable .xv-a { display: none; }
:root[data-exp~='hero-cta:b'] .t-noddable .xv-b { display: inline; }

/* ---------------------------------------------------------------- chrome */

.t-noddable .skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 9px 0;
}
.t-noddable .skip:focus { left: 0; }

.t-noddable .nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(255 255 255 / 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.t-noddable .nav-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 66px;
	padding-inline: clamp(20px, 3.2cqw, 44px);
}
.t-noddable .brand {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-decoration: none;
	margin-right: auto;
	display: inline-flex;
	align-items: center;
	gap: 9px;
}
.t-noddable .nav-links { display: flex; align-items: center; gap: 4px; }
.t-noddable .nav-links a:not(.btn) {
	padding: 8px 12px;
	border-radius: 9px;
	color: var(--ink-soft);
	text-decoration: none;
	font-size: 0.9375rem;
}
.t-noddable .nav-links a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.t-noddable .nav-links a:not(.btn)[aria-current='page'] { color: var(--ink); font-weight: 500; }
.t-noddable .menu { display: none; position: relative; }
.t-noddable .menu > summary {
	list-style: none;
	cursor: pointer;
	/* A plain icon, as Notion's is: no outline, a soft fill on hover. Kept at
	   36px to sit level with the trial button beside it. */
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: transparent;
	transition: background 140ms ease;
}
.t-noddable .menu > summary:hover, .t-noddable .menu[open] > summary { background: var(--surface-2); }
.t-noddable .menu > summary::-webkit-details-marker { display: none; }
.t-noddable .bars, .t-noddable .bars::before, .t-noddable .bars::after {
	display: block;
	width: 17px;
	height: 1.5px;
	background: var(--ink);
	border-radius: 2px;
}
.t-noddable .bars { position: relative; }
.t-noddable .bars::before, .t-noddable .bars::after { content: ''; position: absolute; left: 0; }
.t-noddable .bars::before { top: -5.5px; }
.t-noddable .bars::after { top: 5.5px; }
.t-noddable .menu-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 9px);
	min-width: 208px;
	display: grid;
	padding: 7px;
	background: rgb(255 255 255 / 0.96);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 14px 38px rgb(40 30 15 / 0.14);
}
.t-noddable .menu-panel a { padding: 11px 13px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.t-noddable .menu-panel a:hover { background: var(--surface-2); }
.t-noddable .menu-panel a[aria-current='page'] { color: var(--accent); font-weight: 500; }
@media (max-width: 860px) {
	.t-noddable .nav-links .nav-wide { display: none; }
	.t-noddable .menu { display: block; }
}

.t-noddable .foot {
	border-top: 1px solid var(--line);
	background: var(--surface-2);
	padding-block: 52px 32px;
}
.t-noddable .foot .wrap {
	width: 100%;
	max-width: var(--measure-wide);
	margin-inline: auto;
	padding-inline: clamp(20px, 5cqw, 40px);
}
.t-noddable .foot-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) {
	.t-noddable .foot-cols { grid-template-columns: 1fr 1fr; }
}
.t-noddable .foot-tag { margin: 10px 0 0; max-width: 30ch; font-size: 0.875rem; line-height: 1.55; color: var(--ink-faint); }
.t-noddable .foot h2 {
	margin: 0 0 12px;
	font-size: 0.75rem;
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink-faint);
}
.t-noddable .foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.t-noddable .foot a { color: var(--ink-soft); text-decoration: none; }
.t-noddable .foot a:hover { color: var(--accent); text-decoration: underline; }
.t-noddable .foot-legal {
	margin-top: 40px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	justify-content: space-between;
	font-size: 0.8125rem;
	color: var(--ink-faint);
}
.t-noddable .foot-legal p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	.t-noddable .btn, .t-noddable .btn:hover, .t-noddable .btn:active { transform: none; transition: none; }
}
