:root {
  --cream: #fff8ea;
  --paper: #ffffff;
  --ink: #18211d;
  --muted: #68706b;
  --saffron: #f38b24;
  --saffron-deep: #d7660f;
  --green: #087b55;
  --green-deep: #045d40;
  --navy: #142c3d;
  --line: #eadfcb;
  --shadow: 0 16px 40px rgba(62, 42, 19, .12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(243, 139, 36, .055) 1px, transparent 1px),
    linear-gradient(rgba(243, 139, 36, .055) 1px, transparent 1px),
    var(--cream);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.pixel-image { display: none; }

.page { min-height: 100vh; padding: 10px 10px calc(92px + var(--safe-bottom)); }
.shell { width: min(100%, 560px); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 44px; height: 44px; border: 2px solid var(--paper); border-radius: 13px; object-fit: cover; box-shadow: 0 5px 18px rgba(20, 44, 61, .17); }
.brand span { display: grid; gap: 2px; }
.brand strong { color: var(--navy); font-size: 20px; line-height: 1; letter-spacing: -.03em; }
.brand small { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.age { padding: 7px 11px; border: 1px solid #e9c999; border-radius: 999px; color: var(--saffron-deep); background: #fff2dc; font-size: 11px; font-weight: 900; }

.hero { overflow: hidden; border: 1px solid #f0c990; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 2; padding: 21px 17px 18px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--saffron-deep); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow span { padding: 4px 7px; border-radius: 5px; color: #fff; background: var(--saffron); font-size: 9px; }
h1, h2 { margin: 0; color: var(--navy); letter-spacing: -.04em; }
h1 { max-width: 450px; font-size: clamp(34px, 9vw, 47px); line-height: .98; font-weight: 950; }
h1 em { color: var(--saffron-deep); font-style: normal; }
.hero-copy p { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; font-weight: 600; }

.download-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border: 1px solid var(--green-deep); border-radius: 13px; color: #fff; background: var(--green); box-shadow: 0 12px 25px rgba(8, 123, 85, .22), inset 0 1px rgba(255, 255, 255, .22); text-align: center; text-decoration: none; font-size: 17px; font-weight: 950; transition: transform .15s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.hero-cta { margin-top: 17px; }
.download-cta:hover { background: var(--green-deep); }
.download-cta:active { transform: translateY(1px) scale(.992); }
.download-cta:focus-visible, button:focus-visible { outline: 3px solid rgba(243, 139, 36, .38); outline-offset: 3px; }
.trust-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 11px; }
.trust-line span { color: var(--green-deep); text-align: center; font-size: 9px; font-weight: 850; }

.hero-art { position: relative; height: 208px; margin: 0 10px 10px; overflow: hidden; border-radius: 17px; background: var(--navy); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: .88; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 44, 61, .34), transparent 55%), linear-gradient(0deg, rgba(20, 44, 61, .38), transparent 46%); }
.hero-label { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 7px; color: #fff; background: rgba(20, 44, 61, .76); font-size: 9px; font-weight: 950; letter-spacing: .09em; }
.flag-mark { position: absolute; z-index: 3; top: 12px; right: 12px; width: 42px; overflow: hidden; border: 2px solid #fff; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,.25); }
.flag-mark i { display: block; height: 8px; }
.flag-mark i:nth-child(1) { background: var(--saffron); }
.flag-mark i:nth-child(2) { background: #fff; }
.flag-mark i:nth-child(3) { background: var(--green); }

.proof-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 11px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: 0 8px 24px rgba(62, 42, 19, .07); }
.proof-strip div { display: grid; gap: 2px; padding: 12px 6px; text-align: center; }
.proof-strip div + div { border-left: 1px solid var(--line); }
.proof-strip b { color: var(--saffron-deep); font-size: 13px; }
.proof-strip span { color: var(--muted); font-size: 9px; font-weight: 700; }

.previews, .steps { margin-top: 11px; padding: 15px 11px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 10px 28px rgba(62, 42, 19, .08); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 11px; }
.section-kicker { display: block; margin-bottom: 4px; color: var(--saffron-deep); font-size: 9px; font-weight: 950; letter-spacing: .11em; }
h2 { font-size: 22px; line-height: 1.05; font-weight: 950; }
#refresh { min-height: 40px; padding: 0 13px; border: 1px solid #c5ded4; border-radius: 10px; color: var(--green-deep); background: #edf8f3; font-size: 10px; font-weight: 900; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preview-card { min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fffdf9; text-align: left; transition: transform .15s ease, border-color .15s ease; }
.preview-card:hover { border-color: #dfae67; }
.preview-card:active { transform: scale(.985); }
.preview-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1.18; background: #f3e6d2; }
.preview-media img { width: 100%; height: 100%; object-fit: cover; }
.preview-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(20,44,61,.46)); }
.media-badge, .media-state { position: absolute; z-index: 2; border-radius: 6px; font-size: 8px; font-weight: 950; letter-spacing: .04em; }
.media-badge { left: 7px; top: 7px; padding: 4px 7px; color: #fff; background: var(--saffron); }
.media-state { right: 7px; bottom: 7px; padding: 4px 6px; color: #fff; background: rgba(4, 93, 64, .9); }
.download-arrow { position: absolute; z-index: 2; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 39px; height: 39px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: rgba(8, 123, 85, .82); box-shadow: 0 7px 18px rgba(0,0,0,.22); font-size: 19px; font-weight: 950; }
.preview-content { padding: 9px; }
.preview-content strong { display: block; min-height: 30px; color: var(--navy); font-size: 11px; line-height: 1.3; font-weight: 900; }
.preview-stats { display: flex; justify-content: space-between; gap: 5px; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 750; }
.preview-stats span:last-child { color: var(--green); }

.steps { padding: 16px 14px; }
.steps ol { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fffdf9; }
.steps li > b { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--saffron); font-size: 12px; }
.steps li:nth-child(2) > b { background: var(--navy); }
.steps li:nth-child(3) > b { background: var(--green); }
.steps li span { display: grid; gap: 1px; color: var(--muted); font-size: 10px; }
.steps li strong { color: var(--navy); font-size: 12px; }

.sticky-cta { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(9px + var(--safe-bottom)); width: min(calc(100% - 20px), 560px); margin: 0 auto; }
.sticky-cta .download-cta { min-height: 56px; box-shadow: 0 14px 32px rgba(4, 93, 64, .35); }
.toast { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(78px + var(--safe-bottom)); width: min(calc(100% - 24px), 536px); margin: 0 auto; padding: 11px 13px; border: 1px solid #efbd73; border-radius: 11px; color: var(--navy); background: #fff4df; box-shadow: 0 12px 30px rgba(62, 42, 19, .2); text-align: center; font-size: 12px; font-weight: 850; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 620px) {
  .page { padding-top: 20px; }
  .hero { display: grid; grid-template-columns: 1.12fr .88fr; align-items: stretch; }
  .hero-copy { padding: 26px 20px; }
  .hero-art { height: auto; min-height: 325px; margin: 10px 10px 10px 0; }
}
@media (max-width: 420px) {
  .hero-copy { padding-top: 18px; }
  h1 { font-size: 36px; }
  .hero-art { height: 190px; }
  .trust-line span { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
