/* openrepairpos.com — system fonts, neutral surfaces, one accent. Mobile first. */
:root {
  --ink: #0d1b1a; --ink-2: #3b4a48; --muted: #66756f; --line: #e3e8e6; --bg: #ffffff; --bg-2: #f5f8f7;
  --brand: #0f766e; --brand-ink: #ffffff; --brand-soft: #e2f3f0; --brand-2: #b9e4dd; --navy: #0b2a33;
  --warn-soft: #fff4e5; --radius: 22px; --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(13, 27, 26, .05), 0 12px 32px rgba(13, 27, 26, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .8rem; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 760; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { flex: none; }
.nav { display: flex; gap: 2px; margin-left: auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.nav a { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 560; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.top .btn { margin-left: 6px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 16px; right: 16px; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .menu-toggle { display: inline-flex; }
  .top .btn.desk { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px rgba(15, 118, 110, .25); }
.btn.primary:hover { background: #0c6760; }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.sm { padding: 9px 16px; font-size: .92rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* sections */
section { padding: 88px 0; }
section.tint { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.lead { font-size: 1.18rem; color: var(--ink-2); }

/* hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .lead { max-width: 560px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: .95rem; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; flex: none; }
.shot { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.shot .bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfb; }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5e3; }
.hero-visual { position: relative; }
.hero-visual .phone { position: absolute; right: -10px; bottom: -36px; width: 30%; border-radius: 22px; border: 6px solid var(--navy); box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.toast { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--warn-soft); color: #7a4300; font-size: .9rem; font-weight: 600; text-decoration: none; border: 1px solid #fde3bd; }
.toast b { background: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual .phone { width: 34%; right: 8px; bottom: -24px; }
  section { padding: 64px 0; }
}

/* cards & grids */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.card h3 a { color: inherit; text-decoration: none; }
.card.link:hover { border-color: var(--brand-2); box-shadow: var(--shadow); }
.price-card { border-radius: 28px; padding: 36px; background: var(--navy); color: #e8f1f0; }
.price-card .amount { font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; }
.price-card ul { padding: 0; list-style: none; margin: 22px 0 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--brand-2); font-weight: 800; }

/* AI hub diagram */
.hub { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; background: var(--brand-soft); border-radius: 28px; padding: 34px; }
.hub .col { display: grid; gap: 12px; }
.hub .chip { background: #fff; border-radius: 14px; padding: 13px 16px; font-weight: 620; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.hub .chip small { display: block; font-weight: 500; color: var(--muted); }
.hub .core { width: 120px; height: 120px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 750; font-size: .95rem; line-height: 1.2; position: relative; }
.hub .core::before, .hub .core::after { content: ""; position: absolute; top: 50%; width: 26px; border-top: 2px dashed var(--brand); }
.hub .core::before { right: 100%; } .hub .core::after { left: 100%; }
@media (max-width: 760px) { .hub { grid-template-columns: 1fr; justify-items: stretch; } .hub .core { margin: 0 auto; } .hub .core::before, .hub .core::after { display: none; } }
.chat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.chat .msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: .97rem; }
.chat .me { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat .ai { background: var(--bg-2); border-bottom-left-radius: 4px; }
.chat .label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps > li { counter-increment: s; position: relative; min-width: 0; overflow-wrap: anywhere; padding: 20px 22px 20px 70px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 750; display: grid; place-items: center; }
.prose .steps { padding-left: 0; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-2); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
caption { text-align: left; padding: 16px 20px 0; font-weight: 650; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.us { background: #f3faf8; font-weight: 600; }
.yes { color: var(--brand); font-weight: 700; } .no { color: #a33a2b; font-weight: 600; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* article pages */
.page-head { padding: 56px 0 22px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.answer { font-size: 1.2rem; color: var(--ink-2); border-left: 4px solid var(--brand); padding: 4px 0 4px 18px; margin: 18px 0 0; }
.meta { font-size: .88rem; color: var(--muted); margin-top: 18px; }
article.prose { padding: 10px 0 80px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .35em 0; }
.prose .table-wrap { margin: 18px 0 26px; }
.note { background: var(--warn-soft); border: 1px solid #fde3bd; border-radius: var(--radius-sm); padding: 14px 18px; color: #6b3d00; font-size: .97rem; }
.src { font-size: .85rem; color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .92em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

/* CTA band + footer */
.cta-band { background: var(--navy); color: #e6efee; border-radius: 30px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 26px; align-items: center; }
.cta-band h2 { color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 34px 26px; } }
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; font-size: .93rem; color: var(--ink-2); }
footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; }
footer h4 { margin: 0 0 10px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { color: var(--ink-2); text-decoration: none; } footer a:hover { color: var(--brand); }
footer .legal { margin-top: 36px; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* deploy dialog */
dialog.deploy { width: min(560px, 100% - 24px); border: 0; border-radius: 26px; padding: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); color: var(--ink); }
dialog.deploy::backdrop { background: rgba(11, 42, 51, .55); backdrop-filter: blur(3px); }
dialog.deploy .in { padding: 30px 30px 26px; }
dialog.deploy h2 { font-size: 1.55rem; }
dialog.deploy .x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; }
dialog.deploy ol { margin: 18px 0 22px; padding-left: 1.2em; color: var(--ink-2); }
dialog.deploy li { margin: 8px 0; }
dialog.deploy .cf { display: inline-block; }
dialog.deploy .cf img { height: 40px; width: auto; }
dialog[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; }
  .btn-row .btn { flex: 1 1 auto; }
  .toast { flex-wrap: wrap; border-radius: 18px; }
  .mono, code { word-break: break-all; }
  .card, .steps > li { padding-left: 20px; padding-right: 20px; }
  .steps > li { padding-left: 64px; }
}
.wip { display: inline-block; background: var(--warn-soft); color: #7a4300; border: 1px solid #fde3bd; font-weight: 650; font-size: .85rem; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
