/* raikerxv.com: the savings passbook. The page is the visitor's own
   passbook opened on its green cover: paper pages, hairline rulings,
   figures printed in Manrope, and blue rubber stamps for every action.
   Five inks, no gradients for color, no shadows (the fold is a sewn
   seam), no scripts, nothing from other hosts. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The five inks. */
  --cover: #0b3d2c;
  --paper: #f6f7f4;
  --green: #0e9f6e;
  --stamp: #1d4ed8;
  --debit: #b42318;
  /* Derived from them, for text and rules. */
  --ink: #0b3d2c;
  --ink-soft: #3f5d52;
  --green-text: #0a7a55;
  --rule: rgb(14 159 110 / 0.22);
  --rule-strong: rgb(11 61 44 / 0.35);
  --cover-ink: #e6f0ea;
  --cover-soft: #a9c5b8;
  --cover-line: rgb(230 240 234 / 0.16);
  --line-pitch: 32px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cover);
  color: var(--ink);
  font: 450 17px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
}
::selection { background: rgb(29 78 216 / 0.18); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--stamp); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; font-weight: 800; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; z-index: 10; }

/* ---------- The cover: header and footer ---------- */

header.site, footer.site { color: var(--cover-ink); }
header.site .bar, footer.site .bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--cover-ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo:hover { text-decoration: none; }
header.site nav a, footer.site a { color: var(--cover-ink); }
header.site nav a { font-weight: 600; font-size: 15px; }
footer.site { font-size: 15px; }
footer.site .bar { padding-block: 28px 40px; border-top: 1px solid var(--cover-line); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site .by { color: var(--cover-soft); }

main { padding: 8px clamp(10px, 2.5vw, 32px) 48px; display: flex; flex-direction: column; gap: clamp(28px, 5vw, 56px); }

/* ---------- The passbook ---------- */

.book {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  /* The cover board, a little larger than the pages it holds. */
  padding: 10px;
  border: 1px solid var(--cover-line);
  border-radius: 12px;
}
.book.narrow { max-width: 820px; }
.page {
  background: var(--paper);
  padding: clamp(22px, 4vw, 56px);
  min-width: 0;
  position: relative;
}
/* Phones: the pages stack and the fold becomes a seam. */
.book > .page:first-child { border-radius: 5px 5px 0 0; }
.book > .page:last-child { border-radius: 0 0 5px 5px; border-top: 1px dashed var(--rule-strong); }
.book > .page:only-child { border-radius: 5px; border-top: 0; }
/* The edges of the pages underneath. */
.book::after {
  content: "";
  position: absolute;
  inset: auto 16px 4px 16px;
  height: 5px;
  border: 1px solid rgb(246 247 244 / 0.55);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  pointer-events: none;
}
@media (min-width: 960px) {
  .book.spread { grid-template-columns: 1fr 1fr; }
  /* The fold: a sewn seam, two rules and the stitches between them. */
  .book.spread > .page:first-child { border-radius: 5px 0 0 5px; border-right: 1px solid var(--rule-strong); }
  .book.spread > .page:last-child { border-radius: 0 5px 5px 0; border-top: 0; border-left: 1px solid var(--rule-strong); }
  .book.spread > .page:last-child::before {
    content: "";
    position: absolute;
    inset: 24px auto 24px 5px;
    border-left: 2px dashed var(--rule-strong);
  }
}

/* Ruled paper, only where entries go (as on a real passbook): the field
   rows, then blank lines to the foot of the page. */
.lines {
  flex: 1;
  min-height: calc(var(--line-pitch) * 3);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line-pitch) - 1px), var(--rule) calc(var(--line-pitch) - 1px) var(--line-pitch));
}

/* ---------- First spread: the holder's page and the sleeve ---------- */

.masthead { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.masthead img { width: 44px; height: 44px; border-radius: 12px; }
.masthead small { display: block; font-weight: 600; font-size: 13px; color: var(--ink-soft); letter-spacing: 0; }
.holder { display: flex; flex-direction: column; gap: 22px; }
.holder .lines { margin-top: -22px; }
.holder h1 { font-size: clamp(38px, 5.4vw, 64px); margin-top: 14px; }
.holder .lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-soft); max-width: 34ch; }

