/*
 * Raleway 600 is self-hosted alongside the other Drake fonts (see
 * apps/drake-web/config/fonts.ts for the shell's Source Sans Pro faces) so this
 * page-scoped stylesheet does not fetch from fonts.googleapis.com. The path is
 * relative to this file (public/assets/css/drake-smart-extract/style.css) to keep the
 * migrated CSS mirror self-contained.
 */
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../../fonts/raleway-600.woff2') format('woff2');
}

/*
 * Scope the design tokens to the page root instead of :root so this migrated
 * stylesheet cannot override same-named design-system variables on the shell
 * (nav, header) when it loads on the /products/drake-smart-extract/ route. Every consumer below is
 * already scoped under .drake-smart-extract.
 */
.drake-smart-extract {
	--brand-500: #1b75bc;
	--secondary-600: #3e495a;
	--secondary-50: #ecf4f9;
	--secondary-25: #f5fbff;
	--base-dark: #1c1b20;
	--base-light: #f7f8fc;
	--muted: #74777e;
	--card-row: #f8f9fe;
	--font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-head: 'Raleway', var(--font-body);
	--font-mono: 'Menlo', 'SF Mono', Monaco, Consolas, monospace;
}

.drake-smart-extract *,
.drake-smart-extract *::before,
.drake-smart-extract *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.drake-smart-extract {
	font-family: var(--font-body);
	color: var(--base-dark);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

.drake-smart-extract img {
	display: block;
	max-width: 100%;
}

.drake-smart-extract .container {
	width: 100%;
	max-width: 1146px;
	margin: 0 auto;
	padding: 0 24px;
}

.drake-smart-extract .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 32px;
	border-radius: 9999px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 18px;
	line-height: 24px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.drake-smart-extract .btn:hover {
	opacity: 0.9;
}

.drake-smart-extract .btn--light {
	background: #fff;
	color: var(--base-dark);
}

.drake-smart-extract .btn--brand {
	background: var(--brand-500);
	color: #fff;
	box-shadow: 0 1px 3.5px rgba(0, 0, 0, 0.07);
}

.drake-smart-extract .btn--brand-on-blue {
	background: #fff;
	color: var(--brand-500);
}

/* ---------- Hero ---------- */
.drake-smart-extract .hero {
	position: relative;
	background: var(--brand-500);
	overflow: hidden;
	padding: 112px 0;
}

.drake-smart-extract .hero__glow {
	position: absolute;
	top: 175px;
	left: 60%;
	width: 384px;
	height: 384px;
	background: #6ba5d3;
	filter: blur(64px);
	opacity: 0.12;
	border-radius: 999px;
	pointer-events: none;
}

.drake-smart-extract .hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 64px;
	max-width: 1146px;
	margin: 0 auto;
	padding: 0 24px;
}

.drake-smart-extract .hero__copy {
	flex: 1 1 553px;
	max-width: 553px;
	color: #fff;
}

.drake-smart-extract .badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 7px 13px;
	background: #d0e7ff;
	border: 1px solid rgba(152, 193, 225, 0.35);
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	color: var(--base-dark);
}

.drake-smart-extract .badge__dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--brand-500);
	animation: badge-dot-breathe 2s ease-in-out infinite;
}

@keyframes badge-dot-breathe {
	0%,
	100% {
		background: var(--brand-500);
	}
	50% {
		background: #98c1e1;
	}
}

.drake-smart-extract .hero__wordmark {
	margin: 16px 0 0;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 40px;
	line-height: 1;
	letter-spacing: -0.5px;
	white-space: nowrap;
}

.drake-smart-extract .hero__wordmark-drake {
	font-weight: 700;
}

.drake-smart-extract .hero__wordmark-product {
	font-weight: 600;
}

.drake-smart-extract .hero__wordmark-tm {
	font-size: 0.4em;
	font-weight: 600;
	vertical-align: super;
	letter-spacing: 0;
}

.drake-smart-extract .hero__subhead {
	margin-top: 16px;
	font-weight: 600;
	font-size: 30px;
	line-height: 38px;
}

.drake-smart-extract .hero__body {
	margin-top: 24px;
	font-weight: 400;
	font-size: 20px;
	line-height: 28px;
}

.drake-smart-extract .hero__cta {
	margin-top: 40px;
}

