/* Fefi landing — tokens from docs/DESIGN.md */
:root {
  --canvas: #FBF6F0; --canvasDeep: #F3EAE0; --surface: #FFFFFF; --hairline: #EADFD3;
  --ink: #2B1E1A; --body: #5B4B45; --muted: #9C8C85;
  --brasa: #C4492F; --brasaSoft: #F7E1D8; --brasaDeep: #9E3822; --onBrasa: #FFF8F3;
  --calma: #4F8573; --calmaSoft: #DCEBE4; --miel: #B97B1F;
  --hair: #2B1E1A; --face: #2B1E1A;
  --serif: Fraunces, Georgia, serif; --sans: Figtree, system-ui, sans-serif;
  --max: 1160px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; font-family: var(--sans); background: var(--canvas); color: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -1px; }
h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.3px; }
b { color: var(--ink); font-weight: 600; }
section { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brasa); margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head > p:not(.kicker) { margin-top: 18px; }
.fefi { overflow: visible; display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 16px; background: var(--brasa); color: var(--onBrasa); font-weight: 600; font-size: 17px; text-decoration: none; transition: transform .2s var(--ease), background .2s ease, box-shadow .2s ease; }
.btn:hover { background: var(--brasaDeep); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(158, 56, 34, .6); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--canvasDeep); box-shadow: none; }
.btn-small { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; max-width: var(--max); margin: 0 auto; padding: 14px 24px; background: rgba(251, 246, 240, .86); backdrop-filter: blur(14px); transition: box-shadow .3s ease; }
.nav.scrolled { box-shadow: 0 1px 0 var(--hairline); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -.8px; color: var(--ink); line-height: 1; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--body); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brasa); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.22fr .78fr; gap: 24px; align-items: center; padding-top: 48px; padding-bottom: 48px; min-height: calc(100vh - 72px); }
.hero-title { font-size: clamp(38px, 3.9vw, 54px); white-space: nowrap; line-height: 1.02; letter-spacing: -2px; margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
.hero-title em { color: var(--brasa); }
.lead { font-size: 20px; line-height: 1.55; max-width: 540px; }
.hero-actions { display: flex; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 15px; font-weight: 600; color: var(--ink); }
.badges li { display: flex; align-items: center; gap: 8px; }
.badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--calma); box-shadow: 0 0 0 4px var(--calmaSoft); }

.hero-visual { position: relative; height: 640px; }
.glow { position: absolute; inset: 6% 0 0; border-radius: 50%; background: radial-gradient(closest-side, #F7E1D8 0%, rgba(247, 225, 216, 0) 100%); animation: glow 8s ease-in-out infinite; }
.hero-visual .phone { position: absolute; width: 215px; }
.p-center { left: 50%; top: 50px; width: 250px !important; margin-left: -125px; z-index: 3; }
.p-left { left: -4%; top: 120px; --r: -8deg; transform: rotate(-8deg); z-index: 1; opacity: .96; }
.p-right { right: -12%; top: 120px; --r: 8deg; transform: rotate(8deg); z-index: 2; opacity: .96; }
.float { animation: float 7s ease-in-out infinite; animation-delay: var(--f, 0s); }
.p-center.float { --r: 0deg; }

.callout { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 18px 36px -18px rgba(60, 30, 20, .35), 0 0 0 1px var(--hairline); font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(12px) scale(.96); animation: pop 9s var(--ease) infinite; }
.callout .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--calma); position: relative; }
.callout .ok::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.callout .pdf { font-size: 11px; font-weight: 700; color: var(--onBrasa); background: var(--brasa); border-radius: 6px; padding: 4px 6px; letter-spacing: .5px; }
.c1 { left: 62%; top: 70px; animation-delay: .8s; }
.c2 { left: -8%; top: 470px; animation-delay: 3.8s; }
.c3 { right: -10%; top: 548px; animation-delay: 6.8s; }

/* How */
.how { padding-top: 24px; padding-bottom: 24px; }
.how-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-list li { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 26px 26px 24px; transition: transform .3s var(--ease), box-shadow .3s ease; }
.how-list li:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(60, 30, 20, .35); }
.how-list b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brasaSoft); color: var(--brasaDeep); font-family: var(--serif); font-size: 20px; margin-bottom: 14px; }
.how-list h3 { font-size: 22px; margin-bottom: 6px; }
.how-list p { font-size: 16px; }

