/* Qalibre site v2: pages, pillars, motion. Loaded after style.css. */
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.links a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.mint { color: var(--mint); }
.btn-light { background: #f6f4ef; color: var(--green); }
.btn-light:hover { background: #fff; }

/* Hero: the order-flow field sits behind everything, quiet. */
.hero { position: relative; overflow: hidden; }
.hero .flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  /* Orders emerge from behind the copy and resolve at the ring: the text stays clear to read. */
  /* Orders never cross the copy: hidden over the text column, clear on the phone's open side. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 50%, #000 62%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 50%, #000 62%); }
@media (max-width: 880px) { .hero .flow { -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000 70%); mask-image: linear-gradient(to bottom, transparent 40%, #000 70%); } }
.hero .wrap { position: relative; }

/* Headlines rise in, line by line. Visible by default; motion arms only with JS and no reduced motion. */
.rv > span { display: block; }
.armed .rv > span { transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.armed .rv:not(.in) > span { opacity: 0; transform: translateY(0.45em); }
.armed .rv > span:nth-child(2) { transition-delay: 0.12s; }

h3 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--graphite); }
.kicker b { font-variant-numeric: tabular-nums; color: var(--green); }
.kicker.gold { color: #d9c49d; }
.body.small { font-size: 15px; }

/* Three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 60px; }
.pillar { background: var(--white); border-radius: 26px; padding: 14px 14px 28px; display: flex; flex-direction: column; }
.pillar .kicker { margin: 24px 14px 10px; }
.pillar h3 { margin: 0 14px; font-size: clamp(22px, 2.2vw, 27px); }
.pillar > p:last-child { margin: 12px 14px 0; color: var(--graphite); font-size: 15px; line-height: 1.6; }
.viz { background: var(--paper); border-radius: 18px; padding: 20px; min-height: 168px; display: flex; flex-direction: column; justify-content: center; }
.viz .mini { display: flex; align-items: center; gap: 10px; }
.viz .mini b { font-size: 15px; }
.viz ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.viz li { display: flex; align-items: center; gap: 10px; color: var(--graphite); }
.viz li::before { content: ''; width: 16px; height: 16px; border-radius: 8px; flex: none; }
.viz li.ok::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.6l4.5-5' fill='none' stroke='%23f6f4ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.viz li.no::before { background: var(--danger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.3 5.3l5.4 5.4M10.7 5.3l-5.4 5.4' fill='none' stroke='%23f6f4ef' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.viz-price .bars { margin: 0; gap: 16px; max-width: none; }
.viz-price .bars div { color: var(--graphite); font-size: 13px; }
.viz-price .bars i { background: var(--paper-2); height: 12px; border-radius: 6px; }
.viz-price .bars i.g { background: var(--green); }
.viz-keys .perms { padding: 0; background: transparent; }
.viz-keys .perms li { padding: 7px 0; font-size: 14px; }
.viz-keys li::before { display: none; }
.armed .pillars[data-reveal] .pillar { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.armed .pillars[data-reveal].in .pillar { opacity: 1; transform: none; }
.armed .pillars[data-reveal] .bars i { width: 0; transition: width 1.1s var(--ease) 0.5s; }
.armed .pillars[data-reveal].in .bars i { width: var(--w); }
.armed .pillars[data-reveal].in .bars div:nth-child(2) i { transition-delay: 0.85s; }

/* Inner pages */
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(24px, 4vw, 48px); }
.page-hero.small h1 { font-size: clamp(38px, 5vw, 56px); }
.section.tight { padding-top: clamp(24px, 4vw, 48px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--white); border-radius: 22px; padding: 26px 24px; }
.tile b { font-size: 18px; letter-spacing: -0.01em; }
.tile p { margin: 10px 0 0; color: var(--graphite); font-size: 15px; line-height: 1.6; }
.armed [data-reveal] > .tile, .armed .road[data-reveal] > li { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.armed [data-reveal].in > .tile, .armed .road[data-reveal].in > li { opacity: 1; transform: none; }
.two.top { align-items: start; }

.road { list-style: none; margin: 10px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.road > li { background: var(--white); border-radius: 22px; padding: 26px 24px; }
.road > li.now { background: var(--green); color: #f6f4ef; }
.road .stage { display: inline-block; font-size: 13px; font-weight: 600; color: var(--graphite); margin-bottom: 10px; }
.road .now .stage { color: #d9c49d; }
.road > li > b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.road ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--graphite); }
.road .now ul { color: rgba(246, 244, 239, 0.8); }
.road ul li { display: flex; gap: 10px; }
.road ul li::before { content: ''; width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: 0.5; margin-top: 9px; flex: none; }

.contracts { list-style: none; margin: 0; padding: 8px 24px; background: var(--white); border-radius: 22px; }
.contracts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 15px; }
.contracts li + li { box-shadow: 0 -1px 0 var(--paper-2); }
.contracts span { color: var(--graphite); }
.contracts a { font-variant-numeric: tabular-nums; font-weight: 600; text-decoration: none; color: var(--green); }
.contracts a:hover { text-decoration: underline; }

.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 18px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; flex: none; margin-top: 5px; border-right: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { margin: -4px 0 20px; color: var(--graphite); line-height: 1.65; font-size: 16px; }

.example { margin-top: 18px; background: var(--green); color: #f6f4ef; border-radius: 20px; padding: 24px; }
.example p { margin: 8px 0 0; line-height: 1.6; color: rgba(246, 244, 239, 0.82); }

.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 0; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 10px 0 0; color: var(--graphite); line-height: 1.7; font-size: 16px; }

/* Footer */
.foot { border-top: 1px solid var(--paper-2); padding-top: 56px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-grid b { color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.foot-brand { color: var(--ink); }
.foot-brand p { margin: 8px 0 0; color: var(--graphite); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--paper-2); font-size: 13px; color: var(--muted); }
.foot-base a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.foot-base a:hover { color: var(--ink); border-color: currentColor; }

/* Mobile: one column, generous type, nothing cramped. */
@media (max-width: 880px) {
  .pillars, .grid-3, .road { grid-template-columns: minmax(0, 1fr); }
  .pillars { margin-top: 40px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .hero { padding-top: 28px; }
  .phone { width: min(320px, 88vw); }
  .contracts { padding: 4px 18px; }
  .contracts li { flex-direction: column; gap: 2px; }
}
@media (max-width: 420px) {
  .cta .btn { width: 100%; }
  h1 { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv > span, .pillar, .tile, .road > li { opacity: 1 !important; transform: none !important; }
}

/* Mobile menu */
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn span { width: 20px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform 0.3s var(--ease); }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { background: var(--paper); border-top: 1px solid var(--paper-2); min-height: calc(100dvh - 68px); }
.menu .wrap { display: flex; flex-direction: column; padding-block: 14px 24px; }
.menu a:not(.btn) { padding: 14px 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.menu a[aria-current='page'] { color: var(--green); }
.menu .btn { margin-top: 14px; }
@media (min-width: 881px) { .menu { display: none !important; } }
@media (max-width: 880px) {
  .menu-btn { display: flex; margin-left: auto; }
  .nav .btn-small { display: none; }
  .fees th, .fees td { display: block; width: auto; }
  .fees th { border-radius: 16px 16px 0 0; padding-bottom: 4px; }
  .fees td { border-radius: 0 0 16px 16px; padding-top: 4px; }
}
.note.narrow, .note.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero v3: a living chat and a protection pulse ---------- */
.stage { position: relative; justify-self: center; width: min(360px, 100%); }
.stage .phone { position: relative; z-index: 1; width: 100%; }
.halo { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 0; }
.halo i { position: absolute; left: 0; top: 0; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%; border: 3px solid var(--brass); opacity: 0; }
.halo.go i { animation: halo 1.8s cubic-bezier(0.2, 0.6, 0.2, 1) forwards; }
.halo.go i:nth-child(2) { animation-delay: 0.18s; }
.halo.go i:nth-child(3) { animation-delay: 0.36s; }
.halo.bad i { border-color: var(--danger); }
.halo.good i { border-color: var(--green); }
@keyframes halo { 0% { opacity: 0.85; transform: scale(0.9); } 100% { opacity: 0; transform: scale(2.2); } }

.chat { display: flex; flex-direction: column; justify-content: flex-end; }
.feed { display: flex; flex-direction: column; gap: 8px; }
.feed .msg { animation: none; opacity: 1; max-height: none; }
.feed .msg.enter { animation: msgIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; transform-origin: bottom left; }
.feed .msg.out.enter { transform-origin: bottom right; }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.feed.leave { animation: feedOut 0.6s var(--ease) forwards; }
@keyframes feedOut { to { opacity: 0; transform: translateY(-10px); } }
.note-in { margin: 6px 4px 2px; font-size: 12px; font-weight: 600; color: var(--danger); }
.card.bad { box-shadow: 0 0 0 1.5px rgba(163, 58, 43, 0.35); }
.buttons span.on { background: var(--green); color: #f6f4ef; }
.buttons span.tap { animation: tap 0.45s var(--ease); }
@keyframes tap { 40% { transform: scale(0.92); } 100% { transform: none; } }
.done b { color: var(--green); }
@media (max-width: 880px) { .stage { width: min(320px, 88vw); } .stage .phone { width: 100%; } .halo i { width: 300px; height: 300px; margin: -150px 0 0 -150px; } }

/* Wide screens: the phone is sized by the window's height too, so it never runs off the first screen. */
@media (min-width: 881px) { .hero .stage { width: clamp(250px, calc((100svh - 150px) * 9 / 17), 360px); } }
