/* COPE docs: the landing's tokens and components, laid out for reading. */

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-tag { font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); padding-left: 12px; border-left: 1px solid var(--line-control); line-height: 1.4; }
.docs .back { margin-left: auto; cursor: pointer; text-decoration: none; }
.docs .back:hover { background: var(--band); }

.docs-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-top: 56px; padding-bottom: 96px; }

/* contents */
.toc details { position: sticky; top: calc(var(--nav-h) + 32px); }
.toc summary { list-style: none; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc nav { margin-top: 16px; display: grid; border-left: 1px solid var(--line); }
.toc a { padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--ink-body); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.toc a:hover { color: var(--blue); }
.toc a.on { color: var(--blue); border-left-color: var(--blue); }

/* the document */
.doc { max-width: 720px; }
.doc section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc h1 { font-weight: 700; font-size: clamp(40px, 5vw, 60px); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.doc h2 { font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.doc h3 { margin-top: 32px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-transform: uppercase; }
.doc p, .doc ul { margin-top: 16px; color: var(--ink-body); }
.doc h2 + p { margin-top: 20px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--blue); text-underline-offset: 3px; }
.doc-lead { margin-top: 24px !important; font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--blue) !important; }
.doc ul { display: grid; gap: 10px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--blue); }
.note { font-size: 13px; color: var(--ink-muted) !important; }

.callout { margin-top: 28px; padding: 18px 22px; background: var(--band); border-left: 3px solid var(--blue); font-size: 15px; color: var(--ink-body); }

/* tables */
.t { margin-top: 20px; width: 100%; border-collapse: collapse; font-size: 15px; }
.t th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.t td { padding: 12px 16px 12px 0; color: var(--ink-body); vertical-align: top; }
.t tbody tr:nth-child(even) td { background: linear-gradient(var(--band), var(--band)); }
.t td:first-child { padding-left: 12px; font-weight: 600; color: var(--ink); }
.t th:first-child { padding-left: 12px; }

/* cashback tiers */
.tier-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tier-grid div { background: var(--band); padding: 14px 10px; display: grid; gap: 6px; text-align: center; }
.tier-grid span { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.tier-grid b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--blue); }
.tier-grid .max { background: var(--orange); }
.tier-grid .max span, .tier-grid .max b { color: var(--on); }

.example-row { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex-card { background: var(--orange); color: var(--on); padding: 22px 24px; }
.ex-card.blue { background: var(--blue); }
.doc .ex-card p { color: var(--on); margin: 0; }
.ex-card .ex-v { margin-top: 10px; font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -.03em; }
.ex-card .ex-s { margin-top: 8px; font-size: 14px; }

/* faq */
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.doc h2 + .qa { margin-top: 24px; }
.qa summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--blue); transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.qa p { margin: 0 0 20px !important; }

@media (max-width: 1023px) {
  .docs-shell { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .toc details { position: static; border: 1px solid var(--line); padding: 14px 16px; }
  .toc summary { cursor: pointer; display: flex; justify-content: space-between; }
  .toc summary::after { content: "+"; font-size: 18px; color: var(--blue); }
  .toc details[open] summary::after { content: "-"; }
  .tier-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .docs .back { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .doc section { padding-bottom: 40px; margin-bottom: 40px; }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .tier-grid .max { grid-column: span 3; }
  .example-row { grid-template-columns: 1fr; }
  .doc-lead { font-size: 18px; }
}