/* The stamp: every action on the site. */
.stamp {
  --stamp-ink: var(--stamp);
  align-self: flex-start;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 22px 11px;
  border: 3px solid var(--stamp-ink);
  outline: 1px solid var(--stamp-ink);
  outline-offset: 3px;
  border-radius: 12px;
  color: var(--stamp-ink);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  rotate: -2deg;
  transition: rotate 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease;
}
.stamp small { font-size: 12px; letter-spacing: 0.1em; font-weight: 700; opacity: 0.85; }
.stamp:hover { rotate: 0deg; background: rgb(29 78 216 / 0.06); text-decoration: none; }
.stamp:active { rotate: 0deg; background: rgb(29 78 216 / 0.12); }
.stamp:focus-visible { outline: 2px solid var(--stamp-ink); outline-offset: 6px; }
.stamp.lands { animation: stamp-land 520ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both; }
@keyframes stamp-land {
  0% { opacity: 0; scale: 1.35; rotate: -9deg; }
  60% { opacity: 1; scale: 0.97; rotate: -1deg; }
  100% { opacity: 1; scale: 1; rotate: -2deg; }
}

/* Label ........ value, as printed on a passbook's first page. */
.fields { margin: 6px 0 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.fields div { display: flex; align-items: baseline; gap: 10px; min-height: var(--line-pitch); padding: 6px 0; border-bottom: 1px solid var(--rule); }
.fields dt { flex: 1; display: flex; align-items: baseline; gap: 10px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.fields dt::after { content: ""; flex: 1; min-width: 20px; border-bottom: 2px dotted var(--rule-strong); translate: 0 -5px; }
.fields dd { margin: 0; font-weight: 700; text-align: right; }

/* The clear pocket inside the cover, holding the real app: an open mouth
   along the top with a thumb notch, the page's ruling showing through. */
.sleeve-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line-pitch) - 1px), var(--rule) calc(var(--line-pitch) - 1px) var(--line-pitch));
}
.sleeve {
  margin: 0;
  width: min(100%, 360px);
  padding: 18px;
  border-radius: 6px;
  border: 1px solid var(--rule-strong);
  position: relative;
}
.sleeve img { border-radius: 8px; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
/* The pocket's clear face covers the lower part of the screen; its mouth
   has a thumb notch cut out, so the screen shows through it. */
.sleeve .face {
  position: absolute;
  inset: 58% -1px -1px -1px;
  background: rgb(246 247 244 / 0.4);
  border: 1px solid var(--rule-strong);
  border-radius: 0 0 6px 6px;
  -webkit-mask: radial-gradient(circle 30px at 50% 0, transparent 29.5px, #000 30.5px);
  mask: radial-gradient(circle 30px at 50% 0, transparent 29.5px, #000 30.5px);
}
.sleeve .notch {
  position: absolute;
  top: 58%;
  left: calc(50% - 30px);
  width: 60px;
  height: 30px;
  border: 1px solid var(--rule-strong);
  border-top: 0;
  border-radius: 0 0 30px 30px;
}
.sleeve figcaption, .shot figcaption { font-size: 14px; color: var(--ink-soft); text-align: center; }

/* ---------- Ledger ---------- */

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-title h2 { font-size: clamp(28px, 3.6vw, 40px); }
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; }
.ledger th, .ledger td { text-align: left; padding: 9px 0; vertical-align: baseline; border-bottom: 1px solid var(--rule); }
.ledger thead th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; border-bottom: 2px solid var(--rule-strong); }
.ledger td:last-child, .ledger th:last-child { text-align: right; padding-left: 16px; white-space: nowrap; }
.ledger td small { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.ledger .concept { font-weight: 700; }
.ledger .free { color: var(--green-text); font-weight: 700; }
.ledger .premium { color: var(--ink); font-weight: 800; }

.ledger tfoot td { border-bottom: 0; border-top: 4px double var(--ink); padding-top: 12px; font-weight: 800; font-size: 19px; }
.ledger tfoot td:last-child { color: var(--green-text); }

/* ---------- Screens, each answered by one line ---------- */

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; margin: 0; padding: 0; list-style: none; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot img { border-radius: 16px; border: 1px solid var(--rule-strong); width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.shot figcaption { text-align: left; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .shot figcaption { font-size: 13px; line-height: 1.35; } .shot img { border-radius: 10px; } }

/* ---------- Privacy: stamped entries ---------- */

.stamps { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.stamps li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.stamps li::after { content: none; }
.stamps .leader { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--rule-strong); }
.stamps p { flex: 0 1 auto; max-width: 46ch; color: var(--ink); text-align: right; }
.mark {
  flex: none;
  display: inline-block;
  padding: 7px 13px 6px;
  border: 3px solid var(--green-text);
  outline: 1px solid var(--green-text);
  outline-offset: 3px;
  border-radius: 8px;
  color: var(--green-text);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.07em;
  font-size: 15px;
  line-height: 1.2;
}
.stamps li:nth-child(1) .mark { rotate: -3deg; }
.stamps li:nth-child(2) .mark { rotate: 2deg; }
.stamps li:nth-child(3) .mark { rotate: -1.5deg; }
.stamps li:nth-child(4) .mark { rotate: 2.5deg; }
@media (max-width: 640px) {
  .stamps li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stamps .leader { display: none; }
  .stamps p { flex: none; text-align: left; }
}

/* ---------- Closing page ---------- */

.closing { display: flex; flex-direction: column; gap: 24px; }
.closing .lines { margin-top: -24px; min-height: calc(var(--line-pitch) * 2); max-height: calc(var(--line-pitch) * 4); }
.shots-page { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.wide-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wide-shot img { border-radius: 14px; border: 1px solid var(--rule-strong); width: 100%; height: auto; }
.wide-shot figcaption { font-weight: 600; }
.closing .fields { max-width: 640px; }
.closing .fields dd { font-weight: 600; }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.note { color: var(--ink-soft); font-size: 15px; max-width: 70ch; }

/* ---------- Catalog: the closed passbook ---------- */

.catalog { max-width: 1240px; width: 100%; margin: 0 auto; display: grid; gap: 36px; color: var(--cover-ink); padding-top: clamp(12px, 4vw, 40px); }
.catalog h1 { font-size: clamp(40px, 6vw, 72px); color: var(--cover-ink); }
.catalog .lead { font-size: clamp(18px, 2vw, 21px); color: var(--cover-soft); max-width: 46ch; margin-top: 14px; }
.cover-book {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: min(100%, 380px);
  aspect-ratio: 3 / 4;
  padding: 36px 32px;
  border-radius: 10px;
  border: 1px solid rgb(230 240 234 / 0.32);
  color: var(--cover-ink);
  text-decoration: none;
  position: relative;
}
.cover-book img { width: 72px; height: 72px; border-radius: 18px; }
.cover-book h2 { font-size: 40px; }
.cover-book .stamp { margin-top: auto; }
/* The page block under the closed cover: fore-edge hairlines. */
.cover-book::before, .cover-book::after {
  content: "";
  position: absolute;
  border-right: 1px solid rgb(246 247 244 / 0.45);
  border-bottom: 1px solid rgb(246 247 244 / 0.45);
  border-radius: 0 10px 10px 0;
  pointer-events: none;
}
.cover-book::before { inset: 4px -5px -5px 4px; }
.cover-book::after { inset: 8px -9px -9px 8px; border-color: rgb(246 247 244 / 0.25); }
.cover-book p { color: var(--cover-soft); max-width: 24ch; }
.cover-book .stamp { --stamp-ink: var(--cover-ink); }
.cover-book:hover { text-decoration: none; border-color: rgb(230 240 234 / 0.6); }
.cover-book:hover .stamp { rotate: 0deg; background: rgb(230 240 234 / 0.08); }
.catalog .contact { color: var(--cover-soft); }
.catalog .contact a { color: var(--cover-ink); font-weight: 700; }

/* ---------- Documents (legal, support, deletion) ---------- */

.doc-page { width: 100%; }
.doc { display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 6px; }
.doc h2 { font-size: 22px; margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .note { font-size: 15px; }
.doc .placeholder { background: rgb(29 78 216 / 0.12); color: var(--stamp); padding: 0 4px; border-radius: 4px; }
.doc-page > * + * { margin-top: 32px; }
.contact { display: flex; flex-direction: column; gap: 6px; }
.contact a { font-weight: 700; font-size: 19px; }
.small { font-size: 15px; }
.muted { color: var(--ink-soft); }
.faq h2 { font-size: 24px; margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--green-text); border-bottom: 2px solid var(--green-text); rotate: -45deg; translate: 0 -2px; transition: rotate 150ms ease; }
.faq details[open] summary::before { rotate: 45deg; }
.faq details p, .faq details ul { margin-top: 8px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .stamp.lands { animation: none; }
  .stamp, .cover-book .stamp { transition: none; }
}

/* Phones: the stamp keeps its words on one line. */
@media (max-width: 420px) {
  .stamp { font-size: 15px; letter-spacing: 0.03em; padding: 11px 16px 10px; }
}

/* Phones: a slimmer cover board leaves the entries their full line. */
@media (max-width: 600px) {
  .book { padding: 4px; }
  main { padding-inline: 8px; }
}
