/* Vimo website. Values come from the design handoff ("Vimo Design System/website") and tokens.json, dark theme only. */

@font-face {
  font-family: "Sora";
  src: url("/fonts/v1/sora-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/v1/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --backdrop: #141519;
  --surface-page: #1b1e24;
  --surface-card: #24272d;
  --hairline: rgba(255, 255, 255, 0.08);
  --text-heading: #f4f5f8;
  --text-body: #c5c7cd;
  --text-muted: #9598a0;
  --accent: #9a95ef;
  --link: #c4c4fd;
  --mint: #7fcaa3;
  --bezel: #0a0b0e;
  --font-heading: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--backdrop);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--backdrop);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  flex: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--text-heading);
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.mint {
  color: var(--mint);
}

.page {
  width: 100%;
  overflow: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header, brand, link rows */

.site-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text-heading);
}

.brand img {
  width: 32px;
  height: 32px;
}

/* The wordmark "vimo.": lowercase, Sora 700, -0.03em, the period in the accent (design system, 2026-11-15). */
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand__dot {
  color: var(--accent);
}

.brand--footer img {
  width: 28px;
  height: 28px;
}

.brand--footer .brand__name {
  font-size: 18px;
}

.brand__tagline {
  font-size: 15px;
  color: var(--text-muted);
}

.nav,
.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}

.nav {
  margin: 0 -12px;
}

.nav a,
.legal__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-body);
}

.nav a:hover,
.legal__nav a:hover {
  color: var(--text-heading);
}

/* Hero */

.hero {
  background: radial-gradient(ellipse 46% 62% at 76% 46%, rgba(154, 149, 239, 0.26) 0%, rgba(154, 149, 239, 0) 72%);
}

.hero__inner {
  padding-top: 40px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
}

.hero__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--text-heading);
}

.home h1 {
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* The row gap is Apple's clear space for the badge: a quarter of its height. */
  gap: 14px 24px;
  padding-top: 8px;
}

/* Apple's official badge, unmodified: 56 px tall (40 px is the minimum). */
.badge {
  display: inline-flex;
  border-radius: 10px;
}

.badge img {
  width: auto;
  height: 56px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.hero__note {
  font-size: 14px;
  color: var(--text-muted);
}

.hero__media {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  justify-content: center;
}

/* The phone frame: 9 px bezel, radii 54 / 45 at 330 px wide; the three scale together on a narrower screen. */
.phone {
  --phone-width: min(330px, 100vw - 48px);
  width: var(--phone-width);
  padding: calc(var(--phone-width) * 9 / 330);
  border-radius: calc(var(--phone-width) * 54 / 330);
  background: var(--bezel);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.phone img {
  width: 100%;
  border-radius: calc(var(--phone-width) * 45 / 330);
}

/* Sections */

.section--alt {
  background: var(--surface-page);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section__inner {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section h2 {
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.section__head p {
  font-size: 18px;
}

.section h3 {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* How it works */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
}

.step__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--link);
}

.step__figure {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--text-heading);
}

.step__figure--wrap {
  flex-wrap: wrap;
  gap: 4px 12px;
}

.step__figure--clock {
  align-items: baseline;
  gap: 10px;
  color: var(--link);
}

.step__unit {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--text-muted);
}

.step p {
  font-size: 16px;
  line-height: 1.55;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px 48px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature h3 {
  margin-top: 4px;
}

.feature p {
  font-size: 16px;
  line-height: 1.6;
}

.features__note {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--text-muted);
}

/* Gallery */

.gallery {
  list-style: none;
  margin: 0 -24px;
  padding: 4px 24px 12px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
}

.gallery li {
  flex: 0 0 248px;
  scroll-snap-align: start;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: none;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  font: inherit;
  color: inherit;
}

button.shot {
  cursor: zoom-in;
}

.shot img {
  width: 100%;
}

/* Larger view (built by js/site.js) */

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(2, 3, 6, 0.86);
  color: var(--text-heading);
  cursor: zoom-out;
  overscroll-behavior: contain;
}

.viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer::backdrop {
  background: transparent;
}

.viewer__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(88vh, 1100px);
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  cursor: default;
}

.viewer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text-heading);
  cursor: pointer;
}

.viewer__close:hover {
  background: #2e3138;
}

/* The page behind the larger view does not scroll. */
html.is-locked {
  overflow: hidden;
}

/* Closing call to action and footer */

.closing__inner {
  padding-top: 104px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.closing h2 {
  max-width: 760px;
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.site-footer {
  border-top: 1px solid var(--hairline);
}

.site-footer__inner {
  padding-top: 28px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

/* Legal pages and 404: flat background, 680 px text column */

.legal__main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.legal h1 {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.legal__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-wrap: break-word;
}

.legal__text h2 {
  margin-top: 20px;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal__text p {
  font-size: 17px;
  line-height: 1.65;
}

.legal__text ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal__text li {
  font-size: 17px;
  line-height: 1.6;
}

/* A link inside running text keeps a 44 px touch target without changing the line height. */
.legal__text a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
}

.legal__footer {
  border-top: 1px solid var(--hairline);
}

.legal__nav {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 12px 40px;
}

/* Motion: smooth scrolling and transitions only when the visitor has not asked for less motion. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a,
  .viewer__close {
    transition: color 0.15s ease, background-color 0.15s ease;
  }
}
