/* Rigwarden — the website. The look of the store screenshots (design/store/): the brand indigo
   night, Manrope, the amber cell of the icon. Built by site/build.py; no framework, no tracking. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-greek.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  color-scheme: dark;
  --bg-0: #070a24;
  --bg-1: #0a0e2e;
  --bg-2: #141b57;
  --bg-3: #1b2470;
  --brand: #3949ab;
  --brand-hi: #4b5bd0;
  --accent: #ef9f27;
  --accent-hi: #f5b95a;
  --ink: #ffffff;
  --ink-soft: #c9cef2;
  --ink-mute: #9198c8;
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(255, 255, 255, 0.22);
  --card: rgba(255, 255, 255, 0.04);
  --card-hi: rgba(255, 255, 255, 0.07);
  --ok: #57c785;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg-1);
  background-image:
    radial-gradient(1100px 800px at 85% -10%, rgba(75, 91, 208, 0.35), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(57, 73, 171, 0.25), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-1) 100%);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); font-weight: 800; margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.04em; }
:lang(ru) h1 { font-size: clamp(36px, 5.4vw, 72px); }
:lang(ru) h2 { font-size: clamp(30px, 4vw, 52px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; }
h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.accent { color: var(--accent); }
p { margin: 0; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 14, 46, 0.62);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line-hi); border-radius: 999px; padding: 3px; }
.lang a, .lang span { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-mute); }
.lang span { background: var(--ink); color: var(--bg-1); }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }

/* ---------- Chip grid: the 3x3 of the icon, one amber cell ---------- */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12%; width: var(--size, 180px); aspect-ratio: 1; pointer-events: none; }
.chips i { border-radius: 22%; border: 2px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03); }
.chips i:nth-child(6) { background: var(--accent); border-color: var(--accent-hi); box-shadow: 0 0 calc(var(--size, 180px) * 0.3) rgba(239, 159, 39, 0.6); }
.deco { position: absolute; z-index: 0; transform: rotate(var(--r, 12deg)); opacity: 0.9; }

