/* CardToWallet site. No web fonts, no scripts, no third-party requests. */

:root {
  --blue: #2f6fed;
  --blue-deep: #163e9e;
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --line: #e5e7eb;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(17 24 39 / 6%), 0 12px 32px -12px rgb(17 24 39 / 22%);
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #6b9bff;
    --ink: #f3f4f6;
    --ink-2: #c3c8d2;
    --ink-3: #9aa1ae;
    --bg: #0d1117;
    --bg-2: #151b25;
    --line: #262e3b;
    --card: #1a2130;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 70%);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, rgb(47 111 237 / 14%), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--blue); background: rgb(47 111 237 / 10%); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); text-decoration: none; line-height: 1.25; }
.store small { font-size: 0.72rem; opacity: 0.75; }
.store strong { font-size: 1.05rem; }
.store[aria-disabled="true"] { opacity: 0.9; cursor: default; }
.note { font-size: 0.9rem; color: var(--ink-3); margin-top: 14px; }

/* Hero art: a business card and the wallet pass it becomes */
.art { position: relative; height: 420px; }
.biz {
  position: absolute; left: 0; top: 40px; width: 82%; aspect-ratio: 1.75;
  border-radius: 14px; padding: 7% 8%; color: #fff;
  background: linear-gradient(135deg, #18233f, #2b3a7a);
  box-shadow: var(--shadow); transform: rotate(-6deg);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-content: space-between;
}
.biz::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; border-radius: 14px 0 0 14px; background: #2dd4bf; }
.biz .co { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; color: #5eead4; grid-column: 1 / -1; }
.biz .who { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; }
.biz .role { font-size: 0.85rem; opacity: 0.8; }
.biz .lines { font-size: clamp(0.6rem, 1.4vw, 0.72rem); overflow-wrap: anywhere; opacity: 0.85; line-height: 1.5; margin-top: 10px; }
.qr { width: 74px; height: 74px; background: #fff; border-radius: 6px; padding: 6px; align-self: end; }
.qr svg { width: 100%; height: 100%; display: block; }
.pass {
  position: absolute; right: 0; bottom: 0; width: 52%; border-radius: 18px; overflow: hidden;
  background: #1f2b4d; color: #fff; box-shadow: var(--shadow); transform: rotate(4deg);
}
.pass .top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; font-size: 0.8rem; }
.pass .top img { width: 22px; height: 22px; }
.pass .strip { margin: 8px 16px; aspect-ratio: 1.75; border-radius: 10px; background: linear-gradient(135deg, #18233f, #2b3a7a); position: relative; }
.pass .strip::after { content: "Taylor Brooks"; position: absolute; left: 10%; top: 38%; font-weight: 700; font-size: 0.95rem; }
.pass .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 6px 16px 10px; font-size: 0.72rem; }
.pass .fields b { display: block; font-size: 0.82rem; }
.pass .fields span { opacity: 0.65; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.6rem; }
.pass .code { background: #fff; margin: 4px auto 16px; width: 96px; height: 96px; border-radius: 8px; padding: 8px; }

/* Sections */
section { padding: 72px 0; }
.alt { background: var(--bg-2); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgb(47 111 237 / 12%); color: var(--blue); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--ink-2); margin: 0; }

.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; }
.price .tile h3 { font-size: 1.3rem; }
.price ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--ink-2); }
.price .featured { border: 2px solid var(--blue); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* Long-form pages (privacy, support) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc .meta { color: var(--ink-3); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1em 0 1.5em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; background: var(--bg-2); }
.callout { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-3); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .art { height: 360px; max-width: 460px; width: 100%; margin: 8px auto 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: 0.9rem; }
  .nav .hide-sm { display: none; }
  .art { height: 330px; }
  .biz { top: 64px; width: 84%; }
  .biz .who { font-size: 1.1rem; }
  .pass { width: 48%; }
  .pass .fields { display: none; }
  .pass .code { width: 76px; height: 76px; padding: 6px; }
  .qr { width: 54px; height: 54px; }
  section { padding: 56px 0; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .doc td:first-child { font-weight: 600; }
  .doc td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-3); }
}
