/* PasteInvoice landing pages. Dark only, matching the app and store screenshots.
   One accent (#00e676), one radius scale (tiles 24px, phones follow the screenshot frame, controls 12px). */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #121513;
  --surface-2: #171b18;
  --line: #232924;
  --fg: #eef2f0;
  --muted: #9aa6a0;
  --accent: #00e676;
  --on-accent: #04110a;
  --radius: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Space Grotesk", "Segoe UI", Tahoma, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* nav */
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font: 600 1.15rem var(--display); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 12px; color: var(--muted); font-size: .95rem; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--fg); border-color: #36403a; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 10; margin: 0; padding: 6px;
  list-style: none; min-width: 170px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px;
}
.lang li a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); }
.lang li a:hover, .lang li a[aria-current] { background: #1f2521; color: var(--fg); }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px;
  min-height: min(740px, calc(100dvh - 64px)); padding-block: 24px 0;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.04; font-weight: 700; text-wrap: balance; }
.lead { color: var(--muted); font-size: 1.2rem; line-height: 1.55; max-width: 38ch; margin: 22px 0 32px; }
.badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .2s var(--ease); }
.badge img { height: 64px; width: auto; margin: -8px; }
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: scale(.98); }
.stage {
  position: relative; align-self: stretch; min-height: 420px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.stage img { position: absolute; width: 56%; border-radius: 40px; box-shadow: 0 40px 80px rgb(0 24 12 / .55); }
.stage .back { inset-inline-start: 2%; top: 4%; }
.stage .front { inset-inline-end: 2%; top: 17%; }

/* sections */
section { padding-block: 96px 0; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; font-weight: 700; text-wrap: balance; }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: s; max-width: 52ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; align-items: start; padding-block: 18px; font-size: 1.1rem; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 600 2rem/1 var(--display); color: var(--accent); }
.how figure { margin: 0; max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.how img { width: min(100%, 380px); margin-inline: auto; border-radius: 40px; }

.bento {
  display: grid; gap: 16px; margin-top: 40px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "a b" "a c" "d d";
}
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--line); padding: 32px 32px 0; background: var(--surface);
}
.tile h3 { font-size: 1.5rem; line-height: 1.15; font-weight: 600; text-wrap: balance; }
.tile p { margin: 10px 0 0; color: var(--muted); max-width: 40ch; }
.tile img { width: min(64%, 330px); margin: 28px auto 0; margin-top: auto; border-radius: 40px; transform: translateY(24%); }
.tile h3 { margin-bottom: 0; }
.tile > p { margin-bottom: 28px; }
.t-a { grid-area: a; background: radial-gradient(120% 70% at 50% 100%, #0b3a24, #07140d 70%); }
.t-a img { width: min(92%, 500px); transform: translateY(12%); }
.t-b { grid-area: b; }
.t-c { grid-area: c; background: linear-gradient(160deg, var(--surface-2), #0d110e); }
.t-d { grid-area: d; background: var(--accent); border-color: var(--accent); color: var(--on-accent); padding: 44px 40px; }
.t-d h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.t-d p { color: #0a2a18; font-size: 1.15rem; max-width: 58ch; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 24px; border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font: 600 1.15rem var(--display);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }

.end { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.end img.icon { width: 84px; height: 84px; border-radius: 22px; }
footer { margin-top: 96px; border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer a { text-decoration: none; margin-inline-end: 20px; }
footer a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* home chooser */
.choose { min-height: calc(100dvh - 64px); display: grid; align-content: center; gap: 36px; padding-bottom: 64px; }
.choose h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.choose ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; max-width: 760px; }
.choose li a {
  display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  text-decoration: none; font: 600 1.2rem var(--display); transition: border-color .2s, transform .2s var(--ease);
}
.choose li a:hover { border-color: var(--accent); transform: translateY(-2px); }

/* motion: entrance and scroll reveal only, both off for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .hero .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .stage .front { animation: rise 1s var(--ease) .25s both; }
  .stage .back { animation: rise 1s var(--ease) .1s both; }
  @supports (animation-timeline: view()) {
    .tile, .how > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding-block: 72px 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .stage { min-height: 430px; }
  .stage img { width: 58%; }
  .how { grid-template-columns: 1fr; gap: 32px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .tile { padding: 26px 24px 0; }
  .t-d { padding: 32px 24px; }
}
