/*
 * eDaftar landing — same design language as the app: Swiss minimalism, white surface,
 * "Trust teal" accent (teal-700 #0f766e is the darkest teal clearing 4.5:1 with white
 * labels), Plus Jakarta Sans with system fallback, four-step elevation tokens.
 */
:root {
	--accent-50: #f0fdfa;
	--accent-100: #ccfbf1;
	--accent-300: #5eead4;
	--accent-600: #0d9488;
	--accent-700: #0f766e;
	--accent-800: #115e59;
	--accent-900: #134e4a;
	--ink: #0f172a;
	--ink-muted: #475569;
	--paper: #ffffff;
	--line: #e2e8f0;
	--warn: #b45309;
	--e1: 0 1px 2px 0 rgb(15 23 42 / 0.04), 0 1px 3px 0 rgb(15 23 42 / 0.06);
	--e2: 0 2px 4px -1px rgb(15 23 42 / 0.05), 0 4px 8px -2px rgb(15 23 42 / 0.08);
	--e3: 0 4px 8px -2px rgb(15 23 42 / 0.06), 0 12px 20px -4px rgb(15 23 42 / 0.1);
	--radius: 14px;
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
	--space: 1rem;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3 {
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
}

h1 {
	font-size: clamp(2rem, 5.5vw, 3.3rem);
	font-weight: 800;
}

h2 {
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	font-weight: 700;
}

h3 {
	font-size: 1.075rem;
	font-weight: 700;
}

p {
	margin: 0;
}

a {
	color: var(--accent-700);
}

.wrap {
	width: min(1100px, 100% - 2.5rem);
	margin-inline: auto;
}

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

.skip-link {
	position: absolute;
	inset-inline-start: 0;
	top: -48px;
	background: var(--ink);
	color: #fff;
	padding: 0.6rem 1rem;
	border-radius: 0 0 var(--radius) 0;
	z-index: 10;
	transition: top 0.15s ease-out;
}

.skip-link:focus {
	top: 0;
}

:where(a, .btn):focus-visible {
	outline: 3px solid var(--accent-600);
	outline-offset: 3px;
	border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- header ---------- */

.site-header {
	position: sticky;
	top: 0;
	background: rgb(255 255 255 / 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
	z-index: 5;
}

.header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.7rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--ink);
	text-decoration: none;
}

.brand img {
	width: 34px;
	height: 31px;
	object-fit: contain;
}

.site-header nav {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 3vw, 1.75rem);
}

.site-header nav a:not(.btn) {
	color: var(--ink-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.55rem 0.15rem;
}

.site-header nav a:not(.btn):hover {
	color: var(--accent-700);
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 46px;
	padding: 0.65rem 1.4rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.15s ease,
		box-shadow 0.2s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	background: var(--accent-700);
	color: #fff;
}

.btn-primary:hover {
	background: var(--accent-800);
	box-shadow: var(--e2);
}

.btn-ghost {
	background: transparent;
	color: var(--accent-800);
	border-color: var(--accent-700);
}

.btn-ghost:hover {
	background: var(--accent-50);
}

.btn-invert {
	background: #fff;
	color: var(--accent-900);
}

.btn-invert:hover {
	background: var(--accent-100);
}

.btn-small {
	min-height: 42px;
	padding: 0.4rem 1.05rem;
	font-size: 0.92rem;
}

.btn-block {
	width: 100%;
}

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

.hero {
	padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
	background:
		radial-gradient(60rem 30rem at 110% -10%, var(--accent-50), transparent 60%), var(--paper);
}

.hero-grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

@media (min-width: 900px) {
	.hero-grid {
		grid-template-columns: 1.05fr 0.95fr;
	}
}

.eyebrow {
	color: var(--accent-700);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	margin-bottom: 0.9rem;
}

.lede {
	color: var(--ink-muted);
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	max-width: 34rem;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.6rem;
}

.hero-note {
	margin-top: 1rem;
	font-size: 0.9rem;
	color: var(--ink-muted);
}

/* chat mock */

.hero-visual {
	display: flex;
	justify-content: center;
}

.chat-card {
	width: min(400px, 100%);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: var(--e3);
	padding: 1.1rem 1.1rem 1.3rem;
}

.chat-head {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--ink-muted);
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--line);
	margin-bottom: 0.9rem;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent-600);
}

