/* CartSync marketing theme. Built from the CartSync Assets Library HTML mockup (docs/design/html-mockup).
   The :root bridge reads Trellis's palette (--tr-p-*) so the owner's colour choices apply; the hex is the design's
   fallback. Brand: CartSync Green #46B864, Lime #9EC83B, Deep Teal #0B8276, Ink #0F172A, Slate #64748B. */
:root {
    --ink: var(--tr-p-ink, #0f172a);
    --slate: var(--tr-p-slate, #64748b);
    --body-copy: #435363;
    --teal: var(--tr-p-teal, #0b8276);
    --mist: var(--tr-p-mist, #f8faf9);
    --pine: var(--tr-p-pine, #075f57);
    --pine-muted: var(--tr-p-pine-muted, #c0d9d3);
    --green: #46b864;
    --hairline: #edf1ef;
    --hairline-strong: #dce6df;
    --link: #2563eb;
    --font: var(--tr-font-body, "IBM Plex Sans", Arial, sans-serif);
    --wrap: 1248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cs-site {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}
.cs-site h1, .cs-site h2, .cs-site h3 { font-family: var(--tr-font-display, var(--font)); color: inherit; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 36px; }
a, .text-link { color: var(--link); text-decoration: none; }
a:hover, .text-link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: #fff; padding: .6rem 1rem; border-radius: 7px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Trellis wraps each section in an envelope; this theme's module templates draw their own full-width bands. */
.cs-site .tr-section { padding: 0; margin-block: 0; }
.cs-site .tr-section--full, .cs-site .tr-section--full[data-surface] { padding-inline: 0; }
.cs-site main > .tr-section:not(.tr-section--full), .cs-site .tr-main > .tr-section:not(.tr-section--full) { max-width: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: .6rem;
    background: var(--link); color: #fff; border-radius: 7px;
    padding: 14px 18px; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.btn:hover { background: #1d4ed8; text-decoration: none; }
.btn--light { background: #fff; color: var(--pine); }
.btn--light:hover { background: #eef6f3; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--hairline); }
.header-row { height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { width: 174px; height: auto; display: block; }
.navlinks { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 500; }
.navlinks a { color: var(--ink); }
.navlinks a[aria-current="page"] { color: var(--teal); }
.navlinks .nav-emphasis { background: var(--link); color: #fff; padding: 10px 14px; border-radius: 7px; }

.site-footer { border-top: 1px solid var(--hairline); margin-top: 72px; }
.footer-row { min-height: 125px; display: flex; gap: 30px; align-items: center; }
.site-footer .logo { width: 124px; }
.copyright { font-size: 12px; color: var(--slate); }
.footer-links { margin-left: auto; display: flex; gap: 22px; font-size: 13px; }
.footer-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.cms-footer { padding-top: 24px; font-size: 13px; color: var(--slate); }

/* Shared labels */
.eyebrow, .section-label { font-size: 11px; letter-spacing: 1.7px; font-weight: 600; color: var(--teal); text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow i, .pulse {
    width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block;
    box-shadow: 0 0 0 4px rgb(70 184 100 / 9%);
}
.cs-site h2 { font-size: 38px; letter-spacing: -1.2px; line-height: 1.15; font-weight: 600; margin: 15px 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-top: 74px; padding-bottom: 80px; align-items: center; }
.hero--plain { grid-template-columns: 1fr; }
.cs-site .hero h1 { font-size: 62px; line-height: 1.04; letter-spacing: -2.8px; font-weight: 600; margin: 24px 0; }
.hero h1 em { font-style: normal; color: var(--teal); display: inline-block; text-wrap: balance; }
.intro { font-size: 18px; line-height: 1.6; max-width: 475px; color: var(--body-copy); }
.detail { font-size: 14px; line-height: 1.7; color: var(--slate); max-width: 450px; margin: 18px 0 26px; }
.actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* Console preview (decorative, illustrative data) */
.visual { position: relative; min-width: 0; padding-top: 35px; isolation: isolate; margin: 0; }
.visual::before {
    content: ""; position: absolute; inset: -80px -30px; z-index: -1;
    background: radial-gradient(ellipse, #e5f3e6 0%, #f0f8ef 35%, transparent 70%);
}
.visual--image img { width: 100%; height: auto; border-radius: 12px; }
.orbit { position: absolute; border: 1px solid #dfebdf; border-radius: 50%; z-index: -1; }
.orbit-one { width: 540px; height: 540px; top: -35px; left: -10px; }
.orbit-two { width: 430px; height: 430px; top: 20px; left: 45px; }
.float-label {
    position: absolute; top: -6px; right: 15px; z-index: 2; font-size: 11px; display: flex; gap: 8px; align-items: center;
    padding: 10px 14px; border: 1px solid #e1eae1; border-radius: 30px; background: #fff;
}
.dashboard {
    background: #fff; border: 1px solid #dfe7e3; border-radius: 12px; box-shadow: 0 24px 65px rgb(24 61 36 / 12.5%);
    transform: rotate(-2deg); overflow: hidden;
}
.dash-top { height: 55px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.dash-top img { width: 100px; height: auto; }
.dash-top > span { font-size: 9px; background: #f1f5ef; padding: 7px; border-radius: 50%; color: #46634d; }
.dash-top b { margin-left: 6px; }
.dash-body { display: flex; }
.dash-aside { width: 48px; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 10px; padding: 16px 9px; color: #a1aaa6; text-align: center; }
.dash-aside div { padding: 5px; }
.nav-selected { background: #e7f6ec; color: var(--teal); border-radius: 5px; }
.aside-bottom { margin-top: auto; }
.dash-main { padding: 20px; flex: 1; min-width: 0; }
.dash-heading { display: flex; align-items: center; justify-content: space-between; }
.dash-heading small { font-size: 7px; letter-spacing: 1px; color: #86918c; }
.cs-site .dash-heading h3 { margin: 5px 0 16px; font-size: 19px; }
.live { font-size: 7px; color: var(--teal); border: 1px solid #e4ece5; padding: 5px; border-radius: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats > div { border: 1px solid #e7ece9; border-radius: 6px; padding: 12px 8px; }
.stats small, .stats span { display: block; font-size: 8px; color: #76827c; }
.stats strong { display: block; font-size: 21px; margin: 7px 0; }
.stats span { color: var(--teal); font-size: 7px; }
.chart { border: 1px solid #e7ece9; border-radius: 6px; padding: 13px; margin-top: 13px; }
.chart > div:first-child { display: flex; justify-content: space-between; font-size: 9px; }
.chart small { font-size: 7px; color: #76827c; }
.chart svg { width: 100%; height: auto; margin-top: 15px; display: block; }
.days { display: flex; justify-content: space-between; color: #859087; font-size: 7px; }
.orders { margin-top: 18px; font-size: 9px; }
.orders > div { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--hairline); padding: 10px 0; }
.orders > b { display: block; margin-bottom: 10px; }
.orders small { display: block; font-size: 7px; color: #89928f; margin-top: 4px; }
.orders mark { font-size: 7px; background: #eef8ee; color: #28814d; border-radius: 4px; padding: 4px 8px; }
.dash-foot { padding: 10px 16px; border-top: 1px solid var(--hairline); font-size: 7px; letter-spacing: 1px; color: #859087; display: flex; justify-content: space-between; }
.dash-foot span { letter-spacing: 0; }
.sync-card {
    position: relative; margin: -16px -14px 0 45px; background: #fff; border: 1px solid #dde8df;
    box-shadow: 0 10px 25px rgb(33 78 49 / 6%); display: flex; align-items: center; gap: 11px; padding: 18px; border-radius: 10px;
}
.sync-icon { font-size: 24px; background: #eef6e7; border-radius: 8px; padding: 5px 10px; color: var(--teal); }
.sync-card b { font-size: 12px; }
.sync-card small { display: block; font-size: 9px; color: var(--slate); margin-top: 4px; }
.check { margin-left: auto; color: var(--teal); }
.visual-caption { font-size: 11px; color: var(--slate); text-align: center; margin: 23px 0 0; }

/* Integrations */
.integrations > .wrap { text-align: center; border-top: 1px solid var(--hairline); padding-top: 32px; padding-bottom: 40px; }
.cs-site .integrations-heading { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--slate); margin: 10px; line-height: 1.5; }
.partners { list-style: none; padding: 0; display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 28px 0 20px; }
.partner { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; color: #4b5563; }
.partner img { height: 28px; width: 28px; object-fit: contain; filter: grayscale(1); opacity: .65; mix-blend-mode: multiply; }
.partner.wide img { width: 116px; height: 28px; }
.integrations-note { font-size: 12px; color: var(--slate); margin: 0; }

/* Feature columns */
.benefits { background: var(--mist); border-block: 1px solid var(--hairline); padding: 65px 0; }
.section-intro { font-size: 15px; color: var(--slate); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 36px; }
.cards article { border-top: 1px solid var(--hairline-strong); padding-top: 24px; }
.line-icon, .card-icon { color: var(--teal); width: 24px; height: 24px; display: block; margin-bottom: 15px; }
.cs-site .cards h3 { font-size: 17px; font-weight: 600; line-height: 1.4; max-width: 200px; }
.cards p { font-size: 13px; color: var(--slate); line-height: 1.8; }
.section-more { margin-top: 28px; font-size: 14px; }

/* Text with checklist box */
.new { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-top: 78px; padding-bottom: 78px; }
.new > div > p { font-size: 15px; line-height: 1.8; color: var(--slate); max-width: 450px; }
.cs-site .new h2 { max-width: 8.6em; }
.checklist { border: 1px solid #e2e9e5; border-radius: 12px; padding: 28px 32px; align-self: center; }
.cs-site .checklist h3 { font-size: 17px; margin-top: 0; }
.checklist ul { padding: 0; list-style: none; margin: 24px 0 0; }
.checklist li { font-size: 13px; color: #53635d; padding: 9px 0; }
.checklist li::before { content: "✓"; color: var(--teal); margin-right: 13px; }
.checklist li small { display: block; margin: 4px 0 0 26px; color: var(--slate); }

/* Rounded teal call-to-action band */
.cta-wrap { padding-bottom: 8px; }
.cta {
    position: relative; overflow: hidden; background: var(--pine); border-radius: 16px; text-align: center;
    padding: 48px 36px 39px; color: #fff;
}
.cta .eyebrow { justify-content: center; color: var(--pine-muted); }
.cs-site .cta h2 { font-size: 37px; position: relative; color: #fff; }
.cta > p { color: var(--pine-muted); font-size: 15px; position: relative; }
.cta .btn { position: relative; margin-top: 10px; }
.cta-decoration { position: absolute; right: -30px; top: -100px; font-size: 360px; line-height: 1; color: rgb(255 255 255 / 3%); pointer-events: none; }

/* Inner pages (Privacy, Terms) */
.page-head { background: var(--mist); border-bottom: 1px solid var(--hairline); padding: 56px 0 44px; }
.cs-site .page-head h1 { font-size: 48px; line-height: 1.08; letter-spacing: -1.8px; font-weight: 600; margin: 18px 0 12px; }
.page-lead { font-size: 17px; line-height: 1.6; color: var(--body-copy); max-width: 720px; margin: 0; }
.page-body { padding-top: 24px; }
.prose > * { max-width: 760px; }
.prose-section { padding-top: 20px; }
.prose-section[id] { scroll-margin-top: 24px; }
.cs-site .prose h2 { font-size: 24px; letter-spacing: -.4px; margin: 20px 0 10px; }
.cs-site .prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose li { font-size: 15px; line-height: 1.75; color: var(--body-copy); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 16px 0; padding: 14px 18px; background: var(--mist); border-left: 3px solid var(--teal); border-radius: 0 7px 7px 0; }

/* Not found / empty */
.empty-page { padding-top: 96px; padding-bottom: 96px; }
.cs-site .empty-page h1 { font-size: 54px; line-height: 1.05; letter-spacing: -2px; font-weight: 600; margin: 22px 0; }
.empty-page h1 em { font-style: normal; color: var(--teal); }

@media (min-width: 1400px) {
    :root { --wrap: 1312px; }
    .hero { gap: 72px; }
    .cs-site .hero h1 { font-size: 68px; }
    .visual { margin-left: 10px; }
}
@media (max-width: 850px) {
    .wrap { padding-inline: 24px; }
    .header-row { height: 84px; }
    .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 45px; }
    .hero-copy { max-width: 600px; }
    .cs-site .hero h1 { font-size: 60px; }
    .visual { max-width: 550px; width: 100%; margin: auto; }
    .partners { flex-wrap: wrap; justify-content: center; gap: 24px; }
    .cards { grid-template-columns: 1fr 1fr; }
    .new { gap: 35px; }
    .orbit { display: none; }
}
@media (max-width: 500px) {
    .logo { width: 137px; }
    .hero { padding-top: 34px; padding-bottom: 42px; gap: 40px; }
    .eyebrow, .section-label { font-size: 9px; letter-spacing: 1.3px; }
    .cs-site .hero h1 { font-size: 45px; letter-spacing: -1.8px; line-height: 1.07; margin-top: 20px; }
    .intro { font-size: 16px; line-height: 1.65; }
    .detail { font-size: 13px; margin: 17px 0 24px; }
    .visual { padding-top: 30px; }
    .dashboard { transform: rotate(-1deg); }
    .dash-main { padding: 12px; }
    .dash-aside { width: 33px; padding: 12px 4px; font-size: 12px; }
    .stats strong { font-size: 16px; }
    .stats > div { padding: 9px 6px; }
    .live { font-size: 6px; }
    .cs-site .dash-heading h3 { font-size: 17px; }
    .sync-card { padding: 12px; margin: -8px -4px 0 15px; }
    .sync-card b { font-size: 11px; }
    .visual-caption { font-size: 10px; line-height: 1.6; }
    .float-label { font-size: 10px; right: 0; }
    .integrations > .wrap { padding-top: 26px; padding-bottom: 28px; }
    .cs-site .integrations-heading { font-size: 13px; }
    .partners { gap: 22px 17px; }
    .partner { font-size: 10px; }
    .partner img { height: 25px; width: 25px; }
    .partner.wide img { width: 105px; }
    .benefits { padding: 42px 0; }
    .cs-site h2 { font-size: 30px; }
    .section-intro { font-size: 13px; line-height: 1.6; }
    .cards { gap: 21px; margin-top: 24px; }
    .cs-site .cards h3 { font-size: 15px; }
    .cards p { font-size: 12px; }
    .new { grid-template-columns: 1fr; padding-top: 45px; padding-bottom: 45px; gap: 26px; }
    .new > div > p { font-size: 14px; }
    .checklist { padding: 24px; }
    .cta { padding: 34px 22px 27px; border-radius: 12px; }
    .cs-site .cta h2 { font-size: 30px; }
    .cta > p { font-size: 13px; line-height: 1.7; }
    .cta .eyebrow { font-size: 8px; }
    .footer-row { gap: 12px; flex-wrap: wrap; padding-top: 25px; padding-bottom: 25px; }
    .site-footer .logo { width: 113px; }
    .copyright { font-size: 10px; flex-basis: 100%; order: 3; }
    .footer-links { gap: 14px; font-size: 12px; }
    .page-head { padding: 36px 0 30px; }
    .cs-site .page-head h1 { font-size: 36px; }
    .cs-site .empty-page h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
