/* BeFree landing page (builds on style.css tokens and buttons). */
.home { background: var(--surface); overflow-x: hidden; }
.home main { display: block; }
.h-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; gap: 10px; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--surface-2); }
.btn .ic { transition: transform var(--t) var(--ease); }
.btn:hover .ic { transform: translateX(3px); }

/* Entrance + scroll reveal */
.enter { opacity: 0; transform: translateY(16px); animation: h-enter .8s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes h-enter { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* Navigation */
.h-nav { position: sticky; top: 0; z-index: 40; transition: background var(--t), box-shadow var(--t), border-color var(--t); border-bottom: 1px solid transparent; padding-top: var(--safe-top); }
.h-nav.scrolled { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-color: var(--border); box-shadow: var(--shadow-sm); }
.h-nav-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.h-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.h-logo:hover { text-decoration: none; }
.h-logo img { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow); }
.h-links { display: flex; gap: 26px; }
.h-links a { color: var(--text-2); font-weight: 550; font-size: 14.5px; }
.h-links a:hover { color: var(--text); text-decoration: none; }
.h-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.h-login { color: var(--text); font-weight: 600; }
.h-cta .lang-select { min-height: 36px; padding: 4px 28px 4px 10px; font-weight: 650; font-size: 13px; background-color: transparent; border-color: transparent; }
.h-cta .lang-select:hover { border-color: var(--border); }
.h-footer-in .lang-select { min-height: 34px; padding: 4px 30px 4px 10px; font-size: 13px; }
.h-burger { display: none; }

/* Hero */
.h-hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.h-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: h-drift 18s ease-in-out infinite alternate; }
.h-blob.b1 { width: 560px; height: 560px; background: #6ee7b7; top: -220px; right: -120px; }
.h-blob.b2 { width: 460px; height: 460px; background: #a7f3d0; bottom: -220px; left: -160px; animation-delay: -6s; opacity: .45; }
@media (prefers-color-scheme: dark) { .h-blob.b1 { background: #065f46; } .h-blob.b2 { background: #064e3b; } }
@keyframes h-drift { to { transform: translate(-60px, 40px) scale(1.12); } }
.h-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }
.h-hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.h-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-text); font-weight: 650; font-size: 13px; border: 1px solid var(--primary-soft-2); }
.h-eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--ring); animation: h-pulse 2s infinite; }
@keyframes h-pulse { 0% { box-shadow: 0 0 0 0 rgba(11, 148, 103, .5); } 80%, 100% { box-shadow: 0 0 0 10px rgba(11, 148, 103, 0); } }
.h-hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 20px 0 20px; }
.grad { background: linear-gradient(100deg, #0b9467 10%, #10b981 50%, #0e7490 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-lead { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 580px; margin: 0 0 30px; }
.h-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.h-proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-weight: 550; font-size: 13.5px; }
.h-proof li { display: flex; align-items: center; gap: 7px; }
.h-proof .ic { color: var(--primary); }

/* Phone mock */
.h-hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.h-phone {
  width: 300px; height: 600px; border-radius: 44px; background: #0b141a; padding: 12px; position: relative;
  box-shadow: 0 50px 100px -30px rgba(6, 61, 44, .45), 0 0 0 1.5px #2a3a44, inset 0 0 0 2px #1d2a31; animation: h-float 7s ease-in-out infinite;
  display: flex; flex-direction: column; overflow: hidden;
}
@keyframes h-float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }
.h-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 2; }
.hp-head { display: flex; align-items: center; gap: 10px; background: #1f2c34; color: #e9edef; border-radius: 32px 32px 0 0; padding: 50px 14px 12px; }
.hp-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.hp-head small { color: #8fa3ad; font-size: 11.5px; }
.hp-head .ic { color: #aebac1; }
.hp-av { width: 36px; height: 36px; border-radius: 50%; background: #0b9467; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.hp-chat { flex: 1; background: #0b141a; padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; justify-content: flex-end;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0); background-size: 18px 18px; }
.hp-msg { max-width: 82%; padding: 7px 9px 5px; border-radius: 10px; font-size: 13px; line-height: 1.4; color: #e9edef; animation: h-msg .45s var(--ease-spring) both; box-shadow: 0 1px .5px rgba(0, 0, 0, .3); }
.hp-msg.in { background: #1f2c34; align-self: flex-start; border-top-left-radius: 3px; }
.hp-msg.out { background: #005c4b; align-self: flex-end; border-top-right-radius: 3px; }
.hp-msg .t { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 10px; color: rgba(233, 237, 239, .6); margin-top: 1px; }
.hp-msg .t .ic { width: 14px; height: 14px; transition: color .3s; }
.hp-msg .t .ic.read { color: #53bdeb; }
.hp-msg.typing { display: flex; gap: 4px; padding: 11px 13px; }
.hp-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8fa3ad; animation: h-typing 1.2s infinite; }
.hp-msg.typing i:nth-child(2) { animation-delay: .15s; } .hp-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes h-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.hp-msg.voice { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.hp-msg.voice .play { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.hp-msg.voice .play .ic { width: 12px; height: 12px; fill: #e9edef; stroke: none; }
.hp-msg.voice .wave { flex: 1; height: 18px; background: repeating-linear-gradient(90deg, rgba(233, 237, 239, .55) 0 2px, transparent 2px 5px); mask: linear-gradient(90deg, #000 0 100%); clip-path: polygon(0 40%, 8% 20%, 16% 55%, 24% 10%, 32% 45%, 40% 25%, 48% 60%, 56% 15%, 64% 50%, 72% 30%, 80% 55%, 88% 20%, 100% 45%, 100% 60%, 88% 80%, 80% 45%, 72% 70%, 64% 50%, 56% 85%, 48% 40%, 40% 75%, 32% 55%, 24% 90%, 16% 45%, 8% 80%, 0 60%); }
@keyframes h-msg { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.hp-input { margin: 8px 6px 4px; display: flex; align-items: center; gap: 8px; }
.hp-input span { flex: 1; background: #1f2c34; color: #8fa3ad; border-radius: 22px; padding: 9px 14px; font-size: 13px; }
.hp-input i { width: 38px; height: 38px; border-radius: 50%; background: #00a884; display: grid; place-items: center; color: #fff; }

.h-float {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-lg);
  font-size: 12.5px; animation: h-float 8s ease-in-out infinite; z-index: 3;
}
.h-float.f1 { width: 230px; left: -30px; top: 215px; animation-delay: -2s; }
.h-float.f2 { right: -4px; top: 230px; display: flex; align-items: center; gap: 10px; animation-delay: -4s; }
.h-float.f2 small { display: block; color: var(--muted); }
.h-float.f2 b { color: var(--primary-text); font-size: 15px; }
.h-float.f3 { left: -10px; bottom: 120px; display: flex; align-items: center; gap: 8px; font-weight: 600; animation-delay: -6s; }
.h-float.f3 .ic { color: var(--primary); }
.hf-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hf-top .ic { color: var(--primary); }
.hf-live { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--primary-text); background: var(--primary-soft); padding: 2px 8px; border-radius: 99px; }
.hf-bar { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.hf-bar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), #34d399); border-radius: 99px; transition: width .5s var(--ease); }
.hf-row { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); }
.hf-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.hf-dot { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

/* Strip */
.h-strip { border-block: 1px solid var(--border); background: var(--surface-2); }
.h-strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.h-strip-in > div { padding: 26px 22px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--border); }
.h-strip-in > div:first-child { border-left: 0; }
.h-strip b { font-size: 20px; letter-spacing: -.02em; }
.h-strip span { color: var(--muted); font-size: 13.5px; }

/* Sections */
.h-section { padding: 100px 0; }
.h-section.alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.h-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.h-kicker { display: inline-block; font-size: 12.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); margin-bottom: 12px; }
.h-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin-bottom: 14px; }
.h-head p { font-size: 17px; color: var(--text-2); line-height: 1.6; margin: 0; }

.h-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.h-card { border-radius: 22px; padding: 30px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.h-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.h-card h3 .ic { width: 28px; height: 28px; padding: 5px; border-radius: 9px; }
.h-card.is-bad h3 .ic { background: var(--danger-soft); color: var(--danger); }
.h-card.is-good { border-color: var(--primary-soft-2); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 70%); }
.h-card.is-good h3 .ic { background: var(--primary); color: #fff; }
.h-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.h-card li { padding-left: 26px; position: relative; color: var(--text-2); line-height: 1.5; }
.h-card li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; }
.h-card.is-bad li::before { background: var(--danger); opacity: .55; }
.h-card.is-good li::before { background: var(--primary); }

.h-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.h-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t), opacity .7s var(--ease); }
.h-feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft-2); }
.hf-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); margin-bottom: 16px; transition: transform var(--t) var(--ease-spring); }
.h-feat:hover .hf-ic { transform: rotate(-6deg) scale(1.08); }
.h-feat h3 { font-size: 16.5px; margin-bottom: 8px; }
.h-feat p { color: var(--text-2); margin: 0; line-height: 1.55; font-size: 14px; }

.h-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; }
.h-steps::before { content: ''; position: absolute; top: 34px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--primary-soft-2), var(--primary), var(--primary-soft-2)); opacity: .6; }
.h-steps li { text-align: center; padding: 0 12px; position: relative; }
.hs-n { position: absolute; top: -6px; left: calc(50% + 22px); width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--surface); font-weight: 750; font-size: 12px; display: grid; place-items: center; z-index: 2; }
.hs-ic { width: 70px; height: 70px; border-radius: 22px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--primary); position: relative; z-index: 1; }
.hs-ic .ic { width: 28px; height: 28px; }
.h-steps h3 { font-size: 18px; margin-bottom: 8px; }
.h-steps p { color: var(--text-2); margin: 0; line-height: 1.6; }

