/* FairStream Pulse website. Colours from the app icon (teal to blue). */
:root {
  --ink: #0f2233;
  --ink-soft: #3d5566;
  --muted: #6b7f8c;
  --bg: #ffffff;
  --bg-soft: #f2f8f8;
  --line: #d9e6e8;
  --teal: #1f8f9f;
  --teal-dark: #17707d;
  --blue: #1f5f8f;
  --hero-a: #1c548a;
  --hero-b: #34b4a0;
  --warn-bg: #fff6e0;
  --warn-line: #f0d48a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 34, 51, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 1.2em 0 0.5em; }
h3 { font-size: 1.12rem; margin: 0 0 0.4em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: 56px 20px; }
.band { background: var(--bg-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.small { font-size: 0.92rem; }
.muted { color: var(--muted); }
.note {
  border-left: 4px solid var(--teal);
  background: var(--bg-soft);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.band .note { background: #fff; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.12rem; }
.brand img { border-radius: 9px; }
.brand b { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink-soft); padding: 8px 11px; border-radius: 8px; font-size: 0.97rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--bg-soft); color: var(--teal-dark); }
.site-nav a.lang { border: 1px solid var(--line); margin-left: 6px; }
.menu-toggle { display: none; }

.experimental { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); font-size: 0.93rem; }
.experimental .wrap { padding-top: 8px; padding-bottom: 8px; }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; margin: 4px 8px 4px 0;
}
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); color: #fff; }
.btn.ghost { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn.ghost:hover { background: var(--bg-soft); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.cta-row { margin: 22px 0 10px; }

/* hero */
.hero { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; }
.hero a:not(.btn) { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, 0.92); }
.hero .muted { color: rgba(255, 255, 255, 0.8); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 700; opacity: 0.85; margin: 0 0 10px; }
.hero .btn.primary { background: #fff; color: var(--blue); }
.hero .btn.primary:hover { background: #e9f6f5; }
.hero .btn.ghost { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.hero-shots { display: flex; justify-content: center; }
.hero-shots .phone { max-width: 290px; }

/* phone screenshots */
.phone { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 7px #0f1418; background: #0f1418; }
.phone img { display: block; }
.mini-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 480px; margin: 0 auto; }
.mini-shots .phone { max-width: 230px; margin: 0 auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 20px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 20px 20px 20px 64px; position: relative; border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--ink-soft); font-size: 0.96rem; }

/* definitions */
.defs dt { font-weight: 700; margin-top: 16px; }
.defs dd { margin: 4px 0 0; color: var(--ink-soft); }

/* devices */
.tips { background: var(--bg-soft); border-radius: var(--radius); padding: 6px 18px; }
.device-list { padding-top: 0; }
.device, .faq { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; background: #fff; }
.device summary, .faq summary { cursor: pointer; padding: 14px 16px; list-style: none; }
.device summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.device summary { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; }
.device[open] summary, .faq[open] summary { border-bottom: 1px solid var(--line); }
.dev-brand { font-weight: 700; color: var(--teal-dark); font-size: 0.92rem; }
.dev-name { font-weight: 600; }
.dev-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font-size: 0.78rem; padding: 3px 9px; border-radius: 999px; background: #eef2f4; color: var(--ink-soft); white-space: nowrap; }
.badge.ok { background: #d9f3ef; color: #0f6b5f; }
.badge.part { background: #e5eefb; color: #1f4f86; }
.badge.hr { background: #f1f1f1; color: #555; }
.dev-body { padding: 4px 18px 14px; }
.dev-body h4 { margin: 12px 0 4px; }
.dev-body ol { padding-left: 22px; }
.dev-body li { margin: 4px 0; }
.faq summary { font-weight: 600; }
.faq p { padding: 0 16px 8px; color: var(--ink-soft); }
.unsupported li { margin: 4px 0; }

/* form */
.form { display: grid; gap: 16px; background: var(--bg-soft); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.97rem; }
.form input[type=email], .form input[type=text], .form textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid #b9ccd1; border-radius: 10px; background: #fff; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 3px solid rgba(31, 143, 159, 0.3); border-color: var(--teal); }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.form legend { font-weight: 600; font-size: 0.97rem; margin-bottom: 6px; width: 100%; }
.form .choice { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.form .check { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.93rem; }
.form .check input { margin-top: 5px; }
.form .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.ok { color: #0f6b5f; }
.form-msg.err { color: #a33a1c; }
.form.done > :not(.form-msg) { display: none; }
.form.done .form-msg { font-size: 1.1rem; }

/* footer */
.site-footer { background: #0f2233; color: #c9d6de; margin-top: 0; padding: 44px 0 20px; font-size: 0.95rem; }
.site-footer a { color: #e3eef2; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: #6fd3c9; }
.site-footer .muted { color: #93a8b4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h2 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: #93a8b4; margin: 6px 0 10px; }
.footer-grid > div > a:not(.brand) { display: block; text-decoration: none; margin: 5px 0; }
.footer-grid > div > a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid #22394b; margin-top: 28px; padding-top: 16px; color: #93a8b4; font-size: 0.87rem; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-shots .phone { max-width: 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle {
    display: inline-block; font: inherit; font-weight: 600; background: #fff; border: 1px solid var(--line);
    border-radius: 8px; padding: 7px 14px; color: var(--ink);
  }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a.lang { margin: 6px 0 0; text-align: center; }
}
.video { margin: 8px 0 0; }
.video figcaption { margin-top: 8px; text-align: center; }
.video-sec { padding-bottom: 8px; }
.video-sec h2 { text-align: center; }
.yt { position: relative; overflow: hidden; border-radius: var(--radius); background: #0f1318; box-shadow: var(--shadow); cursor: pointer; }
.yt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-wide { aspect-ratio: 16 / 9; }
.yt-short { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; display: none; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%;
  background: rgba(15, 34, 51, .78); cursor: pointer; transition: transform .15s, background .15s;
}
.yt-play span { position: absolute; left: 33px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play, .yt-play:focus-visible { background: var(--teal); transform: scale(1.06); }
.yt-len { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 34, 51, .8); color: #fff; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.yt.playing .yt-play, .yt.playing .yt-len, .yt.playing img { display: none; }
@media (max-width: 700px) {
  .yt-wide { display: none; }
  .yt-short { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 40px 16px; }
  .device summary { grid-template-columns: 1fr; gap: 4px; }
  .dev-badges { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .mini-shots { gap: 12px; }
}
