/* Patrimemo website. Same tokens as the app (core/designsystem PatrimemoColors): dark only, Inter only. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff) format("woff"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff) format("woff"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(../fonts/inter-700.woff) format("woff"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(../fonts/inter-800.woff) format("woff"); }

:root {
  --bg: #0B0C10;
  --surface: #15171D;
  --raised: #1C1F27;
  --divider: #23262F;
  --outline: #3A3F4C;
  --text: #F4F5F7;
  --text-2: #9AA0AC;
  --text-3: #C9CDD6;
  --primary: #6C7BFF;
  --primary-light: #8F9BFF;
  --primary-container: #22264A;
  --positive: #3DDC97;
  --positive-container: #12241C;
  --accent: #3FC8D8;
  --accent-container: #10292D;
  --gold: #F5B547;
  --gold-container: #3A2D12;
  --debt: #FF8C69;
  --debt-container: #3B2018;

  --radius: 24px;
  --gutter: 20px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: #B4BCFF; }
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.wrap--narrow { max-width: 820px; }
.anchor { position: relative; top: -80px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 16, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--divider); }
.top__in { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand img { width: 22px; height: auto; }
.brand--small { font-size: 16px; }
.brand--small img { width: 16px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--text-2); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--raised); }
.lang { color: var(--text); font-weight: 700; font-size: 14px; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; background: var(--raised); }
.lang:hover { color: var(--text); background: #262a35; }
@media (max-width: 720px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Glows: the same soft tint the app puts at the top of an account's detail */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .55; z-index: 0; }
.glow--hero { width: 720px; height: 520px; top: -160px; right: -120px; background: radial-gradient(closest-side, rgba(108, 123, 255, .55), transparent); }
.glow--lilac { inset: 10% 0 auto; margin: auto; width: 80%; height: 70%; background: radial-gradient(closest-side, rgba(108, 123, 255, .45), transparent); }
.glow--teal { inset: 10% 0 auto; margin: auto; width: 80%; height: 70%; background: radial-gradient(closest-side, rgba(63, 200, 216, .35), transparent); }
.glow--green { inset: 10% 0 auto; margin: auto; width: 80%; height: 70%; background: radial-gradient(closest-side, rgba(61, 220, 151, .32), transparent); }
.glow--gold { inset: 10% 0 auto; margin: auto; width: 80%; height: 70%; background: radial-gradient(closest-side, rgba(245, 181, 71, .30), transparent); }
.glow--wide { width: 900px; height: 500px; left: 50%; top: 120px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(63, 200, 216, .22), transparent); }