.h-spot { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.h-spot-text h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 16px; font-weight: 800; }
.h-spot-text p { font-size: 17px; color: var(--text-2); line-height: 1.6; }
.h-ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 600; }
.h-ticks li { display: flex; align-items: center; gap: 10px; }
.h-ticks .ic { color: #fff; background: var(--primary); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.h-results { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); position: relative; }
.hr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 16px; }
.hr-badge { font-size: 11.5px; font-weight: 700; background: var(--info-soft); color: var(--info); padding: 3px 10px; border-radius: 99px; }
.hr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.hr-tiles div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.hr-tiles small { color: var(--muted); display: block; font-size: 12px; }
.hr-tiles b { font-size: 24px; letter-spacing: -.02em; }
.hr-bars { display: grid; gap: 14px; }
.hr-bar span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.hr-bar i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--primary), #34d399); width: 0; transition: width 1.4s var(--ease); }
.hr-bar.warn i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.h-results.in .hr-bar i { width: var(--w); }
.hr-note { position: absolute; bottom: 12px; right: 18px; color: var(--muted); font-size: 11px; }

.h-sec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.h-sec > div { padding: 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.h-sec .ic { width: 26px; height: 26px; color: var(--primary); margin-bottom: 14px; }
.h-sec h3 { font-size: 16px; margin-bottom: 6px; }
.h-sec p { color: var(--text-2); margin: 0; font-size: 14px; line-height: 1.55; }

.h-faq-wrap { max-width: 820px; }
.h-faq { display: grid; gap: 10px; }
.h-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 20px; box-shadow: var(--shadow-sm); transition: border-color var(--t), opacity .7s var(--ease), transform .7s var(--ease); }
.h-faq details[open] { border-color: var(--primary-soft-2); }
.h-faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 650; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary .ic { transition: transform var(--t) var(--ease); color: var(--muted); }
.h-faq details[open] summary .ic { transform: rotate(180deg); color: var(--primary); }
.h-faq details p { color: var(--text-2); line-height: 1.65; margin: 0 0 18px; animation: slide-down var(--t) var(--ease); }

