/* Spinify AI site styles. Brand teal comes from the logo (#228aa5). */
:root {
  --brand: #228aa5;
  --brand-600: #1b7189;
  --brand-50: #eaf6f9;
  --ink: #0e2430;
  --ink-2: #3b5260;
  --muted: #6a7f8b;
  --line: #dde7ec;
  --bg: #ffffff;
  --bg-soft: #f5f9fb;
  --dark: #0b1d27;
  --accent: #f29f3d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 36, 48, .06), 0 8px 24px rgba(14, 36, 48, .06);
  --max: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16.5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; padding: .8em 1.4em; border-radius: 999px; border: 2px solid var(--brand); transition: background .15s, border-color .15s, color .15s; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--brand-600); }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-600); }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { width: 30px; height: auto; }
.brand b { color: var(--brand); }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a, .sub-toggle { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 12px; border-radius: 8px; display: block; background: none; border: 0; font-family: inherit; cursor: pointer; }
.site-nav > ul > li > a:not(.btn):hover, .sub-toggle:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--brand-600); }
.site-nav .btn { color: #fff; background: var(--brand); border-radius: 999px; padding: .5em 1.1em; margin-left: 8px; }
.site-nav .btn:hover { background: var(--brand-600); }
.sub-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); margin-left: 8px; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: none; }
.has-sub.open .sub { display: block; }
.sub a { padding: 10px 12px; }
.sub a:hover { background: var(--bg-soft); }
.sub strong { display: block; color: var(--ink); }
.sub small { color: var(--muted); font-weight: 500; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 20px 20px; max-height: calc(100vh - 68px); overflow: auto; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; display: block; }
  .sub-toggle { width: 100%; text-align: left; }
  .sub-toggle::after { display: none; }
  .site-nav .btn { margin: 10px 0 0; justify-content: center; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #dfe9ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-dark .eyebrow { color: #6fd0e6; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.section-dark .lead { color: #b9ccd5; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,24,33,.95) 0%, rgba(8,24,33,.75) 45%, rgba(8,24,33,.2) 100%); }
.hero .container { position: relative; z-index: 1; padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(80px, 12vw, 150px); }
.hero h1 { max-width: 780px; color: #fff; }
.hero .lead { color: #cfe0e7; max-width: 620px; font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, #123646 100%); color: #fff; }
.page-hero .container { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { color: #c3d7df; max-width: 760px; }

/* Home hero: signature image + brand panel */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.hero-img { position: relative; min-height: 300px; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-panel { background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; padding: clamp(40px, 6vw, 80px); text-align: center; }
.hero-panel > div { max-width: 520px; }
.hero-panel h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.hero-panel .lead { color: #e6f5f9; font-size: 1.2rem; }
.hero-panel .hero-actions { justify-content: center; }
.btn-light { background: #fff; color: var(--brand-600); border-color: #fff; }
.btn-light:hover { background: var(--brand-50); border-color: var(--brand-50); color: var(--brand-600); }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } .hero-img { aspect-ratio: 3 / 2; min-height: 0; } }

/* YouTube click-to-play (loads the player only on click, via youtube-nocookie) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: transparent; }
.video button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(34,138,165,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; transition: background-color .15s; }
.video button:hover::after { background-color: #d62020; }
.use-case .video { margin-bottom: 20px; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.section-dark .card p { color: #b9ccd5; }
.section-dark .icon { background: rgba(111,208,230,.12); color: #6fd0e6; }

/* Split: text + media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media img { width: 100%; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--dark); padding: 28px 24px; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #6fd0e6; line-height: 1.1; margin-bottom: 6px; }
.stat span { color: #b9ccd5; font-size: .98rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Feature lists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .25em; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23228aa5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.checklist strong { color: var(--ink); }
.use-case { display: flex; flex-direction: column; }
.use-case h3 { display: flex; align-items: center; gap: 10px; }
.tag { align-self: flex-start; display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--brand-50); color: var(--brand-600); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }

/* Clients */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 28px 72px; }
.logos img { height: 60px; width: auto; object-fit: contain; }
.logos .exfo { height: 30px; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial { max-width: 820px; width: 100%; margin: 0 auto; text-align: center; display: flex; flex-direction: column; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: clamp(28px, 5vw, 56px); }
.stars { color: #f5c518; font-size: 1.4rem; letter-spacing: .15em; margin-bottom: 16px; }
.testimonial blockquote { margin: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.testimonial blockquote p { font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.7; color: #e3edf1; margin: 0; }
.testimonial blockquote p + p { margin-top: 1em; }
.testimonial blockquote p:first-child::before { content: "\201C"; }
.testimonial blockquote p:last-child::after { content: "\201D"; }
.testimonial figcaption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; text-align: left; }
.testimonial figcaption img { flex: 0 0 auto; width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 50%; padding: 0 9px; }
.testimonial figcaption img.emblem { padding: 0; }
.testimonial figcaption b { display: block; color: #fff; }
.testimonial figcaption span { color: #9fb6c1; font-size: .95rem; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--brand-600), var(--brand)); color: #fff; border-radius: 22px; padding: clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #e2f3f7; }
.cta .btn { background: #fff; color: var(--brand-600); border-color: #fff; }
.cta .btn:hover { background: #eaf6f9; }

/* Prose (policy) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.meta-line { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #c9d7de; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,138,165,.18); }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.check input { margin-top: 5px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: #1a7f4b; }
.form-status.err { color: #b3261e; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { flex: 0 0 auto; margin: 0; width: 40px; height: 40px; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list b { display: block; }
.contact-list a { text-decoration: none; }

/* Footer */
.site-footer { background: var(--dark); color: #a9bec8; padding: 64px 0 0; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-light { color: #fff; }
.site-footer .muted { color: #8ea5b0; margin-top: 14px; }
.footer-h { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfe0e7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--brand); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 20px; font-size: .88rem; color: #7f96a1; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
