/* Base Styles & CSS Variables */
:root {
	--background: 0 0% 100%;
	--foreground: 0 0% 3.9%;
	--card: 0 0% 98%;
	--card-foreground: 0 0% 3.9%;
	--primary: 0 0% 9%;
	--primary-foreground: 0 0% 98%;
	--secondary: 0 0% 96.1%;
	--muted: 0 0% 96.1%;
	--muted-foreground: 0 0% 45.1%;
	--border: 0 0% 89.8%;
	--ring: 0 0% 3.9%;
	--radius: 0.5rem;

	--success: 160 84% 39%;
	--warning: 45 93% 47%;
	--info: 221 83% 53%;
	--destructive: 0 84.2% 60.2%;

	--font-main: "Plus Jakarta Sans", sans-serif;
	--max-width: 1200px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-main);
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
	color: inherit;
	transition:
		opacity 0.2s ease,
		color 0.2s ease;
}

ul {
	list-style: none;
}

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

h1,
h2,
h3,
h4,
strong {
	color: hsl(var(--foreground));
	font-weight: 700;
	line-height: 1.2;
}

.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section-padding {
	padding: 6rem 0;
}

.text-center {
	text-align: center;
}
.bg-secondary {
	background-color: hsl(var(--secondary));
}
.bg-black {
	background-color: #000;
}
.text-white,
.text-white h2,
.text-white p {
	color: #fff;
}
.text-green {
	color: hsl(var(--success));
}
.text-dark-green {
	color: #023820;
	font-weight: 600;
}
.bg-light-green {
	background-color: #d1fae5;
}
.positive {
	color: hsl(var(--success));
}
.negative {
	color: hsl(var(--destructive));
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius);
	font-weight: 500;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.btn-primary {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
	background-color: hsl(var(--foreground));
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-outline {
	background-color: transparent;
	border-color: hsl(var(--border));
	color: hsl(var(--foreground));
}

.btn-outline:hover {
	background-color: hsl(var(--muted));
}

.btn-lg {
	padding: 1rem 2rem;
	font-size: 1.125rem;
}

.btn-block {
	width: 100%;
}

.badge-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background-color: hsl(var(--secondary));
	border: 1px solid hsl(var(--border));
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
}

/* Glassmorphism */
.glass {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid hsl(var(--border));
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Header */
.navbar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	background: transparent;
	/* Removed borders and shadows to blend with Hero section */
}

.navbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 6rem;
}

.logo {
	display: flex;
	align-items: center;
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.5px;
}
.logo-img {
	height: 72px;
}
.logo-text {
	color: hsl(var(--primary));
}

.nav-links {
	display: flex;
	gap: 2rem;
}

.nav-links a {
	font-weight: 500;
	color: hsl(var(--muted-foreground));
}

.nav-links a:hover {
	color: hsl(var(--foreground));
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: hsl(var(--foreground));
}

/* Hero Section */
.hero {
	padding-top: 9rem; /* Increased top padding to accommodate transparent header */
	padding-bottom: 7rem;
	overflow: hidden;
	position: relative;
	/* Soft, modern green gradient background inspired by Organizze */
	background: linear-gradient(135deg, #e6f7ec 0%, #f9fbfb 60%, #ffffff 100%);
}

.hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	letter-spacing: -1px;
	margin-bottom: 1.5rem;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 2.5rem;
	max-width: 90%;
}

.hero-ctas {
	display: flex;
	gap: 1rem;
	margin-bottom: 3rem;
	flex-wrap: wrap;
}

.social-proof {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

.avatars {
	display: flex;
}

.avatars img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid hsl(var(--background));
	margin-left: -10px;
}
.avatars img:first-child {
	margin-left: 0;
}