.h-final { padding: 30px 0 90px; }
.h-final-in {
  border-radius: 32px; padding: 64px 40px; text-align: center; color: #eafaf3; position: relative; overflow: hidden;
  background: radial-gradient(800px 400px at 0% 0%, #1fc48b 0%, transparent 60%), radial-gradient(700px 400px at 100% 100%, #0e7490 0%, transparent 60%), #063d2c;
  box-shadow: 0 40px 80px -30px rgba(6, 61, 44, .5);
}
.h-final-in h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.03em; line-height: 1.12; max-width: 760px; margin: 0 auto 14px; font-weight: 800; }
.h-final-in p { color: rgba(234, 250, 243, .82); font-size: 17px; margin: 0 auto 28px; max-width: 560px; }
.h-final .h-hero-cta { justify-content: center; }
.btn.light { background: #fff; color: #063d2c; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn.light:hover { background: #ecfdf5; }
.btn.outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); box-shadow: none; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .1); }

.h-footer { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + var(--safe-bottom)); }
.h-footer-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.h-footer-in nav { margin-left: auto; display: flex; gap: 18px; }
.h-footer-in nav a { color: var(--text-2); font-weight: 550; }

/* Responsive */
@media (max-width: 1080px) {
  .h-features, .h-sec { grid-template-columns: repeat(2, 1fr); }
  .h-hero-in { gap: 30px; }
}
@media (max-width: 900px) {
  .h-links { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 8px 20px 16px; }
  .h-links.open { display: flex; animation: slide-down var(--t) var(--ease); }
  .h-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .h-burger { display: inline-flex; }
  .h-login { display: none; }
  .h-nav { background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .h-nav-in { height: 62px; gap: 12px; }
  .h-nav .btn { min-height: 38px; padding: 0 14px; }
  .h-hero { padding: 36px 0 60px; }
  .h-hero-in { grid-template-columns: 1fr; text-align: center; }
  .h-lead { margin-left: auto; margin-right: auto; font-size: 16.5px; }
  .h-hero-cta, .h-proof { justify-content: center; }
  .h-hero-cta .btn { flex: 1 1 220px; }
  .h-hero-visual { margin-top: 10px; transform: scale(.9); }
  .h-float.f1 { left: 0; top: 150px; }
  .h-float.f2 { right: 0; }
  .h-strip-in { grid-template-columns: repeat(2, 1fr); }
  .h-strip-in > div:nth-child(3) { border-left: 0; }
  .h-strip-in > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .h-section { padding: 70px 0; }
  .h-compare, .h-spot { grid-template-columns: 1fr; gap: 30px; }
  .h-steps { grid-template-columns: 1fr; gap: 34px; }
  .h-steps::before { display: none; }
  .h-head { margin-bottom: 36px; }
}
@media (max-width: 560px) {
  .h-features, .h-sec { grid-template-columns: 1fr; }
  .h-hero h1 { font-size: 36px; }
  .h-float.f1 { width: 200px; left: -6px; }
  .h-float.f3 { display: none; }
  .h-hero-visual { transform: scale(.86); margin: -20px 0 -40px; }
  .h-card { padding: 22px; }
  .h-final-in { padding: 44px 22px; border-radius: 26px; }
  .h-footer-in nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .enter, .reveal { opacity: 1 !important; transform: none !important; }
  .h-results .hr-bar i { width: var(--w); }
}
