/* ==========================================================================
   Softly theme — "digital living room" redesign for Bureau de Crédito.
   Palette keeps the site's existing blue/gold brand instead of the
   original peach/sage/lavender spec: --accent (gold) fills the
   coral/primary role, --sky (light blue) is the brand color being kept
   front and center, --tone-sky/--tone-gold fill the sage/lavender
   "soft alternate surface" roles.
   ========================================================================== */

:root{
	--bg:#F7FBFF;
	--tone-sky:#E3F2FD;
	--tone-gold:#FFF3D6;
	--sky:#87CEFA;
	--sky-deep:#5FB6EE;
	--accent:#F5B800;
	--accent-deep:#C89300;
	--ink:#132447;
	--ink-soft:#2B3A5C;
	--muted:#5B6B85;
	--white:#FFFFFF;
	--border:rgba(19,36,71,.10);
	--shadow-soft:0 4px 20px -2px rgba(19,36,71,.08);
	--shadow-lift:0 20px 45px -12px rgba(19,36,71,.22);
	--radius-lg:2.5rem;
	--radius-xl:4rem;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body.softly{
	margin:0;
	background:var(--bg);
	color:var(--ink);
	font-family:'Outfit', system-ui, sans-serif;
	-webkit-font-smoothing:antialiased;
	overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
.cursive{
	font-family:'Reenie Beanie', cursive;
	font-weight:400;
	color:var(--accent-deep);
	font-size:1.25em;
	line-height:.7;
	display:inline-block;
	transform:rotate(-3deg);
	margin-left:.15em;
}

/* ---------- Grain overlay ---------- */
.grain-overlay{
	position:fixed;
	inset:0;
	z-index:50;
	pointer-events:none;
	opacity:.35;
	mix-blend-mode:overlay;
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Blobs ---------- */
.blob{
	position:absolute;
	border-radius:50%;
	filter:blur(60px);
	opacity:.6;
	z-index:0;
	pointer-events:none;
	animation:float 6s ease-in-out infinite;
}
.blob-a{width:280px;height:280px;background:#FFE4E1;top:-40px;left:-60px;}
.blob-b{width:320px;height:320px;background:#E6E6FA;bottom:-80px;right:-80px;animation-delay:-3s;}
.blob-c{width:260px;height:260px;background:var(--tone-gold);top:10%;right:-60px;}
@keyframes float{
	0%,100%{transform:translateY(-10px);}
	50%{transform:translateY(10px);}
}
@media (prefers-reduced-motion: reduce){
	.blob{animation:none;}
}

/* ---------- Reveal on scroll ---------- */
.reveal{
	opacity:0;
	transform:translateY(30px);
	transition:opacity .8s ease, transform .8s ease;
}
.reveal.is-visible{
	opacity:1;
	transform:translateY(0);
}

/* ---------- Buttons ---------- */
.btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:.5rem;
	padding:1rem 1.75rem;
	border-radius:999px;
	font-weight:600;
	font-size:15px;
	white-space:nowrap;
	transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
	border:1px solid transparent;
	cursor:pointer;
}
.btn-primary{
	background:var(--accent);
	color:var(--ink);
	box-shadow:var(--shadow-soft);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift);}
.btn-secondary{
	background:var(--white);
	color:var(--ink);
	border:1px solid var(--border);
}
.btn-secondary:hover{transform:translateY(-2px);border-color:var(--sky-deep);}
.btn-dark{
	background:var(--ink);
	color:var(--white);
}
.btn-dark:hover{transform:scale(1.04);}
.btn.center{display:flex;width:max-content;margin:2.5rem auto 0;}

/* ---------- Nav ---------- */
.nav-pill{
	position:sticky;
	top:16px;
	z-index:40;
	margin:16px auto 0;
	width:calc(100% - 32px);
	max-width:960px;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	padding:10px 10px 10px 16px;
	background:rgba(255,255,255,.7);
	backdrop-filter:blur(20px);
	-webkit-backdrop-filter:blur(20px);
	border-radius:999px;
	border:1px solid rgba(255,255,255,.6);
	box-shadow:var(--shadow-soft);
}
.nav-logo{
	display:flex;
	align-items:center;
	gap:8px;
	font-weight:600;
	font-size:14px;
	color:var(--ink);
}
.nav-logo-badge{
	width:26px;height:26px;
	border-radius:50%;
	background:var(--accent);
	display:flex;align-items:center;justify-content:center;
	flex:none;
}
.nav-logo-dot{width:6px;height:6px;border-radius:50%;background:var(--white);}
.nav-links{
	display:none;
	align-items:center;
	gap:22px;
	font-size:14px;
	font-weight:500;
	color:var(--ink-soft);
}
.nav-links a:hover{color:var(--accent-deep);}
.nav-actions{
	display:flex;
	align-items:center;
	gap:6px;
	flex:none;
}
.nav-login{
	font-size:13px;
	font-weight:600;
	color:var(--ink);
	padding:10px 14px;
	border-radius:999px;
	transition:background .2s ease, color .2s ease;
}
.nav-login:hover{background:var(--tone-sky);color:var(--accent-deep);}
.nav-cta{
	background:var(--ink);
	color:var(--white);
	font-size:13px;
	font-weight:600;
	padding:10px 18px;
	border-radius:999px;
	flex:none;
}
@media (min-width:768px){
	.nav-links{display:flex;}
}

/* ---------- Hero ---------- */
.hero{
	position:relative;
	text-align:center;
	padding:88px 20px 40px;
	overflow:hidden;
}
.hero-logo{
	width:180px;
	margin:0 auto 28px;
	position:relative;
	z-index:1;
}
.hero-title{
	position:relative;
	z-index:1;
	font-size:clamp(40px, 9vw, 72px);
	font-weight:700;
	letter-spacing:-0.025em;
	line-height:1.05;
	margin:0 0 20px;
	max-width:820px;
	margin-inline:auto;
}
.hero-sub{
	position:relative;
	z-index:1;
	max-width:500px;
	margin:0 auto 32px;
	color:var(--muted);
	font-size:17px;
	line-height:1.6;
}
.hero-ctas{
	position:relative;
	z-index:1;
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:12px;
	margin-bottom:56px;
}
.hero-video{
	position:relative;
	z-index:1;
	max-width:720px;
	margin:0 auto;
}
.video-frame{
	border-radius:var(--radius-lg);
	overflow:hidden;
	box-shadow:var(--shadow-lift);
	aspect-ratio:16/9;
	background:var(--ink);
}
.video-frame iframe{width:100%;height:100%;border:0;}

/* ---------- Section shared ---------- */
section{padding:64px 20px;position:relative;}
.section-title{
	text-align:center;
	font-size:clamp(28px,5vw,40px);
	font-weight:700;
	letter-spacing:-0.025em;
	max-width:640px;
	margin:0 auto 36px;
}

/* ---------- Horizontal scenario scroll ---------- */
.scenario-scroll{
	display:flex;
	gap:16px;
	overflow-x:auto;
	padding:8px 4px 24px;
	scroll-snap-type:x mandatory;
	-webkit-overflow-scrolling:touch;
}
.scenario-scroll::-webkit-scrollbar{height:6px;}
.scenario-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:99px;}
.scenario-card{
	flex:none;
	width:288px;
	height:160px;
	background:var(--white);
	border-radius:24px;
	box-shadow:var(--shadow-soft);
	padding:20px;
	display:flex;
	flex-direction:column;
	justify-content:space-between;
	scroll-snap-align:start;
	transition:transform .3s ease, box-shadow .3s ease;
}
.scenario-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift);}
.scenario-tag{
	font-size:14px;
	color:var(--muted);
	font-weight:500;
}
.scenario-icon{
	width:38px;height:38px;
	border-radius:50%;
	background:var(--tone-sky);
	display:flex;align-items:center;justify-content:center;
	color:var(--sky-deep);
}
.scenario-card p{
	font-size:20px;
	font-weight:600;
	color:var(--ink);
	margin:0;
	line-height:1.25;
	transition:color .3s ease;
}
.scenario-card:hover p{color:var(--accent-deep);}

