/* iGoScale website. Plain CSS, no build step. Brand blue #1D5FCC, ink #16233D. */
:root {
  --blue: #1d5fcc;
  --blue-strong: #164ca6;
  --blue-soft: #e8f0fd;
  --ink: #16233d;
  --text: #22304a;
  --muted: #55627a;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --card: #ffffff;
  --border: #dde5f2;
  --ok: #157a4a;
  --warn-bg: #fff6e0;
  --warn-text: #6b4a00;
  --shadow: 0 1px 2px rgba(22, 35, 61, .06), 0 8px 24px rgba(22, 35, 61, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1160px;
  --font-head: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: only light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-strong); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.logo-dark { display: none !important; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 8px; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--blue-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: #1d5fcc; }
.nav a.btn-primary:hover { background: #164ca6; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--card); color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s, transform .15s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #1d5fcc; color: #fff; }
.btn-primary:hover { background: #164ca6; color: #fff; }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn small { display: block; font-weight: 500; font-size: .75rem; opacity: .85; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.eyebrow { display: inline-block; font: 600 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 80px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-grid > *, .grid > *, .split > *, .strip li, .footer-grid > *, .doc-layout > * { min-width: 0; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 span { color: var(--blue); }
.hero .lead { font-size: 1.2rem; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; }

/* Proof strip */
.strip { padding: 28px 0; border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 560px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .strip ul { grid-template-columns: repeat(4, 1fr); } }
.strip li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.strip li span { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }

/* Icon badge */
.icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue);
}
.icon svg { width: 22px; height: 22px; }

/* App icons (launcher tiles: white, like on the phone) */
.app-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(22, 35, 61, .08); flex-shrink: 0; }
.app-icon img { width: 48px; height: 48px; }
.app-icon.sm { width: 48px; height: 48px; border-radius: 12px; }
.app-icon.sm img { width: 36px; height: 36px; }

/* Cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 680px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); box-shadow: var(--shadow); }
.card h3 { margin-top: 16px; }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
.card ul li { margin: 4px 0; }

.type-card { padding: 28px; }
.type-card .tag { display: inline-block; margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--blue); }

/* Split blocks */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.checks b { color: var(--ink); }

/* Devices diagram */
.devices { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.device { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; gap: 12px; align-items: center; }
.device.wide { grid-column: 1 / -1; }
.device.hub { grid-column: 1 / -1; border-color: var(--blue); background: var(--blue-soft); }
.device b { display: block; color: var(--ink); font-size: .98rem; }
.device span { font-size: .88rem; color: var(--muted); }

/* Pricing */
.pricing { display: grid; gap: 20px; }
@media (min-width: 860px) { .pricing { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--blue); }
.plan .price { font: 700 2.4rem/1.1 var(--font-head); color: var(--ink); margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 1rem var(--font-body); color: var(--muted); }
.plan .note { color: var(--muted); font-size: .92rem; }
.plan .checks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font: 600 1.05rem/1.4 var(--font-head); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Notice */
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn-text); font-size: .95rem; }
.notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.notice p { margin: 0; }