/* Phones */
.phone { position: relative; width: 290px; border-radius: 44px; padding: 9px; background: #1a1412; box-shadow: 0 40px 70px -30px rgba(60, 30, 20, .45), inset 0 0 0 1.5px #3b302b; flex-shrink: 0; }
.phone img { border-radius: 36px; width: 100%; }
.paper { width: 420px; max-width: 100%; background: #fff; border-radius: 8px; box-shadow: 0 40px 70px -34px rgba(60, 30, 20, .4), 0 0 0 1px var(--hairline); overflow: hidden; flex-shrink: 0; }

/* Problem */
.problem { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.problem-num span { display: block; font-family: var(--serif); font-weight: 600; font-size: 180px; line-height: .85; letter-spacing: -8px; color: var(--brasa); font-variant-numeric: tabular-nums; }
.problem-num p { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 14px; max-width: 220px; }
.problem-copy h2 { margin-bottom: 22px; }
.problem-copy p + p { margin-top: 14px; }
.source { font-size: 14px; color: var(--muted); }

/* Features */
.feature { display: grid; grid-template-columns: auto minmax(0, 480px); justify-content: center; gap: 96px; align-items: center; padding: 48px 0; }
.feature.reverse { grid-template-columns: minmax(0, 480px) auto; }
.feature.reverse figure { order: 2; }
.feature-copy h3 { font-size: 36px; letter-spacing: -.8px; margin: 10px 0 14px; }
.step { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brasa); }
.tilt { transition: transform .5s var(--ease); will-change: transform; }
.caption { font-size: 14px; color: var(--muted); margin-top: 10px; }

.heatmap { display: grid; grid-template-columns: repeat(7, 28px); gap: 6px; margin-top: 26px; }
.heatmap span { width: 28px; height: 28px; border-radius: 8px; background: var(--canvasDeep); transition: background .4s ease, transform .4s var(--ease); transform: scale(.7); }
.in .heatmap span { background: var(--h); transform: scale(1); transition-delay: calc(var(--i) * 45ms); }

.typing { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; padding: 10px 16px 10px 10px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--calma); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-of-type(2) { animation-delay: .15s; }
.typing i:nth-of-type(3) { animation-delay: .3s; }

.translate-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; font-size: 16px; }
.translate-demo .from { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 14px; padding: 8px 12px; border-radius: 10px; background: var(--canvasDeep); color: var(--body); }
.translate-demo .arrow { width: 28px; height: 2px; background: var(--calma); position: relative; }
.translate-demo .arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: solid var(--calma); border-width: 0 2px 2px 0; width: 8px; height: 8px; transform: rotate(-45deg); }
.translate-demo .to { font-family: var(--serif); font-size: 18px; padding: 8px 14px; border-radius: 12px; background: var(--calmaSoft); color: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease) .5s; }
.in .translate-demo .to { clip-path: inset(0 0 0 0); }

/* Flare */
.flare { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; background: #F1E4D6; border-radius: 48px; padding: 88px 72px; margin-top: 40px; }
.flare-copy h2 { margin-bottom: 18px; }
.flare-list { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.flare-list li { padding-left: 26px; position: relative; }
.flare-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--brasa); }
.flare-visual { position: relative; display: flex; justify-content: center; padding-top: 30px; }
.flare-visual .phone { width: 240px; }
.phone-offset { margin-left: -60px; margin-top: 90px; transform: rotate(3deg); }
.breath { display: flex; align-items: center; gap: 18px; margin-top: 34px; padding: 14px 26px 14px 18px; border-radius: 999px; background: rgba(255, 255, 255, .55); width: fit-content; }
.breath > span { width: 64px; height: 64px; animation: breath 10s ease-in-out infinite; }
.breath-cue { position: relative; height: 30px; width: 110px; font-size: 22px; font-family: var(--serif); font-style: italic; color: var(--ink); text-align: center; }
.breath-cue span { position: absolute; inset: 0; animation: cue 10s ease-in-out infinite; }
.breath-cue span:last-child { animation-delay: -6s; opacity: 0; }