/* ---------- App / phone preview ---------- */
.app-preview{padding-top:24px;}
.phone-stack{
	position:relative;
	display:flex;
	align-items:flex-start;
	justify-content:center;
	max-width:760px;
	margin:0 auto;
	padding:20px 0 60px;
}
.phone{
	position:relative;
	border-radius:34px;
	overflow:hidden;
	box-shadow:var(--shadow-lift);
	border:6px solid var(--ink);
	background:var(--ink);
	flex:none;
}
.phone img{width:100%;height:100%;object-fit:cover;display:block;}
.phone-left{
	width:clamp(150px,34vw,280px);
	aspect-ratio:280/580;
	opacity:.8;
	transform:translateY(48px) rotate(-4deg);
	margin-right:-14%;
	z-index:1;
	background:var(--tone-sky);
}
.phone-right{
	width:clamp(150px,34vw,280px);
	aspect-ratio:280/580;
	opacity:.8;
	transform:translateY(96px) rotate(4deg);
	margin-left:-14%;
	z-index:1;
	background:var(--tone-gold);
}
.phone-center{
	width:clamp(165px,38vw,300px);
	aspect-ratio:300/620;
	z-index:2;
}
.pulse-badge{
	position:absolute;
	left:50%;
	bottom:14px;
	transform:translateX(-50%);
	background:var(--accent);
	color:var(--ink);
	font-size:12px;
	font-weight:700;
	padding:8px 14px;
	border-radius:999px;
	box-shadow:0 0 0 0 rgba(245,184,0,.6);
	animation:pulse 2.2s ease-out infinite;
	white-space:nowrap;
}
@keyframes pulse{
	0%{box-shadow:0 0 0 0 rgba(245,184,0,.55);}
	70%{box-shadow:0 0 0 14px rgba(245,184,0,0);}
	100%{box-shadow:0 0 0 0 rgba(245,184,0,0);}
}

