/* Saveitok book store (earn.saveitok.com): quiet dark layout with one gold accent */
:root {
  --bg: #0c0c0f; --surface: #15151a; --line: rgba(255, 255, 255, .1);
  --text: #f3f1ec; --muted: #a8a49c; --gold: #f5b81f; --gold-2: #ffd56a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* height: auto keeps every image in its real proportions when CSS sets its width */
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-2); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.gold { color: var(--gold); }
h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--gold); color: #1a1206; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 20; background: rgba(12, 12, 15, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo-sub { font-weight: 500; color: var(--muted); font-size: 14px; margin-left: 4px; }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.lang:hover { color: var(--text); }
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 100px; font-size: 13px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--gold); color: #1a1206; border: 1px solid transparent; transition: background .15s; }
.btn:hover { background: var(--gold-2); }
.btn-lg { font-size: 17px; padding: 14px 28px; }
.btn-sm { font-size: 14px; padding: 7px 14px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-off { background: var(--surface); color: var(--muted); cursor: default; }

/* Store front */
.intro { padding: 56px 16px 32px; }
.intro p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.shelf { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card { display: flex; gap: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: rgba(245, 184, 31, .5); }
.card img { width: 120px; flex: none; align-self: flex-start; border-radius: 6px; }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.card h2 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-foot .more { color: var(--gold-2); font-size: 14px; font-weight: 600; }

/* Book page */
.hero { display: grid; gap: 28px; padding-top: 32px; justify-items: center; text-align: center; }
.cover { width: 200px; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.hero-text { display: grid; justify-items: center; gap: 16px; }
.lead { color: var(--muted); font-size: 18px; max-width: 34em; }
.ticks { list-style: none; display: grid; gap: 6px; text-align: left; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.buybox { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.micro { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.block { margin-top: 72px; }
.sub { color: var(--muted); margin: -8px 0 18px; font-size: 15px; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.strip figure { flex: 0 0 150px; scroll-snap-align: start; }
.strip img { border-radius: 6px; background: #fff; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.proofs { display: grid; gap: 16px; }
.proofs img { border-radius: 10px; border: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 20px; color: var(--gold); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 16px; color: var(--muted); }

/* Phone buy bar, shown once the main buy button scrolls away */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(12, 12, 15, .95); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; }
.sticky.show { transform: none; }
.sticky-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Terms and privacy */
.doc { max-width: 680px; padding-top: 32px; }
.doc h1 { font-size: 30px; margin: 16px 0 4px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: #d6d2ca; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc .muted { color: var(--muted); font-size: 14px; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 300px 1fr; gap: 56px; align-items: center; justify-items: start; text-align: left; padding-top: 64px; }
  .cover { width: 300px; }
  .hero-text { justify-items: start; }
  .buybox { justify-content: flex-start; }
  .strip { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; }
  .proofs { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .sticky { display: none; }
  .foot { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .sticky, .btn, .card { transition: none; } }
