/* JCH Softwares — layout: left-aligned editorial pages; the thermal-bill receipt is the one bold element, rubber-stamp status marks are the only ornament. */
:root {
  /* JCH Softwares brand: black ground, white bars, violet-to-cyan gradient (from the logo). Single dark theme by design. */
  --paper: #050507;
  --sheet: #111018;
  --ink: #F2F1F8;
  --ink-2: #A9A6BD;
  --carbon: #B48CFF;
  --carbon-soft: #1E1730;
  --rule: #26242F;
  --ready: #4CD38E;
  --soon: #FFB547;
  --band: #0D0C14;
  --band-ink: #F2F1F8;
  --focus: #B48CFF;
  --grad: linear-gradient(100deg, #E040FB 0%, #8A2BFF 38%, #2E5BFF 68%, #00C8FF 100%);
  --receipt: #F6F6F9;
  --receipt-ink: #14131C;
  --receipt-rule: #D3D2DC;
  --f-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --wide: 122%;
  --max: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--carbon); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px;
}
[hidden] { display: none !important; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--f-display); font-stretch: var(--wide); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--f-mono); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: .7; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-tag { font-size: .72rem; color: var(--ink-2); border-left: 1px solid var(--rule); padding-left: 10px; line-height: 1.3; }
.brand-name { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name small { display: block; font-stretch: 100%; font-weight: 500; font-size: .72rem; color: var(--ink-2); letter-spacing: 0; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--carbon-soft); color: #fff; }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; border: 1.5px solid var(--carbon); line-height: 1.2; }
.btn-solid { background: #fff; color: #000; border-color: #fff; }
.btn-solid:hover { filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--ink); border-color: #3A3846; }
.btn-line:hover { background: var(--carbon-soft); border-color: var(--carbon); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section { padding-block: clamp(56px, 8vw, 96px); }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 46em; }
.rule-top { border-top: 1px solid var(--rule); }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-note { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* the receipt */
.receipt-holder { position: relative; display: flex; justify-content: center; min-width: 0; isolation: isolate; }
.receipt-holder::before { content: ""; position: absolute; inset: 8% 4%; background: var(--grad); filter: blur(60px); opacity: .45; z-index: -1; border-radius: 50%; }
.receipt {
  --zig: 10px;
  width: min(100%, 380px); background: var(--receipt); color: var(--receipt-ink);
  font-family: var(--f-mono); font-size: .86rem; line-height: 1.55;
  padding: 26px 24px 34px; position: relative;
  box-shadow: 0 30px 60px -30px rgba(138, 43, 255, .55);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) var(--zig) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--zig)) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) var(--zig) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--zig)) no-repeat;
  transform: rotate(-1.2deg);
}
.receipt .r-c { text-align: center; }
.receipt .r-title { font-weight: 600; font-size: 1rem; letter-spacing: .04em; }
.receipt hr { border: 0; border-top: 1.5px dashed var(--receipt-rule); margin: 12px 0; }
.receipt .r-line { display: flex; gap: 6px; align-items: baseline; }
.receipt .r-line .r-name { flex: 1; min-width: 0; display: flex; gap: 6px; }
.receipt .r-line .r-name::after { content: ""; flex: 1; border-bottom: 1.5px dotted var(--receipt-rule); transform: translateY(-4px); min-width: 12px; }
.receipt .r-line a { color: inherit; text-decoration: none; }
.receipt .r-line a:hover { color: #6A2BD9; text-decoration: underline; }
.receipt .r-st { font-weight: 600; white-space: nowrap; }
.receipt .r-st.ready { color: #17804B; }
.receipt .r-st.soon { color: #9A5F0C; }
.receipt .r-total { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; }
.receipt .r-bars { height: 38px; margin: 14px auto 4px; width: 78%; background: repeating-linear-gradient(90deg, var(--receipt-ink) 0 2px, transparent 2px 4px, var(--receipt-ink) 4px 5px, transparent 5px 8px, var(--receipt-ink) 8px 11px, transparent 11px 12px); opacity: .85; }
.receipt .r-small { font-size: .74rem; color: #5B5A6B; }
@media (prefers-reduced-motion: no-preference) {
  .receipt.print { animation: print 1.5s cubic-bezier(.2, .7, .2, 1) .15s both; }
  @keyframes print { from { clip-path: inset(0 0 62% 0); transform: rotate(-1.2deg) translateY(-14px); } to { clip-path: inset(0 0 -10% 0); transform: rotate(-1.2deg) translateY(0); } }
}

/* rubber stamp */
.stamp { display: inline-block; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px 3px; border: 2.5px solid currentColor; border-radius: 6px; transform: rotate(-4deg); line-height: 1.2; white-space: nowrap; }
.stamp.ready { color: var(--ready); }
.stamp.soon { color: var(--soon); border-style: dashed; }

/* product feature rows on home */
.prod { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: 40px; border-top: 1px solid var(--rule); }
.prod:first-of-type { border-top: 0; padding-top: 0; }
.prod-copy { display: grid; gap: 16px; align-content: start; min-width: 0; }
.prod-copy .stamp { justify-self: start; }
.prod ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); }
.prod.flip .prod-shot { order: -1; }
@media (max-width: 860px) { .prod, .prod.flip { grid-template-columns: 1fr; } .prod.flip .prod-shot { order: 0; } }

.shot { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 8px; box-shadow: 0 24px 50px -32px rgba(0, 0, 0, .9); }
.shot img { border-radius: 6px; width: 100%; }
.shot-ph { aspect-ratio: 16 / 10; border-radius: 6px; background: repeating-linear-gradient(-45deg, var(--carbon-soft) 0 12px, transparent 12px 24px); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); font-size: .95rem; }

/* pipeline list */
.pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); }
.pipe a { display: grid; gap: 10px; align-content: start; padding: 24px; color: var(--ink); text-decoration: none; border-left: 1px solid var(--rule); }
.pipe a:first-child { border-left: 0; }
.pipe a:hover h3 { color: var(--carbon); text-decoration: underline; text-underline-offset: 3px; }
.pipe .stamp { justify-self: start; }
.pipe p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 860px) { .pipe { grid-template-columns: 1fr; } .pipe a { border-left: 0; border-top: 1px solid var(--rule); } .pipe a:first-child { border-top: 0; } }

