/* Levitate Apps: one stylesheet for the whole site.
   Brand colours (Logos/levitate-brand-colours.txt): indigo #3b2fd6, coral #ff8366 and #ffb4a0,
   wordmark #1e1a4d, dark background #14203b. */

:root {
  --indigo: #3b2fd6;
  --indigo-dark: #2c22b0;
  --coral: #ff8366;
  --coral-soft: #ffb4a0;
  --ink: #1e1a4d;
  --ink-soft: #4a4770;
  --navy: #14203b;
  --paper: #ffffff;
  --mist: #eef2fb;
  --line: #d9e0f1;
  --radius: 14px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --max: 72rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 0.15em; }
a:hover { color: var(--indigo-dark); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo); margin: 0 0 0.75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 2px solid var(--indigo);
  background: var(--indigo); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  min-height: 2.75rem;
}
.btn:hover { background: var(--indigo-dark); border-color: var(--indigo-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--indigo); }
.btn.ghost:hover { background: var(--mist); color: var(--indigo-dark); }
.btn.on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn.on-dark:hover { background: var(--coral-soft); border-color: var(--coral-soft); color: var(--ink); }
.btn.ghost.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn.ghost.on-dark:hover { background: rgba(255, 255, 255, 0.12); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand img { height: 3rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--indigo); text-decoration: underline; }
@media (max-width: 40rem) { .site-nav a:not(.btn) { display: none; } }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -45% auto; width: 60rem; height: 60rem; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(59, 47, 214, 0.55), rgba(59, 47, 214, 0) 62%); pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--coral-soft); }
.hero h1 { max-width: 20ch; }
.hero .lede { max-width: 42rem; font-size: 1.2rem; color: #dfe5f5; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

/* The hero's text beside a reel of the workspace's pages, scrolling up; on a
   narrow screen the reel sits below the text and runs sideways. The track holds
   the set twice, so moving it by half loops without a seam (each shot's margin,
   not a gap, keeps the halves equal). Hover, focus or the button pauses it. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.reel { position: relative; height: 34rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); }
.reel-track { display: flex; flex-direction: column; animation: reel-up 60s linear infinite; }
.shot { position: relative; margin: 0 0 1.25rem; border-radius: 10px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.7); }
.shot figcaption { position: absolute; left: 0.6rem; bottom: 0.6rem; font-size: 0.75rem; font-weight: 600; line-height: 1.4;
  color: #fff; background: rgba(20, 32, 59, 0.88); padding: 0.15rem 0.6rem; border-radius: 999px; }
.reel:hover .reel-track, .reel:focus-within .reel-track, .reel.paused .reel-track { animation-play-state: paused; }
.reel-toggle { position: absolute; right: 0.75rem; bottom: 0.75rem; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  color: #fff; background: rgba(20, 32, 59, 0.88); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 0.25rem 0.8rem; }
.reel-toggle:hover { background: var(--indigo); }
@keyframes reel-up { to { transform: translateY(-50%); } }
@keyframes reel-left { to { transform: translateX(-50%); } }
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .reel { height: auto; margin: 0 calc(-1 * var(--gutter));
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
  .reel-track { flex-direction: row; width: max-content; padding: 0.5rem 0 2.75rem; animation-name: reel-left; animation-duration: 50s; }
  .shot { width: min(78vw, 26rem); margin: 0 1rem 0 0; }
  .reel-toggle { right: var(--gutter); bottom: 0; }
}
/* No motion wanted: the pages stay still, and on a phone they can be swiped. */
@media (prefers-reduced-motion: reduce) {
  .reel-toggle { display: none; }
  .reel .shot[aria-hidden="true"] { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 60rem) { .reel { overflow-x: auto; } }

/* Video: a poster that loads YouTube only when played */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.video iframe, .video button.poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button.poster { padding: 0; cursor: pointer; background: #000 center / cover no-repeat; display: block; }
.video button.poster::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5.5rem; height: 5.5rem; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233b2fd6' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 58% center / 46% no-repeat;
  transition: transform 0.15s ease;
}
.video button.poster:hover::after { transform: translate(-50%, -50%) scale(1.08); }
.video .caption { position: absolute; left: 1rem; bottom: 0.9rem; font-size: 0.8rem; color: #fff; background: rgba(0, 0, 0, 0.55); padding: 0.2rem 0.6rem; border-radius: 999px; }

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }

.features { background: var(--mist); }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
@media (max-width: 60rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .grid { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card .num { display: inline-block; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.08em; color: var(--coral); margin-bottom: 0.6rem; }
.card h3 { margin-bottom: 0.5em; }
.card p { margin: 0 0 0.6em; color: var(--ink-soft); font-size: 1rem; }
.card p:last-child { margin-bottom: 0; }


.about { background: var(--mist); }
.about p { max-width: 46rem; font-size: 1.15rem; }

/* Contact */
.contact .cols { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.2fr; align-items: start; }
@media (max-width: 52rem) { .contact .cols { grid-template-columns: 1fr; } }
.contact .alt { margin-top: 1.5rem; color: var(--ink-soft); }
form.contact-form { display: grid; gap: 1rem; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
form.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
form.contact-form .opt { font-weight: 400; color: var(--ink-soft); }
form.contact-form input, form.contact-form textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #9aa3c7; border-radius: 10px; padding: 0.7rem 0.85rem; width: 100%;
}
form.contact-form textarea { min-height: 9rem; resize: vertical; }
form.contact-form input:focus-visible, form.contact-form textarea:focus-visible { outline: 3px solid var(--coral); outline-offset: 1px; border-color: var(--indigo); }
form.contact-form label.check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; }
form.contact-form label.check input { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; flex: none; accent-color: var(--indigo); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.status { margin: 0; padding: 0.8rem 1rem; border-radius: 10px; font-weight: 600; }
.status[hidden] { display: none; }
.status.ok { background: #e1f5e6; color: #14532d; }
.status.err { background: #fde8e6; color: #7a1d12; }

/* Footer */
.site-footer { background: var(--navy); color: #dfe5f5; padding: 2.5rem 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer img { height: 2.8rem; width: auto; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--coral-soft); }
.site-footer p { margin: 0; }
.site-footer .company { flex-basis: 100%; font-size: 0.85rem; color: #b9c3dc; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }

/* Privacy policy page */
.policy { padding: clamp(2rem, 5vw, 4rem) 0; }
.policy .wrap { max-width: 52rem; }
.policy h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.policy h2 { font-size: 1.35rem; margin-top: 2.2em; }
.policy h3 { font-size: 1.1rem; margin-top: 1.6em; }
.policy div { margin-bottom: 0.7em; }
.policy ul, .policy ol { margin: 0 0 1em; padding-left: 1.4rem; }
.policy table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.policy th, .policy td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.policy th { background: var(--mist); }
.back { display: inline-block; margin-bottom: 1.25rem; font-weight: 600; }
