/* Raw Print website. Brand colours sampled from the app icon and Play Store screenshots. */
:root {
  --green: #0b6e4f;
  --green-deep: #07432f;
  --green-ink: #0a5c42;
  --mint: #ddf2e7;
  --mint-soft: #eef8f2;
  --yellow: #ffc94d;
  --ink: #0e1a15;
  --text: #24332c;
  --muted: #55665e;
  --line: #d6e3dc;
  --paper: #f6f8f7;
  --white: #ffffff;
  --radius: 18px;
  --max: 1120px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.nav .btn { color: #fff; }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 16px; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-play { background: var(--ink); min-height: 58px; padding: 0 24px 0 20px; border-radius: 14px; text-align: left; line-height: 1.1; }
.btn-play:hover { background: #000; }
.btn-play svg { width: 26px; height: 28px; flex: none; }
.btn-play small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.btn-play span { font-size: 19px; font-weight: 700; font-family: var(--display); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd673; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--green); color: #e7f5ee; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 40px; }
.hero-copy { padding: 84px 0 96px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(44px, 7vw, 80px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: #cfe9dc; max-width: 34ch; margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 22px; font-size: 15px; color: #b9dccb; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: "✓"; color: var(--yellow); font-weight: 700; margin-right: 7px; }
.hero-shot { align-self: end; justify-self: center; width: 100%; max-width: 420px; aspect-ratio: 600 / 870; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%); mask-image: linear-gradient(to bottom, transparent 0, #000 7%); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 56px 0 24px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-shot { max-width: 340px; }
}

/* ---------- Spec strip ---------- */
.specs { background: var(--green-deep); color: #d5ece0; }
.specs ul { list-style: none; margin: 0 auto; padding: 18px 20px; max-width: var(--max); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-size: 15px; font-weight: 500; }
.specs li { display: flex; align-items: center; gap: 8px; }
.specs li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { color: var(--green); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.alt { background: var(--paper); }
.mint { background: var(--mint); }
@media (max-width: 640px) { section { padding: 68px 0; } .section-head { margin-bottom: 36px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 18px;
}
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 24px; margin: 0 auto; max-width: calc(var(--max) + 40px);
  scrollbar-width: thin; scrollbar-color: var(--green) transparent; }
.gallery figure { flex: 0 0 240px; margin: 0; scroll-snap-align: center; }
.gallery img { width: 240px; aspect-ratio: 1 / 2; border-radius: 22px; box-shadow: 0 12px 32px rgba(7, 67, 47, .16); background: var(--mint); }
.gallery figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }
@media (min-width: 1180px) { .gallery { justify-content: center; } .gallery figure { flex-basis: 170px; } .gallery img { width: 170px; } }

/* Developer block */
.dev { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.dev h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.dev p { color: var(--muted); }
.dev ul { padding-left: 20px; color: var(--text); margin: 0; }
.dev li { margin-bottom: 6px; }
.code { background: var(--ink); color: #d7eee2; border-radius: var(--radius); padding: 24px; font-family: var(--mono); font-size: 14px; line-height: 1.7; overflow-x: auto; margin: 0; }
.code .c { color: #7d998b; }
.code .s { color: var(--yellow); }
@media (max-width: 860px) { .dev { grid-template-columns: 1fr; gap: 28px; } }

/* Privacy band */
.privacy-band { background: var(--green); color: #d9efe4; }
.privacy-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.privacy-band h2 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
.privacy-band h2 em { font-style: normal; color: var(--yellow); }
.privacy-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy-band li { background: rgba(255,255,255,.08); border-radius: 14px; padding: 16px 18px 16px 52px; position: relative; }
.privacy-band li::before { content: "✓"; position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.privacy-band strong { color: #fff; }
.privacy-band a { color: var(--yellow); }
@media (max-width: 860px) { .privacy-band .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 700; font-size: 18px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; font-weight: 400; color: var(--green); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA */
.cta { text-align: center; }
.cta-card { background: var(--ink); color: #cfe2d8; border-radius: 28px; padding: 64px 28px; }
.cta-card img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 22px; }
.cta-card h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-bottom: 14px; }
.cta-card p { margin: 0 auto 28px; max-width: 46ch; }
.cta-card .hero-actions { justify-content: center; }
.cta-card .btn-play { background: var(--yellow); color: var(--ink); }
.cta-card .btn-play:hover { background: #ffd673; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--green); text-decoration: underline; }
.site-footer .brand { margin-bottom: 12px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* ---------- Document pages (privacy, terms, support) ---------- */
.page-hero { background: var(--mint); padding: 64px 0 52px; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 58px); font-weight: 800; }
.page-hero p { color: var(--muted); margin: 14px 0 0; font-size: 18px; max-width: 60ch; }
.page-hero .meta { font-size: 15px; margin-top: 18px; color: var(--green-ink); font-weight: 600; }

.doc { padding: 56px 0 96px; }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc h2 { font-family: var(--body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--green); border-left-color: var(--green); }
.prose { max-width: 720px; }
.prose h2 { font-size: 27px; font-weight: 700; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-family: var(--body); font-weight: 700; margin: 26px 0 8px; letter-spacing: 0; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper); color: var(--ink); font-weight: 700; }
.prose td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.summary-box { background: var(--mint-soft); border: 1px solid #c4e4d2; border-radius: var(--radius); padding: 24px 26px; margin-bottom: 40px; }
.summary-box h2 { font-size: 20px; margin: 0 0 12px; }
.summary-box ul { margin: 0; }
.callout { background: var(--paper); border-left: 4px solid var(--yellow); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 0 0 1em; }
.caps { text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
@media (max-width: 900px) {
  .doc .wrap { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; background: var(--paper); border-radius: var(--radius); padding: 20px; }
  .prose td:first-child { white-space: normal; }
}

/* Support page */
.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--ink); color: #cfe2d8; border-radius: 24px; padding: 34px 36px; margin-bottom: 48px; }
.contact-card h2 { color: #fff; font-size: 28px; margin: 0 0 8px; }
.contact-card p { margin: 0; }
.contact-card .email { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--yellow); word-break: break-all; }
.contact-card .actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 700px) { .contact-card { grid-template-columns: 1fr; padding: 28px 24px; } }
.fix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 24px; }
.fix { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.fix h3 { margin: 0 0 8px !important; font-size: 18px !important; }
.fix p, .fix ul { font-size: 15.5px; color: var(--muted); margin: 0; }
.fix ul { padding-left: 18px; }
@media (max-width: 700px) { .fix-grid { grid-template-columns: 1fr; } }
.copied { font-size: 14px; color: var(--yellow); min-height: 1.2em; text-align: center; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: clamp(56px, 10vw, 110px); color: var(--green); }
.notfound p { color: var(--muted); font-size: 19px; margin: 12px 0 28px; }

/* ---------- Blog ---------- */
.blog-list { padding: 56px 0 96px; }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.post-card .meta { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.post-card h2 { font-size: 23px; line-height: 1.2; margin: 0 0 12px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--green); }
.post-card p { color: var(--muted); font-size: 16px; }
.post-card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }

.post-hero h1 { font-size: clamp(32px, 4.6vw, 50px); max-width: 22ch; }
.crumbs { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "← "; }
.doc.post .wrap { display: block; }
.doc.post .prose { margin: 0 auto; }
.prose .lede { font-size: 19px; color: var(--ink); }
.prose code { background: var(--paper); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .88em; word-break: break-word; }
.prose pre.code { margin: 8px 0 24px; }
.prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose ol li { margin-bottom: 8px; }
.disclosure { font-size: 15px; color: var(--muted); background: var(--paper); border-radius: 12px; padding: 14px 18px; }
.sources { font-size: 15px; }
.post-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--mint); border-radius: var(--radius); padding: 24px; margin: 48px 0 8px; }
.post-cta img { border-radius: 14px; }
.post-cta h2 { margin: 0 0 4px !important; font-size: 22px; }
.post-cta p { margin: 0; color: var(--text); font-size: 16px; }
@media (max-width: 700px) { .post-cta { grid-template-columns: 1fr; text-align: left; } }
.related h2 { font-size: 22px; }
.related ul { padding-left: 20px; }