/* devices strip */
.devices { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.chip svg { width: 18px; height: 18px; }
a.chip:hover { border-color: var(--carbon); color: var(--carbon); }

/* dark band */
.band { background: var(--band); color: var(--band-ink); }
.band .muted, .band .lede { color: color-mix(in srgb, var(--band-ink) 72%, transparent); }
.band a:not(.btn) { color: var(--band-ink); }
.band .btn-solid { background: #fff; color: #000; border-color: #fff; }
.band .btn-line { color: var(--band-ink); border-color: color-mix(in srgb, var(--band-ink) 50%, transparent); }
.band .btn-line:hover { background: color-mix(in srgb, var(--band-ink) 12%, transparent); }

/* steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid transparent; border-image: var(--grad) 1; }
.steps li::before { content: "Step " counter(s); font-family: var(--f-mono); font-size: .82rem; opacity: .75; }
.steps p { font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* about split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { display: grid; gap: 0; border-top: 1px solid var(--rule); margin: 0; }
.facts div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* product page */
.p-hero { padding-block: clamp(36px, 5vw, 64px) 32px; }
.p-hero .wrap { display: grid; gap: 20px; }
.crumbs { font-size: .9rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.p-title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: grid; gap: 8px; min-width: 0; }
.gallery figcaption { font-size: .9rem; color: var(--ink-2); }
.g-wide { grid-column: span 8; }
.g-tall { grid-column: span 4; }
.g-half { grid-column: span 6; }
.g-tall .shot img { aspect-ratio: auto; }
@media (max-width: 860px) { .g-wide, .g-tall, .g-half { grid-column: span 12; } .g-tall { max-width: 360px; } }

.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.feat > div { display: grid; gap: 8px; align-content: start; }
.feat h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.feat h3 svg { width: 22px; height: 22px; color: var(--carbon); flex: none; }
.feat ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: .98rem; display: grid; gap: 4px; }
@media (max-width: 960px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feat { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px; }
.plan { display: grid; gap: 14px; align-content: start; padding: 26px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; }
.plan.pick { border: 2px solid transparent; background: linear-gradient(var(--sheet), var(--sheet)) padding-box, var(--grad) border-box; }
.plan .price { font-family: var(--f-mono); font-weight: 600; font-size: 1.05rem; color: var(--carbon); }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 4px; font-size: .97rem; }
.plan .btn { justify-self: start; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding-block: 4px; }
.faq summary { cursor: pointer; font-weight: 650; padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--carbon); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; color: var(--ink-2); max-width: 46em; }

/* install page */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button { font: inherit; font-weight: 650; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.tabs button svg { width: 18px; height: 18px; }
.tabs button[aria-selected="true"] { background: #fff; border-color: #fff; color: #000; }
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: h; max-width: 40em; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.howto li::before { content: counter(h); font-family: var(--f-mono); font-weight: 600; color: var(--carbon); border: 1.5px solid var(--carbon); border-radius: 50%; width: 1.9em; height: 1.9em; display: grid; place-items: center; font-size: .9rem; }
.kbd { font-family: var(--f-mono); font-size: .88em; background: var(--carbon-soft); padding: 1px 6px; border-radius: 4px; }
.pick-app { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.pick-app label { font-weight: 650; }
select, input, textarea { font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 11px 12px; }
select { padding-right: 32px; }

/* contact */
.form { display: grid; gap: 16px; max-width: 34em; }
.form .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { width: 100%; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.note { padding: 12px 14px; border-radius: 8px; background: var(--carbon-soft); color: var(--ink); font-size: .95rem; }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-line code { font-family: var(--f-mono); font-size: 1rem; user-select: all; }
.copy-line button { font: inherit; font-size: .85rem; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); cursor: pointer; }

/* footer */
footer { border-top: 1px solid var(--rule); padding-block: 48px 36px; font-size: .95rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { margin: 0 0 10px; font-size: .95rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--carbon); text-decoration: underline; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 18px; color: var(--ink-2); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > :first-child { grid-column: 1 / -1; } }

/* floating whatsapp */
.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: #25D366; color: #04210F; text-decoration: none; font-weight: 650; box-shadow: 0 12px 26px -12px rgba(0,0,0,.8); }
.wa-float svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

.note-device { font-size: .92rem; color: var(--ink-2); }
.plan .price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav a.btn-solid, .nav a.btn-solid:hover { background: #fff; color: #000; }
.g-full { grid-column: span 12; }