/* Free */
.free-card { position: relative; background: var(--brasa); color: var(--onBrasa); border-radius: 48px; padding: 72px 72px 64px 260px; overflow: hidden; }
.free-card::before { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 248, 243, .08); }
.free-card .kicker { color: #F7E1D8; }
.free-card h2 { color: var(--onBrasa); font-size: clamp(40px, 5vw, 64px); margin-bottom: 20px; }
.free-card p { max-width: 640px; color: #FBE9E2; }
.free-card p + p { margin-top: 12px; }
.free-card b { color: #fff; }
.free-fefi { position: absolute; left: 72px; top: 72px; width: 130px; height: 130px; animation: breathe 6.5s ease-in-out infinite; --brasa: #F29A7D; --calma: #DCEBE4; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.privacy-grid div { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 28px 24px; transition: transform .3s var(--ease), box-shadow .3s ease; }
.privacy-grid div:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(60, 30, 20, .35); }
.privacy-grid h3 { font-size: 22px; margin-bottom: 8px; }
.privacy-grid p { font-size: 16px; line-height: 1.55; }

/* Limits */
.limits { display: grid; grid-template-columns: 140px 1fr; gap: 40px; align-items: center; background: var(--calmaSoft); border-radius: 40px; padding: 64px; }
.limits h2 { margin-bottom: 16px; }
.limits p { max-width: 680px; }
.crisis { margin-top: 18px; font-size: 16px; }
.crisis a { color: var(--brasaDeep); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 23px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--brasa); font-size: 28px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; max-width: 680px; animation: fadeDown .35s var(--ease); }

/* CTA */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-fefi { width: 110px; height: 110px; margin-bottom: 24px; }
.cta p { max-width: 520px; margin: 14px 0 30px; }

/* Footer */
.footer { max-width: var(--max); margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; font-size: 15px; color: var(--muted); }
.footer .brand b { font-size: 22px; }
.footer-fine { width: 100%; font-size: 13px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { animation: appear .8s var(--ease) forwards; animation-delay: var(--d, 0s); transition: none; }

/* Keyframes */
@keyframes rise { to { transform: translateY(0); } }
@keyframes appear { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
@keyframes glow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .85; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(12px) scale(.96); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.07); } }
.breathe { animation: breathe 6.5s ease-in-out infinite; }
@keyframes breath { 0%, 100% { transform: scale(.85); } 40% { transform: scale(1.15); } }
@keyframes cue { 0%, 38% { opacity: 1; } 42%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .reveal, .hero-title .line > span, .callout { opacity: 1; transform: none; }
  .callout { display: none; }
  .translate-demo .to { clip-path: none; }
  .heatmap span { background: var(--h); transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  section { padding: 72px 20px; }
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-title { white-space: normal; }
  .hero-visual { height: 560px; }
  .hero-visual .phone { width: 200px; }
  .p-center { width: 220px !important; margin-left: -110px; }
  .p-left { left: 0; } .p-right { right: 0; }
  .c1 { left: auto; right: 0; top: 10px; }
  .c2 { left: 0; top: 440px; }
  .c3 { right: 0; top: 500px; }
  .how-list { grid-template-columns: 1fr; }
  .problem, .flare, .limits { grid-template-columns: 1fr; }
  .problem-num span { font-size: 130px; }
  .feature, .feature.reverse { grid-template-columns: minmax(0, 1fr); gap: 36px; justify-items: center; }
  .feature.reverse figure { order: 0; }
  .paper { width: 100%; max-width: 420px; transform: none !important; }
  .flare { padding: 64px 28px; border-radius: 32px; }
  .free-card { padding: 180px 28px 44px; border-radius: 32px; }
  .free-fefi { left: 28px; top: 40px; width: 110px; height: 110px; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .limits { padding: 44px 28px; justify-items: start; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .lead { font-size: 18px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .hero-visual { height: 470px; }
  .hero-visual .phone { width: 160px; border-radius: 30px; padding: 6px; }
  .hero-visual .phone img { border-radius: 25px; }
  .p-center { width: 190px !important; margin-left: -95px; top: 20px; }
  .p-left, .p-right { top: 80px; }
  .callout { font-size: 13px; padding: 9px 12px; }
  .c2 { top: 380px; } .c3 { top: 425px; }
  .flare-visual .phone { width: 190px; }
  .phone-offset { margin-left: -50px; }
}

.hero-copy { position: relative; z-index: 6; }

/* SEO structure helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero-title .kicker { display: block; font-family: var(--sans); font-size: 14px; line-height: 1.4; letter-spacing: 1.2px; margin-bottom: 18px; white-space: normal; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; letter-spacing: -1px; }
.legal .updated { font-size: 14px; color: var(--muted); margin: 10px 0 36px; }
.legal .intro { font-size: 20px; color: var(--ink); }
.legal h2 { font-size: 26px; letter-spacing: -.3px; margin: 44px 0 12px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 20px; display: grid; gap: 8px; }
.legal a { color: var(--brasaDeep); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--body); }
.footer-links a:hover { color: var(--brasa); }
.nav-simple .btn-small { margin-left: auto; }

/* Love letter */
.letter-section { max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.letter { position: relative; background: #fff; border-radius: 6px; padding: 64px 72px 56px; box-shadow: 0 40px 70px -34px rgba(60, 30, 20, .35), 0 0 0 1px var(--hairline); transform: rotate(-.6deg); font-family: var(--serif); font-size: 21px; line-height: 1.65; color: var(--ink); }
.letter.reveal.in { transform: rotate(-.6deg); }
.letter p + p { margin-top: 1em; }
.letter-greeting { font-style: italic; font-size: 26px; color: var(--brasaDeep); margin-bottom: .4em; }
.letter-sign { margin-top: 1.6em !important; font-style: italic; }
.letter-sign span { display: inline-block; margin-top: .2em; font-size: 34px; color: var(--brasa); }
.letter-fefi { position: absolute; right: 48px; bottom: 44px; width: 64px; height: 64px; animation: breathe 6.5s ease-in-out infinite; }
@media (max-width: 560px) { .letter { padding: 40px 26px 44px; font-size: 18px; } .letter-fefi { right: 22px; bottom: 26px; width: 52px; height: 52px; } }
.letter-page { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; display: flex; flex-direction: column; align-items: center; }
.letter-page .kicker { margin-bottom: 28px; }
.letter-after { margin-top: 40px; font-size: 16px; color: var(--muted); text-align: center; }
.letter-after a { color: var(--brasaDeep); }