/* Final CTA */
.cta-band { background: #1d5fcc; color: #fff; border-radius: 24px; padding: 48px 24px; text-align: center; }
@media (min-width: 700px) { .cta-band { padding: 64px 48px; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe7fb; max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: #16233d; }
.cta-band .btn-primary:hover { background: #e8f0fd; color: #16233d; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: .95rem; color: var(--muted); background: var(--bg-alt); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 28px; width: auto; margin-bottom: 12px; }
.footer-brand p { max-width: 320px; }
.site-footer h2 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer ul a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .88rem; }

/* Document pages (legal, download) */
.doc-hero { padding: 56px 0 28px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.doc-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc-meta { color: var(--muted); margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.doc-layout { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.toc { font-size: .92rem; }
@media (min-width: 1000px) { .toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; } }
.toc h2 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 6px 12px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }
.prose { max-width: 760px; font-size: 1.03rem; }
.prose h2 { font-size: 1.4rem; margin: 2.2em 0 .6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li > ul { margin-top: .3em; }
.prose strong { color: var(--ink); }
.prose .facts { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 28px; }
.prose .facts p { margin: .25em 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* 404 */
.error-page { text-align: center; padding: 96px 0 120px; }
.error-page .code { font: 700 5rem/1 var(--font-head); color: var(--blue); margin-bottom: 8px; }
.error-page .cta-row { justify-content: center; margin-top: 24px; }

/* Reveal on scroll (only when JS runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease-out, transform .45s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Offline multi-counter animation (home #devices). One 10 s loop; runs only while visible. */
:root { --line: #c9d6ea; --frame: #16233d; --screen: #f5f8fd; --green: #157a4a; }
.flow-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .flow-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.flow { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 16px; }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow .frame { fill: var(--frame); }
.flow .srv-frame { stroke: var(--blue); stroke-width: 3; }
.flow .screen { fill: var(--screen); }
.flow text { font-family: var(--font-body); }
.flow .t-label { font-size: 16px; font-weight: 600; fill: var(--ink); }
.flow .t-strong { font-size: 18px; font-weight: 700; fill: var(--blue); font-family: var(--font-head); }
.flow .t-small { font-size: 12px; font-weight: 600; fill: #16233d; }
.flow .t-muted { font-size: 15px; fill: var(--muted); }
.flow .t-badge { font-size: 14px; font-weight: 700; fill: #fff; }
.flow .b-blue { fill: #1d5fcc; }
.flow .b-green { fill: var(--green); }
.flow .pk { fill: #1d5fcc; stroke: #fff; stroke-width: 3; opacity: 0; }
.flow .ring { fill: none; stroke: #1d5fcc; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.flow .badge { opacity: 0; }
.flow .links path { animation: flow-dash 1.2s linear infinite; }

.flow .pk1 { animation: pk1 10s infinite; }
.flow .pk2 { animation: pk2 10s infinite; }
.flow .pk3 { animation: pk3 10s infinite; }
.flow .pk4 { animation: pk4 10s infinite; }
.flow .ring-c2 { animation: ring-c2 10s infinite; }
.flow .ring-srv { animation: ring-srv 10s infinite; }
.flow .b1 { animation: b1 10s infinite; }
.flow .b2 { animation: b2 10s infinite; }
.flow .b3, .flow .b4, .flow .b5 { animation: b3 10s infinite; }
.flow .wifi .w2 { animation: wifi 2s ease-in-out infinite; }
.flow .wifi .w3 { animation: wifi 2s ease-in-out .3s infinite; }
.flow:not(.play) * { animation-play-state: paused !important; }

@keyframes flow-dash { to { stroke-dashoffset: -11; } }
@keyframes wifi { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pk1 {
  0%, 11% { transform: translate(90px, 110px); opacity: 0; }
  12% { transform: translate(90px, 110px); opacity: 1; }
  31% { transform: translate(300px, 250px); opacity: 1; }
  32%, 100% { transform: translate(300px, 250px); opacity: 0; }
}
@keyframes pk2 {
  0%, 47% { transform: translate(300px, 250px); opacity: 0; }
  48% { transform: translate(300px, 250px); opacity: 1; }
  66% { transform: translate(90px, 360px); opacity: 1; }
  67%, 100% { transform: translate(90px, 360px); opacity: 0; }
}
@keyframes pk3 {
  0%, 47% { transform: translate(300px, 250px); opacity: 0; }
  48% { transform: translate(300px, 250px); opacity: 1; }
  66% { transform: translate(510px, 110px); opacity: 1; }
  67%, 100% { transform: translate(510px, 110px); opacity: 0; }
}
@keyframes pk4 {
  0%, 47% { transform: translate(300px, 250px); opacity: 0; }
  48% { transform: translate(300px, 250px); opacity: 1; }
  66% { transform: translate(510px, 360px); opacity: 1; }
  67%, 100% { transform: translate(510px, 360px); opacity: 0; }
}
@keyframes ring-c2 { 0% { transform: scale(.7); opacity: .8; } 10% { transform: scale(1.3); opacity: 0; } 100% { opacity: 0; } }
@keyframes ring-srv { 0%, 31% { transform: scale(.7); opacity: 0; } 32% { transform: scale(.7); opacity: .8; } 44% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
@keyframes b1 { 0% { opacity: 0; } 3%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes b2 { 0%, 31% { opacity: 0; } 34%, 52% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes b3 { 0%, 66% { opacity: 0; } 69%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* Steps next to the animation, lit in time with it */
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.flow-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.flow-steps .num { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font: 700 .95rem/1 var(--font-head); background: var(--blue-soft); color: var(--blue); }
.flow-steps b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.flow-steps p { margin: 0; color: var(--muted); }
.flow-steps.play .s1 { animation: s1 10s infinite; }
.flow-steps.play .s2 { animation: s2 10s infinite; }
.flow-steps.play .s3 { animation: s3 10s infinite; }
@keyframes s1 { 0%, 31% { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 35%, transparent); } 33%, 100% { background: transparent; border-color: transparent; } }
@keyframes s2 { 0%, 31% { background: transparent; border-color: transparent; } 33%, 49% { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 35%, transparent); } 51%, 100% { background: transparent; border-color: transparent; } }
@keyframes s3 { 0%, 49% { background: transparent; border-color: transparent; } 51%, 96% { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 35%, transparent); } 98%, 100% { background: transparent; border-color: transparent; } }
.flow-note { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; padding: 0 18px; color: var(--muted); }
.flow-note svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }

.apps-title { margin: 56px 0 16px; }
.devices-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .devices-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .devices-row { grid-template-columns: repeat(4, 1fr); } }

/* Reduced motion: a still picture of the finished state, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .flow *, .flow-steps li { animation: none !important; }
  .flow .b2, .flow .b3, .flow .b4, .flow .b5 { opacity: 1; }
}

/* Store-type cards: the whole card is the link */
.type-card { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 3px; }
.type-card:hover .tag { text-decoration: underline; }

/* "Also included" list on the store-type pages */
.mini-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .mini-grid { grid-template-columns: repeat(5, 1fr); } }
.mini-grid li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.mini-grid svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.mini-grid b { display: block; color: var(--ink); }
.mini-grid span { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* Café: how an order moves */
.journey { display: grid; gap: 8px; }
.journey-step { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.journey-step b { display: block; color: var(--ink); font-family: var(--font-head); }
.journey-step span:not(.app-icon) { color: var(--muted); font-size: .95rem; }
.journey-arrow { display: flex; justify-content: center; color: var(--blue); }
.journey-arrow svg { width: 24px; height: 24px; transform: rotate(90deg); }

/* Cost examples (café recipe, service split) */
.cost-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.cost-title { font: 600 1.1rem/1.3 var(--font-head); color: var(--ink); margin-bottom: 14px; }
.cost-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.cost-row span:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.cost-sum { font-weight: 600; border-bottom-style: solid; }
.cost-profit { border-bottom: 0; font: 700 1.15rem/1.3 var(--font-head); color: var(--ok); }
.cost-profit span:last-child { color: var(--ok); }
.cta-small { margin: 24px auto 0 !important; font-size: .95rem !important; }
.cta-band .cta-small a { color: #fff; }
.hero .breadcrumb { margin-bottom: 18px; }

/* Home: iGoScale Cloud, "Manage all your stores" (right under the hero) */
.cloud-band { background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg) 70%); border-bottom: 1px solid var(--border); }
.cloud-shot { max-width: 1040px; margin: 0 auto 48px; }
.cloud-points { display: grid; gap: 24px; }
@media (min-width: 680px) { .cloud-points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cloud-points { grid-template-columns: repeat(4, 1fr); } }
.cloud-points h3 { margin: 14px 0 6px; }
.cloud-points p { color: var(--muted); margin: 0; }
.cloud-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 44px; text-align: center; }
.cloud-cta p { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.hero-cloud { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--ink); text-decoration: none; font-size: .95rem; transition: background-color .2s; }
.hero-cloud:hover { background: color-mix(in srgb, var(--blue-soft) 70%, var(--blue) 12%); color: var(--ink); }
.hero-cloud svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.hero-cloud b { color: var(--blue); }

/* Free app vs paid cloud, side by side */
.tiers { display: grid; gap: 12px; align-items: stretch; max-width: 920px; margin: -12px auto 40px; }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr auto 1fr; } }
.tier { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.tier h3 { margin: 10px 0 6px; }
.tier p { margin: 0; color: var(--muted); }
.tier-free { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.tier-paid { border: 2px solid var(--blue); }
.tier-plus { display: flex; align-items: center; justify-content: center; font: 700 1.6rem/1 var(--font-head); color: var(--muted); }
.tier-tag { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; font: 700 .78rem/1.6 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.tier-free .tier-tag, .tag-free { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.tier-paid .tier-tag, .tag-paid { color: var(--blue); background: var(--blue-soft); }
.plan .tier-tag { align-self: flex-start; margin-bottom: 10px; }
.paid-note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; color: var(--muted); }
.paid-note svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }

/* ---- Animations started by site.js when seen (never when motion is turned off) ---- */
/* Café: the order steps light up one after another */
.journey.anim-ready.play .journey-step { animation: step-on 6s ease-in-out infinite; }
.journey.anim-ready.play .journey-step:nth-of-type(2) { animation-delay: 2s; }
.journey.anim-ready.play .journey-step:nth-of-type(3) { animation-delay: 4s; }
.journey.anim-ready.play .journey-arrow svg { animation: arrow-nudge 2s ease-in-out infinite; }
@keyframes step-on {
  0%, 30%, 100% { border-color: var(--border); box-shadow: none; transform: none; }
  8%, 24% { border-color: var(--blue); box-shadow: 0 10px 28px -12px rgba(29, 95, 204, .45); transform: translateX(6px); }
}
@keyframes arrow-nudge { 0%, 100% { transform: rotate(90deg) translateX(-3px); opacity: .5; } 50% { transform: rotate(90deg) translateX(3px); opacity: 1; } }
/* Cost examples: rows come in one by one, then the profit counts up */
.cost-card.anim-ready .cost-row, .cost-card.anim-ready .cost-title { opacity: 0; transform: translateY(8px); }
.cost-card.anim-ready.play .cost-row, .cost-card.anim-ready.play .cost-title { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }
.cost-card.anim-ready.play .cost-row:nth-of-type(1) { transition-delay: .15s; }
.cost-card.anim-ready.play .cost-row:nth-of-type(2) { transition-delay: .3s; }
.cost-card.anim-ready.play .cost-row:nth-of-type(3) { transition-delay: .45s; }
.cost-card.anim-ready.play .cost-row:nth-of-type(4) { transition-delay: .6s; }
.cost-card.anim-ready.play .cost-row:nth-of-type(5) { transition-delay: .75s; }
.cost-card.anim-ready.play .cost-row:nth-of-type(6) { transition-delay: .9s; }
/* Retail: Default / Fast Mode cross-fade */
.pm-panel { animation: panel-in .35s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pm-panel { animation: none; } }

/* Plain rows instead of icon-card grids (store-type pages) */
.split-top { align-items: start; }
.rows { margin: 0; display: grid; border-top: 1px solid var(--border); }
.rows > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .rows > div { grid-template-columns: 200px 1fr; gap: 24px; } }
.rows dt { font: 600 1.02rem/1.4 var(--font-head); color: var(--ink); }
.rows dd { margin: 0; color: var(--muted); }

/* Home: a day at the counter, four steps on a line */
.day { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; counter-reset: none; }
@media (min-width: 900px) {
  .day { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .day::before, .day::after { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: var(--border); }
  .day::after { background: var(--blue); transform-origin: left; }
}
.day-step { position: relative; z-index: 1; }
.day-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 1.1rem/1 var(--font-head); box-shadow: 0 0 0 6px var(--bg-alt); }
.day-step h3 { margin: 14px 0 8px; font-size: 1.25rem; }
.day-step ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.day-step li { margin: 6px 0; }
.day-extras { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); display: grid; gap: 16px; }
@media (min-width: 900px) { .day-extras { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.day-extras li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.day-extras svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.day-extras b { color: var(--ink); }
/* The line draws across, and each number lights up as it passes */
.day.anim-ready::after { transform: scaleX(0); }
.day.anim-ready .day-num { background: var(--card); color: var(--muted); border: 2px solid var(--border); }
.day.anim-ready .day-step { opacity: .55; }
.day.anim-ready.play::after { transform: scaleX(1); transition: transform 2.4s cubic-bezier(.4, 0, .2, 1) .2s; }
.day.anim-ready.play .day-step { opacity: 1; transition: opacity .5s ease; }
.day.anim-ready.play .day-num { background: var(--blue); color: #fff; border-color: var(--blue); transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.day.anim-ready.play .day-step:nth-child(1), .day.anim-ready.play .day-step:nth-child(1) .day-num { transition-delay: .2s; }
.day.anim-ready.play .day-step:nth-child(2), .day.anim-ready.play .day-step:nth-child(2) .day-num { transition-delay: .95s; }
.day.anim-ready.play .day-step:nth-child(3), .day.anim-ready.play .day-step:nth-child(3) .day-num { transition-delay: 1.7s; }
.day.anim-ready.play .day-step:nth-child(4), .day.anim-ready.play .day-step:nth-child(4) .day-num { transition-delay: 2.45s; }
.day.anim-ready.play .day-num { animation: num-pop .45s ease both; }
.day.anim-ready.play .day-step:nth-child(1) .day-num { animation-delay: .2s; }
.day.anim-ready.play .day-step:nth-child(2) .day-num { animation-delay: .95s; }
.day.anim-ready.play .day-step:nth-child(3) .day-num { animation-delay: 1.7s; }
.day.anim-ready.play .day-step:nth-child(4) .day-num { animation-delay: 2.45s; }
@keyframes num-pop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Small notes */
.apps-note { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.receipt-note { margin: 22px 0 0; padding-left: 14px; border-left: 3px solid var(--border); color: var(--muted); font-size: .95rem; }
.type-tag { display: inline-block; margin-top: 14px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--border); }
.type-tag + h3 { margin-top: 8px; }
.mini-6 { }
@media (min-width: 1200px) { .mini-grid.mini-6 { grid-template-columns: repeat(3, 1fr); } }
.cost-btn { margin-top: 16px; pointer-events: none; }
#commissions .cost-card { margin-top: 28px; }

/* Download: requirements table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table thead th { font: 600 .85rem/1.3 var(--font-body); color: var(--muted); background: var(--bg-alt); }
.spec-table tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.spec-table td { color: var(--text); }
.price-detail { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }

/* Companion app pages */
.app-hero-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.app-hero-id .type-tag { margin-top: 0; }
.app-req { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.kiosk-wrap { max-width: 360px; margin: 0 auto; width: 100%; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 0; border-top: 1px solid var(--border); }
.steps-list li { counter-increment: st; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--border); color: var(--muted); }
.steps-list li::before { content: counter(st); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font: 700 .9rem/1 var(--font-head); }
.steps-list b { color: var(--ink); }
.apps-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .apps-grid { grid-template-columns: repeat(4, 1fr); } }
.app-link { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.app-link:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--text); }
.app-link b { display: block; color: var(--ink); }
.app-link small { display: block; font-size: .8rem; color: var(--blue); font-weight: 600; margin: 2px 0 4px; }
.app-link span span { color: var(--muted); font-size: .92rem; }
.app-link[aria-current] { border-color: var(--blue); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .cx-tv *, .cx-kiosk * { animation: none !important; } }
.device-link { text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.device-link:hover { border-color: var(--blue); box-shadow: var(--shadow); color: inherit; }
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link:hover { color: var(--blue); text-decoration: underline; }
