@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

html { background: #1e1e1e; }

/*
  punch2pen.com components. Depends on design/tokens/tokens.css.
  The hero can embed the real plugin (design/components/plugin.css) and
  tier cards use the Pad surface (design/components/pad.css).
  Class prefix: s-
*/
.s-page {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-lg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.s-page * { box-sizing: border-box; }
.s-page a { color: var(--accent); text-decoration: none; }
.s-page a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
/* Keyboard focus: a white ring, so it never depends on the browser default and
   never reads as a red link. Inputs draw their own focus border instead. */
.s-page :is(a, button, summary, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.s-wrap { width: min(var(--site-max), calc(100% - 48px)); margin: 0 auto; }

/* Nav */
.s-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 64px;
  padding: 0 32px;
  background: rgba(34, 36, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.s-nav .wm { height: 18px; width: auto; display: block; }
.s-nav .links { display: flex; gap: 22px; margin-left: auto; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.s-nav .links a { color: var(--ink-2); }
.s-nav .links a[aria-current="page"], .s-nav .links a:hover { color: var(--ink); text-decoration: none; }
.s-nav .menu { display: none; }
.s-nav.is-mobile { height: 56px; padding: 0 16px; }
.s-nav.is-mobile .links, .s-nav.is-mobile .s-btn { display: none; }
.s-nav.is-mobile .menu {
  display: inline-grid; place-items: center;
  margin-left: auto;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

/* Type */
.s-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.s-h1, .s-h2, .s-h3 {
  margin: 0;
  font-family: var(--display);
  font-stretch: var(--display-stretch);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.s-h1 { font-size: var(--fs-5xl); line-height: 0.88; }
.s-h2 { font-size: var(--fs-3xl); line-height: 0.95; }
.s-h3 { font-size: var(--fs-2xl); line-height: 1; letter-spacing: 0; }
.s-h1 em, .s-h2 em { font-style: normal; color: var(--accent-strong); }
.s-lede { margin: 0; font-size: var(--fs-xl); line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.s-body { margin: 0; color: var(--ink-2); max-width: 38em; }
.s-fine { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }
.s-mono { font-family: var(--mono); font-size: 0.86em; color: var(--ink); }

/* Buttons */
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.s-page a.s-btn { color: var(--ink); }
.s-btn:hover { border-color: var(--accent); text-decoration: none; }
.s-btn.primary, .s-page a.s-btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.s-btn.primary:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
.s-btn.ghost { background: transparent; }
.s-btn.sm { height: 36px; padding: 0 14px; font-size: 11.5px; }
.s-btn[disabled], .s-btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.s-btn svg { width: 16px; height: 16px; }

/* Sections */
.s-section { padding: var(--space-12) 0; border-top: 1px solid var(--line); }
.s-section .head { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--space-10); max-width: 760px; }

/* Cards */
.s-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.s-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.s-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-pane);
  border: 1px solid var(--line);
}
.s-card p { margin: 0; color: var(--ink-2); font-size: var(--fs-md); line-height: 1.55; }
.s-card .icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); }
.s-card .icon svg { width: 20px; height: 20px; }

/* Tier cards on the Pad (index cards) */
.s-tier.pad { display: flex; flex-direction: column; }
.s-tier .pad-head { padding-left: 24px; padding-top: 22px; }
.s-tier .pad-title { font-size: 30px; }
.s-tier .pad-line { padding-left: 24px; font-size: 15px; white-space: normal; height: auto; min-height: var(--rule-gap); line-height: 1.2; padding-top: 8px; }
.s-tier .price { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pad-ink-2); }
.s-tier .tick { color: var(--pad-accent); font-weight: 800; margin-right: 8px; }

/* Tier table (pricing) */
.s-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.s-table th, .s-table td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.s-table th { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.s-table td { color: var(--ink-2); }
.s-table td:first-child { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); width: 18%; }

/* Compatibility chips */
.s-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--ink-3);
  white-space: nowrap;
}
.s-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-chip.ship { color: var(--accent); border-color: var(--accent-line); }
.s-chip.host { color: var(--ink); border-color: var(--ink-3); }
.s-chip.no { color: var(--ink-3); }

/* Forms */
.s-field { display: flex; flex-direction: column; gap: 8px; }
.s-field > span { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.s-input, .s-select, .s-textarea {
  height: 48px;
  width: 100%;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-md);
  outline: none;
}
.s-textarea { height: 120px; padding-top: 12px; resize: vertical; }
.s-input:focus, .s-input.is-focus, .s-select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px var(--line-strong); }
.s-input::placeholder { color: var(--ink-4); }
.s-note { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }
.s-note.ok { color: var(--accent); }
.s-note.warn { color: var(--wait); }

/* Callout */
.s-callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-pane);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-md);
}
.s-callout::before { content: ""; width: 3px; border-radius: 2px; background: var(--wait); flex-shrink: 0; }
.s-callout p { margin: 0; }

