/* Coin — landing page. Same identity as the Instagram feed: Unbounded for
   the loud lines, Onest for reading, Martian Mono for receipts and labels;
   deep green, clarity green, ember and mint on receipt-white paper. */
:root {
  --deep: #0f3b2e;
  --clar: #3bd39f;
  --green: #0e7a5f;
  --paper: #f6f4ee;
  --receipt: #fffefa;
  --mint: #d8ebe2;
  --ink: #131517;
  --ember: #e5582a;
  --muted: #5b6168;
  --line: rgba(19, 21, 23, 0.12);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--clar); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.g { color: var(--green); }
.deep .g, .ink .g, .on-dark .g { color: var(--clar); }

.label, .mono-l { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.deep .label, .ink .label, .deep .mono-l { color: rgba(255, 255, 255, 0.6); }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -0.04em; margin-top: 18px; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.035em; margin-top: 14px; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--muted); margin-top: 24px; max-width: 34em; }
.lead.on-dark { color: rgba(255, 255, 255, 0.74); }

/* ── Nav ─────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex: none; }
.mark i { width: 4px; border-radius: 2px; background: #fff; display: block; height: 12px; }
.mark i:nth-child(2) { height: 17px; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.links a:hover { color: var(--ink); }
.lang { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.lang:hover { color: var(--ink); border-color: var(--ink); }
.links + .lang { margin-left: 4px; }
@media (max-width: 860px) { .lang { margin-left: auto; } .lang + .btn-small { margin-left: 0; } }
.btn-small { text-decoration: none; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 860px) { .links { display: none; } .btn-small { margin-left: auto; } }

/* ── Store buttons ───────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stores.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 12px 22px 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; box-shadow: 0 10px 24px rgba(19, 21, 23, 0.16); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.store small { font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: 0; opacity: 0.75; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(19, 21, 23, 0.22); }
.store.light { background: #fff; color: var(--ink); }
.store.soon { background: transparent; color: var(--muted); border: 2px dashed rgba(19, 21, 23, 0.22); box-shadow: none; cursor: default; }
.store.soon:hover { transform: none; }
.store.light.soon { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.3); background: transparent; }
.facts { margin-top: 22px; font-size: 15px; color: var(--muted); }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 85% 20%, rgba(59, 211, 159, 0.22), rgba(59, 211, 159, 0) 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero-vis { position: relative; height: 640px; }
.phone { position: absolute; right: 2%; top: 0; width: 300px; border-radius: 48px; background: #0b0d0f; padding: 8px; transform: rotate(5deg); box-shadow: 0 40px 80px rgba(19, 21, 23, 0.28), 0 8px 20px rgba(19, 21, 23, 0.14); }
.phone img { border-radius: 41px; width: 100%; height: auto; }
.hero-vis .rc { position: absolute; left: 0; top: 150px; transform: rotate(-4deg); }
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 64px; }
  .hero-vis { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 250px; border-radius: 40px; }
  .phone img { border-radius: 33px; }
  .hero-vis .rc { top: 120px; }
}
@media (max-width: 420px) {
  .hero-vis { height: 500px; }
  .phone { width: 210px; right: 0; }
  .hero-vis .rc { left: -4px; top: 110px; }
  .hero-vis .receipt { width: 268px; font-size: 12.5px; padding: 26px 20px 30px; }
}

/* ── Receipt (the signature) ─────────────────────────── */
.rc { filter: drop-shadow(0 26px 34px rgba(10, 12, 14, 0.24)) drop-shadow(0 3px 8px rgba(10, 12, 14, 0.12)); }
.receipt {
  width: 340px; background: var(--receipt); color: #1c1e20; font-family: var(--mono); font-size: 14.5px; line-height: 1.3;
  padding: 34px 26px 38px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 18px 51% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 18px 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 18px 51% repeat-x;
}
.receipt .hd { text-align: center; font-weight: 700; font-size: 18px; letter-spacing: 0.3em; }
.receipt .sub { text-align: center; font-size: 11.5px; color: #6b6f73; margin-top: 6px; letter-spacing: 0.06em; }
.receipt .cut { border-top: 2px dashed #c9c6bd; margin: 16px 0; }
.receipt .r { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.receipt .r span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt .r.tot { font-weight: 700; font-size: 1.32em; }
.receipt .r.tot span:last-child { color: var(--green); }
.receipt.print .r { opacity: 0; transform: translateY(-4px); animation: row 0.32s ease forwards; animation-delay: calc(0.5s + var(--i) * 0.26s); }
.receipt.print .r.tot { animation-name: stamp; animation-duration: 0.5s; animation-delay: calc(0.75s + var(--i) * 0.26s); }
@keyframes row { to { opacity: 1; transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.25); } 60% { opacity: 1; transform: scale(0.96); } 100% { opacity: 1; transform: none; } }
.receipt.mini { width: auto; max-width: 340px; margin: 26px 0 0; font-size: 13.5px; padding: 26px 22px 30px; }

/* ── Sections ────────────────────────────────────────── */
.sec { padding: clamp(72px, 10vw, 120px) 0; }
.deep { background: var(--deep); color: #fff; }
.ink { background: var(--ink); color: #fff; }
.mint { background: var(--mint); }

/* How */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; align-items: start; }
.num { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 10vw, 128px); letter-spacing: -0.05em; line-height: 1; color: var(--clar); margin-top: 14px; white-space: nowrap; }
.bar { display: flex; gap: 6px; height: 16px; margin-top: 34px; }
.bar i { display: block; border-radius: 8px; }
.b-free { background: var(--clar); }
.b-bills, .b-plan { background: #b9b6af; }
.b-spaces, .b-goals { background: #5e6b66; }
.bar .b-free { flex: 4840; } .bar .b-bills { flex: 8300; } .bar .b-plan { flex: 1800; } .bar .b-spaces { flex: 8000; } .bar .b-goals { flex: 8000; }
.legend { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.legend li { display: inline-flex; align-items: center; gap: 9px; }
.legend b { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 6px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.how-steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.how-steps .n { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: rgba(255, 255, 255, 0.5); }
.how-steps .n.eq { color: var(--clar); }
.how-steps p { color: rgba(255, 255, 255, 0.7); margin-top: 8px; font-size: 17px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 40px; } }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.card { position: relative; overflow: hidden; border-radius: 30px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 420px; }
.card .c-copy { padding: 30px 30px 0; position: relative; z-index: 2; }
.card .c-copy p { color: var(--muted); margin-top: 12px; font-size: 16.5px; }
.card .c-copy.on-dark p { color: rgba(255, 255, 255, 0.78); }
.card > img:not(.bg) { margin-top: auto; padding: 24px 22px 0; width: 100%; height: auto; border-radius: 0; filter: drop-shadow(0 18px 30px rgba(19, 21, 23, 0.14)); }
.card.mint { background: var(--mint); border-color: transparent; }
.card.deep { background: var(--deep); color: #fff; border-color: transparent; }
.c-wide { grid-column: span 2; }
.c-wide { flex-direction: row; align-items: center; }
.c-wide .c-copy { flex: 1; padding: 34px; }
.c-wide > img:not(.bg) { flex: 1.25; margin: 0; padding: 26px 26px 26px 0; max-width: 60%; }
.c-photo { color: #fff; border-color: transparent; min-height: 460px; }
.c-photo .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 10, 10, 0.82), rgba(8, 10, 10, 0.25) 52%, rgba(8, 10, 10, 0) 70%); }
.chip-row { position: relative; z-index: 2; margin: auto 20px 20px; background: #fff; color: var(--ink); border-radius: 18px; padding: 15px 18px; display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 500; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3); }
.chip-row b { font-family: var(--mono); white-space: nowrap; }
.c-auto { padding-bottom: 30px; }
.c-auto .receipt.mini { margin: 26px 30px 0; }
.c-more { background: var(--paper); border-style: dashed; }
.more { list-style: none; padding: 0 0 30px; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more li { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; color: var(--ink); background: #fff; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .c-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .c-wide .c-copy { padding: 30px 30px 0; }
  .c-wide > img:not(.bg) { max-width: none; padding: 24px 22px 0; }
  .card { min-height: 0; }
  .c-photo { min-height: 480px; }
}

/* Coffee band */
.coffee { position: relative; overflow: hidden; background: #d54c1f; color: #fff; min-height: 640px; display: flex; align-items: flex-start; }
.coffee .bg { position: absolute; left: 0; right: 0; top: 160px; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; }
.coffee-in { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; width: 100%; }
.coffee .big { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7.5vw, 96px); letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.coffee .ink-t { color: var(--ink); margin-top: 8px; }
@media (max-width: 600px) { .coffee .big { white-space: normal; font-size: clamp(36px, 10.5vw, 60px); } }
.coffee-note { display: inline-block; margin-top: 26px; background: #fff; color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 18px; border-radius: 999px; transform: rotate(-2deg); max-width: 100%; }
@media (min-width: 900px) {
  .coffee .bg { top: 0; left: 58%; width: 42%; height: 100%; }
  .coffee::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #d54c1f 0 58%, rgba(213, 76, 31, 0.8) 62%, rgba(213, 76, 31, 0) 72%); }
  .coffee { min-height: 600px; align-items: center; }
  .coffee .big { font-size: clamp(40px, 4.6vw, 72px); }
}

/* Privacy */
.priv { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.dots { font-family: var(--mono); font-weight: 700; font-size: clamp(64px, 10vw, 120px); line-height: 1; color: var(--clar); letter-spacing: -0.02em; }
.priv h2 { margin-top: 30px; }
.link { display: inline-block; margin-top: 26px; color: var(--clar); font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(59, 211, 159, 0.4); }
.priv-list { list-style: none; margin: 0; padding: 0; }
.priv-list li { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 20px; font-weight: 500; }
.priv-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.priv-list b { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); font-size: 16px; flex: none; }
.priv-list b.ok { background: var(--clar); color: var(--ink); }
@media (max-width: 860px) { .priv { grid-template-columns: 1fr; gap: 36px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.qa details { background: #fff; border-radius: 22px; padding: 0 26px; margin-bottom: 12px; }
.qa summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 30px; line-height: 1; color: var(--green); transition: transform 0.2s ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 0 22px; color: var(--muted); font-size: 17px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* Final */
.final-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.app-icon { width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.final h2 { margin-top: 34px; }

/* Footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, 0.6); padding: 36px 0 44px; font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.foot .brand { color: #fff; }
.foot .mark { background: #fff; }
.foot .mark i { background: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: #fff; }
@media (max-width: 680px) { .foot nav { margin-left: 0; width: 100%; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .receipt.print .r { animation: none; opacity: 1; transform: none; }
  .store { transition: none; }
}