/* Hero document cards */
.drake-smart-extract .hero__visual {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.drake-smart-extract .doc-card {
	width: 352px;
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 24px 24px rgba(0, 0, 0, 0.18);
}

.drake-smart-extract .doc-card--result {
	border: 1px solid #c0d8c2;
	padding: 21px;
}

.drake-smart-extract .doc-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.drake-smart-extract .doc-card__id {
	display: flex;
	gap: 8px;
	align-items: center;
}

.drake-smart-extract .doc-card__icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.drake-smart-extract .doc-card__icon--blue {
	background: #edf4fa;
}

.drake-smart-extract .doc-card__icon--green {
	background: #eef5ef;
}

.drake-smart-extract .doc-card__title {
	font-weight: 600;
	font-size: 12px;
	line-height: 18px;
}

.drake-smart-extract .doc-card__sub {
	font-size: 10px;
	line-height: 18px;
	color: var(--muted);
}

.drake-smart-extract .chip-extracted {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	background: #eef5ef;
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 14px;
	color: #25672b;
}

.drake-smart-extract .doc-card__rows {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.drake-smart-extract .doc-row {
	display: flex;
	align-items: center;
	min-height: 24px;
	padding: 0 8px;
	background: var(--card-row);
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 14px;
}

.drake-smart-extract .doc-row__label {
	color: var(--muted);
}

.drake-smart-extract .doc-row__value {
	margin-left: auto;
	color: var(--base-dark);
}

.drake-smart-extract .doc-row--result {
	justify-content: flex-end;
	color: var(--base-dark);
}

/* ---------- Hero doc animation ---------- */
.drake-smart-extract .doc-anim {
	width: 352px;
	max-width: 100%;
}

.drake-smart-extract .doc-anim__source,
.drake-smart-extract .doc-anim__target {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.drake-smart-extract .doc-anim__target {
	border: 1px solid #c0d8c2;
}

.drake-smart-extract .doc-anim__status-slot {
	flex-shrink: 0;
	min-width: 5.5rem;
	min-height: 22px;
	display: flex;
	justify-content: flex-end;
}

.drake-smart-extract .chip-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 14px;
}

.drake-smart-extract .chip-status--reading {
	background: #edf4fa;
	color: var(--brand-500);
}

.drake-smart-extract .chip-status--done {
	background: #eef5ef;
	color: #25672b;
}

.drake-smart-extract .doc-anim__pulse {
	animation: doc-pulse 1s ease-in-out infinite;
}

@keyframes doc-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.4;
	}
}

.drake-smart-extract .doc-anim__fields {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
}

.drake-smart-extract .doc-anim__field-wrap {
	position: relative;
}

.drake-smart-extract .doc-anim__field {
	transition: background 0.3s ease;
}

.drake-smart-extract .doc-anim__field--scanning {
	background: #edf4fa;
}

.drake-smart-extract .doc-anim__scan-line {
	position: absolute;
	inset: 0;
	border-radius: 6px;
	background: linear-gradient(90deg, transparent, rgba(27, 117, 188, 0.25), transparent);
	opacity: 0;
	transform: translateX(-100%);
	pointer-events: none;
}

.drake-smart-extract .doc-anim__scan-line--active {
	opacity: 1;
	transition: transform 0.4s linear;
	transform: translateX(100%);
}

.drake-smart-extract .doc-anim__arrow {
	display: flex;
	justify-content: center;
	padding: 12px 0;
	color: #fff;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.drake-smart-extract .doc-anim__arrow--show {
	opacity: 1;
}

.drake-smart-extract .doc-anim__target {
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease;
}

.drake-smart-extract .doc-anim__target--show {
	opacity: 1;
	transform: translateY(0);
}

.drake-smart-extract .doc-anim__field--target {
	justify-content: space-between;
	background: var(--card-row);
	opacity: 0.35;
	transition:
		background 0.3s ease,
		opacity 0.3s ease;
}

.drake-smart-extract .doc-anim__field--filled {
	background: #eef5ef;
	opacity: 1;
}

.drake-smart-extract .doc-anim__field-label {
	color: var(--muted);
}

.drake-smart-extract .doc-anim__field-value {
	margin-left: auto;
	color: #25672b;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.drake-smart-extract .doc-anim__field--filled .doc-anim__field-value {
	opacity: 1;
}

/* ---------- Section headings ---------- */
.drake-smart-extract .section {
	padding: 80px 0;
}

.drake-smart-extract .section__title {
	font-weight: 700;
	font-size: 32px;
	line-height: 40px;
	text-align: center;
}

/* Steps section title is left-aligned on desktop, centered once stacked (<992px). */
.drake-smart-extract .section__title--steps {
	text-align: left;
}

