/* Pocket Guides — calm, paper-warm aesthetic.
   Palette: ink #33303b, cream #f6f1ea, clay #c97b5e, sage #7a9075, mist #e7ddd0 */

:root {
  --ink: #33303b;
  --ink-soft: #5f5868;
  --cream: #f6f1ea;
  --paper: #fffdf9;
  --clay: #c97b5e;
  --clay-dark: #b3654a;
  --sage: #7a9075;
  --mist: #e7ddd0;
  --line: #e3d8c9;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(51,48,59,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Masthead */
.masthead {
  padding: 64px 0 48px;
  text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, #fbf6ee 0%, var(--cream) 70%);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.brand:after {
  content: "";
  display: block;
  width: 46px; height: 3px;
  background: var(--clay);
  border-radius: 2px;
  margin: 14px auto 0;
}
.tagline {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
  padding: 48px 0;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--bundle { grid-column: span 3; }
.card--bundle .card__cover { background: var(--mist); }

.card__cover {
  aspect-ratio: 5 / 6;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card--bundle .card__cover { aspect-ratio: 16 / 7; }
.card__cover img { width: 100%; height: 100%; object-fit: cover; }
.card--bundle .card__cover img { object-fit: contain; padding: 14px; }

.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 21px; line-height: 1.2; }
.card__desc { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.card__foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 22px; font-weight: 700; color: var(--clay-dark); }

.buy {
  font: inherit;
  font-size: 15px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease;
}
.buy:hover { background: var(--clay); }
.buy:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

.footer { padding: 30px 0 60px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.footer__logo { height: 28px; margin-top: 16px; display: inline-block; }
.footer__cards { display: block; max-width: 320px; width: 100%; height: auto; margin: 14px auto 0; opacity: 0.9; }
.footer__links { margin-top: 18px; font-size: 13px; }
.footer__links a {
  color: var(--clay);
  text-decoration: none;
  cursor: pointer;
}
.footer__links a:hover {
  text-decoration: underline;
}

/* SEO content block */
.seo {
  max-width: 760px;
  margin: 12px auto 56px;
  padding: 40px 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.seo__h1 {
  font-size: 27px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 18px;
}
.seo h3 {
  font-size: 19px;
  color: var(--clay-dark);
  margin: 26px 0 10px;
}
.seo p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.seo__list {
  list-style: none;
  margin: 4px 0 12px;
}
.seo__list li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.seo__list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}
.seo strong { color: var(--ink); }

@media (max-width: 560px) {
  .seo { padding: 28px 22px; }
  .seo__h1 { font-size: 23px; }
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto 56px;
  padding: 40px 38px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq__title {
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 22px;
  text-align: center;
}
.faq__item { padding: 16px 0; border-top: 1px solid var(--line); }
.faq__item:first-of-type { border-top: none; }
.faq__item h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.faq__item p { font-size: 15px; color: var(--ink-soft); }

@media (max-width: 560px) {
  .faq { padding: 28px 22px; }
}

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(51,48,59,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 50;
}
.modal[hidden] { display: none; }
.modal__panel {
  background: var(--paper);
  border-radius: 20px;
  width: 100%; max-width: 420px;
  padding: 32px 30px;
  position: relative;
  box-shadow: var(--shadow);
}
.modal--lg .modal__panel {
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal__scroll {
  overflow-y: auto;
  flex: 1;
  padding-right: 12px;
}
.modal__scroll::-webkit-scrollbar {
  width: 8px;
}
.modal__scroll::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 10px;
}
.modal__scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}
.modal__scroll::-webkit-scrollbar-thumb:hover {
  background: var(--mist);
}
.modal__content {
  font-size: 15px;
  line-height: 1.65;
}
.modal__content p {
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.modal__content p:first-child {
  color: var(--ink);
  font-weight: 600;
}
.modal__content h3 {
  font-size: 16px;
  color: var(--ink);
  margin-top: 20px;
  margin-bottom: 8px;
}
.modal__content a {
  color: var(--clay);
  text-decoration: none;
}
.modal__content a:hover {
  text-decoration: underline;
}
.modal__list {
  list-style: none;
  margin: 10px 0 14px;
  padding-left: 0;
}
.modal__list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.modal__list li:before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--clay);
}

/* Contact Form */
.contact-form { margin-top: 20px; }
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(201, 123, 94, 0.1);
}
.form-group textarea {
  font-family: inherit;
  resize: vertical;
}
.honeypot {
  display: none;
  position: absolute;
  left: -9999px;
}
.contact-submit {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: var(--clay);
  color: var(--paper);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}
.contact-submit:hover {
  background: var(--clay-dark);
}
.contact-submit:active {
  transform: scale(0.98);
}
.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.contact-status {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}
.contact-status.success {
  color: var(--sage);
}
.contact-status.error {
  color: #c97b5e;
}
.modal__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 28px; line-height: 1;
  color: var(--ink-soft); cursor: pointer;
}
.modal__title { font-size: 24px; }
.modal__item { margin-top: 6px; color: var(--ink-soft); }

.checkout-email { margin-top: 18px; margin-bottom: 18px; }
.checkout-email label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.checkout-email input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; }
.checkout-email input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(201, 123, 94, 0.1); }
.checkout-email small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); }

.methods { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.methods[hidden] { display: none; }
.method {
  font: inherit; font-size: 16px;
  padding: 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--cream);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.method:hover { border-color: var(--clay); background: #fbf3ec; }

.method--crypto {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: default;
}
.method--crypto:hover { border-color: var(--clay); background: #fbf3ec; }
.method__label { font-size: 16px; white-space: nowrap; }
.coin-select {
  flex: 1; font: inherit; font-size: 15px;
  padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper);
  cursor: pointer;
}
.coin-select:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.method__go {
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 7px 16px; border-radius: 9px;
  border: none; background: var(--clay); color: var(--paper);
  cursor: pointer; white-space: nowrap;
  transition: opacity .15s;
}
.method__go:hover { opacity: .85; }

#paypal-area, #crypto-area, #done-area { margin-top: 22px; }

.crypto-instr { font-size: 14px; color: var(--ink-soft); }
.crypto-amount { font-size: 22px; font-weight: 700; margin: 14px 0 8px; color: var(--clay-dark); }
.crypto-addr {
  display: block; word-break: break-all;
  background: var(--cream); border: 1px dashed var(--line);
  padding: 12px; border-radius: 10px; font-size: 13px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.crypto-wait { margin-top: 14px; color: var(--sage); font-style: italic; }

.done-msg {
  font-size: 18px; font-weight: 600; color: var(--sage);
  padding: 14px 16px; background: rgba(122, 144, 117, 0.08);
  border-left: 4px solid var(--sage);
  border-radius: 6px;
  margin-bottom: 8px;
}
.done-msg::before { content: "✓ "; font-weight: 700; }

.download-btn {
  display: block; text-align: center; text-decoration: none;
  margin-top: 16px; padding: 14px;
  background: var(--clay); color: var(--paper);
  border-radius: 12px; font-size: 16px; font-weight: 600;
  transition: background .15s, transform .15s;
}
.download-btn:hover { background: var(--clay-dark); transform: translateY(-2px); }
.download-btn:active { transform: translateY(0); }

.done-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 560px) {
  .card--bundle { grid-column: span 1; }
  .card--bundle .card__cover { aspect-ratio: 5 / 6; }
  .card--bundle .card__cover img { object-fit: cover; padding: 0; }
  .brand { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .buy, .method, .download-btn { transition: none; }
}
