/* StreamCore Media — site styles */
:root {
  --ink: #111114;
  --ink-2: #4A4A55;
  --ink-3: #6B6B76;
  --line: #EDEDF0;
  --line-2: #D9D9DE;
  --paper: #FFFFFF;
  --mist: #F6F5F3;
  --accent: #57C6AA;        /* StreamCore turquoise: fills, dark text on top */
  --accent-text: #1E7F68;   /* turquoise for text on white (WCAG AA) */
  --night: #111114;
  --radius-lg: 32px;
  --radius: 24px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
section { scroll-margin-top: 84px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; border-radius: 999px; font: 700 16px/1.2 var(--font); text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #48B99C; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.store-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 600; }
.store-links a { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #E2E2E7; background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 88px 0 80px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 36ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-grid { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { display: block; position: relative; height: 250px; border-radius: 26px; overflow: hidden; background: #EDE6DC; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .label { position: absolute; left: 12px; bottom: 12px; background: #fff; padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.tile.dark { background: #121016; }
.tile.night { background: #0B1E3A; }
.tile.bl img { object-position: 50% 100%; transform: scale(1.12); transform-origin: 50% 100%; }
.tile .less { display: none; }

/* Strip */
.strip { background: var(--mist); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: space-between; padding: 28px 0; font-weight: 700; font-size: 17px; }
.strip .wrap > span { color: var(--ink-3); font-weight: 600; }
.strip ul { display: contents; }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; }
.section-head p { font-size: 17px; color: var(--ink-2); max-width: 36ch; }

/* Apps */
.apps .wrap { display: flex; flex-direction: column; gap: 40px; padding: 112px 0 48px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.app-card { border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.app-media { position: relative; height: 340px; overflow: hidden; }
.app-media > img { width: 100%; height: 100%; object-fit: cover; }
.phone { position: absolute; bottom: -40px; width: 150px; border-radius: 26px; padding: 6px; background: #0D1B26; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.phone img { width: 100%; height: auto; border-radius: 21px; }
.phone.left { left: 24px; transform: rotate(-4deg); }
.phone.right { right: 24px; transform: rotate(4deg); }
.app-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.app-title { display: flex; align-items: center; gap: 12px; }
.app-title img { width: 48px; height: 48px; border-radius: 12px; }
.app-title > div { display: flex; flex-direction: column; gap: 2px; }
.app-cat { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.app-body h3 { font-size: 30px; letter-spacing: -0.02em; }
.app-body .desc { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.quote { font-size: 15px; font-style: italic; }
.quote cite { font-style: normal; font-weight: 600; }
.tagline { font-size: 15px; font-weight: 600; }
.banaluna .tagline { color: #0F3552; }
.iqcoach .tagline { color: var(--ink); }
.app-actions { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.app-card.aptiva { background: #EEF3EF; }
.aptiva .app-media > img { object-position: 35% 50%; }
.aptiva .app-cat { color: #3F6B50; }
.aptiva .desc, .aptiva .quote { color: #3D4A42; }
.app-card.banaluna { background: #FFF6E6; }
.banaluna .app-media > img { object-position: 60% 50%; }
.banaluna .app-cat { color: #9A4A0B; }
.banaluna h3, .banaluna .chips li { color: #0F3552; }
.banaluna .desc, .banaluna .quote { color: #4A6478; }
.banaluna .btn-dark { background: #0F3552; }
.app-card.iqcoach { background: #F5F2EC; }
.iqcoach .app-media { background: #0B1E3A; }
.iqcoach .app-media > img { object-position: 85% 60%; }
.iqcoach .app-cat { color: #0A6FB8; }
.iqcoach .desc, .iqcoach .quote { color: var(--ink-2); }

/* Coming next */
.next .wrap { padding: 40px 0; }
.next-card { border-radius: 36px; background: #121016; color: #fff; overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.next-copy { flex: 1 1 420px; min-width: 0; padding: 56px 48px; display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.next-copy h2 { font-size: 44px; }
.next-copy p { font-size: 20px; color: #D6D3DE; max-width: 34ch; }
.next .chips li { background: transparent; border: 1px solid #3A3542; }
.next-media { flex: 1 1 440px; min-width: 0; min-height: 360px; position: relative; overflow: hidden; }
.next-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Approach */
.approach .wrap { display: flex; flex-direction: column; gap: 48px; padding: 96px 0 112px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.steps li { border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.steps .num { font-size: 15px; font-weight: 800; color: var(--accent-text); }
.steps h3 { font-size: 24px; letter-spacing: -0.01em; }
.steps p { font-size: 16px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--night); color: #fff; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 64px; padding: 96px 0 40px; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.footer-cta h2 { font-size: clamp(36px, 4.6vw, 56px); max-width: 14ch; letter-spacing: -0.035em; }
.footer-cta .btn { font-size: 18px; padding: 18px 30px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; font-size: 15px; line-height: 1.6; color: #C9C9D1; border-top: 1px solid #2E2E35; padding-top: 40px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 6px; }
.footer-cols h3 { font-size: 15px; font-weight: 700; letter-spacing: 0; color: #fff; line-height: 1.6; }
.footer-cols a { color: #C9C9D1; text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.footer-cols address { font-style: normal; }
.footer-base { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; font-size: 14px; color: #A9A9B3; }
.footer-base img { width: 180px; height: auto; }
.footer-base nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-base a, .footer-base button { color: #A9A9B3; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-base a:hover, .footer-base button:hover { color: #fff; }

/* Legal pages */
.legal .wrap { max-width: 760px; padding: 72px 0 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 32px; }
.legal h2 { font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 12px; line-height: 1.2; }
.legal h3 { font-size: 18px; letter-spacing: 0; margin: 28px 0 8px; line-height: 1.3; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--accent-text); }
.legal .updated { font-size: 14px; color: var(--ink-3); margin-top: -20px; margin-bottom: 32px; }

/* Cookie banner (only shown when analytics is configured) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-inline: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px -20px rgba(17,17,20,.35); padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: var(--ink-2); }
.cookie-banner a { color: var(--accent-text); }
.cookie-banner .row { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner button { min-height: 44px; padding: 10px 18px; border-radius: 999px; font: 700 15px/1 var(--font); cursor: pointer; }
.cookie-banner .accept { background: var(--accent); color: var(--ink); border: 0; }
.cookie-banner .decline { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }

/* Mobile */
@media (max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .menu-toggle { display: inline-flex; }
  .brand img { width: 170px; }
  .site-header .wrap { min-height: 64px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; box-shadow: 0 20px 30px -24px rgba(17,17,20,.4); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav .btn { margin-top: 16px; min-height: 48px; font-size: 16px; }
  .hero .wrap { padding: 40px 0 48px; gap: 32px; }
  .hero .ctas { flex-direction: column; }
  .hero .ctas .btn { width: 100%; }
  .hero-grid { gap: 10px; }
  .tile { height: 170px; border-radius: 20px; }
  .tile .label { left: 8px; bottom: 8px; padding: 5px 10px; font-size: 12px; }
  .tile .more { display: none; }
  .tile .less { display: inline; }
  .strip .wrap { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 0; font-size: 14px; }
  .strip ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .strip li { padding: 8px 14px; border-radius: 999px; background: #fff; }
  .apps .wrap { padding: 64px 0 24px; gap: 24px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { border-radius: 26px; }
  .app-media { height: 240px; }
  .phone { width: 108px; bottom: -30px; border-radius: 20px; padding: 5px; }
  .phone img { border-radius: 16px; }
  .phone.left { left: 16px; } .phone.right { right: 16px; }
  .app-body { padding: 24px 20px 26px; gap: 14px; }
  .app-body h3 { font-size: 26px; }
  .app-body .desc { font-size: 16px; }
  .chips li { padding: 7px 12px; font-size: 13px; }
  .app-actions .btn { width: 100%; }
  .next .wrap { padding: 24px 0; }
  .next-card { border-radius: 26px; flex-direction: column-reverse; }
  .next-copy { padding: 26px 20px 30px; gap: 14px; flex-basis: auto; }
  .next-copy h2 { font-size: 32px; }
  .next-copy p { font-size: 16px; }
  .next-media { min-height: 220px; flex-basis: auto; }
  .approach .wrap { padding: 56px 0 64px; gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { padding: 22px; border-radius: 22px; gap: 8px; }
  .steps h3 { font-size: 21px; }
  .site-footer .wrap { padding: 56px 0 32px; gap: 36px; }
  .footer-cta .btn { width: 100%; font-size: 16px; padding: 16px 20px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; font-size: 14px; padding-top: 28px; }
  .legal .wrap { padding: 40px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