/* ---------- Devices ---------- */
.phone { --w: 300px; width: var(--w); container-type: inline-size; position: relative; transform: rotate(var(--tilt, 0deg)); flex: none; }
.phone-body {
  position: relative; aspect-ratio: 1040 / 2218; border-radius: 15.7cqw; padding: 0.5cqw;
  background: linear-gradient(135deg, #5a6290 0%, #1a1d33 45%, #3b4270 100%);
  box-shadow: 0 7cqw 18cqw rgba(2, 4, 20, 0.7), 0 0 0 0.25cqw rgba(255, 255, 255, 0.08);
}
.phone-bezel { height: 100%; border-radius: 15.2cqw; background: #05060b; padding: 1.45cqw; }
.phone-bezel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12.1cqw; }
.island { position: absolute; left: 50%; top: 4.3cqw; width: 27.5cqw; height: 8.1cqw; transform: translateX(-50%); background: #000; border-radius: 99px; }
.sb-time { position: absolute; left: 11.5cqw; top: 5.2cqw; font: 600 3.75cqw/1 system-ui, -apple-system, var(--font); color: #fff; letter-spacing: -0.01em; }
.sb-icons { position: absolute; left: 76.2cqw; top: 6.4cqw; width: 16cqw; height: 2.85cqw; }

.droid { --w: 300px; width: var(--w); container-type: inline-size; position: relative; transform: rotate(var(--tilt, 0deg)); flex: none; }
.droid img { display: block; width: 100%; aspect-ratio: 1236 / 2745; object-fit: cover; object-position: top; border-radius: 6.3cqw; border: 1px solid var(--line-hi); box-shadow: 0 7cqw 18cqw rgba(2, 4, 20, 0.7); }
.droid .sb-time { left: 5.3cqw; top: 1.9cqw; font: 500 3.4cqw/1 Roboto, system-ui, sans-serif; }
.droid .sb-icons { left: auto; right: 5cqw; top: 2cqw; width: 14cqw; height: 3.4cqw; }

.tablet { width: 100%; container-type: inline-size; position: relative; transform: rotate(var(--tilt, 0deg)); }
.tablet-body { border-radius: 4.4cqw; padding: 0.3cqw; background: linear-gradient(135deg, #5a6290 0%, #1a1d33 45%, #3b4270 100%); box-shadow: 0 5cqw 14cqw rgba(2, 4, 20, 0.7); }
.tablet-bezel { border-radius: 4.1cqw; background: #05060b; padding: 1.5cqw; }
.tablet-bezel img { display: block; width: 100%; aspect-ratio: 2064 / 2752; object-fit: cover; object-position: top; border-radius: 2.6cqw; }

.callout {
  position: absolute; z-index: 3; display: block; width: var(--cw, 420px); max-width: 92%; height: auto;
  border-radius: 18px; border: 1px solid var(--line-hi);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(75, 91, 208, 0.35);
  transform: rotate(var(--tilt, 0deg));
}

/* ---------- Buttons / badges ---------- */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-block; height: 52px; }
.badge img { height: 100%; width: auto; display: block; }
.badge[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.soon { font-size: 14px; color: var(--ink-mute); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 26px; }
.hero-visual { position: relative; min-height: 640px; }
.hero-visual .phone.back { position: absolute; right: 2%; top: 0; --w: min(270px, 40vw); --tilt: 7deg; opacity: 0.95; }
.hero-visual .phone.front { position: absolute; left: 8%; top: 70px; --w: min(300px, 44vw); --tilt: -6deg; z-index: 2; }
.hero-visual .callout { left: -6%; bottom: 4%; --cw: 440px; --tilt: -3deg; }
.hero-visual .deco { right: -40px; bottom: 30px; --size: 200px; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; height: clamp(560px, 150vw, 820px); }
  .hero-visual .phone.front { left: 2%; top: 40px; --w: min(300px, 56vw); }
  .hero-visual .phone.back { right: 2%; --w: min(270px, 50vw); }
  .hero-visual .callout { left: 0; bottom: 0; }
  .hero-visual .deco { right: 0; --size: 140px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.center { text-align: center; margin-inline: auto; justify-items: center; }

.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote { margin: 0; padding: 28px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: 18px; line-height: 1.6; color: var(--ink); position: relative; }
.quote::before { content: "“"; position: absolute; top: -22px; left: 20px; font-size: 90px; line-height: 1; color: var(--accent); font-weight: 800; }
.quote code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; color: var(--accent-hi); }
.quote figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-mute); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); background: rgba(255, 255, 255, 0.03); }
.compare tbody th { color: var(--ink); font-weight: 700; width: 26%; }
.compare td:nth-child(2) { color: var(--ink-mute); }
.compare td:nth-child(3) { color: var(--ink); background: rgba(75, 91, 208, 0.12); }
@media (max-width: 960px) { .story { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .compare thead { display: none; } .compare tr { display: grid; } .compare tbody th { width: auto; padding-bottom: 2px; border-bottom: 0; } .compare td { border-bottom: 0; padding-top: 2px; } .compare td:nth-child(3) { border-bottom: 1px solid var(--line); } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-copy { display: grid; gap: 18px; max-width: 520px; }
.feature-copy p { font-size: 18px; }
.feature-copy .note { font-size: 15px; color: var(--ink-mute); }
.feature.flip .feature-copy { order: 2; }
.feature-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.feature-visual .phone { --w: min(290px, 70vw); }
.feature-visual .droid { --w: min(290px, 70vw); }
.feature-visual .callout { --cw: 400px; bottom: 6%; }
.feature:not(.flip) .feature-visual .callout { right: -4%; }
.feature.flip .feature-visual .callout { left: -4%; }
.feature-visual .deco { --size: 150px; }
.feature:not(.flip) .feature-visual .deco { left: 0; top: 4%; }
.feature.flip .feature-visual .deco { right: 0; top: 4%; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .feature-visual { min-height: 0; padding-bottom: 60px; }
  .feature-visual .callout { --cw: 92%; left: 4% !important; right: auto !important; bottom: 0; }
}

/* notifications over the Android screen */
.notes { position: absolute; z-index: 3; left: 50%; top: 18%; width: min(420px, 96%); transform: translateX(-50%); display: grid; gap: 10px; }
.note-card { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 16px; border-radius: 22px; background: rgba(39, 43, 61, 0.94); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 16px 40px rgba(2, 4, 20, 0.6); backdrop-filter: blur(12px); }
.note-card img { width: 38px; height: 38px; border-radius: 50%; }
.note-card small { display: block; font: 500 12.5px/1.3 Roboto, system-ui, sans-serif; color: #aeb3cf; }
.note-card b { display: block; font: 700 15px/1.3 Roboto, system-ui, sans-serif; color: #fff; margin-top: 2px; }
.note-card span { display: block; font: 400 14px/1.35 Roboto, system-ui, sans-serif; color: #c9cde3; }

/* ---------- Firmwares ---------- */
.fw { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fw-card { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.fw-card h3 { font-size: 21px; letter-spacing: -0.02em; }
.fw-card .by { font-size: 13px; font-weight: 700; color: var(--ink-mute); letter-spacing: 0.04em; }
.fw-card p { font-size: 15px; line-height: 1.55; }
.fw-card .tag { justify-self: start; font-size: 12px; font-weight: 700; color: var(--ok); background: rgba(87, 199, 133, 0.12); border-radius: 999px; padding: 3px 10px; }
.fw-card.main, .fw-card:last-child { grid-column: span 2; }
.fw-card.main { background: linear-gradient(135deg, rgba(75, 91, 208, 0.22), rgba(255, 255, 255, 0.03)); border-color: rgba(75, 91, 208, 0.5); }
.fw-foot { margin-top: 18px; font-size: 15px; color: var(--ink-mute); }
.fw-visual { position: relative; min-height: 600px; }
.fw-visual .phone.back { position: absolute; right: 0; top: 0; --w: min(250px, 42vw); --tilt: 7deg; }
.fw-visual .phone.front { position: absolute; left: 6%; top: 90px; --w: min(260px, 44vw); --tilt: -5deg; z-index: 2; }
.fw-visual .callout { left: 0; bottom: 0; --cw: 430px; --tilt: -2deg; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(239, 159, 39, 0.3); }
@media (max-width: 960px) { .fw { grid-template-columns: 1fr; } .fw-visual { min-height: clamp(520px, 120vw, 700px); } }
@media (max-width: 560px) { .fw-cards { grid-template-columns: 1fr; } .fw-card.main, .fw-card:last-child { grid-column: auto; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.tile { grid-column: span 3; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; overflow: hidden; position: relative; }
.tile.wide { grid-column: span 6; }
.tile h3 { font-size: 22px; letter-spacing: -0.02em; }
.tile p { font-size: 15.5px; line-height: 1.55; }
.tile .shot { margin: 10px -26px -26px; padding: 0 20px; display: flex; justify-content: center; }
.tile .shot img { width: 100%; max-width: 460px; border-radius: 16px 16px 0 0; border: 1px solid var(--line-hi); border-bottom: 0; display: block; }
.tile code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; color: var(--accent-hi); }
.ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(75, 91, 208, 0.25); border: 1px solid rgba(75, 91, 208, 0.5); color: var(--ink); }
.ico svg { width: 22px; height: 22px; }
@media (max-width: 1100px) { .bento { grid-template-columns: 1fr 1fr; } .tile { grid-column: span 1; } .tile.wide { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide { grid-column: auto; } }

/* ---------- Privacy band ---------- */
.privacy-band { border-radius: 32px; padding: clamp(32px, 6vw, 72px); background: radial-gradient(800px 400px at 100% 0%, rgba(239, 159, 39, 0.16), transparent 60%), linear-gradient(135deg, rgba(75, 91, 208, 0.28), rgba(10, 14, 46, 0.6)); border: 1px solid rgba(75, 91, 208, 0.45); position: relative; overflow: hidden; }
.privacy-band .deco { right: 4%; top: 10%; --size: 220px; opacity: 0.5; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; margin-top: 36px; position: relative; z-index: 1; }
.privacy-grid div { display: grid; gap: 6px; }
.privacy-grid b { color: var(--ink); font-size: 18px; }
.privacy-grid p { font-size: 15.5px; }
@media (max-width: 760px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.plat-list { display: grid; gap: 14px; }
.plat { padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.plat .ico { grid-row: span 2; }
.plat b { color: var(--ink); font-size: 18px; }
.plat p { font-size: 15px; }
.plat-visual { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.plat-visual .tablet { --tilt: 4deg; }
@media (max-width: 960px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 0 22px; }
.faq details[open] { background: var(--card-hi); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; font-size: 15.5px; }
.contact { margin-top: 40px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.contact a.mail { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; display: grid; gap: 22px; justify-items: center; }
.cta .badges { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-mute); }
.foot .wrap { display: grid; gap: 16px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Document page (privacy) ---------- */
.doc { padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); }
.doc article { max-width: 760px; margin-inline: auto; }
.doc h1 { font-size: clamp(36px, 5vw, 60px); margin: 18px 0 10px; }
.doc .date { color: var(--ink-mute); font-size: 15px; margin-bottom: 36px; }
.doc .summary { padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(75, 91, 208, 0.25), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(75, 91, 208, 0.5); color: var(--ink); font-size: 18px; font-weight: 600; margin-bottom: 36px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.7; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
