/* Viyro website. Same palette and type as the app: warm grey, white, charcoal ink, navy for actions. */
:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --surface-2: #ecece7;
  --fg: #15171a;
  --fg-2: #33373d;
  --muted: #5c6067;
  --line: #e2e2dc;
  --line-2: #c9c9c1;
  --ink: #0b1f3a;
  --ink-2: #1c3a63;
  --panel: #121418;
  --mark: #f2a93b;
  --on-ink: #ffffff;
  --shot-shadow: 0 1px 2px rgba(21, 23, 26, 0.06), 0 12px 32px rgba(21, 23, 26, 0.1);
  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1013;
    --surface: #16191d;
    --surface-2: #1c2025;
    --fg: #ececeb;
    --fg-2: #c9cacb;
    --muted: #9a9ea6;
    --line: #262a30;
    --line-2: #363b43;
    --ink: #9dbbe6;
    --ink-2: #bcd2f1;
    --panel: #0a0c0f;
    --on-ink: #0b1220;
    --shot-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1013;
  --surface: #16191d;
  --surface-2: #1c2025;
  --fg: #ececeb;
  --fg-2: #c9cacb;
  --muted: #9a9ea6;
  --line: #262a30;
  --line-2: #363b43;
  --ink: #9dbbe6;
  --ink-2: #bcd2f1;
  --panel: #0a0c0f;
  --on-ink: #0b1220;
  --shot-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--ink);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}
p {
  margin: 0;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 6px;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Logo */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}
.lockup img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.wordmark {
  display: inline-block;
  height: 14px;
  aspect-ratio: 1200 / 209;
  background: url("../brand/viyro-wordmark.png") center / contain no-repeat;
}
.lockup.small img {
  width: 26px;
  height: 26px;
}
.lockup.small .wordmark {
  height: 12px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.button:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}
.button.lg {
  min-height: 50px;
  padding: 0 22px;
  font-size: 16px;
}
.button.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.button.ghost:hover {
  border-color: var(--fg);
}
.link {
  color: var(--fg);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: 12px;
}
.site-nav a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover {
  color: var(--fg);
}
.bar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--fg);
}
.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  font-size: 16px;
}

/* Hero */
.hero {
  padding: 64px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.hero-copy {
  max-width: 760px;
}
.label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(34px, 3.9vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.lede {
  font-size: 19px;
  color: var(--fg-2);
  margin-top: 20px;
  max-width: 34em;
}
.lede.narrow {
  max-width: 40em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.small {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 36em;
}
.hero-shots {
  position: relative;
  margin: 0;
  padding-bottom: 40px;
}
.shot {
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shot-shadow);
  background: var(--surface);
}
.shot.phone {
  border-radius: 18px;
}
.hero-shots .desk {
  width: 100%;
}
.hero-shots .phone {
  position: absolute;
  left: -24px;
  bottom: 0;
  width: 19%;
  max-width: 230px;
}

/* Who it's for */
.who {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.who-grid > div {
  padding: 28px 28px 30px 0;
}
.who-grid > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.who h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.who p {
  color: var(--fg-2);
  font-size: 16px;
}

/* Feature sections */
.feature {
  padding: 88px 0;
}
.feature.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.feature-grid.flip .feature-copy {
  order: 2;
}
.feature h2,
.security h2,
.trial h2,
.questions h2 {
  font-size: clamp(28px, 3vw, 36px);
}
.feature-copy > p {
  font-size: 18px;
  color: var(--fg-2);
  margin-top: 16px;
}
.feature-copy.wide {
  max-width: 46em;
}
.points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.points li {
  padding: 13px 0 13px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 16px;
  color: var(--fg-2);
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--fg);
}
.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
.phones img:nth-child(2) {
  margin-top: 48px;
}
.desk-frame {
  margin: 36px 0 0;
}
.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.two-up figure {
  margin: 0;
}
figcaption {
  margin-top: 14px;
  font-size: 16px;
  color: var(--fg-2);
}
figcaption b {
  color: var(--fg);
}

/* Security */
.security {
  padding: 88px 0;
  background: var(--panel);
  color: #e9e9e4;
}
.security .lede {
  color: #b9bcc2;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 40px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.facts > div {
  padding: 22px 24px 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.facts dt {
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.facts dd {
  margin: 0;
  color: #b9bcc2;
  font-size: 15.5px;
}

/* Trial */
.trial {
  padding: 88px 0;
}
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  border-top: 2px solid var(--fg);
  padding-top: 16px;
  color: var(--fg-2);
}
.steps li::before {
  content: counter(s);
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.steps b {
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}

/* Questions */
.questions {
  padding: 0 0 88px;
}
.qa {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}
.qa > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.qa dt {
  font-weight: 600;
}
.qa dd {
  margin: 0;
  color: var(--fg-2);
}

/* Closing band */
.closing {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}
.closing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.closing h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  max-width: 16em;
}
.closing .cta {
  margin-top: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 15px;
}
.foot-links a {
  color: var(--fg-2);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--fg);
  text-decoration: underline;
}
.theme-btn {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.theme-btn:hover {
  color: var(--fg);
  text-decoration: underline;
}
.foot-copy {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

/* Tablets */
@media (max-width: 1020px) {
  .site-nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero-shots .phone {
    left: 2%;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .feature-grid.flip .feature-copy {
    order: 0;
  }
  .phones {
    max-width: 560px;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones */
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .bar {
    gap: 12px;
    min-height: 60px;
  }
  .bar-actions {
    gap: 10px;
  }
  .bar-actions .link {
    display: none;
  }
  .bar-actions .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
  .hero {
    padding: 40px 0 40px;
  }
  .lede {
    font-size: 17px;
  }
  .cta .button {
    flex: 1 1 auto;
  }
  .hero-shots {
    padding-bottom: 0;
  }
  .hero-shots .desk {
    display: none;
  }
  .hero-shots .phone {
    position: static;
    width: 74%;
    max-width: 300px;
    margin: 0 auto;
  }
  .who-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .who-grid > div,
  .who-grid > div + div {
    padding: 20px 0;
    border-left: 0;
  }
  .who-grid > div + div {
    border-top: 1px solid var(--line);
  }
  .feature,
  .security,
  .trial {
    padding: 56px 0;
  }
  .questions {
    padding-bottom: 56px;
  }
  .feature-copy > p {
    font-size: 17px;
  }
  .phones {
    gap: 12px;
  }
  .phones img:nth-child(2) {
    margin-top: 28px;
  }
  /* Desktop screenshots are unreadable at phone width: keep the captions, drop the pictures. */
  .desk-frame,
  .two-up img {
    display: none;
  }
  .two-up figcaption {
    margin-top: 0;
  }
  .two-up,
  .steps,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    gap: 22px;
  }
  .qa > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .closing-row {
    flex-direction: column;
    align-items: stretch;
  }
  .closing .cta .button {
    flex: 1 1 auto;
  }
  .foot-copy {
    margin-left: 0;
    width: 100%;
  }
}

/* A screenshot that hasn't loaded yet is a quiet panel, not a white hole. */
.shot {
  background: var(--surface-2, #ebebe6);
  height: auto;
}

/* The lettering: navy on the light page, silver in dark mode */
.wordmark {
  background-image: url("../brand/viyro-wordmark-dark.png");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark {
    background-image: url("../brand/viyro-wordmark.png");
  }
}
:root[data-theme="dark"] .wordmark {
  background-image: url("../brand/viyro-wordmark.png");
}