/* Header wrapper aligns the steps title with the steps grid.
   On desktop, indent the title so its left edge matches the left edge of the
   Step 1 label ("Upload tax documents"), which is centered in a 296px column.
   Offset = (296 - 216) / 2 = 40px, measured at desktop widths where the grid
   is capped at its 1232px max-width. Below 992px the title is centered, so no
   indent is applied. NOTE: revisit this 40px if the Step 1 label text changes. */
.drake-smart-extract .steps__header {
	max-width: 1232px;
	margin: 0 auto;
	padding: 0 24px;
}

@media (min-width: 992px) {
	.drake-smart-extract .steps__header .section__title--steps {
		margin-left: 40px;
	}
}

/* ---------- Benefits ---------- */
.drake-smart-extract .benefits {
	background: var(--base-light);
}

.drake-smart-extract .benefits__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: center;
	justify-content: center;
	margin-top: 64px;
}

.drake-smart-extract .benefits__photo {
	flex: 1 1 420px;
	min-width: 0;
	width: 100%;
	max-width: 547px;
	height: auto;
	aspect-ratio: 547 / 468;
	object-fit: cover;
	border-radius: 16px;
}

.drake-smart-extract .benefits__list {
	flex: 1 1 420px;
	min-width: 0;
	max-width: 532px;
}

.drake-smart-extract .benefit__chip {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--secondary-50);
	display: flex;
	align-items: center;
	justify-content: center;
}

.drake-smart-extract .benefit__chip:not(:first-child) {
	margin-top: 12px;
}

.drake-smart-extract .benefit__title {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 18px;
	line-height: 24px;
	padding: 8px 0;
}

.drake-smart-extract .benefit__text {
	font-size: 16px;
	line-height: 24px;
	color: var(--muted);
	padding-bottom: 20px;
}

.drake-smart-extract .section__cta {
	display: flex;
	justify-content: center;
	margin-top: 64px;
}

/* ---------- Steps ---------- */
.drake-smart-extract .steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	position: relative;
	max-width: 1232px;
	margin: 64px auto 0;
	padding: 0 24px;
}

.drake-smart-extract .steps::before {
	content: '';
	position: absolute;
	top: 32px;
	left: 12%;
	right: 12%;
	height: 1px;
	background: linear-gradient(90deg, rgba(27, 117, 188, 0.2), var(--brand-500) 50%, rgba(27, 117, 188, 0.2));
}

.drake-smart-extract .step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.drake-smart-extract .step__icon {
	width: 64px;
	height: 64px;
	border-radius: 40px;
	background: var(--brand-500);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 12px rgba(15, 63, 99, 0.15);
}

.drake-smart-extract .step__num {
	margin-top: 24px;
	font-weight: 600;
	font-size: 12px;
	line-height: 18px;
	color: var(--brand-500);
	letter-spacing: 0.5px;
}

.drake-smart-extract .step__title {
	margin-top: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 20px;
	line-height: 28px;
	color: var(--base-dark);
}

/* ---------- Photo band ---------- */
.drake-smart-extract .photo-band {
	width: 100%;
	display: block;
}

.drake-smart-extract .photo-band img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* ---------- Forms cards ---------- */
.drake-smart-extract .forms .section__title {
	color: var(--secondary-600);
}

.drake-smart-extract .forms__grid {
	display: flex;
	gap: 24px;
	margin-top: 64px;
}

.drake-smart-extract .form-card {
	flex: 1 1 0;
	min-width: 0;
	background: var(--secondary-50);
	border-radius: 12px;
	padding: 32px;
}

.drake-smart-extract .form-card__icon {
	color: var(--secondary-600);
}

.drake-smart-extract .form-card__title {
	margin-top: 16px;
	font-weight: 600;
	font-size: 18px;
	line-height: 28px;
}

.drake-smart-extract .form-card__text {
	margin-top: 8px;
	font-size: 16px;
	line-height: 24px;
}

.drake-smart-extract .form-card__note {
	margin-top: 8px;
	font-size: 12px;
	line-height: 18px;
}

/* ---------- Beta CTA band ---------- */
.drake-smart-extract .beta {
	background: var(--brand-500);
	color: #fff;
}

.drake-smart-extract .beta__inner {
	display: flex;
	align-items: center;
	gap: 60px;
	justify-content: space-between;
}

.drake-smart-extract .beta__title {
	font-weight: 700;
	font-size: 32px;
	line-height: 40px;
	max-width: 100%;
}

