/* Landing page styles. Loaded after ja-typography.css */

:root {
	--lp-bg: #fdfcfa;
	--lp-surface: #ffffff;
	--lp-text: #202020;
	--lp-muted: #5f5f5f;
	--lp-line: #ece8e3;
	--lp-primary: #1a6fd1;
	--lp-primary-hover: #155db0;
	--lp-accent: #c2620a;
	--lp-peach: #fff1e3;
	--lp-sky: #e8f3fd;
	--lp-teal: #aadddd;
	--lp-radius: 16px;
	--lp-max: 1120px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--lp-bg);
	color: var(--lp-text);
}

h1, h2, h3, p, ul {
	margin: 0;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
}

.lp-container {
	width: 100%;
	max-width: var(--lp-max);
	margin-inline: auto;
	padding-inline: 24px;
}

/* Buttons */
.lp-btn {
	display: inline-flex;
	white-space: nowrap;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	border-radius: 10px;
	background: var(--lp-primary);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 0 #0f4d94, 0 8px 20px rgba(26, 111, 209, 0.25);
	transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.lp-btn:hover {
	background: var(--lp-primary-hover);
}

.lp-btn:active {
	transform: translateY(3px);
	box-shadow: 0 1px 0 #0f4d94, 0 4px 10px rgba(26, 111, 209, 0.25);
}

.lp-btn.is-small {
	padding: 8px 14px;
	font-size: 0.875rem;
	border-radius: 8px;
	box-shadow: none;
}

.lp-btn.is-small:active {
	transform: none;
}

/* Header */
.lp-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(253, 252, 250, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.lp-header.is-scrolled {
	box-shadow: 0 1px 0 var(--lp-line);
}

.lp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
}

.lp-brand {
	display: flex;
	white-space: nowrap;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.125rem;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.lp-brand img {
	width: 32px;
	height: 32px;
}

.lp-nav {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 0.9375rem;
}

.lp-nav a:not(.lp-btn) {
	text-decoration: none;
	color: var(--lp-muted);
}

.lp-nav a:not(.lp-btn):hover {
	color: var(--lp-text);
}

.lp-nav .lp-nav-sep {
	width: 1px;
	height: 20px;
	background: var(--lp-line);
}

/* Hero */
.lp-hero {
	padding: 56px 0 80px;
}

.lp-hero-inner {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 56px;
	align-items: center;
}

.lp-hero h1 {
	font-size: clamp(2.25rem, 4.6vw, 3.5rem);
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.lp-hero-lead {
	margin-top: 20px;
	font-size: 1.125rem;
	color: var(--lp-muted);
}

.lp-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 32px;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--lp-muted);
}

.lp-badges li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--lp-line);
	border-radius: 6px;
	background: var(--lp-surface);
}

.lp-badges .icon {
	width: 1em;
	height: 1em;
}

/* Soft gradient stage that frames product screenshots */
.lp-stage {
	position: relative;
	padding: 40px 0 0 40px;
	border-radius: var(--lp-radius);
	background:
		radial-gradient(circle at 15% 20%, rgba(255, 178, 51, 0.35), transparent 55%),
		radial-gradient(circle at 90% 85%, rgba(66, 165, 245, 0.30), transparent 55%),
		linear-gradient(135deg, var(--lp-peach), var(--lp-sky));
	overflow: hidden;
	border: 1px solid var(--lp-line);
}

.lp-stage.is-centered {
	padding: 40px;
	display: grid;
	place-items: center;
}

.lp-window {
	border-radius: 12px 0 0 0;
	background: var(--lp-surface);
	box-shadow: 0 20px 50px rgba(32, 32, 32, 0.15);
	overflow: hidden;
}

.lp-stage.is-centered .lp-window {
	border-radius: 12px;
	width: 100%;
}

.lp-window-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 12px;
	background: #f3f1ee;
}

.lp-window-bar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d8d4cf;
}

.lp-window img {
	width: 100%;
}

.lp-hero .lp-window img {
	width: 190%;
	max-width: none;
}

/* Value band */
.lp-values {
	position: relative;
	padding: 40px 0;
	background:
		radial-gradient(ellipse 70% 60% at 50% 50%, rgba(170, 221, 221, 0.35), transparent 70%);
}

.lp-values-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.lp-value {
	padding: 8px 24px;
	text-align: center;
}

.lp-value + .lp-value {
	border-left: 1px solid var(--lp-line);
}

.lp-value strong {
	display: block;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
}

.lp-value span {
	display: block;
	margin-top: 6px;
	font-size: 0.875rem;
	color: var(--lp-muted);
}

/* Feature rows, alternating text and visual */
.lp-feature {
	padding: 96px 0;
}

.lp-feature-inner {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 72px;
	align-items: center;
}

.lp-feature.is-reverse .lp-feature-text {
	order: 2;
}

.lp-eyebrow {
	display: block;
	margin-bottom: 12px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--lp-accent);
	letter-spacing: 0.04em;
}

.lp-eyebrow.is-blue {
	color: var(--lp-primary);
}

.lp-feature h2,
.lp-section-head h2 {
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	line-height: 1.35;
}

.lp-feature p {
	margin-top: 20px;
	color: var(--lp-muted);
}

.lp-feature p + p {
	margin-top: 12px;
}

