/* =========================================================
   Thistle & Perch — page layouts
   Built only from the tokens and components in style.css.
   ========================================================= */

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  margin-bottom: 32px;
}
.sec-head p { color: var(--text-muted); max-width: 52ch; }
.note { margin-top: 16px; font-size: 13px; color: var(--text-40); }
.note a { color: var(--text-40); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--neutral-90); font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before,
.timeline li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-40) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23020d07' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Header ---------- */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--text); background: var(--overlay-04); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero-x { padding: 24px 0 0; }
.hero-x .banner {
  min-height: 640px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.hero-x .banner::after {
  background:
    linear-gradient(90deg, rgba(2, 13, 7, 0.95) 0%, rgba(2, 13, 7, 0.78) 42%, rgba(2, 13, 7, 0.1) 100%),
    var(--grad-glow);
}
.hero-x h1 { max-width: 12ch; }
.hero-x .lead { font-size: 19px; color: var(--neutral-90); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-ghost.btn-lg { font-size: 18px; font-weight: 500; backdrop-filter: blur(8px); }
.hero-stickers { position: absolute; right: 5%; bottom: 40px; display: flex; align-items: flex-end; }
.hero-stickers img { width: 150px; height: auto; margin-left: -18px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5)); }
.hero-stickers img:nth-child(1) { transform: rotate(-9deg); }
.hero-stickers img:nth-child(2) { transform: rotate(4deg) translateY(-34px); width: 170px; }
.hero-stickers img:nth-child(3) { transform: rotate(10deg); }

/* ---------- How it works ---------- */
.step .step-ico { position: absolute; top: 28px; right: 28px; width: 40px; height: 40px; color: var(--neutral-50); }

/* ---------- Bird bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; }
.tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 13, 7, 0) 35%, rgba(2, 13, 7, 0.9) 100%);
}
.tile .banner-bg { transition: transform .4s ease; }
.tile:hover .banner-bg { transform: scale(1.04); }
.tile h3 { font-size: 22px; }
.tile p { color: var(--neutral-90); font-size: 15px; max-width: 36ch; }
.tile-big { grid-column: span 2; grid-row: span 2; padding: 32px; }
.tile-big h3 { font-size: 32px; }
.tile-wide { grid-column: span 2; }

/* ---------- Gift ---------- */
.gift { display: grid; grid-template-columns: 400px 1fr; gap: 16px; align-items: stretch; }
.gift .tier h3 { font-size: 26px; }
.gift .tier .btn { margin-top: auto; }
.gift .tier ul { margin-bottom: 20px; }
.sticker-board {
  list-style: none;
  margin: 0;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-content: center;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: radial-gradient(70% 90% at 50% 40%, rgba(65, 249, 153, 0.14) 0%, rgba(46, 234, 255, 0.05) 45%, var(--neutral-10) 75%);
}
.sticker-board li { display: grid; place-items: center; }
.sticker-board img { width: 100%; max-width: 170px; height: auto; transition: transform .2s ease; }
.sticker-board li:nth-child(odd) img { transform: rotate(-3deg); }
.sticker-board li:nth-child(even) img { transform: rotate(3deg); }
.sticker-board li img:hover { transform: rotate(0) scale(1.08); }

/* ---------- Specs ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec-tile {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-tile svg { width: 28px; height: 28px; color: var(--primary-50); margin-bottom: 12px; }
.spec-tile .k { color: var(--text-muted); font-size: 14px; }
.spec-tile .v { font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.15; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roadmap li {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.roadmap li.is-now {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-cta) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 40px rgba(65, 249, 153, 0.12);
}
.roadmap li.is-now .badge { background: var(--grad-cta); color: var(--neutral-0); }
.roadmap p { color: var(--text-muted); }

/* ---------- FAQ split ---------- */
.faq-split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq-aside { position: sticky; top: 96px; }
.faq-aside p { color: var(--text-muted); margin: 12px 0 24px; max-width: 36ch; }
.faq-split .faq { max-width: none; margin: 0; }

/* ---------- CTA ---------- */
.cta-banner .banner-bg { object-position: center 40%; }
.cta-banner .hero-actions { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer.footer-x { text-align: left; padding: 96px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-x .logo { justify-content: flex-start; margin-bottom: 16px; }
.footer-x .logo-mark { width: 40px; height: 40px; }
.footer-x .logo-word { font-size: 18px; }
.footer-about p { color: var(--text-muted); font-size: 14px; max-width: 46ch; }
.footer-about p + p { margin-top: 10px; }
.footer-col h4 { margin: 0 0 14px; font-style: italic; font-weight: 500; font-size: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 13px; color: var(--text-40); }
.footer-bottom a { color: var(--text-40); }

/* ---------- Thank-you ---------- */
.thanks-x { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 56px 0 0; align-items: start; }
.check-badge {
  width: 72px; height: 72px; margin-bottom: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-cta);
  box-shadow: 0 0 60px rgba(65, 249, 153, 0.35);
}
.thanks-x h1 { text-transform: none; font-weight: 500; margin-bottom: 14px; }
.thanks-x .intro { color: var(--text-muted); max-width: 50ch; }
.thanks-x .intro a { color: var(--primary-80); }
.thanks-x h2 { font-size: 24px; margin: 40px 0 16px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.timeline li::before { margin-top: 3px; }
.timeline strong { display: block; font-style: italic; font-weight: 500; }
.timeline span { color: var(--text-muted); font-size: 15px; }
.gift-panel .sticker-board { grid-template-columns: repeat(3, 1fr); padding: 12px; margin: 4px 0 8px; }
.gift-panel .btn { width: 100%; }
.gift-panel p { color: var(--neutral-90); font-size: 15px; }
.gift-panel p a { color: var(--primary-80); }

/* ---------- Account ---------- */
.acct-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 56px 24px 64px; flex: 1; }
.acct-wrap h1 { font-size: clamp(34px, 6vw, 48px); text-transform: none; }
.acct-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 32px; align-items: start; }
.acct-grid .account-card { margin-top: 0; }
.acct-grid .tier { padding: 32px; }
.acct-grid .tier h2 { font-size: 24px; }
.acct-grid .tier p { color: var(--text-muted); }
.acct-grid .sticker-board { grid-template-columns: repeat(3, 1fr); padding: 12px; }
.acct-grid .tier .btn { min-height: 44px; padding: 12px 22px; }
.acct-grid .tier .btn:disabled { opacity: .7; cursor: not-allowed; }
.acct-next { margin-top: 16px; }