.hero-visual {
	position: relative;
	height: 500px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.mockup-card {
	position: absolute;
	padding: 1.5rem;
	border-radius: 1rem;
	width: 300px;
	animation: float 6s ease-in-out infinite;
}

.balance-card {
	top: 10%;
	left: 0;
	z-index: 3;
}
.spending-card {
	top: 35%;
	right: -5%;
	z-index: 2;
	width: 350px;
}
.budget-card {
	bottom: 0%;
	left: 10%;
	z-index: 4;
}

.delay-1 {
	animation-delay: 1.5s;
}
.delay-2 {
	animation-delay: 3s;
}

@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-15px);
	}
	100% {
		transform: translateY(0px);
	}
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	color: hsl(var(--muted-foreground));
	font-size: 0.875rem;
}

.icon-sm {
	width: 1.25rem;
	height: 1.25rem;
}

.balance {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: hsl(var(--foreground));
}
.trend {
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 500;
}

.transaction {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	gap: 1rem;
}
.transaction:last-child {
	margin-bottom: 0;
}

.tx-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
}
.tx-icon svg {
	width: 18px;
	height: 18px;
}
.tx-icon.market {
	background-color: #f59e0b;
}
.tx-icon.pix {
	background-color: #10b981;
}

.tx-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.tx-info span {
	font-size: 0.75rem;
	color: hsl(var(--muted-foreground));
}

.tx-amount {
	font-weight: 600;
	font-size: 0.875rem;
}

.budget-status {
	font-weight: 600;
	color: hsl(var(--foreground));
}
.progress-bar {
	width: 100%;
	height: 8px;
	background-color: hsl(var(--border));
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}
.progress-fill.warning {
	background-color: hsl(var(--warning));
	height: 100%;
	border-radius: 4px;
}
.budget-desc {
	font-size: 0.75rem;
	color: hsl(var(--muted-foreground));
}

/* Features Section */
.section-header h2 {
	font-size: clamp(2rem, 4vw, 2.5rem);
	letter-spacing: -0.5px;
	margin-bottom: 1rem;
}
.section-header p {
	font-size: 1.125rem;
	color: hsl(var(--muted-foreground));
	max-width: 600px;
	margin: 0 auto 4rem auto;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.feature-card {
	background-color: hsl(var(--background));
	padding: 2.5rem 2rem;
	border-radius: 1rem;
	border: 1px solid hsl(var(--border));
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card.highlight {
	border-color: #059669; /* Green hue */
	box-shadow: 0 10px 30px rgba(5, 150, 105, 0.1);
	position: relative;
}
.feature-card.highlight::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: #059669;
	border-top-left-radius: 1rem;
	border-top-right-radius: 1rem;
}

.feature-icon {
	width: 48px;
	height: 48px;
	background-color: hsl(var(--secondary));
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	color: hsl(var(--primary));
}

.feature-card h3 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}
.feature-card p {
	color: hsl(var(--muted-foreground));
	font-size: 0.95rem;
}

/* How It Works Section */
.steps-container {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	max-width: 1000px;
	margin: 0 auto;
}

.step {
	flex: 1;
	text-align: center;
	position: relative;
	padding: 0 1rem;
}

.step-number {
	width: 48px;
	height: 48px;
	background-color: hsl(var(--primary));
	color: white;
	font-weight: 700;
	font-size: 1.25rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem auto;
	position: relative;
	z-index: 2;
	box-shadow: 0 0 0 8px hsl(var(--background));
}

.step h3 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}
.step p {
	color: hsl(var(--muted-foreground));
	font-size: 0.95rem;
}

.step-connector {
	flex: 0.2;
	height: 2px;
	background-color: hsl(var(--border));
	margin-top: 24px;
}

/* WhatsApp Highlight Section */
.whatsapp-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.whatsapp-content h2 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-bottom: 1.5rem;
	letter-spacing: -1px;
}
.whatsapp-content p {
	font-size: 1.125rem;
	color: #a1a1aa;
	margin-bottom: 2rem;
}

.whatsapp-features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 1.05rem;
	color: #e4e4e7;
}