/* HTML illustrations that imitate the app's bookmark chips */
.lp-board {
	width: 100%;
	padding: 20px;
	border-radius: 12px;
	background: var(--lp-surface);
	box-shadow: 0 20px 50px rgba(32, 32, 32, 0.15);
	line-height: 1.5;
}

.lp-board-divider {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 16px 0 10px;
	padding-bottom: 4px;
	border-bottom: 4px solid var(--lp-teal);
	font-weight: 700;
	color: #333;
}

.lp-board-divider:first-child {
	margin-top: 0;
}

.lp-board-divider .icon {
	color: #9ab;
}

.lp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lp-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 4px;
	background: #f0f0f0;
	font-size: 0.875rem;
	color: #0000ee;
	white-space: nowrap;
}

.lp-chip.is-memo {
	color: #333;
}

.lp-chip i {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: var(--c, #999);
}

.lp-chip.is-dragging {
	background: #def;
	transform: rotate(-3deg) translateY(-6px);
	box-shadow: 0 10px 20px rgba(32, 32, 32, 0.2);
	cursor: grabbing;
}

.lp-chip.is-placeholder {
	min-width: 96px;
	background: transparent;
	outline: 2px dashed #c9d6e2;
}

/* Tag filter bar and per-item tags inside the illustration */
.lp-tagbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--lp-line);
	font-size: 0.8125rem;
}

.lp-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border: 1px solid #cfdde2;
	border-radius: 999px;
	background: var(--lp-surface);
	color: #333;
	white-space: nowrap;
}

.lp-tag.is-selected {
	border-color: var(--lp-primary);
	background: var(--lp-sky);
	font-weight: 700;
}

.lp-tag i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c, #999);
}

.lp-tag small {
	font-size: inherit;
	font-weight: 400;
	color: #789;
	font-variant-numeric: tabular-nums;
}

.lp-chip-tag {
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--b, #eceff1);
	color: var(--c, #455a64);
	/* Hairline keeps pale tags visible on the gray chip */
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
	font-size: 0.6875rem;
}

/* Feature grid */
.lp-grid-section {
	padding: 96px 0;
	background: var(--lp-surface);
	border-block: 1px solid var(--lp-line);
}

.lp-section-head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

.lp-section-head p {
	margin-top: 16px;
	color: var(--lp-muted);
}

.lp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 48px;
	padding: 0;
	list-style: none;
}

.lp-grid .icon {
	width: 28px;
	height: 28px;
	color: var(--lp-primary);
}

.lp-grid h3 {
	margin-top: 14px;
	font-size: 1.0625rem;
}

.lp-grid p {
	margin-top: 8px;
	font-size: 0.9375rem;
	color: var(--lp-muted);
}

/* Browser extensions */
.lp-ext {
	padding: 96px 0;
}

.lp-ext-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: 840px;
	margin-inline: auto;
}

.lp-ext-card {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 28px;
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius);
	background: var(--lp-surface);
	text-decoration: none;
	transition: box-shadow 0.15s, transform 0.15s;
}

.lp-ext-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(32, 32, 32, 0.08);
}

.lp-ext-card > .icon {
	width: 44px;
	height: 44px;
	color: var(--lp-primary);
}

.lp-ext-card strong {
	display: block;
	font-size: 1.0625rem;
}

.lp-ext-card span {
	display: block;
	margin-top: 4px;
	font-size: 0.875rem;
	color: var(--lp-muted);
	line-height: 1.6;
}

.lp-ext-card .lp-ext-arrow {
	margin-left: auto;
	width: 20px;
	height: 20px;
	color: var(--lp-muted);
}

/* Closing call to action */
.lp-cta {
	padding: 104px 0;
	text-align: center;
	background:
		radial-gradient(circle at 20% 30%, rgba(255, 178, 51, 0.30), transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(66, 165, 245, 0.25), transparent 50%),
		var(--lp-peach);
}

.lp-cta img {
	width: 72px;
	height: 72px;
	margin: 0 auto 24px;
}

.lp-cta h2 {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.lp-cta p {
	margin: 16px 0 36px;
	color: var(--lp-muted);
}

/* Footer */
.lp-footer {
	padding: 40px 0;
	font-size: 0.875rem;
	color: var(--lp-muted);
}

.lp-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.lp-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.lp-footer a {
	text-decoration: none;
}

.lp-footer a:hover {
	color: var(--lp-text);
}

/* Responsive */
@media (max-width: 900px) {
	.lp-hero-inner,
	.lp-feature-inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.lp-feature.is-reverse .lp-feature-text {
		order: 0;
	}

	.lp-feature,
	.lp-grid-section,
	.lp-ext {
		padding: 64px 0;
	}

	.lp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.lp-container {
		padding-inline: 16px;
	}

	.lp-nav .lp-nav-link,
	.lp-nav .lp-nav-sep {
		display: none;
	}

	.lp-hero {
		padding: 32px 0 56px;
	}

	.lp-stage {
		padding: 24px 0 0 24px;
	}

	.lp-stage.is-centered {
		padding: 20px;
	}

	.lp-board {
		padding: 14px;
	}

	.lp-values-inner,
	.lp-grid,
	.lp-ext-cards {
		grid-template-columns: 1fr;
	}

	.lp-value + .lp-value {
		border-left: 0;
		border-top: 1px solid var(--lp-line);
	}

	.lp-value {
		padding: 16px;
	}

	.lp-ext-card {
		padding: 20px;
	}
}