/* ---------- 404 ---------- */
.nf { overflow: hidden; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding: 72px 0 24px; }
.nf-art { position: relative; display: grid; place-items: center; }
.nf-art::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(65, 249, 153, 0.22) 0%, rgba(46, 234, 255, 0.08) 45%, rgba(12, 19, 15, 0) 72%);
}
.nf-art img { position: relative; width: min(100%, 380px); height: auto; transform: rotate(-6deg); }
.nf .code { display: block; font-size: clamp(96px, 16vw, 180px); line-height: 0.9; font-weight: 700; font-style: italic; letter-spacing: -0.04em; margin-bottom: 8px; }
.nf h1 { text-transform: none; font-weight: 500; font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 12px; }
.nf p { color: var(--text-muted); max-width: 46ch; }
.nf-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.nf-links a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.nf-links a:hover { border-color: var(--primary-50); background: var(--surface-2); }
.nf-links strong { font-style: italic; font-weight: 500; }
.nf-links span { color: var(--text-muted); font-size: 14px; }
.nf .path {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--overlay-04);
  color: var(--text-40);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Legal pages ---------- */
.doc-hero { padding: 56px 0 32px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.doc-hero h1 { text-transform: none; font-weight: 500; font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; }
.doc-hero p { color: var(--text-muted); max-width: 60ch; }
.doc-hero .updated { color: var(--text-40); font-size: 14px; margin-top: 8px; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.doc-layout > * { min-width: 0; }
.doc-toc { position: sticky; top: 88px; }
.doc-toc .kicker { color: var(--text-40); font-size: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-toc a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-muted); text-decoration: none; font-size: 14px; }
.doc-toc a:hover { color: var(--text); background: var(--overlay-04); }
.doc-layout .doc { max-width: 760px; margin: 0; padding: 0 0 24px; }
.doc-layout .doc h2:first-child { margin-top: 0; }
.doc h2 { scroll-margin-top: 88px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .hero-stickers img { width: 120px; }
  .hero-stickers img:nth-child(2) { width: 136px; }
  .gift { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-x .banner { padding: 32px 24px; min-height: 0; }
  .hero-x .banner::after { background: linear-gradient(180deg, rgba(2, 13, 7, 0.9) 0%, rgba(2, 13, 7, 0.78) 60%, rgba(2, 13, 7, 0.5) 100%), var(--grad-glow); }
  .hero-stickers { position: static; justify-content: center; margin-top: 12px; }
  .hero-stickers img { width: 96px; }
  .hero-stickers img:nth-child(2) { width: 108px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .sticker-board { grid-template-columns: repeat(3, 1fr); padding: 16px; }
  .roadmap { grid-template-columns: 1fr; }
  .faq-split { grid-template-columns: 1fr; gap: 24px; }
  .faq-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: span 2; }
  .thanks-x { grid-template-columns: 1fr; padding-top: 32px; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-wrap { padding: 36px 20px; }
  .nf { grid-template-columns: 1fr; gap: 16px; padding-top: 40px; text-align: center; }
  .nf-art img { width: 200px; }
  .nf p { margin: 0 auto; }
  .nf-links { grid-template-columns: 1fr; text-align: left; }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-toc { position: static; }
  .doc-toc ol { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .doc-toc ol::-webkit-scrollbar { display: none; }
  .doc-toc a { white-space: nowrap; background: var(--overlay-04); border-radius: var(--radius-pill); }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .tile-big, .tile-wide { grid-column: auto; grid-row: auto; }
  .tile-big { padding: 24px; }
  .tile-big h3 { font-size: 24px; }
  .hide-sm { display: none; }
  .site-header .logo-word { font-size: 13px; }
  .spec-tile { padding: 18px; }
  .spec-tile .v { font-size: 18px; }
  .roadmap li, .acct-grid .tier { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
  .hero-actions .btn-lg { width: 100%; }
}

/* sticker board inside a .tier card: drop the tier list bullets */
.tier .sticker-board { gap: 8px; margin: 8px 0; }
.tier .sticker-board li { display: grid; place-items: center; }
.tier .sticker-board li::before { content: none; display: none; }
