/* Lupacasa site — design system «Lupacasa» (direction A, Telegram-native). Tokens lc-* mirror its tokens.json. */
:root{--lc-surface:#ffffff;--lc-surface-2:#f2f6fa;--lc-ink:#1a2433;--lc-ink-muted:#5a6675;--lc-line:#dde4ec;--lc-accent:#1273c4;--lc-on-accent:#ffffff;--lc-bubble-in:#ffffff;--lc-bubble-out:#e3f2ff;--lc-chat-bg:#e9eef4;--lc-warm:#ffc85c;--lc-on-warm:#1a2433;--shadow-phone:0 24px 60px rgba(26, 36, 51, 0.16);--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--space-20:80px;--radius-sm:8px;--radius-md:14px;--radius-lg:20px;--radius-pill:999px;--radius-phone:44px;--font-sans:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--page-bg:var(--lc-surface)}
@media (prefers-color-scheme: dark){:root{--lc-surface:#0f1621;--lc-surface-2:#18212e;--lc-ink:#eef3f8;--lc-ink-muted:#a4afbc;--lc-line:#2a3545;--lc-accent:#5db4f2;--lc-on-accent:#0f1621;--lc-bubble-in:#1c2838;--lc-bubble-out:#2b5278;--lc-chat-bg:#0b1119;--lc-warm:#ffd066;--lc-on-warm:#1a2433;--shadow-phone:0 24px 60px rgba(0, 0, 0, 0.6);color-scheme:dark}}
html,body{margin:0}
/* Anchors (#how, #agencies, #faq) stop below the sticky header; the scroll glides unless the visitor asked for less motion. */
html{scroll-padding-top:76px}
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  /* Going to another page (agencies, a language, the legal pages) cross-fades instead of flashing; the header stays put.
     Browsers without cross-document view transitions just load the page as before. */
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.22s}
}
.hdr{view-transition-name:site-header}
body{background:var(--page-bg);color:var(--lc-ink);-webkit-text-size-adjust:100%}
/* Shared layout; the direction A block at the end maps --surface, --ink… to the lc-* tokens. */
*{box-sizing:border-box}
.site{container-type:inline-size;background:var(--surface);color:var(--ink);font:17px/26px var(--font-sans);-webkit-font-smoothing:antialiased;min-height:100%}
/* Resets under :where() weigh nothing, so a component's own margin or padding (.lead, .facts…) always wins. */
:where(.site) a{color:inherit;text-decoration:none}
:where(.site) :is(h1,h2,h3,p,ul,ol,dl){margin:0}
:where(.site) :is(ul,ol){padding:0}
.site h1,.site h2{text-wrap:balance}
.wrap{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));max-width:1440px;margin:0 auto}
/* header */
.hdr{position:sticky;top:0;z-index:20;background:var(--surface);box-shadow:0 1px 0 var(--line);display:flex;align-items:center;gap:12px;height:60px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.logo svg{height:30px;width:auto;display:block}
.nav{display:none;gap:28px;font-size:15px;font-weight:500}
.nav .on{color:var(--accent)}
.lang{margin-left:auto;font-size:14px;color:var(--muted);display:flex;gap:5px;font-weight:600}
.lang .on{color:var(--ink)}
.lang .sep{font-weight:400}
.menu{position:relative}
.menu summary{width:36px;height:36px;display:grid;gap:6px;place-content:center;cursor:pointer;list-style:none;border-radius:8px}
.menu summary::-webkit-details-marker{display:none}
.menu summary span{display:block;width:20px;height:2px;background:var(--ink);border-radius:2px}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
  .hdr{background:color-mix(in srgb,var(--surface) 86%,transparent);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px)}
}
.menu-list{position:absolute;right:0;top:44px;z-index:5;display:grid;min-width:200px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.menu-list a{padding:10px 12px;border-radius:8px;font-weight:500}
/* hero */
.hero{position:relative;padding-block:20px 44px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:grid;gap:32px;overflow:hidden}
.hero-text{position:relative;z-index:1}
.hero h1{font:700 32px/38px var(--font-sans);letter-spacing:-.01em;font-family:var(--display-font,var(--font-sans));font-weight:var(--display-weight,700)}
.lead{margin-top:14px;color:var(--muted);font-size:17px;line-height:26px}
.cta-row{margin-top:22px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 22px;border-radius:var(--r-btn);font-weight:600;font-size:17px;line-height:20px;white-space:nowrap}
.btn svg{width:20px;height:20px;flex:none}
.btn-primary{background:var(--accent);color:var(--on-accent)}
.btn-secondary{border:1.5px solid var(--ink);color:var(--ink)}
.cta-note{font-size:14px;color:var(--muted)}
.hero-art{position:relative;z-index:1}
/* sections */
.how,.demo,.diff,.agencies,.faq{padding:48px 0}
.how{background:var(--surface-2)}
.site h2{font:600 24px/30px var(--font-sans);font-family:var(--display-font,var(--font-sans));font-weight:var(--h2-weight,600);letter-spacing:-.005em}
.num{display:none}
.sub{margin-top:8px;color:var(--muted)}
.site h3{font-size:18px;line-height:24px;font-weight:600}
/* steps */
.steps{list-style:none;display:grid;gap:14px;margin-top:24px;counter-reset:s}
.steps li{background:var(--surface);border-radius:var(--r-md);padding:18px 18px 18px 64px;position:relative}
.step-n{position:absolute;left:18px;top:18px;width:32px;height:32px;border-radius:50%;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:15px;display:grid;place-items:center}
.step-ico{display:none}
.steps p{color:var(--muted);font-size:15px;line-height:22px;margin-top:4px}
/* chat & message */
.chat{background:var(--chat-bg);border-radius:var(--r-md);padding:16px}
.chat-demo{margin-top:20px;display:flex;justify-content:center}
.msg-wrap{display:grid;gap:6px;max-width:360px}
.msg{background:var(--bubble-in);border-radius:var(--r-md);padding:10px 14px 8px;position:relative}
.msg-text{font-size:15px;line-height:21px}
.msg-text b{font-weight:600}
.lp{margin-top:10px;border-left:3px solid var(--accent);padding-left:10px;display:grid;gap:2px}
.lp-site{color:var(--accent);font-weight:600;font-size:14px;line-height:18px}
.lp-title{font-size:14px;font-weight:600;line-height:19px}
.lp-desc{font-size:14px;color:var(--muted);line-height:19px}
.lp-img{margin-top:6px;border-radius:var(--r-sm);overflow:hidden;aspect-ratio:16/9;background:var(--surface-2)}
.lp-img svg{width:100%;height:100%;display:block}
.msg-time{font-size:12px;color:var(--muted);text-align:right;margin-top:4px}
.msg-btns{display:grid;gap:6px}
.msg-btns span{display:block;text-align:center;padding:9px 12px;border-radius:var(--r-sm);background:var(--inline-btn,var(--bubble-in));color:var(--accent);font-weight:600;font-size:15px;line-height:20px}
/* differences */
.diff-list{list-style:none;display:grid;gap:22px;margin-top:24px}
.diff-list li{display:grid;grid-template-columns:40px 1fr;gap:2px 14px}
.ico{grid-row:span 2;width:40px;height:40px;display:grid;place-items:center;color:var(--accent)}
.ico svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.diff-list p{color:var(--muted);font-size:15px;line-height:22px}
/* agencies */
.agencies{background:var(--surface-2)}
.agencies p{margin-top:12px}
.mail{color:var(--accent);font-weight:600}
/* faq */
.faq details{border-top:1px solid var(--line);padding:14px 0}
.faq details:last-of-type{border-bottom:1px solid var(--line)}
.faq h2{margin-bottom:10px}
.faq summary{font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--muted);font-weight:400;font-size:22px;line-height:26px}
.faq details[open] summary::after{content:"−"}
.faq details p{margin-top:8px;color:var(--muted);font-size:15px;line-height:22px}
/* footer */
.ftr{padding:32px 0 44px;font-size:14px;color:var(--muted);line-height:20px}
.ftr .wrap{display:flex;flex-wrap:wrap;gap:8px 20px}
.ftr .copy{width:100%;margin-top:8px}
/* phone */
.phone{width:300px;margin:0 auto;border-radius:var(--r-phone);background:var(--phone-body);padding:11px;box-shadow:var(--shadow-phone,none);border:var(--phone-border,0)}
.screen{background:var(--chat-bg);border-radius:calc(var(--r-phone) - 11px);overflow:hidden}
.screen-top{display:flex;align-items:center;gap:10px;padding:16px 14px 10px;background:var(--surface);border-bottom:1px solid var(--line)}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--accent);display:grid;place-items:center;color:var(--on-accent)}
.avatar svg{width:22px;height:22px}
.screen-top b{display:block;font-size:15px;line-height:18px}
.screen-top small{font-size:12px;color:var(--muted);line-height:14px}
.chat-body{padding:12px 10px;display:grid;gap:8px}
.b{max-width:88%;padding:8px 12px;border-radius:16px;font-size:14px;line-height:19px;background:var(--bubble-in)}
.b.in{justify-self:start;border-bottom-left-radius:4px}
.b.out{justify-self:end;border-bottom-right-radius:4px;background:var(--bubble-out);color:var(--on-bubble-out,var(--ink))}
.chat-body .msg-wrap{max-width:92%}
.chat-body .msg{padding:8px 10px 6px;border-bottom-left-radius:4px}
.chat-body .msg-text{font-size:13px;line-height:18px}
.chat-body .lp-site,.chat-body .lp-title,.chat-body .lp-desc{font-size:12px;line-height:16px}
.chat-body .lp-img{aspect-ratio:2/1}
.chat-body .msg-btns span{font-size:13px;padding:7px 10px}
.screen-input{padding:8px 10px 14px;background:var(--surface);display:flex;gap:8px;align-items:center;border-top:1px solid var(--line)}
.inp{flex:1;height:34px;border-radius:17px;background:var(--surface-2);color:var(--muted);font-size:13px;display:flex;align-items:center;padding:0 12px}
.send{width:34px;height:34px;border-radius:50%;background:var(--accent);display:grid;place-items:center;color:var(--on-accent)}
.send svg{width:18px;height:18px}
/* /agencias */
.ag-hero{padding:40px 0 32px}
.eyebrow{font-size:13px;line-height:18px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.ag-hero h1{font:700 32px/38px var(--font-sans);letter-spacing:-.015em;margin-top:10px;font-family:var(--display-font,var(--font-sans));font-weight:var(--display-weight,700)}
.ag-hero .lead{max-width:680px}
.ag-cols{padding:16px 0 48px}
.ag-cols .wrap{display:grid;gap:32px}
.col{border-top:2px solid var(--ink);padding-top:20px}
.col h2{font-size:22px;line-height:28px}
.col ul{margin-top:16px;display:grid;gap:10px;list-style:none;font-size:16px;line-height:24px}
.col ul li{padding-left:24px;position:relative}
.col ul li::before{content:"";position:absolute;left:3px;top:7px;width:6px;height:11px;border:solid var(--accent);border-width:0 2px 2px 0;transform:rotate(45deg)}
.col-no ul li::before{width:12px;height:2px;border:0;background:var(--muted);top:11px;left:0;transform:none}
.ag-remove{background:var(--surface-2);padding:48px 0}
.ag-remove .wrap{display:grid;gap:12px}
.ag-remove p a,.ag-remove p b{color:var(--accent);font-weight:600}
.ag-remove .btn{justify-self:start;margin-top:8px}
/* desktop ≥ 900 */
@container (min-width: 900px){
  .wrap{padding-left:120px;padding-right:120px}
  .hdr{height:72px;padding-left:120px;padding-right:120px}
  .nav{display:flex;margin-left:28px}
  .menu{display:none}
  .doc{padding:56px 0 80px}
  .doc h1{font-size:40px;line-height:46px}
  .hero{grid-template-columns:1.05fr .95fr;align-items:center;padding:56px 120px 96px;gap:48px}
  .hero h1{font-size:52px;line-height:58px;letter-spacing:-.02em}
  .lead{font-size:20px;line-height:30px;max-width:540px;margin-top:20px}
  .cta-row{margin-top:30px}
  .btn{padding:16px 26px;font-size:18px}
  .phone{width:340px;margin:0 0 0 auto}
  .how,.demo,.diff,.agencies,.faq{padding:80px 0}
  .site h2{font-size:32px;line-height:40px;letter-spacing:-.015em}
  .steps{grid-template-columns:repeat(3,1fr);gap:24px;margin-top:32px}
  .steps li{padding:24px 24px 24px 76px}
  .step-n{left:24px;top:24px}
  .demo .wrap{display:grid;grid-template-columns:1fr 1fr;gap:12px 64px;align-items:start}
  .demo h2,.demo .sub{grid-column:1}
  .demo .chat-demo{grid-column:2;grid-row:1/span 3;margin-top:0;padding:28px}
  .diff-list{grid-template-columns:repeat(2,1fr);gap:36px 64px;margin-top:32px}
  .agencies .wrap{display:grid;grid-template-columns:1.2fr .8fr;gap:12px 64px;align-items:center}
  .agencies h2,.agencies p{grid-column:1}
  .agencies .cta-row{grid-column:2;grid-row:1/span 2;justify-content:flex-end;margin:0}
  .faq .wrap{display:grid;grid-template-columns:1fr 2fr;gap:0 64px}
  .faq h2{grid-column:1;grid-row:1/span 8}
  .faq details{grid-column:2}
  .ftr .wrap{flex-wrap:nowrap;gap:32px}
  .ftr .copy{width:auto;margin:0 0 0 auto}
  .ag-hero{padding:64px 0 48px}
  .ag-hero h1{font-size:48px;line-height:54px;margin-top:12px}
  .ag-hero .lead{font-size:19px;line-height:29px}
  .ag-cols{padding:24px 0 72px}
  .ag-cols .wrap{grid-template-columns:repeat(3,1fr);gap:40px}
  .ag-remove{padding:56px 0}
  .ag-remove .wrap{grid-template-columns:1fr auto;gap:12px 48px;align-items:center}
  .ag-remove h2,.ag-remove p{grid-column:1}
  .ag-remove .btn{grid-column:2;grid-row:1/span 2;margin:0}
}

.lang a{color:var(--muted)}
.lang a.on{color:var(--ink)}
.site a:focus-visible,.menu summary:focus-visible,.faq summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.skip{position:absolute;left:-9999px;top:8px;z-index:30;background:var(--surface);color:var(--ink);padding:8px 12px;border-radius:8px}
.skip:focus{left:16px}
/* legal pages: one readable column */
.doc{padding:32px 0 56px}
.doc .wrap>*{max-width:760px}
.doc h1{font:700 28px/34px var(--font-sans);letter-spacing:-.01em}
.doc .updated{margin-top:8px;color:var(--muted);font-size:14px;line-height:20px}
.doc h2{font-size:20px;line-height:26px;margin-top:32px}
.doc p,.doc ul,.doc dl{margin-top:12px}
.doc ul{padding-left:22px}
.doc li+li{margin-top:6px}
.doc a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.doc dl{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:8px 20px}
.doc dt{color:var(--muted)}
.doc dd{margin:0}
.not-found{padding:72px 0 96px}
.not-found p{margin-top:12px;color:var(--muted)}
.not-found .btn{margin-top:24px}
/* A · Telegram-native */
.site{--surface:var(--lc-surface);--surface-2:var(--lc-surface-2);--ink:var(--lc-ink);--muted:var(--lc-ink-muted);--line:var(--lc-line);--accent:var(--lc-accent);--on-accent:var(--lc-on-accent);--bubble-in:var(--lc-bubble-in);--bubble-out:var(--lc-bubble-out);--chat-bg:var(--lc-chat-bg);--phone-body:var(--lc-ink);--r-sm:var(--radius-sm);--r-md:var(--radius-md);--r-lg:var(--radius-lg);--r-btn:var(--radius-pill);--r-phone:var(--radius-phone);--shadow-phone:var(--shadow-phone)}
.hero{padding-top:28px}
.blob{position:absolute;right:-120px;top:120px;width:420px;height:420px;border-radius:50%;background:var(--lc-surface-2);z-index:0}
.lead{max-width:34ch}
/* steps as incoming bubbles */
.how{background:var(--lc-chat-bg)}
.steps li{border-radius:18px;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.steps li::before{content:"";position:absolute;left:-7px;bottom:0;width:14px;height:14px;background:var(--surface);clip-path:polygon(100% 0,100% 100%,0 100%)}
.step-n{background:var(--lc-bubble-out);color:var(--lc-ink)}
.msg{border-bottom-left-radius:4px}
.msg-btns span{background:var(--lc-bubble-in);border:1px solid var(--line)}
.ico{background:var(--lc-surface-2);border-radius:12px}
@container (min-width: 900px){
  .blob{right:40px;top:20px;width:560px;height:560px}
  .hero h1{font-size:54px;line-height:60px}
  .how .steps li{padding:28px 28px 28px 80px}
}
/* first-second cues: eyebrow, filter chips, facts, scene */
.eyebrow-a{display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;font-weight:600;color:var(--accent);margin-bottom:10px}
.i{display:inline-grid;place-items:center;width:20px;height:20px;flex:none}
.i svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
.chips-l{font-size:13px;color:var(--muted);font-weight:600;margin-right:2px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 8px;border-radius:999px;background:var(--lc-bubble-out);color:var(--ink);font-size:15px;line-height:20px;font-weight:600}
.chip .i{color:var(--accent)}
.facts{list-style:none;display:grid;gap:12px;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.facts li{display:grid;grid-template-columns:36px 1fr;gap:0 10px;align-items:center}
.facts .i{grid-row:span 2;width:36px;height:36px;border-radius:10px;background:var(--lc-surface-2);color:var(--accent)}
.facts .i svg{width:20px;height:20px}
.facts b{font-size:15px;line-height:20px}
.facts span{font-size:13px;line-height:18px;color:var(--muted)}
.hero-art{position:relative}
.hero-art .scene{display:none}
.scene-m{display:block;width:calc(100% + 32px);height:196px;margin:0 -16px 14px}
.hero-art .phone{position:relative;z-index:1}
.blob{display:none}
@container (min-width: 900px){
  .hero{align-items:end;padding-bottom:72px}
  .scene-m{display:none}
  .hero-art{min-height:560px;display:flex;align-items:flex-end;justify-content:flex-end}
  .hero-art .scene{display:block;position:absolute;left:-30px;bottom:-24px;width:600px;height:auto;z-index:0}
  .hero-art .phone{width:320px;margin:0}
  .facts{grid-template-columns:repeat(3,1fr);gap:16px;margin-top:36px;padding-top:24px}
  .facts li{grid-template-columns:1fr;gap:4px;align-content:start;justify-items:start}
  .facts .i{grid-row:auto;margin-bottom:6px}
  .facts .i{width:40px;height:40px}
}

.not-found h1{font:700 28px/34px var(--font-sans);letter-spacing:-.01em}
