/*
 * site.css - the public look of 4carbon.in and printatm.4carbon.in (one file, copied as is into both projects:
 * C:\xampp\htdocs\4Carbon\assets\site.css and C:\xampp\htdocs\4Carbon\printatm\assets\site.css; tests compare them).
 * Windows 11 light: Segoe UI, light layers, white cards with a hairline stroke, small radii, quiet motion.
 * Each site sets its accent in its own small file (4carbon.css, printatm.css). Mobile first.
 */
:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #fbfbfb;
  --stroke: #e5e5e5;
  --stroke-strong: #d1d1d1;
  --text: #1b1b1b;
  --text-2: #5c5c5c;
  --text-3: #767676;
  --accent: #005fb8;
  --on-accent: #ffffff;
  --accent-soft: #e8f1fb;
  --accent-ink: #003e7a;
  --link: #005fb8;
  --hero-from: #ffffff;
  --hero-to: #f3f3f3;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-up: 0 8px 24px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.1, .9, .2, 1);
  --gutter: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow-up); }
.skip:focus { top: 8px; }

/* Windows 11 scroll bars: thin, rounded, quiet until hovered. */
* { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .32) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .3); border-radius: 12px; border: 4px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(0, 0, 0, .5); border-width: 3px; }
::-webkit-scrollbar-corner { background: transparent; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* App bar: acrylic-like, sticky. */
.appbar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--stroke); }
.appbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: var(--radius-sm); }
.nav a:hover { background: rgba(0, 0, 0, .05); }
.nav a:active { background: rgba(0, 0, 0, .08); }
.nav .hide-sm { display: none; }
.stripe { height: 4px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 100%); border-bottom: 1px solid var(--stroke); padding: 24px 0 28px; overflow: hidden; }
.hero-grid { display: grid; gap: 20px; align-items: center; }
.hero h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.01em; font-weight: 600; margin: 0 0 10px; }
.hero .lead { font-size: 16px; color: var(--text-2); margin: 0 0 18px; max-width: 46ch; }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-up); }
.hero-icon { width: 72px; height: 72px; margin-bottom: 14px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .12)); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Buttons: Windows 11 style, press-in on tap. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 16px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, transform .12s var(--ease), box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: rgba(0, 0, 0, .08); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-default { background: var(--surface); color: var(--text); border-color: var(--stroke-strong); border-bottom-color: #c4c4c4; }
.btn-default:hover { background: #f9f9f9; }
/* Product buttons take the destination's colour. */
.btn-printatm { background: #f2c230; color: #1b1b1b; border-color: rgba(0, 0, 0, .08); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .16); }
.btn-printatm:hover { background: #f5cb4a; }
.btn-wimr { background: #2f6fde; color: #fff; border-color: rgba(0, 0, 0, .08); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2); }
.btn-wimr:hover { background: #3f7be3; }

/* Sections and cards */
.section { padding: 28px 0 4px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.section h2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 0 0 14px; }
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.card p { margin: 0; color: var(--text-2); font-size: 14px; }
.card p + p, .card p + .actions { margin-top: 12px; }
.cards { display: grid; gap: 12px; }
.chip { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 8px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); }
.chip-neutral { background: #f0f0f0; color: var(--text-2); }
.ic { width: 36px; height: 36px; flex: none; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.row-item { display: flex; gap: 12px; align-items: flex-start; }
.row-item b { display: block; font-size: 15px; font-weight: 600; }
.row-item span { display: block; font-size: 14px; color: var(--text-2); }

/* Product cards */
.product { display: flex; gap: 14px; align-items: flex-start; }
.product > img { width: 56px; height: 56px; flex: none; border-radius: 12px; }
.product .banner { margin-top: 12px; width: 140px; border-radius: 4px; }
.product .actions { margin-top: 12px; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text); }
.steps li::before { content: counter(step); width: 26px; height: 26px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }

/* Horizontal slider (feature groups): swipe on phones, a grid on wide screens. */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px; -webkit-overflow-scrolling: touch; }
.slider { scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: flex; flex-direction: column; }
.slide h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 6px; }
.feats { list-style: none; margin: 0; padding: 0; }
.feat { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid #f0f0f0; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.feat:first-child { border-top: 0; }
.feat svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--accent-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #c8c8c8; cursor: pointer; transition: width .25s var(--ease), background-color .2s; }
.dots button[aria-current="true"] { width: 20px; background: var(--accent-ink); }

/* Marquee strip */
.marquee { overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--stroke); background: var(--surface-2); padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: inline-flex; gap: 28px; padding-right: 28px; animation: marquee 40s linear infinite; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.marquee-track span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 2px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Contact */
.contact { display: grid; gap: 12px; align-items: center; }
.contact .mail { font-size: 18px; font-weight: 600; word-break: break-all; }

/* Footer */
.footer { margin-top: 36px; border-top: 1px solid var(--stroke); background: var(--surface-2); padding: 20px 0 28px; font-size: 13px; color: var(--text-2); }
.footer .wrap { display: grid; gap: 12px; }
.footer a { color: var(--text-2); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.made-by { display: flex; align-items: center; gap: 10px; color: var(--text-2); text-decoration: none; }
.made-by img { width: 84px; border-radius: 3px; }

/* Entrance motion (Windows 11 "rise in"), only when scripts run. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .rise { animation: rise .55s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: .06s; }
.hero .rise:nth-child(3) { animation-delay: .12s; }
.hero .rise:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card { transition: box-shadow .2s, transform .2s var(--ease); }
@media (hover: hover) { a.card:hover, .lift:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); } }

@media (min-width: 600px) {
  .nav .hide-sm { display: inline-block; }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .slider { grid-auto-columns: 46%; }
}
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .hero { padding: 48px 0 52px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 17px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .section { padding-top: 44px; }
  .section h2 { font-size: 26px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr auto; }
  .footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1024px) {
  .slider { grid-auto-columns: calc(25% - 9px); margin: 0; padding: 2px 0 12px; scroll-padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .hero .rise { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .dots button { transition: none; }
}
@media print {
  .appbar, .marquee, .dots, .skip { display: none; }
  .slider { display: block; overflow: visible; }
}
