@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap");

/* layout concept: a stamp torn from a sheet — perforated edges on the three
   feature cards, a postmark seal in the hero, mono "denomination" labels */
:root {
  --bg: #f3f3f3;
  --component: #ffffff;
  --ink: #18181b;
  --text: #5d5d5d;
  --accent: #3b5bb3;
  --accent-deep: #2a4280;
  --border: #e1e1e1;
  --dark: #121212;
  --dark-component: #1f1f1f;
  --on-dark: #f0f0f0;
  --on-dark-muted: #9a9a9a;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
main { flex: 1; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.mono { font-family: "IBM Plex Mono", "Courier New", monospace; }

/* Header */
header { background: var(--component); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; background: var(--ink); border-radius: 8px; flex-shrink: 0; }
.brand .mark img { width: 16px; height: 16px; display: block; }
.brand .name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.7rem; letter-spacing: -0.01em; color: var(--ink); }
nav { display: flex; gap: 24px; align-items: center; }
nav a { color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; }
nav a:hover:not(.cta) { opacity: .65; }
nav a.cta { color: var(--ink); background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.05); padding: 9px 18px; border-radius: 7px; font-weight: 600; }
nav a.cta:hover { background: var(--ink); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-title { display: flex; align-items: center; gap: 18px; }
.hero-text { display: flex; flex-direction: column; }
.mark-lg { height: 84px; width: 84px; border-radius: 18px; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mark-lg img { width: 42px; height: 42px; display: block; }
h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.08; letter-spacing: -0.01em;
  color: var(--ink); max-width: 18ch; text-wrap: balance;
}
.lead { margin-top: 6px; font-size: .96rem; color: var(--text); max-width: 42ch; text-align: left; }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .96rem; transition: background .15s, border-color .15s; }
.btn-primary { background: #fff; color: var(--ink); border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.btn-primary:hover { background: var(--ink); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.store-badges { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; font-family: "IBM Plex Mono", monospace; gap: 8px; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--border); background: var(--component); color: var(--text); font-size: .78rem; }

/* Sections */
section { padding: 64px 0; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin-top: 8px; text-wrap: balance; }

/* Legal/support page layout */
.doc-page { padding: 48px 0 96px; }
.doc-page .wrap { max-width: 740px; }
.doc-body { font-size: 1rem; color: var(--ink); }
.doc-body h1 { font-size: 1.7rem; margin-bottom: 4px; }
.doc-body h2 { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; margin-top: 36px; margin-bottom: 12px; padding-top: 22px; border-top: 1px solid var(--border); }
.doc-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 24px; }
.doc-body p { margin-top: 12px; color: var(--text); }
.doc-body ul, .doc-body ol { margin-top: 12px; padding-left: 1.4em; color: var(--text); }
.doc-body li { margin-top: 6px; }
.doc-body li > ul, .doc-body li > ol { margin-top: 6px; }
.doc-body strong { color: var(--ink); font-weight: 650; }
.doc-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-body table { margin-top: 16px; width: 100%; border-collapse: collapse; font-size: .9rem; }
.doc-body th, .doc-body td { text-align: left; padding: 9px 11px; border: 1px solid var(--border); vertical-align: top; }
.doc-body th { background: var(--bg); font-weight: 650; }
.doc-page nav.doc-switch { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.doc-page nav.doc-switch a { font-family: "IBM Plex Mono", monospace; font-size: .76rem; padding: 7px 13px; border-radius: 20px; border: 1px solid var(--border); text-decoration: none; color: var(--text); white-space: nowrap; }
.doc-page nav.doc-switch a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.draft-banner { margin-bottom: 24px; padding: 11px 15px; border-radius: 8px; background: #fff7e6; border: 1px solid #e6c84d; color: #6b5b11; font-size: .85rem; }

/* Support page */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.support-card { background: var(--component); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.support-card h3 { font-size: 1rem; font-weight: 650; }
.support-card p { margin-top: 6px; color: var(--text); font-size: .88rem; }
.support-card a.email { color: var(--accent); font-weight: 600; text-decoration: none; }
.support-card a.email:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 6px; max-width: 34rem; margin-top: 12px; }
.contact-form label { font-size: .82rem; font-weight: 600; color: var(--text); margin-top: 12px; }
.contact-form select, .contact-form input, .contact-form textarea {
  font-family: inherit; font-size: .96rem; color: var(--ink);
  padding: 10px 12px; border-radius: 7px; border: 1px solid var(--border);
  background: #fff;
}
.contact-form select:focus-visible, .contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { align-self: flex-start; margin-top: 16px; background: #fff; color: var(--ink); border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.05); border-radius: 7px; padding: 10px 20px; font-weight: 600; font-size: .92rem; }
.contact-form button:hover { background: var(--ink); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.form-status { margin-top: 10px; font-size: .88rem; color: var(--accent); min-height: 1.4em; }
.mock-note { margin-top: 8px; font-size: .78rem; color: var(--text); opacity: .75; }

/* Footer */
footer { background: var(--dark); color: var(--on-dark); }
footer .wrap { padding: 48px 28px 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand .brand .name { color: var(--on-dark); }
.footer-brand p { margin-top: 12px; font-size: .85rem; color: var(--on-dark-muted); }
.footer-brand p a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.footer-brand p a:hover { opacity: .7; }
.footer-links { display: flex; gap: 44px; flex-wrap: wrap; }
.footer-col h4 { font-family: "IBM Plex Mono", monospace; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--on-dark-muted); margin-bottom: 10px; }
.footer-col a { display: block; color: var(--on-dark); text-decoration: none; font-size: .88rem; margin-top: 7px; opacity: .9; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(240,240,240,.14); font-size: .8rem; color: var(--on-dark-muted); }

@media (max-width: 760px) {
  .stamps { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; }
  nav { gap: 12px; }
  nav a:not(.cta) { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .brand .name { font-size: 1.2rem; }
}

/* The hidden attribute must win over a class that sets display (.store-badges is a flex box). */
[hidden] { display: none !important; }
