/* theomnisync.com
   Colours, logo and spacing come from the OmniSync Retail brand kit (resources/css/tokens.css).
   Typeface is Plus Jakarta Sans, as in the brand kit. */

/* Plus Jakarta Sans (SIL Open Font License), hosted here so no visitor data goes to Google. */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --retail-blue: #4c81f1;
    --primary: #2f66dd;
    --primary-hover: #2457c8;
    --primary-text: #2f66dd;
    --primary-soft: #eef3fe;
    --on-primary: #ffffff;
    --omni-indigo: #5d5699;
    --omni-coral: #f37272;
    --page: #f4f5f8;
    --surface: #ffffff;
    --surface-muted: #f7f8fa;
    --chip-fill: #eceef2;
    --border: #e6e8ec;
    --border-input: #8a92a1;
    --ink: #171b24;
    --text-body: #3b4252;
    --text-secondary: #626979;
    --status-success-text: #157f3d;
    --status-success-bg: #e7f6ec;
    --status-danger-text: #c9283a;
    --status-danger-bg: #ffeef0;
    --status-warning-text: #a85507;
    --shadow-button: 0 4px 10px -4px rgba(47,102,221,0.45);
    --radius-control: 10px;
    --radius-card: 16px;
    --control-h: 40px;
    --control-h-lg: 48px;

    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-lockup: "Plus Jakarta Sans", system-ui, sans-serif;
    --wrap: 1040px;
    --text-wrap: 680px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--surface);
    color: var(--text-body);
    font: 17px/1.65 var(--font);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--retail-blue); outline-offset: 2px;
}
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3.2vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
small, .meta { font-size: 14px; color: var(--text-secondary); }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--text-wrap); }
.wrap.prose { max-width: var(--wrap); } /* keep text sections left-aligned with the rest of the page */
.wrap.prose > * { max-width: var(--text-wrap); }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }

/* Logo and lockup (same maths as the app's .rt-lockup) */
.logo { display: inline-block; }
.logo img { display: block; height: 40px; width: auto; }
.lockup { --h: 56px; position: relative; display: inline-block; line-height: 1; padding-bottom: calc(var(--h) * 0.19); }
.lockup img { display: block; height: var(--h); width: auto; }
.lockup span { position: absolute; right: calc(var(--h) * 0.254); top: calc(var(--h) * 0.9); font: 600 calc(var(--h) * 0.26)/1 var(--font-lockup); letter-spacing: 0.03em; color: var(--omni-indigo); }
.lockup.sm { --h: 40px; }

/* Header */
.site-head { border-bottom: 1px solid var(--border); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.nav a { color: var(--text-body); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--primary-text); border-bottom-color: var(--retail-blue); }
.nav .sep { width: 1px; height: 20px; background: var(--border); }
.nav-mobile { display: none; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 8px 4px; color: var(--ink); font-size: 16px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after { content: " +"; color: var(--text-secondary); }
.nav-mobile[open] summary::after { content: " -"; }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 72px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; z-index: 5; }
.nav-mobile nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-body); text-decoration: none; }
.nav-mobile nav a:last-child { border-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: var(--control-h-lg); padding: 0 22px; border-radius: var(--radius-control); border: 1px solid transparent; font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-button); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); color: var(--primary-text); border-color: var(--retail-blue); }
.btn-outline:hover { background: var(--primary-soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }

/* Hero: text left, a real-looking object right */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero .lede { font-size: 19px; max-width: 560px; }
.hero-band { background: var(--primary-soft); border-bottom: 1px solid var(--border); padding: 72px 0; }
.hero-band .btn-outline { background: transparent; }
.hero-band .btn-outline:hover { background: var(--surface); }
.eyebrow { font-size: 15px; color: var(--text-secondary); margin-bottom: 10px; }

/* Two products, split by a rule instead of boxed in cards */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > div { padding: 8px 40px 8px 0; }
.split > div + div { padding: 8px 0 8px 40px; border-left: 1px solid var(--border); }
.split .lockup { margin-bottom: 18px; }
.split .logo { margin-bottom: calc(18px + 56px * 0.19); } /* lines up with the taller Retail lockup beside it */
.split .who { color: var(--ink); font-weight: 700; margin-bottom: 8px; }

/* Plain tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); white-space: nowrap; }
tbody th { color: var(--ink); font-weight: 700; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price { font-size: 22px; font-weight: 700; color: var(--ink); }
.yes { color: var(--status-success-text); }
.no { color: var(--text-secondary); }

/* Receipt (hero object on the Retail page and home page) */
.receipt { background: var(--surface); border: 1px solid var(--border); padding: 22px 22px 26px; max-width: 340px; justify-self: end; width: 100%; font-size: 14px; line-height: 1.5; color: var(--ink); transform: rotate(1.2deg); box-shadow: 0 1px 0 var(--border), 0 12px 24px -16px rgba(16,24,40,0.25); position: relative; }
.receipt::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -8px; height: 8px; background: linear-gradient(-45deg, transparent 6px, var(--surface) 0) 0 0 / 12px 8px repeat-x, linear-gradient(45deg, transparent 6px, var(--surface) 0) 0 0 / 12px 8px repeat-x; }
.receipt .r-head { text-align: center; margin-bottom: 12px; }
.receipt .r-head img { height: 30px; width: auto; display: block; margin: 0 auto 4px; filter: grayscale(1) contrast(1.4); }
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.receipt .r-sub { color: var(--text-secondary); padding-left: 12px; }
.receipt .r-rule { border-top: 1px dashed var(--border-input); margin: 10px 0; }
.receipt .r-total { font-weight: 700; font-size: 17px; }
.receipt .r-foot { text-align: center; color: var(--text-secondary); margin-top: 12px; }