/* Steps: a real sequence */
.s-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.s-step { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--line-strong); }
.s-step .n { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.s-step b { font-size: var(--fs-lg); }
.s-step p { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.5; }

/* Footer */
.s-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.s-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.s-foot a { color: var(--ink-2); }
.s-foot .pen { width: 150px; height: auto; display: block; }

/* Wordmark is a home link. The design nav shows the SVG; the hit target is the link. */
.s-nav .wm-link { display: flex; align-items: center; }
.s-nav .wm-link:hover { text-decoration: none; }
.s-nav .menu {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* Home, frames 21 and 22 */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 112px;
}
.hero .s-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero .copy { display: flex; flex-direction: column; gap: 28px; }
.hero .bolt {
  position: absolute;
  left: 58%;
  top: 40px;
  width: 250px;
  z-index: 0;
  pointer-events: none;
}
.hero .p-window { --plugin-height: 540px; }
.mess {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.mess .s-h2 { font-size: 56px; }
.dl {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: start;
}
.dl .panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-chrome);
  border: 1px solid var(--line);
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.interest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.interest form { display: flex; flex-direction: column; gap: 16px; }
.band-in {
  display: grid;
  grid-template-columns: minmax(220px, 440px) 1fr;
  gap: 72px;
  align-items: center;
}
.band .heat {
  --fx-size: min(440px, 100%);
  width: min(440px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
}
.band .punch-title { font-size: clamp(64px, 8vw, 96px); }
.stack { display: flex; flex-direction: column; gap: 56px; }
.phone-only { display: none; }
p.phone-only { display: none; }

/* Inner pages */
.page-hero { padding: 72px 0 8px; }
.page-hero .s-h1 { font-size: clamp(40px, 6vw, 64px); }
.page-hero .s-wrap { display: flex; flex-direction: column; gap: 16px; }
.narrow { width: min(720px, calc(100% - 48px)); }
.doc { margin-top: 40px; }
.doc.is-hidden { display: none; }
.plain { margin: 0; padding-left: 1.15rem; color: var(--ink-2); }
.plain li { margin: 0.45rem 0; }
.plain strong { color: var(--ink); }
dl.specs { margin: 0; }
dl.specs dt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 28px;
}
dl.specs dd { margin: 8px 0 0; color: var(--ink-2); }
.lost {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 72px 0 80px;
}
.lost .lens { --fx-size: min(640px, 100%); width: min(640px, 100%); }
.lost .links { display: flex; flex-wrap: wrap; gap: 12px 20px; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero .s-wrap,
  .mess,
  .dl,
  .interest,
  .band-in { grid-template-columns: 1fr; gap: 28px; }
  .hero .bolt { display: none; }
  .hero .p-window { --plugin-width: 100%; --plugin-height: 480px; }
  .mess .s-h2 { font-size: 40px; }
  .s-steps, .tiers { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .s-wrap { width: calc(100% - 32px); }
  .s-h1 { font-size: 56px; }
  .s-h2 { font-size: 36px; }
  .s-lede { font-size: 18px; }
  .s-section { padding: 56px 0; }
  .s-nav { height: 56px; padding: 0 16px; }
  .s-nav .links,
  .s-nav > .s-btn { display: none; }
  .s-nav .menu { display: inline-grid; }
  .s-nav.is-open .links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 18px 16px 22px;
    background: rgba(34, 36, 42, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .hero .copy { gap: 20px; }
  .hero .s-actions .s-btn,
  .s-actions .s-btn { flex: 1 1 100%; }
  .hero .p-window { --plugin-height: 430px; }
  .s-card { padding: 22px; }
  .s-foot { flex-direction: column; align-items: flex-start; padding: 28px 16px 40px; }
  .desk-only, .desk-line, .desk-clock { display: none !important; }
  .phone-only { display: inline-flex; }
  p.phone-only { display: block; }
  .page-hero { padding: 40px 0 0; }
  .s-table thead { display: none; }
  .s-table, .s-table tbody, .s-table tr, .s-table td { display: block; width: auto; }
  .s-table tr {
    margin: 0 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .s-table td { border-bottom: 1px solid var(--line); }
  .s-table td:first-child { width: auto; background: var(--bg-chrome); }
  .s-table td:last-child { border-bottom: 0; }
  .s-table td[data-col]::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-badge.is-rec::before,
  .p-banner::before { animation: none; }
}

/* Progressive navigation and access helpers; preserve the paper-frame layout. */
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px; background: var(--bg-chrome); color: var(--ink); }
.skip-link:focus { top: 8px; }
#main:focus { outline: none; }
html { scroll-padding-top: 80px; }
code { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.s-nav .menu, .s-nav .links a { min-height: 44px; }
.s-nav .links a { display: inline-flex; align-items: center; }
@media (max-width: 720px) {
  html:not(.has-navigation) .s-nav { height: auto; min-height: 56px; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  html:not(.has-navigation) .s-nav .links { display: flex; width: 100%; flex-wrap: wrap; gap: 8px 16px; margin-left: 0; }
  html:not(.has-navigation) .s-nav .menu { display: none; }
  html:not(.can-copy) .desk-only { display: inline-flex !important; }
}

@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Current Paper file uses Inter for words and Menlo for labels. */
:root { --sans: "Inter", system-ui, sans-serif; --mono: "Menlo", ui-monospace, Consolas, monospace; }
@media (max-width: 720px) {
  .hero { padding: 40px 0 48px; }
  .hero .s-wrap { gap: 36px; }
}
@media (max-width: 720px) { .band { display: none; } }

@media (max-width: 720px) { .s-grid-2 { grid-template-columns: 1fr; } }