.phone-mockup {
	background-color: #18181b;
	border: 12px solid #27272a;
	border-radius: 2.5rem;
	height: 550px;
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.phone-header {
	background-color: #075e54;
	padding: 1.5rem 1rem 1rem 1rem;
	color: white;
}
.contact-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.avatar-bot {
	width: 36px;
	height: 36px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #075e54;
}
.avatar-bot svg {
	width: 20px;
	height: 20px;
}
.contact-name {
	font-weight: 600;
	line-height: 1.2;
}
.contact-name span {
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	opacity: 0.8;
}

.chat-area {
	flex: 1;
	background-color: #ebd5c1;
	background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	position: relative;
	overflow-y: auto;
	scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.chat-area::-webkit-scrollbar {
	display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.chat-area {
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
}

.message {
	max-width: 80%;
	padding: 0.6rem 0.8rem;
	border-radius: 0.5rem;
	font-size: 0.9rem;
	position: relative;
	clear: both;
}

.msg-sent {
	background-color: #dcf8c6;
	color: #303030;
	align-self: flex-end;
	border-top-right-radius: 0;
	margin-left: auto;
}

.msg-received {
	background-color: white;
	color: #303030;
	align-self: flex-start;
	border-top-left-radius: 0;
}

/* Typing Indicator Animation */
.typing-indicator {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 1rem 1.25rem;
	margin-top: 1rem;
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.3s,
		transform 0.3s;
}

.typing-indicator span {
	width: 6px;
	height: 6px;
	background-color: #a1a1aa;
	border-radius: 50%;
	animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
	animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes typing {
	0%,
	80%,
	100% {
		transform: scale(0);
	}
	40% {
		transform: scale(1);
	}
}

/* Family Section */
.family-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.family-content h2 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	letter-spacing: -1px;
	margin-bottom: 1.5rem;
}
.family-content p {
	font-size: 1.125rem;
	color: hsl(var(--muted-foreground));
	margin-bottom: 2rem;
}

.check-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-weight: 500;
	font-size: 1.05rem;
}
.check-list li svg {
	color: hsl(var(--success));
}

.family-visual {
	height: 400px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.family-cards-cluster {
	position: relative;
	width: 100%;
	height: 100%;
}

.member-card {
	position: absolute;
	background: white;
	border: 1px solid hsl(var(--border));
	border-radius: 1rem;
	padding: 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.member-card:hover {
	transform: translateY(-5px);
	z-index: 10;
}

.member-card.owner {
	top: 10%;
	right: 5%;
	z-index: 2;
}
.member-card.admin {
	top: 40%;
	left: 0%;
	z-index: 3;
}
.member-card.child {
	bottom: 15%;
	right: 20%;
	z-index: 1;
}

.member-card img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}
.member-info strong {
	display: block;
	font-size: 1rem;
}
.member-info span {
	font-size: 0.75rem;
	color: hsl(var(--muted-foreground));
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.limit-badge {
	position: absolute;
	top: -10px;
	right: -10px;
	background: hsl(var(--warning));
	color: #523f03;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.2rem 0.5rem;
	border-radius: 1rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pricing Section */
.pricing-card-wrapper {
	max-width: 450px;
	margin: 0 auto;
}

.pricing-card {
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: 1.5rem;
	padding: 3rem 2.5rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.plan-name {
	font-weight: 600;
	font-size: 1.25rem;
	color: hsl(var(--primary));
	margin-bottom: 1rem;
}
.plan-price {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin-bottom: 0.5rem;
}
.currency {
	font-size: 1.5rem;
	font-weight: 600;
	margin-top: 0.5rem;
	padding-right: 0.2rem;
}
.amount {
	font-size: 4rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -2px;
}
.period {
	font-size: 1.125rem;
	color: hsl(var(--muted-foreground));
	margin-top: 2.2rem;
	margin-left: 0.2rem;
}

.price-equivalent {
	color: hsl(var(--muted-foreground));
	font-size: 0.95rem;
	margin-bottom: 2rem;
}
.trial-note {
	font-size: 0.8rem;
	color: #a1a1aa;
	margin-top: 1rem;
	margin-bottom: 2.5rem;
}

.pricing-features {
	text-align: left;
	border-top: 1px solid hsl(var(--border));
	padding-top: 2rem;
}

.pricing-features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}
.pricing-features li svg {
	width: 18px;
	height: 18px;
	color: hsl(var(--primary));
}

/* FAQ Section */
.faq-inner {
	max-width: 800px;
	margin: 0 auto;
}

.accordion-item {
	border-bottom: 1px solid hsl(var(--border));
}

.accordion-header {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 1.5rem 0;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: hsl(var(--foreground));
	font-family: inherit;
}

.accordion-header svg {
	transition: transform 0.3s ease;
}
.accordion-header.active svg {
	transform: rotate(180deg);
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition:
		max-height 0.3s ease,
		padding 0.3s ease;
	color: hsl(var(--muted-foreground));
	padding: 0;
}

.accordion-content.active {
	padding-bottom: 1.5rem;
	max-height: 200px;
}

/* Footer */
.footer {
	background: hsl(var(--secondary));
	padding-top: 4rem;
	border-top: 1px solid hsl(var(--border));
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	margin-bottom: 3rem;
	flex-wrap: wrap;
	gap: 2rem;
}

.footer-brand {
	max-width: 300px;
}
.footer-brand p {
	color: hsl(var(--muted-foreground));
	margin-top: 1rem;
	font-size: 0.95rem;
}

.footer-links {
	display: flex;
	gap: 4rem;
}

.link-group {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.link-group strong {
	margin-bottom: 0.5rem;
}
.link-group a {
	color: hsl(var(--muted-foreground));
	font-size: 0.95rem;
}
.link-group a:hover {
	color: hsl(var(--foreground));
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2rem 1.5rem;
	border-top: 1px solid hsl(var(--border));
	color: hsl(var(--muted-foreground));
	font-size: 0.875rem;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
	.hero-title {
		font-size: 3rem;
	}
	.whatsapp-inner,
	.family-inner {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.whatsapp-visual,
	.family-visual {
		order: -1;
	}
	.hero-visual {
		height: 400px;
	}
	.mockup-card {
		width: 250px;
	}
	.balance-card {
		top: 0;
	}
	.spending-card {
		width: 300px;
		right: 0;
	}
	.budget-card {
		bottom: 10%;
	}
}

@media (max-width: 768px) {
	.hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 2rem;
	}
	.hero-subtitle {
		margin: 0 auto 2.5rem auto;
	}
	.hero-ctas {
		justify-content: center;
	}
	.social-proof {
		justify-content: center;
		margin-top: 2rem;
	}
	.hero-visual {
		margin-top: 2rem;
		height: 350px;
	}

	.nav-links,
	.nav-actions .btn {
		display: none;
	}
	.menu-toggle {
		display: block;
	}

	.steps-container {
		flex-direction: column;
		gap: 2rem;
	}
	.step-connector {
		width: 2px;
		height: 40px;
		margin: 0 auto;
	}

	.footer-inner {
		flex-direction: column;
	}
	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.member-card {
		width: 220px;
	}
	.member-card.owner {
		top: 0;
		right: 0;
	}
	.member-card.admin {
		top: 30%;
		left: 0;
	}
	.member-card.child {
		bottom: 10%;
		right: 10%;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 2.25rem;
	}
	.mockup-card {
		width: 100%;
		position: relative;
		margin-bottom: 1rem;
		animation: none;
	}
	.hero-visual {
		height: auto;
		flex-direction: column;
	}
	.spending-card {
		right: auto;
		width: 100%;
		top: auto;
	}
	.balance-card {
		top: auto;
	}
	.budget-card {
		bottom: auto;
		left: auto;
	}

	.member-card {
		position: relative;
		width: 100%;
		margin-bottom: 1rem;
		top: auto;
		left: auto;
		right: auto;
		bottom: auto;
	}
	.family-visual {
		height: auto;
		display: block;
	}
}
