/* mõdRïff site. System fonts only: no request leaves the page for a font, so
   the privacy policy's "no third parties" is true of the site as well as the app. */
:root {
  --bg: #05060c;
  --panel: #0b0d18;
  --line: #1c2036;
  --text: #f2f3fa;
  --dim: #9aa0bd;
  --accent: #3a9bff;
  --rainbow: linear-gradient(90deg, #ff5a5f, #ff9a3c, #ffd23f, #5fdc6a, #2ad4c8, #3a9bff, #b46bff);
  --max: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* height:auto keeps a shrunk image in proportion; without it the width/height
   attributes pin the height and a 660px-wide shot squeezed to 240px came out stretched. */
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 110px; height: auto; }
header.top nav { display: flex; gap: 20px; font-size: 15px; }
header.top nav a { color: var(--dim); }
header.top nav a:hover { color: var(--text); text-decoration: none; }

.rule { height: 3px; background: var(--rainbow); opacity: .9; }

.hero { padding: 56px 0 24px; text-align: center; }
.hero .wordmark { width: min(560px, 86vw); margin: 0 auto 30px; }
h1 { font-size: clamp(34px, 7vw, 58px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.01em; }
.sub { color: var(--dim); font-size: clamp(18px, 3vw, 22px); max-width: 640px; margin: 0 auto 28px; }
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 16px;
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn.ghost { background: transparent; color: var(--text); border-color: #343a5c; }
.note { color: var(--dim); font-size: 14px; margin-top: 14px; }

.shots { display: flex; gap: 22px; overflow-x: auto; padding: 40px 24px 16px; scroll-snap-type: x mandatory; justify-content: safe center; -webkit-overflow-scrolling: touch; }
.shots figure { margin: 0; flex: 0 0 auto; width: min(214px, 64vw); scroll-snap-align: center; }
/* A bezel, so a screen capture reads as a phone and not as a cropped picture. */
.phone { background: #14172a; border: 1px solid #2a2f4d; border-radius: 30px; padding: 7px; box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset; }
.phone img { border-radius: 23px; width: 100%; }
.shots figcaption { text-align: center; color: var(--dim); font-size: 14px; margin-top: 14px; }

section.block { padding: 56px 0 8px; }
h2 { font-size: clamp(26px, 4.5vw, 36px); margin: 0 0 8px; letter-spacing: -.01em; }
.lede { color: var(--dim); max-width: 680px; margin: 0 0 28px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--dim); font-size: 15.5px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

.privacy-band { margin: 56px 0 0; background: var(--panel); border-block: 1px solid var(--line); padding: 36px 0; }
.privacy-band p { max-width: 720px; margin: 8px 0 0; color: var(--dim); }

footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--dim); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }

/* Legal and support pages */
main.doc { max-width: 760px; margin: 0 auto; padding: 44px 16px 0; }
main.doc h1 { font-size: clamp(30px, 6vw, 42px); }
main.doc h2 { font-size: 22px; margin: 36px 0 6px; }
main.doc p, main.doc li { color: #d3d6e8; }
main.doc ul { padding-left: 22px; }
main.doc .meta { color: var(--dim); font-size: 14.5px; margin: 0 0 24px; }
main.doc .tldr { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 20px 0; }
main.doc .tldr p { margin: 0; color: var(--text); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--text); }
details p { margin: 10px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; }