/* Order feed (hero object on the OMNISYNC page) */
.feed { border-top: 2px solid var(--ink); font-size: 15px; justify-self: end; width: 100%; max-width: 420px; }
.feed .f-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.feed .f-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.feed .f-ch { color: var(--text-secondary); font-size: 14px; }
.status { font-weight: 700; font-size: 14px; }
.status.ok { color: var(--status-success-text); }
.status.warn { color: var(--status-warning-text); }
.status.info { color: var(--primary-text); }
.feed .f-cap { font-size: 13px; color: var(--text-secondary); margin-top: 10px; }

/* Feature list: heading beside its text, like a spec sheet */
.spec { display: grid; grid-template-columns: 220px 1fr; gap: 0 40px; }
.spec dt { color: var(--ink); font-weight: 700; padding: 18px 0; border-top: 1px solid var(--border); }
.spec dd { margin: 0; padding: 18px 0; border-top: 1px solid var(--border); }
.spec dd p:last-child, .spec dd ul:last-child { margin-bottom: 0; }

kbd { display: inline-block; min-width: 24px; padding: 1px 6px; border: 1px solid var(--border-input); border-bottom-width: 2px; border-radius: 6px; font: 700 13px/1.4 var(--font); color: var(--ink); background: var(--surface-muted); text-align: center; }

/* Questions */
.qa h3 { margin-top: 28px; }
.qa h3:first-child { margin-top: 0; }

/* Letter */
.letter { font-size: 18px; }
.letter .sign { margin-top: 24px; color: var(--ink); }

/* Contact form */
.form { max-width: 560px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 16px; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
    width: 100%; min-height: var(--control-h-lg); padding: 10px 14px; border: 1px solid var(--border-input); border-radius: var(--radius-control);
    font: 16px/1.5 var(--font); color: var(--ink); background: var(--surface);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--retail-blue); box-shadow: 0 0 0 3px var(--primary-soft); outline: none; }
.field .hint { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.chips { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border-input); border-radius: var(--radius-control); overflow: hidden; }
.chips label { margin: 0; font-weight: 400; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; padding: 10px 16px; border-right: 1px solid var(--border-input); color: var(--text-body); }
.chips label:last-child span { border-right: 0; }
.chips input:checked + span { background: var(--primary); color: var(--on-primary); }
.chips input:focus-visible + span { outline: 2px solid var(--retail-blue); outline-offset: -4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: var(--radius-control); margin-bottom: 24px; }
.notice.ok { background: var(--status-success-bg); color: var(--status-success-text); }
.notice.err { background: var(--status-danger-bg); color: var(--status-danger-text); }
.notice[hidden] { display: none; }

/* Footer */
.site-foot { background: var(--page); border-top: 1px solid var(--border); margin-top: 24px; padding: 48px 0 32px; font-size: 15px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.foot-brand p { margin: 0; }
.foot-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.foot-cols h4 { margin: 0 0 10px; font-size: 15px; color: var(--ink); }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin-bottom: 8px; }
.foot-cols a { color: var(--text-body); text-decoration: none; }
.foot-cols a:hover { color: var(--primary-text); text-decoration: underline; }
.langs a { color: var(--text-secondary); margin-left: 6px; }
.langs span[aria-current] { color: var(--ink); font-weight: 600; margin-left: 6px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 14px; }

@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .receipt, .feed { justify-self: start; }
    .split { grid-template-columns: 1fr; }
    .split > div { padding: 0 0 32px; }
    .split > div + div { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--border); }
    .spec { grid-template-columns: 1fr; }
    .spec dd { border-top: 0; padding-top: 0; }
    .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 760px) {
    .nav { display: none; }
    .nav-mobile { display: block; }
    .site-head .wrap { position: relative; }
    .section { padding: 40px 0; }
    .hero { padding: 40px 0; }
    body { font-size: 16px; }
}

/* Comparison pages */
.cmp td:nth-child(2), .cmp td:nth-child(3) { width: 34%; }
.cmp thead th:nth-child(2) { color: var(--primary-text); }
.asof { font-size: 14px; color: var(--text-secondary); }
.pros { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pros > div { padding-right: 40px; }
.pros > div + div { padding: 0 0 0 40px; border-left: 1px solid var(--border); }
@media (max-width: 860px) {
    .pros { grid-template-columns: 1fr; }
    .pros > div { padding: 0 0 24px; }
    .pros > div + div { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* Guides */
ol.steps { padding-left: 0; list-style: none; counter-reset: step; }
ol.steps > li { counter-increment: step; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--border); margin: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 16px; font-size: 26px; font-weight: 800; color: var(--retail-blue); font-variant-numeric: tabular-nums; }
ol.steps h3 { margin-bottom: 6px; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; color: var(--ink); white-space: nowrap; }
.barcode-demo { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 22px; letter-spacing: 0.08em; color: var(--ink); margin: 8px 0 4px; }
.barcode-demo b { color: var(--primary-text); }
.barcode-demo i { font-style: normal; color: var(--status-success-text); }
.barcode-demo u { text-decoration: none; color: var(--status-warning-text); }
