/* Genesys AI Solutions — design system v3 (2026-11-04)
   Apple-inspired: light surfaces, huge tight type, frosted sticky nav,
   pill buttons, deep-navy product tiles, soft shadows, quiet motion.
   Brand kept: navy + teal, hexagon logo. All legacy classes preserved. */
:root {
  --navy: #16324f;
  --deep: #0a1f33;
  --teal: #0e7a6b;
  --teal-bright: #12a594;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #f5f5f7;
  --line: #d2d2d7;
  --radius: 20px;
  --shadow-lg: 0 30px 60px rgba(10, 31, 51, .18);
  --shadow-sm: 0 10px 30px rgba(10, 31, 51, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--deep); color: #fff; padding: .5rem 1rem; z-index: 60; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
::selection { background: var(--teal); color: #fff; }

/* ——— Frosted sticky nav ——— */
header { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 253, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; padding: .55rem 0; min-height: 52px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .85; transition: opacity .2s ease; }
.site-nav a:hover { opacity: 1; text-decoration: none; }
.site-nav a[aria-current="page"] { opacity: 1; font-weight: 650; }
.site-brand { display: flex; align-items: center; gap: .55rem; margin-right: auto; font-size: 1.02rem; font-weight: 650; opacity: 1 !important; letter-spacing: -.01em; }
.site-brand img { border-radius: 0; padding: 0; background: transparent; }
.site-nav .nav-cta { background: var(--teal); color: #fff; border-radius: 980px; padding: .42rem 1.05rem; font-weight: 600; opacity: 1; }
.site-nav .nav-cta:hover { background: var(--teal-bright); }
.nav-group { position: relative; }
.nav-group summary { color: var(--ink); font-weight: 500; font-size: .95rem; cursor: pointer; list-style: none; opacity: .85; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-submenu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(0, 0, 0, .06); border-radius: 18px; padding: .6rem; margin: .55rem 0 0; min-width: 270px; list-style: none; box-shadow: var(--shadow-lg); z-index: 55; }
.nav-submenu a { color: var(--ink); display: block; padding: .5rem .8rem; font-weight: 500; border-radius: 10px; opacity: 1; }
.nav-submenu a:hover { background: var(--bg-alt); text-decoration: none; }

/* ——— Type & rhythm ——— */
main { padding: 3rem 0 4rem; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); line-height: 1.06; font-weight: 700; letter-spacing: -.022em; color: var(--ink); margin: 0 0 1rem; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 3.4rem 0 .9rem; }
h3 { font-size: 1.18rem; font-weight: 650; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .4rem; }
p { margin: .6rem 0; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 46rem; font-weight: 400; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--teal); margin: 0 0 .9rem; }
.grad { background: linear-gradient(90deg, var(--teal), #1f9d8a 55%, #2fbfa8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ——— Buttons ——— */
.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; padding: .68rem 1.5rem; border-radius: 980px; border: 0; cursor: pointer; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.btn:hover { background: var(--teal-bright); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.alt { background: transparent; border: 2px solid #fff; color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); margin-left: .6rem; }
.btn.ghost:hover { background: var(--teal); color: #fff; }

/* ——— Homepage hero: light, centred, product-tile image ——— */
.hero { background: var(--bg); color: var(--ink); padding: 2.6rem 0 0; margin-bottom: 2.6rem; text-align: center; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; justify-items: center; }
.hero h1 { max-width: 15ch; margin-left: auto; margin-right: auto; }
.hero .lede { color: var(--muted); margin-left: auto; margin-right: auto; }
.hero .cta-row { margin-top: 1.6rem; display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; align-items: center; }
.hero .btn.alt { background: transparent; border: 0; color: var(--teal); font-weight: 600; padding: .68rem .2rem; box-shadow: none; }
.hero .btn.alt::after { content: " ›"; }
.hero .btn.alt:hover { text-decoration: underline; transform: none; }
.hero-grid img { border-radius: 28px; box-shadow: var(--shadow-lg); width: 100%; max-height: 560px; object-fit: cover; }

/* ——— Cards & steps ——— */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 1.2rem 0; }
.card { background: var(--card); border: 0; border-radius: var(--radius); padding: 1.5rem 1.5rem 1.35rem; display: block; text-decoration: none; color: var(--ink); height: 100%; transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
a.card:hover { transform: translateY(-4px) scale(1.012); box-shadow: var(--shadow-lg); text-decoration: none; }
.card p { color: var(--muted); margin: .3rem 0; font-size: .98rem; }
.card .from { color: var(--teal); font-weight: 650; }
.card img { border-radius: 14px; margin-bottom: .9rem; width: 100%; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.6rem; list-style: none; padding: 0; counter-reset: step; margin: 1.2rem 0; }
.steps li { background: transparent; border: 0; padding: .2rem 0; }
.steps .n { display: block; background: transparent; color: var(--teal); font-weight: 800; font-size: 2.1rem; line-height: 1.1; width: auto; height: auto; text-align: left; margin-bottom: .4rem; }
.steps h3 { margin-top: .1rem; }
.steps p { color: var(--muted); }

.price-table-wrap { overflow-x: auto; margin: 1rem 0; }
table.prices { border-collapse: collapse; width: 100%; background: var(--card); }
table.prices th, table.prices td { border: 1px solid var(--line); padding: .65rem .9rem; text-align: left; }
table.prices th { background: var(--deep); color: #fff; }
.note { color: var(--muted); font-size: .95rem; }

/* ——— Service hero: deep product tile ——— */
.svc-hero { background: linear-gradient(160deg, var(--deep), var(--navy) 70%, #1f4e79); color: #fff; border-radius: 28px; padding: 3rem 2.6rem; display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.2rem; align-items: center; margin-bottom: 2.4rem; box-shadow: var(--shadow-lg); }
.svc-hero h1 { color: #fff; }
.svc-hero .lede { color: #b9cbdd; }
.svc-hero img { border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); width: 100%; height: auto; }
.svc-hero .btn.ghost { border-color: rgba(255, 255, 255, .85); color: #fff; margin-left: .6rem; }
.svc-hero .btn.ghost:hover { background: #fff; color: var(--deep); }
@media (max-width: 720px) { .svc-hero { grid-template-columns: 1fr; padding: 2rem 1.4rem; } }

/* ——— CTA band: near-black tile, centred ——— */
.cta-band { background: var(--deep); color: #fff; border-radius: 28px; padding: 3rem 2.4rem; margin-top: 3.4rem; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #b9cbdd; max-width: 40rem; margin-left: auto; margin-right: auto; }
.cta-band a { color: #7fe3cf; font-weight: 600; }

/* ——— Footer: deep brand close ——— */
footer { background: var(--deep); color: #b9cbdd; padding: 3rem 0 1.4rem; margin-top: 3rem; font-size: .95rem; }
footer a { color: #7fe3cf; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.8rem; }
.footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; margin: 0 0 .4rem; }
.footer-head { font-weight: 700; color: #fff; margin: 0 0 .5rem; letter-spacing: .01em; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 1.8rem; padding-top: 1.1rem; font-size: .88rem; color: #8fa6ba; }
.footer-logo { height: 54px; width: auto; margin: 0 0 .7rem; }

/* ——— Demo pages ——— */
.demo-banner { background: #fff4d6; border: 1px solid #e3c566; color: #6b5510; border-radius: 14px; padding: .75rem 1.1rem; font-weight: 600; margin: 1rem 0 1.4rem; }
.demo-panel { background: var(--bg-alt); border: 0; border-radius: var(--radius); padding: 1.6rem 1.7rem; margin: 1.1rem 0; }
.demo-panel h2 { margin-top: .2rem; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
table.demo-table { border-collapse: collapse; width: 100%; }
table.demo-table th, table.demo-table td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
table.demo-table th { background: #fff; color: var(--ink); }
.pill { display: inline-block; border-radius: 999px; padding: .12rem .6rem; font-size: .85rem; font-weight: 700; }
.pill.ok { background: #e2f4ec; color: #0e7a6b; }
.pill.warn { background: #fdeeda; color: #9a6206; }
.pill.info { background: #e4edf7; color: var(--navy); }
.chat { border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem; background: #fbfcfd; max-width: 560px; }
.msg { border-radius: 16px; padding: .55rem .85rem; margin: .45rem 0; max-width: 85%; }
.msg.bot { background: #e4edf7; }
.msg.user { background: #e2f4ec; margin-left: auto; }
.msg .who { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.chips { margin-top: .8rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--teal); color: var(--teal); background: #fff; border-radius: 999px; padding: .35rem .85rem; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease; }
.chip:hover { background: var(--teal); color: #fff; }
.ticket { font-family: ui-monospace, Consolas, monospace; background: var(--deep); color: #dff2ec; border-radius: 16px; padding: 1.1rem 1.2rem; white-space: pre-wrap; }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: 980px; padding: .5rem .95rem; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.slot:hover, .slot.picked { border-color: var(--teal); background: #e2f4ec; }
.page-art { width: 100%; max-width: 620px; height: auto; border-radius: 16px; margin: .4rem 0 1rem; }
.demo-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.demo-links a { display: inline-block; padding: .45rem .95rem; border: 1.5px solid var(--teal); border-radius: 999px; color: var(--teal); font-weight: 600; text-decoration: none; transition: all .2s ease; }
.demo-links a:hover { background: var(--teal); color: #fff; }

/* ——— Contact enquiry form ——— */
.enquiry-form { display: grid; gap: 1.05rem; max-width: 620px; margin: 1.1rem 0 1.4rem; }
.enquiry-form label { display: grid; gap: .4rem; font-weight: 600; color: var(--ink); font-size: .98rem; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg-alt); border: 1.5px solid transparent; border-radius: 12px; padding: .72rem .9rem; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: none; background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 122, 107, .15); }
.enquiry-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.enquiry-form button { justify-self: start; }
.form-banner { max-width: 620px; border-radius: 14px; padding: .85rem 1.05rem; margin: 1rem 0; }
.form-banner.ok { background: #e2f4ec; border: 1.5px solid #0e7a6b; }
.form-banner.err { background: #fdeaea; border: 1.5px solid #b03a2e; }

/* ——— Scroll reveal (JS-gated; content is visible without JS) ——— */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ——— FAQ (visible Q&A matching FAQPage schema) ——— */
.faq-list { display: grid; gap: .7rem; max-width: 760px; margin: 1rem 0; }
.faq-item { background: var(--bg-alt); border-radius: 14px; padding: 1rem 1.2rem; }
.faq-item summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.faq-item[open ] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: .55rem 0 .2rem; }
