/* Pixel Grid — website styles. Brand tokens mirror the app (see mobile app.json
   / the design reference). One warm terracotta-on-cream theme, fully responsive. */

:root {
  --app-bg: #ECE3D5;
  --page-bg: #E7DECF;
  --frame: #D95A3D;
  --frame-lo: #B4472E;
  --frame-hi: #E8836B;
  --field: #C8C5BD;
  --field-lo: #B4B1A8;
  --line: #6B675F;
  --knob: #FBF9F5;
  --knob-lo: #DCD6CB;
  --knob-dot: #B4AEA2;
  --icon-bg: #C64E34;
  --icon-fg: #F7E9E0;
  --wordmark: #F6E9DF;
  --label: #EAC9BC;

  --ink: #2E2A26;          /* body text on cream */
  --ink-soft: #6B675F;     /* muted text */
  --card: #F4EEE3;         /* raised card on cream */
  --card-line: rgba(107, 103, 95, 0.16);
  --accent: #D95A3D;

  --maxw: 1080px;
  --radius: 22px;
  --shadow: 0 28px 46px -18px rgba(0, 0, 0, 0.42);
  --font-head: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.82; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Wordmark ---- */
.wordmark {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--frame);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
}
.wordmark .g { font-weight: 600; opacity: 0.85; margin-left: 7px; }
.wordmark--onframe { color: var(--wordmark); }

/* ---- Logo wordmark: lowercase "monoink" with knob o's + pen-dot i ---- */
.logo {
  display: inline-flex; align-items: flex-end; white-space: nowrap;
  font-family: var(--font-head); font-weight: 900; font-style: normal;
  letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-size: 22px;
}
.logo b { font-style: normal; font-weight: 900; }
.logo .o {
  align-self: center; position: relative; display: inline-block;
  width: 0.532em; height: 0.532em; margin: 0 0.016em; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FBF9F5, #DCD6CB);
  box-shadow: 0 0.048em 0.113em rgba(0,0,0,0.22), inset 0 0.016em 0 rgba(255,255,255,0.8);
}
.logo .o::after {
  content: ""; position: absolute; top: 0.081em; left: 50%; transform: translateX(-50%);
  width: 0.056em; height: 0.161em; border-radius: 0.145em; background: #C64E34;
}
.logo .i { position: relative; display: inline-block; width: 0.177em; height: 0.532em; margin: 0 0.048em 0 0.032em; }
.logo .i::before { content: ""; position: absolute; bottom: 0; left: 0; width: 0.177em; height: 0.532em; border-radius: 0.097em; background: currentColor; }
.logo .i::after { content: ""; position: absolute; bottom: 0.629em; left: 0; width: 0.177em; height: 0.177em; border-radius: 50%; background: #6B675F; }
.logo--onframe { color: var(--wordmark); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(231, 222, 207, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--card-line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.site-header .brand { display: flex; align-items: center; gap: 12px; }
.site-header .brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--accent); opacity: 1; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--frame); color: var(--icon-fg);
  box-shadow: 0 10px 20px -10px rgba(180, 71, 46, 0.8);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ghost {
  background: transparent; color: var(--frame);
  box-shadow: inset 0 0 0 2px var(--frame);
}
.btn--dark { background: #16130F; color: #F4EEE3; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }

/* store badge buttons */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 14px;
  background: #16130F; color: #F4EEE3;
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.55);
  transition: transform 0.12s ease;
}
.store-badge:hover { opacity: 1; transform: translateY(-1px); }
.store-badge svg { flex: none; }
.store-badge .sb-small { font-size: 11px; letter-spacing: 0.04em; opacity: 0.85; line-height: 1.1; }
.store-badge .sb-big { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.15; }
.store-badge[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.store-badge[aria-disabled="true"]:hover { transform: none; }

/* ---- Hero ---- */
.hero { padding: clamp(48px, 8vmin, 96px) 0 clamp(40px, 7vmin, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vmin, 64px); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--frame-lo); background: rgba(217, 90, 61, 0.12);
  padding: 6px 14px; border-radius: 99px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(38px, 7vmin, 62px); line-height: 1.03;
  letter-spacing: -0.02em; margin: 0 0 18px;
  color: var(--ink);
}
.hero h1 .hl { color: var(--frame); }
.hero p.lead { font-size: clamp(17px, 2.4vmin, 20px); color: var(--ink-soft); margin: 0 0 30px; max-width: 30ch; }
@media (max-width: 860px) { .hero p.lead { max-width: none; margin-inline: auto; } }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 860px) { .hero .cta-row, .hero .stores { justify-content: center; } }

/* ---- Device mockup (recreated app frame) ---- */
.device-stage { display: flex; justify-content: center; perspective: 1400px; }
.device {
  width: 100%; max-width: 340px; aspect-ratio: 340 / 720;
  background: var(--frame); border-radius: 42px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.20) inset, 0 -12px 26px rgba(0,0,0,.16) inset,
              0 2px 0 var(--frame-hi) inset, 0 40px 60px -24px rgba(0,0,0,.5);
  transform: rotate(-2deg);
}
.device .d-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 0; }
.device .d-erase {
  width: 34px; height: 34px; border-radius: 50%; background: var(--icon-bg); color: var(--icon-fg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.30), inset 0 -1px 0 rgba(255,255,255,.14);
}
.device .d-screen {
  flex: 1; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--field) 0%, var(--field-lo) 100%);
  box-shadow: inset 0 3px 9px rgba(0,0,0,.30), inset 0 -2px 4px rgba(255,255,255,.14);
}
.device .d-screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.device .d-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 4px; }
.device .knob {
  width: 58px; height: 58px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 38% 32%, var(--knob) 0%, var(--knob-lo) 82%);
  box-shadow: 0 7px 13px rgba(0,0,0,.30), 0 1px 0 rgba(255,255,255,.55) inset, 0 -5px 9px rgba(0,0,0,.12) inset;
}
.device .knob::before {
  content: ""; position: absolute; top: 11%; left: 50%; transform: translateX(-50%);
  width: 5px; height: 20%; border-radius: 99px; background: var(--knob-dot);
}
.device .d-icons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.device .d-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--icon-bg); color: var(--icon-fg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.28), inset 0 -1px 0 rgba(255,255,255,.12);
}
@media (prefers-reduced-motion: no-preference) {
  .device { animation: floaty 6s ease-in-out infinite; }
  @keyframes floaty { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-10px); } }
}

