/* mytreasuremap.fun pricing page. Loads after home.css and reuses its tokens,
   top bar, buttons, closer and footer. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero ---------- */
.p-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-top: 16px; }
.p-hero .inky-says { text-align: left; }
.p-hero .lede { max-width: 54ch; }
.hl { background: var(--sun); padding: 0 .15em; border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); display: inline-block; transform: rotate(-2deg); }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; align-items: start; margin-top: -24px; }
.tier {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 26px 22px; box-shadow: 6px 6px 0 var(--ink);
}
.tier h2 { font-size: 2rem; }
.tier.featured { background: #FFE7A3; padding-top: 32px; }
.tier.premium { background: #E4DBF7; padding-top: 32px; }
.tier.premium .ribbon { background: var(--sea); }
.ribbon {
  position: absolute; top: -18px; left: 22px; background: var(--tomato); color: #fff; border: 3px solid var(--ink);
  border-radius: 999px; padding: 4px 14px; font-family: var(--display); font-weight: 800; font-size: 1rem; transform: rotate(-3deg); white-space: nowrap;
}
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: var(--display); font-weight: 900; font-size: 3.2rem; line-height: 1; }
.price span { color: var(--ink-soft); font-weight: 700; }
.per { color: var(--ink-soft); }
.ticks { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.tier .btn { align-self: stretch; }
.btn.soon { cursor: default; color: var(--ink-soft); border-style: dashed; }

/* ---------- packs ---------- */
.packs, .compare, .faq { display: flex; flex-direction: column; gap: 20px; }
.packs h2, .compare h2, .faq h2 { text-align: center; }
.sub { text-align: center; color: var(--ink-soft); max-width: 60ch; margin: -8px auto 0; }
.sub b { color: var(--ink); }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--ink); border-radius: 22px; padding: 22px; }
.pack .emo { font-size: 2.4rem; line-height: 1; }
.pack-price { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; }
.pack-price small { font-size: 1rem; color: var(--ink-soft); }
.tag { align-self: flex-start; margin-top: auto; background: var(--white); border: 2px dashed var(--ink-soft); border-radius: 999px; padding: 2px 12px; font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
a.tag { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
a.tag { border-style: solid; border-color: var(--ink); color: var(--ink); text-decoration: none; }
a.tag:hover { background: var(--ink); color: var(--white); }
.c-party { background: #F9D6DE; }
.pack.best { border-width: 3px; box-shadow: 5px 5px 0 var(--ink); }
.pack .tier.premium { background: #E4DBF7; padding-top: 32px; }
.tier.premium .ribbon { background: var(--sea); }
.ribbon { left: auto; right: 18px; }
.c-season { background: #FFE0C2; }
.c-try { background: #CDEBD9; }

/* ---------- comparison ---------- */
.money { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.coin { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 5px 5px 0 var(--ink); padding: 12px; }
.coin b { font-family: var(--display); font-weight: 900; line-height: 1; }
.coin span { font-size: 1rem; line-height: 1.2; max-width: 12ch; }
.big-coin { width: 200px; height: 200px; background: #DCE3EA; }
.big-coin b { font-size: 3rem; }
.small-coin { width: 150px; height: 150px; background: var(--sun); }
.small-coin b { font-size: 2.4rem; }
.vs { font-family: var(--hand); font-size: 1.8rem; color: var(--tomato); }

.table-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: 22px; background: var(--white); box-shadow: 6px 6px 0 var(--ink); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap thead th { font-family: var(--display); font-weight: 800; font-size: 1.1rem; background: var(--tint); }
.table-wrap tbody th { font-weight: 700; width: 24%; }
.table-wrap td.us { background: #FFF8E3; }
.table-wrap thead th.us { background: var(--sun); }
.table-wrap td.yes { font-weight: 700; }
.honest { background: var(--paper); border: 2px dashed #B9A36A; border-radius: 18px; padding: 16px 20px; color: var(--ink); font-size: 1rem; }
.compare .sub b { white-space: nowrap; }

/* ---------- faq ---------- */
.faq { max-width: 760px; width: 100%; margin: 0 auto; }
.faq details { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.15rem; min-height: var(--tap); display: flex; align-items: center; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.6rem; color: var(--tomato); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; }

.sources { text-align: center; max-width: 70ch; margin: -40px auto 0; font-size: 1rem; }
.sources a { color: var(--ink-soft); display: inline-block; padding: 10px 2px; }

@media (max-width: 860px) {
  .tiers, .pack-grid { grid-template-columns: 1fr; }
  .tiers { gap: 32px; margin-top: 0; }
  /* Stack the comparison as cards so nothing scrolls sideways on a phone. */
  .table-wrap { overflow: visible; border: none; background: none; box-shadow: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: auto; }
  .table-wrap thead { display: none; }
  .table-wrap tbody tr { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; margin-bottom: 14px; overflow: hidden; }
  .table-wrap tbody th { width: auto; background: var(--tint); font-family: var(--display); font-weight: 800; }
  .table-wrap tbody td { border-bottom: 1px solid var(--line); }
  .table-wrap tbody td::before { display: block; font-size: .9rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
  .table-wrap tbody td:nth-of-type(1)::before { content: "My Treasure Map"; }
  .table-wrap tbody td:nth-of-type(2)::before { content: "ChatGPT Plus"; }
  .table-wrap tbody td:nth-of-type(3)::before { content: "ChatGPT Go"; }
  .table-wrap tbody tr td:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .big-coin { width: 170px; height: 170px; }
  .big-coin b { font-size: 2.4rem; }
  .sources { margin-top: -24px; }
}
.tax-note { margin-top: -48px; text-align: center; }
