/* PrintEzy website styles.
   Concept: the site is printed label stock. Cream thermal paper, ink-black print, one signal-orange accent,
   condensed factory-signage headlines, mono for printer data, perforated label gaps between sections. */
:root {
  --paper: #F2ECDF;          /* label roll */
  --paper-2: #E8E0CE;        /* liner */
  --card: #FBF8F1;           /* a fresh label */
  --ink: #141311;
  --ink-2: #33302B;
  --muted: #6A6358;
  --rule: #141311;
  --hair: rgba(20, 19, 17, .16);
  --signal: #FF5A1F;         /* the one accent: print-head orange */
  --signal-deep: #C63F0C;    /* for orange text on paper (contrast) */
  --signal-soft: #FFE1D3;
  --char: #161512;           /* printer body */
  --char-2: #221F1B;
  --ok: #1D7443; --ok-soft: #DCEFE2;
  --warn: #8A5800; --warn-soft: #F8E9C7;
  --bad: #B3261E; --bad-soft: #F9DEDA;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --radius: 12px;
  --max: 1200px;
  --gutter: 20px;
  --shadow: 4px 4px 0 var(--ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.6 var(--font); overflow-x: hidden; }
body::before { /* faint paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(20,19,17,.05) 1px, transparent 1px); background-size: 3px 3px;
}
main, .site-header, .site-footer { position: relative; z-index: 1; }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--signal-deep); }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; }
h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .9; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: .92; }
h3 { font-family: var(--font); font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
h4 { font-family: var(--font); font-size: 1rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: .9em; }
code, kbd, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
::selection { background: var(--signal); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: clamp(60px, 8vw, 112px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--char); color: #D8D2C6; }
.section.dark h2, .section.dark h3, .section.dark h4 { color: #F7F2E8; }
.section.dark a { color: #F7F2E8; }
.eyebrow { display: inline-flex; align-items: stretch; font: 600 .76rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; border: 1.5px solid var(--ink); background: var(--card); justify-self: start; width: max-content; max-width: 100%; }
.head.center .eyebrow { justify-self: center; }
.eyebrow b { background: var(--ink); color: var(--paper); padding: 6px 8px; font-weight: 600; }
.eyebrow span { padding: 6px 10px; }
.section.dark .eyebrow { border-color: #F7F2E8; background: transparent; color: #F7F2E8; }
.section.dark .eyebrow b { background: var(--signal); color: var(--ink); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); max-width: 60ch; }
.section.dark .lead { color: #B9B2A5; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.head { display: grid; gap: 16px; margin-bottom: clamp(34px, 4vw, 56px); max-width: 820px; }
.head.center { margin-inline: auto; justify-items: center; }
.hl { display: inline-block; background: var(--signal); color: var(--ink); line-height: .92; padding: .06em .12em .02em; margin-top: .06em; }

/* Buttons: pressed-sticker feel */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 700 .98rem/1.1 var(--font); text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--signal); }
.btn.ghost-dark { background: transparent; color: #F7F2E8; border-color: #F7F2E8; box-shadow: 3px 3px 0 #F7F2E8; }
.btn.ghost-dark:hover { color: #fff; box-shadow: 4px 4px 0 #F7F2E8; }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: .88rem; box-shadow: 2px 2px 0 var(--ink); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Header: a label strip */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.7rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav a { color: var(--ink); text-decoration: none; font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 10px 11px; border-radius: 6px; }
.nav a:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.header-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.header-cta .login { color: var(--ink); font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; padding: 8px; }
.header-cta .login:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.menu-btn { display: none; margin-left: auto; background: var(--card); border: 2px solid var(--ink); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .site-header.open .nav, .site-header.open .header-cta { display: flex; }
  .site-header.open .wrap { flex-wrap: wrap; padding-bottom: 18px; }
  .site-header.open .nav { order: 3; flex-direction: column; align-items: stretch; width: 100%; margin: 0; border-top: 1.5px dashed var(--ink); padding-top: 10px; }
  .site-header.open .nav a { padding: 14px 10px; font-size: .9rem; }
  .site-header.open .header-cta { order: 4; width: 100%; margin: 0; }
  .site-header.open .header-cta .btn { flex: 1; }
}

/* Label gap between sections: perforation + black sensor marks */
.perf { height: 26px; position: relative; background: var(--paper); }
.perf::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(20,19,17,.45); }
.perf::after { content: ""; position: absolute; left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); top: 6px; width: 34px; height: 14px; background: var(--ink); box-shadow: 60px 0 0 var(--ink); }
.perf.on-alt { background: var(--paper-2); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 96px); position: relative; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 26px; font-size: clamp(2.7rem, 5.9vw, 5.3rem); }
.hero h1 .hl { white-space: nowrap; }
.hero .lead { margin-bottom: 32px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-notes span { font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; border: 1.5px solid var(--ink); padding: 8px 10px; border-radius: 999px; background: var(--card); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Print station: TSPL streaming in, label printing out */
.station { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: center; min-width: 0; max-width: 470px; width: 100%; margin-inline: auto; }
.term { width: 100%; min-width: 0; background: var(--char); color: #CFC8BA; border: 2px solid var(--ink); border-radius: 12px 12px 0 0; padding: 14px 16px 18px; font: 500 .8rem/1.75 var(--mono); box-shadow: var(--shadow); position: relative; z-index: 2; }
.term-top { display: flex; justify-content: space-between; gap: 10px; color: #8C857A; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px dashed #3A362F; padding-bottom: 8px; margin-bottom: 8px; }
.term-top .ok { color: #7EE0A2; }
.term .ln { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: ln .01s forwards; }
.term .ln .k { color: var(--signal); }
.term .ln .s { color: #E8DFC9; }
.term .cursor { display: inline-block; width: 8px; height: 14px; background: var(--signal); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes ln { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
.slot { width: 86%; height: 16px; background: #0B0A09; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 8px 8px; position: relative; z-index: 2; }
.label { width: 76%; margin-top: -6px; background: var(--card); border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 12px 12px; padding: 20px 18px 16px; font-family: var(--mono); color: var(--ink); position: relative; z-index: 1; box-shadow: var(--shadow); }
.label .part { opacity: 0; transform: translateY(-6px); animation: part .35s ease-out forwards; }
@keyframes part { to { opacity: 1; transform: none; } }
.label-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin-bottom: 10px; }
.label-big { font: 800 2rem/.95 var(--display); letter-spacing: .01em; }
.label-small { font-size: .64rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; }
.label-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 12px; }
.label-grid > div { border: 1.5px solid var(--ink); padding: 6px 8px; }
.label-grid b { display: block; font-size: .8rem; font-weight: 600; }
.label svg.barcode { display: block; width: 100%; height: 64px; }
.label .code-text { text-align: center; font-size: .72rem; letter-spacing: .3em; margin-top: 4px; }
.label-meta { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 8px; border-top: 1.5px dashed var(--ink); font-size: .62rem; color: var(--ink-2); }
.stamp { position: absolute; right: -10px; bottom: 58px; z-index: 3; font: 800 1.9rem/1 var(--display); letter-spacing: .04em; color: var(--signal-deep); border: 4px solid var(--signal-deep); padding: 6px 12px 4px; border-radius: 6px; transform: rotate(-9deg) scale(1.6); opacity: 0; background: rgba(251,248,241,.85); animation: stamp .28s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-9deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .term .ln, .label .part, .stamp { animation: none; opacity: 1; transform: none; }
  .stamp { transform: rotate(-9deg); }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
}
@media (max-width: 480px) { .stamp { right: 10px; font-size: 1.5rem; } .term { font-size: .72rem; } }

/* Live log ticker */
.ticker { background: var(--ink); color: #E9E2D3; border-block: 2px solid var(--ink); overflow: hidden; font: 500 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { padding: 15px 26px; white-space: nowrap; border-right: 1px solid #3A362F; }
.ticker .ok { color: #7EE0A2; }
.ticker .bad { color: var(--signal); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Pills and tags */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border-radius: 999px; white-space: nowrap; border: 1.5px solid currentColor; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: var(--ok-soft); }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.pill.bad { color: var(--bad); background: var(--bad-soft); }
.pill.off { color: var(--muted); background: var(--card); }
.tag { display: inline-block; font: 600 .7rem/1 var(--mono); padding: 6px 8px; background: var(--ink); color: var(--paper); letter-spacing: .08em; text-transform: uppercase; justify-self: start; }

/* Grids and label cards */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--ink-2); }
.card .num { font: 600 .72rem/1 var(--mono); color: var(--ink); letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1.5px dashed var(--ink); }
.card .num svg { color: var(--signal-deep); }
a.card { text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
a.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
a.card .more { font-weight: 700; font-size: .95rem; margin-top: 4px; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.section.dark .card { background: var(--char-2); border-color: #F7F2E8; box-shadow: 4px 4px 0 var(--signal); }
.section.dark .card p { color: #B9B2A5; }
.section.dark .card .num { color: #F7F2E8; border-color: #5A544A; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Spec sheet: data fields like on a label */
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.spec > div { padding: 24px 22px 26px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.spec > div:nth-child(4n) { border-right: 0; }
.spec > div:nth-last-child(-n+4) { border-bottom: 0; }
.spec .f { font: 600 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec h3 { font: 800 1.7rem/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.spec p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 980px) {
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec > div:nth-child(4n) { border-right: 1.5px solid var(--ink); }
  .spec > div:nth-child(2n) { border-right: 0; }
  .spec > div:nth-last-child(-n+4) { border-bottom: 1.5px solid var(--ink); }
  .spec > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .spec { grid-template-columns: 1fr; }
  .spec > div { border-right: 0 !important; border-bottom: 1.5px solid var(--ink) !important; }
  .spec > div:last-child { border-bottom: 0 !important; }
}

/* Rejected labels (the problem) */
.rejects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .rejects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rejects { grid-template-columns: 1fr; } }
.reject { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; min-height: 230px; }
.reject:nth-child(odd) { transform: rotate(-.8deg); }
.reject:nth-child(even) { transform: rotate(.7deg); }
.reject .void { justify-self: start; font: 800 1.35rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--bad); border: 3px solid var(--bad); padding: 5px 9px 3px; border-radius: 4px; transform: rotate(-4deg); margin-bottom: 6px; }
.reject p { color: var(--ink-2); font-size: .96rem; }
.reject .ghost { position: absolute; right: -8px; bottom: -8px; width: 110px; opacity: .08; }

/* Callouts */
.callout { border: 2px solid var(--ink); background: var(--card); padding: 16px 18px; border-radius: 10px; position: relative; }
.callout::before { content: ""; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 8px; background: var(--ink); border-radius: 10px 0 0 10px; }
.callout { padding-left: 24px; }
.callout.warn { background: var(--warn-soft); } .callout.warn::before { background: var(--warn); }
.callout.bad { background: var(--bad-soft); } .callout.bad::before { background: var(--bad); }
.callout.ok { background: var(--ok-soft); } .callout.ok::before { background: var(--ok); }
.callout strong { display: block; margin-bottom: 4px; }
.callout + .callout { margin-top: 12px; }

/* Flow diagram */
.flow { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow); margin: 0; }
.flow svg { display: block; width: 100%; height: auto; }
.flow-fallback { display: none; }
@media (max-width: 720px) { .flow.has-fallback svg { display: none; } .flow.has-fallback .flow-fallback { display: grid; } }
.flow-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; position: relative; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 58px; bottom: -6px; border-left: 2px dashed var(--ink); }
.flow-step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--signal); border: 2px solid var(--ink); color: var(--ink); display: grid; place-items: center; font: 800 1.2rem/1 var(--display); }
.flow-step p { color: var(--ink-2); font-size: .95rem; }
.flow-caption { margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--ink); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.flow-caption div { font-size: .93rem; color: var(--ink-2); }
.flow-caption b { display: block; color: var(--ink); font: 800 1.25rem/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
@media (max-width: 720px) { .flow-caption { display: none; } }

/* Numbered steps */
.steps { counter-reset: s; display: grid; gap: 26px; padding: 0; margin: 0; }
.steps > li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; }
.steps > li::before { content: counter(s, decimal-leading-zero); font: 800 2.6rem/1 var(--display); color: var(--ink); -webkit-text-stroke: 0; border-top: 4px solid var(--signal); padding-top: 6px; }
.steps h3 { margin-bottom: 6px; font-size: 1.15rem; }
.steps p { color: var(--ink-2); }

/* Screenshot slot */
.shot { border: 2px dashed var(--ink); border-radius: 12px; background: repeating-linear-gradient(-45deg, var(--card), var(--card) 10px, var(--paper) 10px, var(--paper) 20px); min-height: 220px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: .9rem; }
.shot b { display: inline-block; background: var(--ink); color: var(--paper); font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; margin-bottom: 10px; }
.shot > div { display: grid; justify-items: center; }

/* Pricing: plans are punched price tags */
.toggle { display: inline-flex; padding: 4px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; gap: 4px; box-shadow: 3px 3px 0 var(--ink); }
.toggle button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: 600 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toggle .save { font: 700 .66rem/1 var(--mono); background: var(--signal); color: var(--ink); padding: 4px 6px; border-radius: 4px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; max-width: 920px; margin: 60px auto 0; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; gap: 64px; } }
.plan { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 50px 30px 30px; display: grid; gap: 18px; align-content: start; position: relative; box-shadow: 6px 6px 0 var(--ink); }
.plan::before { content: ""; position: absolute; top: 16px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.plan::after { content: ""; position: absolute; top: -44px; left: 50%; width: 2px; height: 62px; background: var(--ink); transform: rotate(8deg); transform-origin: bottom center; }
.plan.featured { background: var(--signal); }
.plan.featured .btn.primary { background: var(--ink); color: var(--paper); }
.plan.featured .btn.primary:hover { color: #fff; }
.page-head.center-head { text-align: center; }
.page-head.center-head h1, .page-head.center-head .lead { margin-inline: auto; }
.plan.featured .price-note, .plan.featured .muted { color: var(--ink); }
.plan .badge { position: absolute; top: 14px; right: 18px; background: var(--ink); color: var(--paper); font: 600 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 9px; border-radius: 4px; }
.plan h3 { font: 800 2.4rem/.9 var(--display); text-transform: uppercase; }
.plan .limit { font: 600 .82rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; border-block: 1.5px dashed var(--ink); padding-block: 10px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amt { font: 800 clamp(3.4rem, 6vw, 4.6rem)/.85 var(--display); letter-spacing: -.005em; }
.price .per { font: 600 .82rem/1 var(--mono); text-transform: uppercase; }
.price-note { font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; background: var(--ink); clip-path: polygon(14% 44%, 0 58%, 38% 100%, 100% 20%, 86% 6%, 38% 70%); }
.plan .actions .btn { flex: 1; }

/* Tables and spec lists */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1.5px solid var(--hair); vertical-align: top; }
th { font: 600 .7rem/1.3 var(--mono); color: var(--paper); text-transform: uppercase; letter-spacing: .08em; background: var(--ink); }
tr:last-child td { border-bottom: 0; }
td code { font-size: .86em; background: var(--paper); border: 1px solid var(--hair); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
dl.specs { display: grid; grid-template-columns: max-content 1fr; margin: 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); overflow: hidden; }
dl.specs dt, dl.specs dd { padding: 12px 16px; border-bottom: 1.5px solid var(--hair); margin: 0; }
dl.specs dt { font: 600 .72rem/1.7 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink); background: var(--paper); border-right: 1.5px solid var(--ink); }
dl.specs dd { overflow-wrap: anywhere; }
dl.specs dt:last-of-type, dl.specs dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { dl.specs { grid-template-columns: 1fr; } dl.specs dt { border-bottom: 0; border-right: 0; padding-bottom: 4px; } }

/* Code */
pre { position: relative; margin: 0; background: var(--char); color: #E3DCCD; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: .85rem; line-height: 1.65; }
pre code { font-family: var(--mono); }
.code-block { position: relative; margin: 18px 0; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; }
.code-block pre { border-radius: 0; }
.code-block .code-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--signal); color: var(--ink); font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px 9px 18px; border-bottom: 2px solid var(--ink); }
.copy-btn { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; padding: 5px 10px; font: 600 .72rem/1 var(--mono); text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { background: var(--ink); color: var(--paper); }
:not(pre) > code { font-size: .88em; background: var(--card); border: 1px solid var(--hair); color: var(--ink); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }

/* Prose (docs, legal) */
.prose { max-width: 780px; }
.prose h2 { font: 800 2.1rem/.95 var(--display); text-transform: uppercase; margin: 2em 0 .55em; scroll-margin-top: 90px; padding-top: 18px; border-top: 2px solid var(--ink); }
.prose h3 { font-size: 1.15rem; margin: 1.7em 0 .5em; scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { color: var(--ink-2); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--signal-deep); font-weight: 700; }
.prose .table-wrap, .prose .callout, .prose dl.specs, .prose .shot { margin: 1.3em 0; }
.prose > :first-child, .prose > .draft + h2 { margin-top: 0; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.docs-nav { position: sticky; top: 92px; display: grid; gap: 2px; font-size: .95rem; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: 3px 3px 0 var(--ink); }
.docs-nav .label-t { font: 600 .68rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 16px 0 6px; }
.docs-nav .label-t:first-child { margin-top: 0; }
.docs-nav a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 6px; }
.docs-nav a:hover { background: var(--paper); }
.docs-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 600; }
@media (max-width: 880px) { .docs-layout { grid-template-columns: minmax(0, 1fr); } .docs-nav { position: static; } }
.page-head { padding-block: clamp(46px, 6vw, 84px) clamp(32px, 4vw, 52px); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(3rem, 7vw, 5.6rem); margin-bottom: 16px; max-width: 14ch; }
.page-head .lead { max-width: 56ch; }
.page-head .deco { position: absolute; right: var(--gutter); bottom: 0; width: 230px; display: grid; gap: 6px; font: 600 .66rem/1 var(--mono); letter-spacing: .3em; text-align: center; }
.page-head .deco svg { height: 70px; width: 100%; }
@media (max-width: 860px) { .page-head .deco { display: none; } }
.crumbs { font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.draft { background: var(--warn-soft); border: 2px solid var(--warn); color: var(--warn); border-radius: 10px; padding: 12px 16px; font-size: .92rem; margin-bottom: 28px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); }
.faq details[open] { box-shadow: 3px 3px 0 var(--ink); }
.faq summary { cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font: 600 1rem/1 var(--mono); }
.faq details[open] summary::after { content: "−"; background: var(--signal); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font: 600 .74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.field .hint { font: 400 .8rem/1.3 var(--font); text-transform: none; letter-spacing: 0; color: var(--muted); }
input, select, textarea { font: 400 1rem/1.4 var(--font); padding: 12px 13px; border-radius: 8px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); width: 100%; min-width: 0; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.form-msg { border-radius: 8px; padding: 12px 14px; font-size: .94rem; border: 2px solid currentColor; }
.form-msg.ok { background: var(--ok-soft); color: var(--ok); }
.form-msg.bad { background: var(--bad-soft); color: var(--bad); }
.panel { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.auth { max-width: 480px; margin: 0 auto; }
.auth.wide { max-width: 760px; }
.auth h1 { font-size: clamp(2.6rem, 6vw, 3.8rem) !important; }
.divider { display: flex; align-items: center; gap: 12px; font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1.5px dashed var(--ink); }

/* Account */
.key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--paper); border: 2px dashed var(--ink); border-radius: 8px; padding: 12px 14px; font: 600 1.05rem/1.2 var(--mono); letter-spacing: .06em; }
.key span { flex: 1; min-width: 200px; overflow-wrap: anywhere; }
.meter { height: 10px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--ink); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--signal); border-right: 1.5px solid var(--ink); }
.stat { display: grid; gap: 4px; }
.stat .k { font: 600 .68rem/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font: 800 1.5rem/1 var(--display); text-transform: uppercase; }

/* CTA band: a big label */
.cta-band { background: var(--signal); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; position: relative; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.cta-band h2 { color: var(--ink); max-width: 16ch; }
.cta-band p { color: var(--ink); margin-top: 12px; max-width: 52ch; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-band .btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 3px 3px 0 var(--card); }
.cta-band .btn.ghost-dark { color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--card); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer: printer body with a huge wordmark */
.site-footer { background: var(--char); color: #B9B2A5; padding-block: 60px 30px; font-size: .95rem; border-top: 2px solid var(--ink); overflow: hidden; }
.site-footer a { color: #F2ECDF; text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { color: var(--signal); font: 600 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.footer-brand .brand { color: #F2ECDF; }
.wordmark { font: 900 clamp(5rem, 21vw, 17rem)/.8 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px #3F3A33; letter-spacing: .01em; margin: 48px 0 0; white-space: nowrap; user-select: none; }
.footer-bottom { margin-top: 26px; padding-top: 20px; border-top: 1.5px dashed #3F3A33; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* Misc */
.kv-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.kv-list > div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1.5px dashed var(--ink); }
.kv-list .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--signal); border: 2px solid var(--ink); color: var(--ink); display: grid; place-items: center; }
.kv-list .dot svg { width: 18px; height: 18px; }
.kv-list p { color: var(--ink-2); font-size: .96rem; }
.section.dark .kv-list { border-color: #F7F2E8; }
.section.dark .kv-list > div { border-color: #5A544A; }
.section.dark .kv-list p { color: #B9B2A5; }
.audience .who { font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 8px; justify-self: start; }
.audience h3 { font: 800 2rem/.95 var(--display); text-transform: uppercase; }
.audience ul { margin: 4px 0 6px; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 6px; }
.audience ul li::marker { color: var(--signal-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: .94rem; border: 2px solid var(--signal); z-index: 90; }
.changelog { display: grid; }
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1.5px dashed var(--ink); }
.release:first-child { padding-top: 0; }
.release .ver { font: 800 2.4rem/1 var(--display); }
.release .date { color: var(--muted); font: 500 .78rem/1.4 var(--mono); text-transform: uppercase; margin-top: 6px; }
.release ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 10px; } }
.anchor-list { columns: 2; column-gap: 32px; padding-left: 1.2em; }
@media (max-width: 600px) { .anchor-list { columns: 1; } }
.big-num { font: 900 clamp(4rem, 9vw, 7.5rem)/.8 var(--display); color: var(--signal); -webkit-text-stroke: 2px var(--ink); }
.errcodes { display: grid; gap: 10px; }
.errcode { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 11px 14px; }
.errcode .c { font: 600 .8rem/1.35 var(--mono); display: flex; align-items: center; gap: 10px; }
.errcode .c .pill { flex: none; }
.errcode .w { font-size: .86rem; color: var(--muted); text-align: right; white-space: nowrap; }
.section.dark .audience ul { color: #CFC8BA; }
.section.dark .audience .who { background: var(--signal); color: var(--ink); }
@media (max-width: 520px) { .errcode { grid-template-columns: 1fr; } .errcode .w { text-align: left; } }

/* Any-size specimens, drawn to scale */
.specimens { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 30px 18px; padding: 30px 22px 24px; justify-content: space-between; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 14px; background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px); background-size: 11px 11px; }
.specimen { margin: 0; display: grid; gap: 10px; justify-items: start; }
.specimen figcaption { display: grid; gap: 2px; }
.specimen figcaption b { font: 800 .95rem/1 var(--display); white-space: nowrap; text-transform: uppercase; }
.specimen figcaption span { font: 500 .64rem/1.2 var(--mono); white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sp { background: var(--card); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 3px 3px 0 var(--ink); padding: 5px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; position: relative; }
.sp .l { display: block; background: var(--ink); flex: none; }
.sp .bc { display: block; width: 100%; flex: none; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 6px, var(--ink) 6px 9px, transparent 9px 10px); margin-top: auto; }
.sp .rule { display: block; border-top: 2px solid var(--ink); margin: 2px 0; }
.sp .rule.dash { border-top-style: dashed; }
.sp .box { display: block; height: 30px; border: 1.5px solid var(--ink); }
.sp .grid-t { display: block; height: 70px; border: 1.5px solid var(--ink); background: linear-gradient(var(--ink) 1px, transparent 1px) 0 0 / 100% 14px; margin: 4px 0; }
.sp-sticker { border-radius: 6px; padding: 3px; gap: 2px; }
.sp-tag { border-radius: 10px 10px 4px 4px; padding-top: 16px; }
.sp-tag .hole { position: absolute; top: 5px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper-2); }
.sp-receipt { border-radius: 0; border-bottom: 0; box-shadow: 3px 0 0 var(--ink); -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 8px 6px repeat-x; mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 8px 6px repeat-x; }
.sp-ticket { padding-right: 40px; }
.sp-ticket .stub { position: absolute; right: 34px; top: 0; bottom: 0; border-left: 2px dashed var(--ink); }
.sp-page { padding: 12px; gap: 6px; }
@media (max-width: 640px) { .specimens { padding: 22px 16px; gap: 24px 18px; } .sp-page { transform-origin: bottom left; } }

/* Drawn app window (how it works) */
.app-mock { padding: 0; overflow: hidden; display: grid; gap: 0; font-size: .88rem; }
.am-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink); color: var(--paper); }
.am-title { font: 800 1.2rem/1 var(--display); text-transform: uppercase; }
.am-card { border-top: 1.5px solid var(--ink); }
.am-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 16px; background: var(--paper); font-weight: 700; border-bottom: 1px dashed var(--ink); }
.am-h span { font: 600 .66rem/1.8 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.am-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; }
.am-row + .am-row { border-top: 1px solid var(--hair); }
.am-row b { display: block; }
.am-row small { color: var(--muted); }
.am-row .mono { font-size: .78rem; }

/* Razorpay subscription button: fit the checkout panel */
.rzp-slot, .rzp-slot form { max-width: 100%; min-width: 0; }
.rzp-slot .razorpay-subscription-button { width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
.rzp-slot .razorpay-subscription-button > * { max-width: 100% !important; box-sizing: border-box; }
#checkout-summary { min-width: 0; }
.auth.wide:has(#checkout-summary) { max-width: 900px; }
@media (min-width: 901px) { .split:has(> #checkout-summary) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