/* Hero */
.hero { position: relative; padding: 64px 0 40px; overflow: clip; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--divider); color: var(--text-3); font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 4px var(--positive-container); }
.hero h1 { margin-top: 22px; text-wrap: balance; font-size: clamp(40px, 4.9vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.grad { background: linear-gradient(92deg, var(--primary-light) 0%, #B4A6FF 45%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 560px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--text-2); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores--center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; border-radius: 18px; background: var(--raised); border: 1px solid var(--outline); color: var(--text); }
.store svg { width: 26px; height: 26px; flex: none; }
.store > span { display: flex; flex-direction: column; font-weight: 700; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; }
.store small { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }

/* Device frames */
.phone { position: relative; z-index: 1; width: min(330px, 78vw); aspect-ratio: 1080 / 2424; padding: 8px; border-radius: 50px; background: linear-gradient(160deg, #2A2E39, #15171D 55%, #20232C); box-shadow: 0 0 0 1px #2F3340, 0 40px 80px -30px rgba(0, 0, 0, .9), 0 30px 120px -40px rgba(108, 123, 255, .35); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 42px; background: var(--bg); }
.phone--hero { width: min(350px, 80vw); }

.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; background: rgba(28, 31, 39, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #2F3340; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.chip > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.chip b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.chip small { font-size: 13px; color: var(--text-2); font-weight: 600; }
.chip--up { left: max(-10px, calc(50% - 300px)); top: 26%; animation: float 7s ease-in-out infinite; }
.chip--goal { right: max(-10px, calc(50% - 300px)); bottom: 7%; animation: float 8s ease-in-out -3s infinite; }
.chip__tile { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; }
.chip__tile svg, .tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip__tile--green { background: var(--positive-container); color: var(--positive); }
.pos { color: var(--positive) !important; }
.ring { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke-width: 4; }
.ring circle { stroke: var(--outline); }
.ring .ring__on { stroke: var(--primary-light); stroke-dasharray: 94.25; stroke-dashoffset: 16; stroke-linecap: round; }
.ring b { font-size: 11px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Strip */
.strip { padding: 24px 0 8px; }
.strip__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--divider); font-weight: 700; font-size: 16px; }
.tile { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.pill .tile { width: 38px; height: 38px; border-radius: 50%; }
.pill .tile svg { width: 19px; height: 19px; }
.tile--lilac { background: var(--primary-container); color: var(--primary-light); }
.tile--green { background: var(--positive-container); color: var(--positive); }
.tile--gold { background: var(--gold-container); color: var(--gold); }
.tile--orange { background: var(--debt-container); color: var(--debt); }
.tile--teal { background: var(--accent-container); color: var(--accent); }

/* Features */
.feature { padding: 96px 0; position: relative; }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature--flip .feature__copy { order: 2; }
.feature__copy { max-width: 500px; }
.feature--flip .feature__copy { justify-self: end; }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.kicker--lilac { color: var(--primary-light); }
.kicker--teal { color: var(--accent); }
.kicker--green { color: var(--positive); }
.kicker--gold { color: var(--gold); }
h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.feature__copy > p { margin-top: 20px; color: var(--text-2); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 600; color: var(--text-3); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F9BFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; border: 1px solid var(--divider); }
.feature__visual { position: relative; display: flex; justify-content: center; }
.feature__visual--pair { min-height: 560px; }
.feature__visual--pair .phone { width: min(290px, 64vw); }
.phone--back { position: absolute; transform: translate(-34%, 6%) rotate(-6deg) scale(.92); opacity: .7; filter: saturate(.8); }
.phone--front { transform: translateX(18%); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--surface); font-weight: 600; }
.steps b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-container); color: var(--primary-light); font-weight: 800; flex: none; }
.note { margin-top: 20px; font-size: 15px; color: var(--text-2); padding-left: 16px; border-left: 2px solid var(--primary-container); }

/* Section heads */
.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.section-head .lead { margin: 20px auto 0; }

/* Privacy */
.privacy { padding: 120px 0 96px; position: relative; background: linear-gradient(180deg, transparent, rgba(21, 23, 29, .6) 30%, rgba(21, 23, 29, .6) 70%, transparent); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.card { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-top: 20px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.center { text-align: center; margin-top: 40px; }
.link { font-weight: 700; font-size: 17px; }

/* Everywhere */
.everywhere { padding: 110px 0; position: relative; overflow: clip; }
.tablet { position: relative; z-index: 1; max-width: 920px; margin: 56px auto 0; padding: 12px; border-radius: 34px; background: linear-gradient(160deg, #2A2E39, #15171D 55%, #20232C); box-shadow: 0 0 0 1px #2F3340, 0 50px 100px -40px rgba(0, 0, 0, .9); }
.tablet img { border-radius: 23px; width: 100%; }
.badges { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; position: relative; z-index: 1; }
.badges li { padding: 10px 18px; border-radius: 999px; background: var(--raised); font-weight: 700; font-size: 15px; }
.badges--quiet { margin-top: 12px; }
.badges--quiet li { background: transparent; border: 1px solid var(--divider); color: var(--text-2); font-weight: 600; }

/* FAQ */
.faq { padding: 96px 0; }
.qa { margin-top: 48px; display: grid; gap: 12px; }
.qa details { background: var(--surface); border: 1px solid var(--divider); border-radius: 20px; }
.qa summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-weight: 700; font-size: 18px; position: relative; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F5F7' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 24px 24px; color: var(--text-2); }

/* Final */
.final { padding: 40px 0 110px; }
.final__card { position: relative; overflow: hidden; text-align: center; padding: 72px 24px; border-radius: 36px; background: radial-gradient(120% 140% at 50% 0%, #2B3170 0%, #171A33 45%, var(--surface) 100%); border: 1px solid #2B3170; }
.final__card img { margin: 0 auto 24px; width: 40px; }
.final__card p { margin-top: 16px; color: var(--text-3); font-size: 18px; }

/* Footer */
.foot { border-top: 1px solid var(--divider); padding: 32px 0 48px; color: var(--text-2); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--text-3); font-weight: 600; }
.foot p { margin-left: auto; }

/* Reveal on scroll (only with JS, never with reduced motion) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal--late { transition-delay: .12s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chip { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero__grid, .feature__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { text-align: center; }
  .hero__copy .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .feature { padding: 64px 0; }
  .feature__copy, .feature--flip .feature__copy { order: 0; justify-self: center; max-width: 620px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .chip--up { left: 0; }
  .chip--goal { right: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .chip { padding: 10px 14px 10px 10px; gap: 10px; }
  .chip b { font-size: 14px; }
  .chip small { font-size: 12px; }
  .chip__tile, .ring { width: 36px; height: 36px; }
  .chip--up { top: 18%; left: -4px; }
  .chip--goal { bottom: 10%; right: -4px; }
  .feature__visual--pair { min-height: 0; }
  .phone--back { display: none; }
  .phone--front { transform: none; }
  .store { height: 56px; padding: 0 18px 0 14px; }
  .foot p { margin-left: 0; }
  .qa summary { font-size: 17px; padding: 20px 60px 20px 20px; }
  .qa details p { padding: 0 20px 20px; }
  .final__card { padding: 56px 20px; border-radius: 28px; }
}

/* Document pages (privacy, 404) */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc__back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 32px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; letter-spacing: -0.035em; }
.doc h2 { font-size: 26px; margin-top: 48px; }
.doc h3 { font-size: 20px; margin-top: 36px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--text-3); }
.doc p { margin-top: 14px; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--text); }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--raised); padding: 2px 6px; border-radius: 6px; }
.doc blockquote { margin: 24px 0; padding: 18px 22px; border-radius: 18px; background: var(--debt-container); border: 1px solid #5a2f22; }
.doc blockquote p { color: var(--text); margin-top: 8px; }
.doc blockquote p:first-child { margin-top: 0; }
.doc hr { border: 0; border-top: 1px solid var(--divider); margin: 40px 0; }
.doc .table { overflow-x: auto; margin-top: 18px; border: 1px solid var(--divider); border-radius: 16px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--divider); color: var(--text-3); }
.doc th { background: var(--surface); color: var(--text); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf p { margin: 16px 0 28px; color: var(--text-2); }
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 26px; background: var(--primary); color: var(--bg); font-weight: 700; }
.btn:hover { background: var(--primary-light); color: var(--bg); }

/* Language menu */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--raised); color: var(--text); font-weight: 700; font-size: 14px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { background: #262a35; }
.langs summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.langs ul { position: absolute; right: 0; top: 52px; margin: 0; padding: 6px; list-style: none; min-width: 180px; background: var(--raised); border: 1px solid #2F3340; border-radius: 18px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .8); }
.langs a { display: block; padding: 11px 14px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: 15px; }
.langs a:hover { background: #262a35; color: var(--text); }
.langs a[aria-current] { color: var(--primary-light); }
.top .langs { margin-left: 0; }
@media (max-width: 720px) { .top .langs { margin-left: auto; } }
.foot__langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; }
.foot__langs a { color: var(--text-2); font-weight: 600; }
.foot__langs a[aria-current] { color: var(--text-3); }