.bubble {
	max-width: 88%;
	padding: 0.65rem 0.9rem;
	border-radius: 16px;
	font-size: 0.92rem;
	margin: 0 0 0.7rem;
}

.bubble.you {
	margin-inline-start: auto;
	background: var(--accent-100);
	color: var(--ink);
	border-bottom-right-radius: 6px;
}

.bubble.bot {
	background: #f1f5f9;
	border-bottom-left-radius: 6px;
}

.bubble .warn {
	color: var(--warn);
	font-weight: 700;
}

.attach {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-style: italic;
}

.attach svg {
	width: 17px;
	height: 17px;
	color: var(--accent-800);
	flex-shrink: 0;
}

/* ---------- strip ---------- */

.strip {
	background: var(--ink);
	color: #e2e8f0;
	padding-block: 1.1rem;
}

.strip-row {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 2.2rem;
	justify-content: center;
	font-weight: 600;
	font-size: 0.95rem;
}

.strip-row li::before {
	content: "✓";
	color: var(--accent-300);
	font-weight: 800;
	margin-inline-end: 0.5rem;
}

/* ---------- sections ---------- */

.section {
	padding-block: clamp(3rem, 7vw, 5rem);
}

.section-alt {
	background: var(--accent-50);
}

.section-lede {
	color: var(--ink-muted);
	max-width: 40rem;
	margin-bottom: 2.2rem;
}

.cards {
	display: grid;
	gap: 1.2rem;
}

@media (min-width: 640px) {
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.cards {
		grid-template-columns: repeat(4, 1fr);
	}
}

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.4rem 1.3rem 1.5rem;
	transition:
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.card:hover {
	box-shadow: var(--e3);
	transform: translateY(-3px);
}

.card .icon {
	width: 30px;
	height: 30px;
	color: var(--accent-700);
	margin-bottom: 0.9rem;
}

.card p {
	color: var(--ink-muted);
	font-size: 0.95rem;
}

/* steps */

.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.2rem;
	counter-reset: step;
}

@media (min-width: 800px) {
	.steps {
		grid-template-columns: repeat(3, 1fr);
	}
}

.steps li {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem 1.4rem;
}

.steps p {
	color: var(--ink-muted);
	font-size: 0.95rem;
}

.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accent-700);
	color: #fff;
	font-weight: 800;
	margin-bottom: 0.9rem;
}

/* plans */

.plans {
	display: grid;
	gap: 1.2rem;
	align-items: stretch;
}

@media (min-width: 800px) {
	.plans {
		grid-template-columns: repeat(3, 1fr);
	}
}

.plan {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.6rem 1.4rem;
	display: flex;
	flex-direction: column;
	position: relative;
}

.plan-featured {
	border-color: var(--accent-700);
	box-shadow: var(--e2);
}

.badge {
	position: absolute;
	top: -0.85rem;
	inset-inline-start: 1.4rem;
	background: var(--accent-700);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
}

.price {
	font-size: 1.9rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0.2rem 0 1.1rem;
}

.price span {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink-muted);
}

.plan ul {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.55rem;
	flex-grow: 1;
}

.plan li {
	color: var(--ink-muted);
	font-size: 0.95rem;
	padding-inline-start: 1.5rem;
	position: relative;
}

.plan li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.45em;
	width: 11px;
	height: 11px;
	background: var(--accent-600);
	mask:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

/* CTA band */

.cta-band {
	background: linear-gradient(120deg, var(--ink) 0%, var(--accent-900) 100%);
	color: #fff;
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.band-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.4rem;
}

.cta-band h2 {
	color: #fff;
	margin: 0;
	max-width: 30rem;
}

/* footer */

.site-footer {
	border-top: 1px solid var(--line);
	padding-block: 1.6rem 2rem;
	color: var(--ink-muted);
	font-size: 0.92rem;
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-footer nav {
	display: flex;
	gap: 1.4rem;
}

.site-footer a {
	color: var(--ink-muted);
	text-decoration: none;
	padding: 0.4rem 0;
}

.site-footer a:hover {
	color: var(--accent-700);
}

/* elevation helpers (same four-step scale as the app) */

.e1 {
	box-shadow: var(--e1);
}

.e2 {
	box-shadow: var(--e2);
}

.e3 {
	box-shadow: var(--e3);
}