/* ---------- Diary testimonials ---------- */
.diary{padding-top:16px;}
.diary-grid{
	display:grid;
	grid-template-columns:1fr;
	gap:20px;
	max-width:880px;
	margin:0 auto;
}
.diary-card{
	background:var(--white);
	border-radius:24px;
	box-shadow:var(--shadow-soft);
	padding:28px;
	font-size:15px;
	line-height:1.6;
	color:var(--ink-soft);
}
.diary-card p{margin:0 0 20px;}
.diary-card.rotate-l{transform:rotate(0deg);}
.diary-card.rotate-r{transform:rotate(0deg);}
.signature{display:flex;flex-direction:column;gap:8px;}
.sig-line{width:32px;height:1px;background:var(--border);}
.cursive-sig{
	font-family:'Reenie Beanie', cursive;
	font-size:24px;
	color:var(--muted);
}

/* ---------- Important note ---------- */
.important-note{
	max-width:640px;
	margin:0 auto 64px;
	padding:0 20px;
}
.important-note .card{
	background:var(--tone-sky);
	border-radius:24px;
	padding:24px 28px;
	display:flex;
	gap:16px;
	align-items:flex-start;
}
.important-note svg{flex:none;color:var(--sky-deep);margin-top:2px;}
.important-note p{margin:0;font-size:14px;line-height:1.6;color:var(--ink-soft);}
.important-note strong{color:var(--ink);}

