/* Mercurial Browser website. Colours come from the app asset catalog (dark mode). */
:root {
  --bg: #08110F;
  --bg-2: #0B1714;
  --surface: #13201D;
  --surface-2: #182A26;
  --line: rgba(238, 247, 245, .09);
  --line-2: rgba(238, 247, 245, .16);
  --text: #EEF7F5;
  --muted: #9DB5AF;
  --dim: #6E8781;
  --accent: #3FD5C0;
  --accent-2: #13A08F;
  --accent-3: #0B7A6E;
  --deep: #064A43;
  --hero-top: #0F3A35;
  --radius: 22px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

/* Background glow */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.glow::before, .glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); opacity: .55;
}
.glow::before { width: 720px; height: 720px; left: -200px; top: -260px; background: radial-gradient(circle, #0F3A35, transparent 70%); }
.glow::after { width: 640px; height: 640px; right: -220px; top: 30vh; background: radial-gradient(circle, rgba(19,160,143,.28), transparent 70%); }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(8, 17, 15, .72); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 650; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(63,213,192,.25); }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(238,247,245,.06); text-decoration: none; }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 42px; height: 38px; font-size: 18px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 14px 22px;
  font-weight: 600; font-size: 16px; line-height: 1; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #4FE3CE, var(--accent-2)); color: #03201C; box-shadow: 0 10px 30px -8px rgba(63,213,192,.55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { box-shadow: 0 14px 38px -8px rgba(63,213,192,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(238,247,245,.03); }
.btn-ghost:hover { background: rgba(238,247,245,.07); }
.appstore {
  display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 10px 20px 10px 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.appstore:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(255,255,255,.45); }
.appstore svg { width: 26px; height: 26px; }
.appstore small { display: block; font-size: 11px; line-height: 1.1; opacity: .85; }
.appstore strong { display: block; font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }

/* Type */
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.08; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(42px, 6.4vw, 78px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 22px; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 620px; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.grad { background: linear-gradient(100deg, #EEF7F5 10%, #8FF0E0 55%, #3FD5C0 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Sections */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero */
.hero { padding: 80px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero .lead { margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--dim); font-size: 14px; }
.trust span::before { content: "✓"; color: var(--accent); margin-right: 7px; }

/* Phone */
.stage { position: relative; height: 640px; display: grid; place-items: center; }
.phone {
  position: relative; width: 300px; aspect-ratio: 1206 / 2622; border-radius: 48px; padding: 10px;
  background: linear-gradient(145deg, #2A3B37, #0B1513 45%, #22312E);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 100px -30px rgba(0,0,0,.8), 0 30px 80px -40px rgba(63,213,192,.45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; }
.phone.tilt { transform: perspective(1600px) rotateY(-14deg) rotateX(4deg); }
.phone.sm { width: 240px; border-radius: 40px; padding: 8px; }
.phone.sm img { border-radius: 33px; }
.float {
  position: absolute; z-index: 3; padding: 14px 16px; border-radius: 18px; min-width: 200px;
  background: rgba(19, 32, 29, .72); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); animation: bob 7s ease-in-out infinite;
}
.float .k { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.float .big { font-size: 34px; font-weight: 750; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.float .row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.float .row + .row { margin-top: 8px; }
.float svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.f1 { top: 70px; left: -10px; }
.f2 { bottom: 110px; right: -16px; animation-delay: -3.5s; }
.f3 { bottom: 40px; left: 10px; animation-delay: -1.8s; min-width: 0; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Marquee strip */
.strip { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(11,23,20,.6); }
.strip-track { display: flex; gap: 56px; width: max-content; animation: slide 40s linear infinite; font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.strip-track span::before { content: "◆"; color: var(--accent-2); margin-right: 14px; font-size: 9px; vertical-align: 2px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Cards */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 30px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(24,42,38,.75), rgba(19,32,29,.55));
  border: 1px solid var(--line); transition: border-color .25s ease, transform .25s ease, background .25s ease; overflow: hidden;
}
a.card { color: var(--text); display: block; }
a.card:hover { text-decoration: none; border-color: rgba(63,213,192,.45); transform: translateY(-3px); }
a.card::after { content: "→"; position: absolute; right: 26px; top: 28px; color: var(--dim); transition: transform .25s, color .25s; }
a.card:hover::after { color: var(--accent); transform: translateX(4px); }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card h3 { margin-bottom: 10px; padding-right: 24px; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(160deg, rgba(63,213,192,.22), rgba(11,122,110,.12)); border: 1px solid rgba(63,213,192,.28); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }
.tag { display: inline-block; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(63,213,192,.35); border-radius: 999px; padding: 5px 9px; margin-bottom: 14px; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split + .split { margin-top: 120px; }
.split.rev .split-media { order: -1; }
.split-media { position: relative; display: grid; place-items: center; min-height: 520px; }
.split-media::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(63,213,192,.22), transparent 65%); filter: blur(20px); }
.checks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 13px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px; background: rgba(63,213,192,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FD5C0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; border: 1px solid rgba(63,213,192,.35); }
.checks li strong { color: var(--text); font-weight: 600; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { counter-increment: s; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(19,32,29,.45); }
.step::before { content: "0" counter(s); display: block; font: 600 14px/1 var(--mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 26px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 40px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* Code block */
.code { font: 14px/1.75 var(--mono); background: #050B0A; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; color: #B8CCC7; overflow-x: auto; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.code .c { color: #5E7771; } .code .k { color: var(--accent); } .code .s { color: #F2C98B; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); background: rgba(19,32,29,.6); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 550; }
td { color: var(--muted); }
td.us { color: var(--text); background: rgba(63,213,192,.05); }
.yes { color: var(--accent); font-weight: 650; } .no { color: #E58C8C; font-weight: 650; } .part { color: #F2C98B; font-weight: 650; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: rgba(19,32,29,.45); padding: 0 24px; transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(63,213,192,.3); background: rgba(19,32,29,.75); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 30px 22px 0; font-weight: 600; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 17px; font-size: 26px; font-weight: 300; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.plan { padding: 36px; border-radius: 26px; border: 1px solid var(--line); background: rgba(19,32,29,.55); position: relative; }
.plan.best { border-color: rgba(63,213,192,.55); background: linear-gradient(180deg, rgba(15,58,53,.85), rgba(19,32,29,.6)); box-shadow: 0 30px 80px -40px rgba(63,213,192,.5); }
.plan .ribbon { position: absolute; top: -13px; left: 36px; background: var(--accent); color: #03201C; font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.plan .price { font-size: 52px; font-weight: 750; letter-spacing: -.035em; line-height: 1; margin: 18px 0 6px; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .checks { margin: 24px 0 30px; }

/* Article (feature, guide and legal pages) */
.page-hero { padding: 90px 0 50px; }
.crumbs { font-size: 14px; color: var(--dim); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.prose { font-size: 18px; color: #C9DAD6; }
.prose h2 { font-size: 32px; margin: 2em 0 .6em; color: var(--text); }
.prose h3 { margin: 1.6em 0 .5em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--text); }
.prose .note { border-left: 3px solid var(--accent); background: rgba(63,213,192,.06); padding: 16px 20px; border-radius: 0 14px 14px 0; font-size: 16px; color: var(--muted); }
.feature-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 80px 40px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #10A08E 0%, #064A43 45%, #030807 100%);
  border: 1px solid rgba(63,213,192,.3);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("img/icon-512.png") center 130% / 420px no-repeat; opacity: .07; filter: blur(2px); }
.cta-band > * { position: relative; }
.cta-band .lead { color: #CDEFE8; margin-inline: auto; margin-bottom: 32px; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 40px; margin-top: 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.foot-grid h4 { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 6px 0 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 50px; padding-top: 26px; font-size: 13.5px; color: var(--dim); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .split, .feature-hero { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .split-media { min-height: 0; padding: 20px 0; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 20px 20px; background: rgba(8,17,15,.97); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 17px; padding: 12px; }
  .nav > .btn { display: none; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .g2, .g3, .g4, .plans { grid-template-columns: 1fr; }
  .stage { height: 560px; }
  .phone { width: 250px; }
  .f1 { left: -4px; top: 40px; } .f2 { right: -4px; }
  .cta-band { padding: 60px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}