.drake-smart-extract .beta__text {
	margin-top: 12px;
	font-size: 16px;
	line-height: 24px;
	max-width: 784px;
}

.drake-smart-extract .beta__cta {
	flex: none;
}

/* Keep the beta band title on a single line on wider desktops only.
   Below 1100px the title + CTA no longer fit on one row, so it wraps. */
@media (min-width: 1100px) {
	.drake-smart-extract .beta__title {
		white-space: nowrap;
	}
}

/* ---------- FAQ ---------- */
/*
 * Markup follows the canonical Drake FAQ pattern (.faq-area / .faq-accordion /
 * .faq-item / .faq-header > i / .faq-content). Accordion JS is provided globally
 * by DrakeFaqInteractions.vue, and the chevron + max-height collapse come from
 * the global raw-html.css (.scraped-page-root .faq-area rules). Only the
 * section chrome that is page-specific is defined here.
 */
.drake-smart-extract .faq-area {
	background: #fff;
}

.drake-smart-extract .faq-accordion {
	max-width: 754px;
	margin: 0 auto;
	padding: 0 24px 24px;
}

.drake-smart-extract .faq-area .section-heading {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 36px;
	line-height: 44px;
	text-align: center;
	color: var(--base-dark);
	padding: 0 0 32px;
}

.drake-smart-extract .faq-item {
	border-top: 1px solid #a0aab6;
}

.drake-smart-extract .faq-item:last-child {
	border-bottom: 1px solid #a0aab6;
}

.drake-smart-extract .faq-area .faq-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 30px;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	color: var(--base-dark);
}

.drake-smart-extract .faq-area .faq-content {
	padding: 0 30px;
}

.drake-smart-extract .faq-area .faq-content.show {
	padding: 0 30px 30px;
}

.drake-smart-extract .faq-area .faq-content p {
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: var(--base-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.drake-smart-extract .hero {
		padding: 48px 0;
	}

	.drake-smart-extract .hero__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.drake-smart-extract .hero__copy {
		flex: 0 1 auto;
		max-width: 100%;
	}

	.drake-smart-extract .hero__cta {
		display: flex;
		justify-content: center;
	}

	.drake-smart-extract .hero__visual {
		flex: 1 1 auto;
		width: 100%;
		max-width: 352px;
		margin-top: 24px;
	}

	.drake-smart-extract .benefits__grid {
		flex-direction: column;
	}

	.drake-smart-extract .benefits__photo,
	.drake-smart-extract .benefits__list {
		flex: 1 1 auto;
		width: 100%;
		max-width: 547px;
	}

	.drake-smart-extract .steps {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 24px;
	}

	.drake-smart-extract .section__title--steps {
		text-align: center;
	}

	.drake-smart-extract .steps::before {
		display: none;
	}

	.drake-smart-extract .forms__grid {
		flex-direction: column;
	}

	.drake-smart-extract .beta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 575px) {
	.drake-smart-extract .hero__wordmark {
		font-size: 32px;
	}

	.drake-smart-extract .hero__subhead {
		font-size: 24px;
		line-height: 30px;
	}

	.drake-smart-extract .hero__body {
		font-size: 18px;
	}

	.drake-smart-extract .hero__visual {
		flex: 1 1 auto;
		width: 100%;
	}

	.drake-smart-extract .doc-card {
		width: 100%;
	}

	.drake-smart-extract .steps {
		grid-template-columns: 1fr;
	}

	.drake-smart-extract .section__title,
	.drake-smart-extract .beta__title {
		font-size: 26px;
		line-height: 34px;
	}

	.drake-smart-extract .faq-area .section-heading {
		font-size: 28px;
		line-height: 36px;
	}

	.drake-smart-extract .faq-area .faq-header,
	.drake-smart-extract .faq-area .faq-content,
	.drake-smart-extract .faq-area .faq-content.show {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.drake-smart-extract .badge__dot {
		animation: none;
	}

	.drake-smart-extract .doc-anim__pulse {
		animation: none;
	}

	/*
	 * showFinalState() jumps the animation straight to its end frame, but the
	 * elements below still carry CSS transitions that would fade/slide on that
	 * jump. Disable them so reduced-motion users see the final state instantly.
	 */
	.drake-smart-extract .doc-anim__field,
	.drake-smart-extract .doc-anim__arrow,
	.drake-smart-extract .doc-anim__target,
	.drake-smart-extract .doc-anim__field-value {
		transition: none;
	}
}