/* ---- Section ---- */
section.block { padding: clamp(44px, 7vmin, 88px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vmin, 56px); }
.section-head h2 {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(28px, 4.5vmin, 40px); margin: 0 0 12px; color: var(--ink);
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: 0 2px 0 rgba(255,255,255,.5) inset;
}
.feature .fi {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  background: var(--frame); color: var(--icon-fg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 16px -8px rgba(180,71,46,.7);
}
.feature h3 { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }

/* ---- Gallery strip ---- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 820px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots img {
  width: 100%; border-radius: 20px; border: 1px solid var(--card-line);
  box-shadow: 0 20px 40px -22px rgba(0,0,0,.5);
}

/* ---- Pricing ---- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 30px 28px;
}
.tier.pro { border-color: var(--frame); box-shadow: 0 0 0 2px rgba(217,90,61,.25), var(--shadow); position: relative; }
.tier .tag { position: absolute; top: 18px; right: 18px; font-family: var(--font-head); font-weight: 800; font-size: 11px; letter-spacing: .1em; color: var(--icon-fg); background: var(--frame); padding: 5px 12px; border-radius: 99px; }
.tier h3 { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin: 0 0 6px; }
.tier .price { font-family: var(--font-head); font-weight: 900; font-size: 34px; color: var(--frame); margin: 0 0 18px; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.tier li svg { flex: none; margin-top: 3px; color: var(--frame); }

/* ---- CTA band ---- */
.cta-band { background: var(--frame); color: var(--icon-fg); border-radius: clamp(24px, 4vmin, 36px); padding: clamp(36px, 6vmin, 64px); text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(26px, 4vmin, 40px); margin: 0 0 12px; color: #fff; }
.cta-band p { margin: 0 auto 26px; max-width: 46ch; opacity: 0.92; }
.cta-band .stores { justify-content: center; }
.cta-band .store-badge { background: rgba(0,0,0,0.22); }

/* ---- Community gallery teaser ---- */
.gallery-teaser {
  background: linear-gradient(180deg, var(--frame) 0%, var(--frame-lo) 100%);
  color: var(--icon-fg); border-radius: clamp(24px, 4vmin, 36px);
  padding: clamp(32px, 5vmin, 56px); text-align: center; box-shadow: var(--shadow);
}
.gallery-teaser .eyebrow { color: #fff; background: rgba(255,255,255,0.18); margin-bottom: 16px; }
.gallery-teaser h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 4vmin, 38px); margin: 0 0 12px; color: #fff; }
.gallery-teaser p { color: var(--icon-fg); opacity: 0.95; margin: 0 auto 24px; max-width: 48ch; }
.gallery-teaser p a { color: #fff; text-decoration: underline; }
.gallery-teaser .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }

/* ---- Newsletter ---- */
.newsletter {
  background: var(--card); border: 1px solid var(--card-line); border-radius: clamp(24px, 4vmin, 36px);
  padding: clamp(32px, 5vmin, 56px); text-align: center; box-shadow: 0 2px 0 rgba(255,255,255,.5) inset;
}
.newsletter h2 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; font-size: clamp(26px, 4vmin, 36px); margin: 0 0 10px; color: var(--ink); }
.newsletter p { color: var(--ink-soft); margin: 0 auto 26px; max-width: 44ch; }
.nl-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
@media (max-width: 480px) { .nl-form { flex-direction: column; } }
.nl-form input {
  flex: 1; min-width: 0; font-family: var(--font-body); font-size: 16px;
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--card-line);
  background: #fff; color: var(--ink);
}
.nl-form input:focus { outline: 2px solid var(--frame); outline-offset: 1px; border-color: var(--frame); }
.nl-form button { white-space: nowrap; }
.nl-status { margin: 14px 0 0; min-height: 1.2em; font-weight: 700; font-size: 14.5px; }
.nl-status--ok { color: #2f7d4f; }
.nl-status--error { color: #c0392b; }
.nl-fineprint { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-soft); opacity: 0.85; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--card-line); padding: 40px 0; margin-top: 20px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .foot-links a { color: var(--ink-soft); font-weight: 700; font-size: 14.5px; }
.site-footer .foot-links a:hover { color: var(--accent); opacity: 1; }
.site-footer small { display: block; font-size: 13.5px; }

/* ---- Legal / content pages ---- */
.doc { padding: clamp(32px, 6vmin, 64px) 0 clamp(40px, 7vmin, 80px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(30px, 5vmin, 44px); letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 34px; }
.doc h2 { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin: 38px 0 10px; }
.doc h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #423d37; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 24px 26px; margin: 24px 0;
}
.doc .back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 24px; }
.doc code { background: rgba(107,103,95,.12); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

.note { background: rgba(217,90,61,.08); border-left: 3px solid var(--frame); padding: 14px 18px; border-radius: 10px; margin: 20px 0; }