/* ---------- Waitlist / pricing ---------- */
.waitlist{
	text-align:center;
	background:var(--tone-gold);
	border-radius:var(--radius-xl);
	max-width:1000px;
	margin:0 auto 64px;
	overflow:hidden;
}
.waitlist-icon{
	width:64px;height:64px;
	border-radius:20px;
	background:var(--ink);
	display:flex;align-items:center;justify-content:center;
	margin:0 auto 24px;
	position:relative;
}
.waitlist-icon svg{color:var(--white);width:28px;height:28px;}
.waitlist-icon .icon-dot{
	position:absolute;top:-4px;right:-4px;
	width:14px;height:14px;border-radius:50%;
	background:var(--accent);
	border:2px solid var(--tone-gold);
}
.waitlist h2{font-size:clamp(28px,5vw,40px);font-weight:700;letter-spacing:-0.025em;margin:0 0 24px;}
.countdown{
	display:flex;
	justify-content:center;
	gap:12px;
	margin-bottom:24px;
}
.countdown-item{
	background:var(--white);
	border-radius:16px;
	padding:12px 20px;
	min-width:76px;
	box-shadow:var(--shadow-soft);
}
.countdown-digits{display:block;font-size:28px;font-weight:700;color:var(--ink);}
.countdown-label{display:block;font-size:12px;color:var(--muted);}
.discount{font-size:22px;font-weight:600;margin:0 0 4px;}
.price-old{color:var(--muted);font-size:15px;margin:0 0 4px;text-decoration:line-through;}
.price-new{font-size:44px;font-weight:800;color:var(--accent-deep);margin:0 0 28px;}
.waitlist .btn{margin-bottom:40px;}

/* ---------- Trust ---------- */
.trust{
	text-align:center;
	max-width:520px;
	margin:0 auto;
	padding:24px 20px 64px;
}
.trust-icon{
	width:52px;height:52px;
	border-radius:16px;
	background:var(--tone-sky);
	color:var(--sky-deep);
	display:flex;align-items:center;justify-content:center;
	margin:0 auto 16px;
}
.trust h3{font-size:20px;font-weight:700;margin:0 0 10px;}
.trust p{font-size:14px;color:var(--muted);line-height:1.6;margin:0;}

/* ---------- FAQ accordion ---------- */
.faq-list{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:12px;}
.faq-item{
	background:var(--white);
	border:1px solid var(--border);
	border-radius:16px;
	overflow:hidden;
}
.faq-header{
	width:100%;
	text-align:left;
	background:none;
	border:0;
	font-family:inherit;
	padding:24px;
	font-size:16px;
	font-weight:500;
	color:var(--ink);
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	cursor:pointer;
}
.faq-icon{
	flex:none;
	width:24px;height:24px;
	border-radius:50%;
	background:var(--tone-sky);
	color:var(--sky-deep);
	display:flex;align-items:center;justify-content:center;
	font-size:16px;
	line-height:1;
	transition:transform .3s ease;
}
.faq-item.is-open .faq-icon{transform:rotate(45deg);}
.faq-content{
	height:0;
	overflow:hidden;
	transition:height .5s ease-in-out;
}
.faq-content-inner{padding:0 24px 24px;font-size:14px;line-height:1.6;color:var(--muted);}

/* ---------- Footer ---------- */
.footer{
	background:var(--ink);
	color:rgba(255,255,255,.55);
	font-size:11px;
	line-height:1.7;
	padding:40px 20px;
	text-align:center;
}
.footer p{max-width:760px;margin:0 auto;}
.footer-links{
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:8px 20px;
	margin:0 auto 20px;
	max-width:760px;
}
.footer-links a{
	font-size:12px;
	font-weight:500;
	color:rgba(255,255,255,.75);
}
.footer-links a:hover{color:var(--accent);}

/* ---------- Desktop scale-up ---------- */
@media (min-width:768px){
	.diary-grid{grid-template-columns:1fr 1fr;}
	.diary-card.span-2{grid-column:span 2;}
	section{padding:96px 40px;}
	.hero{padding:120px 40px 60px;}
	.scenario-scroll{justify-content:center;}
}
