/* Ironclad website styles.
   Sizes that differ between the mobile (390px) and desktop (1440px) designs scale
   fluidly between those two widths with clamp(). */

:root {
  --text: #1D1D1F;
  --secondary: #6E6E73;
  --tertiary: #86868B;
  --nav-link: #424245;
  --border: #E8E8ED;
  --alt-bg: #F5F5F7;
  --accent: #FF9F0A;
  --accent-dark: #945C06;
  --accent-soft: rgba(255, 159, 10, 0.16);
  --bezel-color: #1D1D1F;
  --error: #D70015;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;

  --nav-h: 56px;
  --pad-x: clamp(22px, calc(22px + 58 * (100vw - 390px) / 1050), 80px);
  --eyebrow: clamp(17px, calc(17px + 4 * (100vw - 390px) / 1050), 21px);
  --h1: clamp(52px, calc(52px + 36 * (100vw - 390px) / 1050), 88px);
  --h2: clamp(36px, calc(36px + 20 * (100vw - 390px) / 1050), 56px);
  --lead: clamp(19px, calc(19px + 2 * (100vw - 390px) / 1050), 21px);

  color-scheme: light;
}

@media (min-width: 760px) {
  :root { --nav-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

img, svg { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===================== NAV ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

.nav {
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-link {
  display: none;
  font-size: 14px;
  color: var(--nav-link);
  text-decoration: none;
}

.nav-link:hover { color: var(--text); }

@media (min-width: 760px) {
  .nav-link { display: block; }
}

.nav-donate {
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--accent);
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* ===================== SHARED ===================== */

.section-title {
  margin: 0;
  font-size: var(--h2);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 16px 0 0;
  font-size: var(--lead);
  line-height: 1.42;
  color: var(--secondary);
}

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Phone frame: dark bezel around a rounded screen holding a 1290 x 2796 screenshot. */
.phone {
  background: var(--bezel-color);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), inset 0 0 0 1.5px #3A3A3C;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--alt-bg);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== HERO ===================== */

.hero {
  --pw: clamp(250px, calc(250px + 50 * (100vw - 390px) / 1050), 300px);
  --ph: clamp(520px, calc(520px + 100 * (100vw - 390px) / 1050), 620px);
  padding: clamp(75px, calc(75px + 35 * (100vw - 390px) / 1050), 110px) var(--pad-x);
  display: flex;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  font-size: var(--eyebrow);
  font-weight: 600;
  color: var(--accent-dark);
}

.hero h1 {
  margin: 12px 0 0;
  font-size: var(--h1);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 470px;
  font-size: var(--lead);
  line-height: 1.42;
  color: var(--secondary);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.btn-store {
  height: 52px;
  padding: 0 26px;
  border-radius: 26px;
  background: var(--text);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.link-support {
  height: 52px;
  padding: 0 10px;
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--secondary);
}

.hero-art {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.phone-front {
  position: relative;
  width: var(--pw);
  height: var(--ph);
  border-radius: clamp(44px, calc(44px + 8 * (100vw - 390px) / 1050), 52px);
  padding: clamp(9px, calc(9px + 2 * (100vw - 390px) / 1050), 11px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), inset 0 0 0 1.5px #3A3A3C;
}

.phone-front .phone-screen {
  border-radius: clamp(35px, calc(35px + 7 * (100vw - 390px) / 1050), 42px);
}

/* Second phone behind the first; only shown in the side-by-side hero.
   Its size and offset are proportional to the front phone (300px wide at 1440). */
.phone-back {
  display: none;
  position: absolute;
  left: calc(var(--pw) * 0.5667);
  top: calc(var(--pw) * 0.1667);
  width: calc(var(--pw) * 0.9);
  height: calc(var(--pw) * 1.8667);
  border-radius: 48px;
  padding: 10px;
  opacity: 0.9;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), inset 0 0 0 1.5px #3A3A3C;
}

.phone-back .phone-screen { border-radius: 38px; }

@media (min-width: 760px) {
  .hero-actions { flex-direction: row; }
}

@media (min-width: 1060px) {
  .hero-inner {
    flex-direction: row;
    gap: 40px;
  }
  .hero-actions { justify-content: flex-start; }
  .hero-copy {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }
  .hero-art { width: calc(var(--pw) * 1.5667); }
  .phone-front { margin-right: calc(var(--pw) * 0.4); }
  .phone-back { display: block; }
}

/* ===================== OVERVIEW ===================== */

.overview {
  padding: clamp(117px, calc(171px + -54 * (100vw - 390px) / 1050), 171px) var(--pad-x);
  background: var(--alt-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.overview .section-title { max-width: 760px; }
.overview .section-lead { max-width: 620px; }

.feature-grid {
  width: 100%;
  max-width: 1120px;
  margin-top: clamp(36px, calc(36px + 20 * (100vw - 390px) / 1050), 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  text-align: left;
}

@media (min-width: 760px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.feature {
  background: #FFFFFF;
  border-radius: 28px;
  padding: clamp(26px, calc(26px + 6 * (100vw - 390px) / 1050), 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature .icon-tile { margin-bottom: 10px; }

.feature h3 {
  margin: 0;
  font-size: 21px;
  line-height: 26px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 17px;
  line-height: 25px;
  color: var(--secondary);
}

/* ===================== SCREENSHOTS ===================== */

.screenshots {
  padding: clamp(84px, calc(105px + -21 * (100vw - 390px) / 1050), 105px) 0;
}

.screenshots .section-title {
  padding: 0 var(--pad-x);
  text-align: center;
}

.shot-row {
  --shot-gap: clamp(20px, calc(20px + 12 * (100vw - 390px) / 1050), 32px);
  --shot-w: clamp(220px, calc(220px + 20 * (100vw - 390px) / 1050), 240px);
  margin-top: 48px;
  display: flex;
  gap: var(--shot-gap);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px var(--pad-x) 40px;
}

.shot-row::-webkit-scrollbar { display: none; }

/* From tablet width up, shrink the side gutters (down to 8px) so all three phones fit
   instead of scrolling. */
@media (min-width: 760px) {
  .shot-row {
    padding-left: max(8px, min(var(--pad-x), (100% - 3 * var(--shot-w) - 2 * var(--shot-gap)) / 2));
    padding-right: max(8px, min(var(--pad-x), (100% - 3 * var(--shot-w) - 2 * var(--shot-gap)) / 2));
  }
}

.shot-row:focus-visible { outline-offset: -2px; border-radius: 0; }

/* Centered when the row fits, scrollable from the first phone when it doesn't. */
.shot:first-child { margin-left: auto; }
.shot:last-child { margin-right: auto; }

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.shot .phone {
  width: var(--shot-w);
  height: clamp(460px, calc(460px + 40 * (100vw - 390px) / 1050), 500px);
  border-radius: 40px;
  padding: 9px;
}

.shot .phone-screen { border-radius: 31px; }

.shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.shot-name {
  font-size: 17px;
  font-weight: 600;
}

.shot-sub {
  font-size: 14px;
  color: var(--secondary);
}

/* ===================== PRIVACY ===================== */

.privacy {
  padding: clamp(95px, calc(95px + 43 * (100vw - 390px) / 1050), 138px) var(--pad-x);
  background: var(--alt-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.privacy-badge {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background: rgba(255, 159, 10, 0.18);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy .section-title { margin-top: 22px; }
.privacy .section-lead { max-width: 600px; }

.privacy-grid {
  width: 100%;
  max-width: 960px;
  margin-top: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 760px) {
  .privacy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.privacy-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.privacy-point svg {
  color: var(--accent-dark);
  margin-bottom: 4px; /* matches the icon's inline line box in the design */
}

.privacy-point h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.privacy-point p {
  margin: 0;
  max-width: 260px;
  font-size: 15px;
  line-height: 22px;
  color: var(--secondary);
}

/* ===================== SUPPORT + DONATE ===================== */

.support {
  padding: clamp(109px, calc(109px + 28 * (100vw - 390px) / 1050), 137px) var(--pad-x);
  display: flex;
  justify-content: center;
}

.support-grid {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 760px) {
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.support-card {
  background: var(--alt-bg);
  border-radius: 28px;
  padding: clamp(30px, calc(30px + 14 * (100vw - 390px) / 1050), 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.support-card .icon-tile { margin-bottom: 8px; }

.support-card h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.support-card p {
  margin: 0;
  font-size: 17px;
  line-height: 25px;
  color: var(--secondary);
}

.support-email {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}

.btn-donate {
  margin-top: 14px;
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  background: var(--accent);
  color: #000000;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-card .donate-note {
  font-size: 13px;
  line-height: normal;
  color: var(--secondary);
}

/* ===================== FOOTER ===================== */

.site-footer {
  padding: 40px var(--pad-x) 39px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--nav-link);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

.site-footer p { margin: 0; }

@media (min-width: 760px) {
  .site-footer {
    flex-direction: row;
    gap: 20px;
    padding-top: 41px;
    padding-bottom: 40px;
  }
  .site-footer p { margin-right: auto; }
}

/* ===================== SCROLL REVEAL ===================== */

/* Only applied once script.js confirms it can run the effect, so content is
   always visible without JavaScript or with reduced motion. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===================== PRIVACY POLICY PAGE ===================== */

.policy {
  padding: clamp(56px, calc(56px + 28 * (100vw - 390px) / 1050), 84px) var(--pad-x) clamp(80px, calc(80px + 40 * (100vw - 390px) / 1050), 120px);
}

.policy-inner {
  max-width: 680px;
  margin: 0 auto;
}

.policy h1 {
  margin: 0;
  font-size: var(--h2);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.policy-date {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--secondary);
}

.policy-intro {
  margin: 28px 0 0;
  font-size: var(--lead);
  line-height: 1.42;
  color: var(--secondary);
}

.policy h2 {
  margin: 44px 0 0;
  font-size: 21px;
  line-height: 26px;
  font-weight: 600;
}

.policy p {
  font-size: 17px;
  line-height: 25px;
}

.policy h2 + p { margin-top: 10px; }

.policy-inner a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.policy-inner a:hover { text-decoration: underline; }

/* ===================== DONATE PAGE ===================== */

.donate {
  padding: clamp(56px, calc(56px + 28 * (100vw - 390px) / 1050), 84px) var(--pad-x) clamp(80px, calc(80px + 40 * (100vw - 390px) / 1050), 120px);
}

.donate-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.donate h1 {
  margin: 20px 0 0;
  font-size: var(--h2);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.donate-lead {
  margin: 16px 0 0;
  max-width: 480px;
  font-size: var(--lead);
  line-height: 1.42;
  color: var(--secondary);
}

.donate-card {
  width: 100%;
  margin-top: clamp(32px, calc(32px + 12 * (100vw - 390px) / 1050), 44px);
  padding: clamp(22px, calc(22px + 14 * (100vw - 390px) / 1050), 36px);
  background: var(--alt-bg);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.donate-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donate-field legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
}

/* Radios stay in the accessibility tree and keyboard order; the label draws them. */
.amount-option input,
.method-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.amount-option span {
  height: 52px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.amount-option input:checked + span {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.amount-option input:focus-visible + span,
.method-option:has(input:focus-visible) {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.amount-custom {
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: text;
  transition: box-shadow 0.15s;
}

.amount-custom:focus-within {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.amount-custom:has([aria-invalid="true"]) {
  box-shadow: inset 0 0 0 2px var(--error);
}

.amount-custom-prefix {
  font-size: 17px;
  font-weight: 600;
  color: var(--secondary);
}

.amount-custom input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  outline: none;
}

.amount-custom input::placeholder { color: var(--tertiary); }

.donate-error {
  margin: 0;
  font-size: 14px;
  color: var(--error);
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-option {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.method-option:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-icon-btc { background: #F7931A; color: #FFFFFF; }
.method-icon-dark { background: #000000; color: #FFFFFF; }
.method-icon-light { background: #FFFFFF; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }

.method-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.method-name {
  font-size: 17px;
  font-weight: 600;
}

.method-sub {
  font-size: 14px;
  line-height: 19px;
  color: var(--secondary);
}

.method-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px var(--border);
  transition: background 0.15s, box-shadow 0.15s;
}

.method-option input:checked ~ .method-check {
  background: var(--accent);
  box-shadow: inset 0 0 0 6px var(--accent), inset 0 0 0 11px #FFFFFF;
}

.btn-pay {
  height: 54px;
  border: 0;
  border-radius: 27px;
  background: var(--accent);
  color: #000000;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

/* Apple Pay and Google Pay get black buttons, like their native ones. */
.btn-pay[data-method="apple-pay"],
.btn-pay[data-method="google-pay"] {
  background: #000000;
  color: #FFFFFF;
}

.donate-status {
  padding: 14px 16px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px var(--border);
  font-size: 15px;
  line-height: 22px;
  color: var(--secondary);
}

.donate-fine {
  margin: -12px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--secondary);
}

.donate-back {
  margin: 28px 0 0;
  font-size: 17px;
}

.donate-back a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.donate-back a:hover { text-decoration: underline; }

/* ===================== DISABLED (donations not connected yet) ===================== */

.nav-donate[aria-disabled="true"],
.btn-donate[aria-disabled="true"] {
  background: var(--border);
  color: var(--tertiary);
  cursor: not-allowed;
}

.footer-links a[aria-disabled="true"],
.footer-links a[aria-disabled="true"]:hover {
  color: var(--tertiary);
  cursor: not-allowed;
}

.donate-card[aria-disabled="true"] {
  filter: grayscale(1);
  opacity: 0.5;
  user-select: none;
}
