/* Paperly landing — design tokens from design/DESIGN.md (variant D "Night console") */
@font-face { font-family: Manrope; src: url(/fonts/manrope_regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope_medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope_semibold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope_bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrainsmono_medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #050607; --s1: #121418; --s2: #1B1E24; --outline: #2A2E36; --outline-strong: #3A3E46;
  --on: #F3F1EC; --muted: #A5A39C; --subtle: #8E8C86;
  --accent: #FFB547; --on-accent: #0A0A0A; --up: #3DDC97; --down: #FF6170;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--on); font-family: Manrope, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }

/* header */
header { position: sticky; top: 0; z-index: 10; background: rgba(5,6,7,.82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(42,46,54,.6); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--on); }
.lang { font-size: 13px; color: var(--muted); border: 1px solid var(--outline); border-radius: 20px; padding: 5px 12px; text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; border-radius: 32px; padding: 12px 22px; font-size: 15px; }
.pill:hover { filter: brightness(1.06); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .pill { margin-left: auto; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 18px 0 20px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.play img { height: 58px; width: auto; }
.apk { color: var(--muted); font-size: 14px; text-decoration: none; border-bottom: 1px dashed var(--outline-strong); }
.apk:hover { color: var(--on); }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--subtle); }
.curve { position: absolute; inset: auto 0 0 0; height: 60%; z-index: -1; opacity: .9; }
.phones { position: relative; height: 730px; }
.phone { position: absolute; width: 290px; border-radius: 46px; padding: 9px; background: var(--s1); border: 1px solid var(--outline); }
.phone img { border-radius: 38px; width: 100%; height: auto; }
.phones .p1 { right: 160px; top: 0; z-index: 2; }
.phones .p2 { right: 0; top: 70px; transform: rotate(4deg); opacity: .96; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phones { height: 560px; margin: 10px auto 0; width: 100%; max-width: 460px; }
  .phones .p1 { left: 0; right: auto; width: 250px; }
  .phones .p2 { right: 0; width: 250px; }
}
@media (max-width: 520px) { .phones { height: 470px; } .phones .p1, .phones .p2 { width: 210px; } }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; margin-bottom: 10px; }
.fact { background: var(--s1); border-radius: 28px; padding: 22px 24px; }
.fact b { display: block; font-family: var(--mono); font-weight: 500; font-size: 30px; letter-spacing: -.03em; }
.fact span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* sections */
section { padding: 90px 0 20px; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin: 14px 0 16px; }
.section-lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature.flip .ftext { order: 2; }
.feature .phone { position: relative; margin: 0 auto; }
.feature h3 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 12px 0 14px; font-weight: 600; }
.feature p { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.duo { display: flex; gap: 18px; justify-content: center; }
.duo .phone { width: 250px; }
.duo .phone:last-child { margin-top: 60px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature.flip .ftext { order: 0; }
  .duo .phone { width: 46%; }
}

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.card { background: var(--s1); border-radius: 28px; padding: 26px; }
.card h4 { margin: 14px 0 8px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; stroke: var(--accent); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* "not here" list */
.nope { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 30px; }
.nope div { border: 1.5px solid var(--outline); border-radius: 24px; padding: 18px; font-size: 15px; }
.nope b { display: block; color: var(--down); font-family: var(--mono); font-weight: 500; font-size: 13px; margin-bottom: 6px; }
@media (max-width: 900px) { .nope { grid-template-columns: 1fr 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; counter-reset: s; }
.step { background: var(--s1); border-radius: 28px; padding: 26px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-family: var(--mono); }
.step h4 { margin: 16px 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* skill formula */
.formula { display: grid; grid-template-columns: 35fr 25fr 20fr 20fr; gap: 6px; margin: 22px 0 8px; }
.formula div { background: var(--s2); border-radius: 14px; padding: 12px; font-size: 13px; }
.formula div b { display: block; font-family: var(--mono); font-weight: 500; font-size: 20px; color: var(--accent); }

/* faq */
.faq { margin-top: 30px; display: grid; gap: 10px; max-width: 820px; }
details { background: var(--s1); border-radius: 22px; padding: 20px 24px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-family: var(--mono); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* final cta + footer */
.final { text-align: center; padding: 100px 0 80px; }
.final .cta { justify-content: center; }
footer { border-top: 1px solid var(--outline); padding: 34px 0 50px; color: var(--subtle); font-size: 13px; }
footer .row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); }

/* legal pages */
.legal { max-width: 780px; padding: 60px 24px 80px; margin: 0 auto; }
.legal h1 { font-size: 40px; letter-spacing: -.03em; margin: 0 0 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: #D6D3CC; }
.legal .draft { border: 1.5px solid var(--outline-strong); border-radius: 18px; padding: 14px 18px; color: var(--muted); font-size: 14px; }
