/* orionbaby.com: shared styles for every static page. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #14161f;
  --muted: #525252;
  --link: #2b7098;
  --card: #fafafa;
  --line: #e5e5e5;
  --primary: #2b7098;
  --on-primary: #ffffff;
  --navy: #121633;
  --accent: #5ea5d2;
  --accent-soft: #daebf7;
  --danger: #b3261e;
  --on-danger: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --ink: #e5e5e5;
    --muted: #a3a3a3;
    --link: #8ec2e5;
    --card: #171717;
    --line: #2e2e2e;
    --primary: #72b3dd;
    --on-primary: #051f2f;
    --accent-soft: #10374d;
    --danger: #ffb4ab;
    --on-danger: #690005;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Google Sans", Roboto, system-ui, sans-serif;
}

/* Header and navigation */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .bar {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px 32px;
}
.brand { display: inline-flex; align-items: center; }
.logo { display: block; width: 119px; height: 32px; background: url("/brand/logo-horizontal.svg") left center / contain no-repeat; }
@media (prefers-color-scheme: dark) { .logo { background-image: url("/brand/logo-horizontal-white.svg"); } }
.site-nav { display: flex; flex: 1; align-items: center; gap: 24px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.site-nav .nav-actions { margin-left: auto; gap: 8px 16px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a.login { color: var(--ink); font-weight: 600; }
a.btn-nav, .site-nav a.btn-nav {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none;
}
.site-nav a.btn-nav:hover { color: var(--on-primary); text-decoration: none; filter: brightness(1.08); }
.brand { margin-right: 0; }

/* Narrow screens: the links fold into a menu, with no script (a details element). */
.nav-menu { display: none; margin-left: auto; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; position: relative; }
.burger::before { position: absolute; top: -7px; }
.burger::after { position: absolute; top: 7px; }
.nav-menu ul {
  list-style: none; margin: 0; padding: 12px 16px; position: absolute; right: 0; top: 50px; z-index: 10; min-width: 220px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.nav-menu li { margin: 0; }
.nav-menu a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 17px; }
.nav-menu a.btn-nav { display: flex; justify-content: center; margin-top: 8px; color: var(--on-primary); }
@media (max-width: 719px) {
  .site-nav { display: none; }
  .nav-menu { display: block; }
}

/* Content */
main { max-width: 680px; margin: 0 auto; padding: 40px 16px 64px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { color: var(--muted); }
li { margin: 4px 0; }
a { color: var(--link); }
strong { color: var(--ink); }
.updated { font-size: 15px; }
.lead { font-size: 19px; }

/* Cards, forms and buttons (account page) */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 20px 0; }
.card h2 { margin-top: 0; }
label { display: block; font-weight: 600; color: var(--ink); margin: 14px 0 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
label.check input { margin-top: 5px; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  background: var(--primary);
  color: var(--on-primary);
}
button.secondary { background: transparent; color: var(--link); padding: 10px 4px; }
button.danger { background: var(--danger); color: var(--on-danger); }
button:disabled { opacity: .6; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
button.google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 48px;
}
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; font-size: 15px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.password { position: relative; }
.password input { padding-right: 76px; }
#code { max-width: 12em; font-size: 22px; letter-spacing: .2em; }
.password .reveal {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--link);
  padding: 8px 12px;
  font-size: 15px;
}
.message { margin: 14px 0 0; color: var(--ink); }
.message.error { color: var(--danger); }
[hidden] { display: none !important; }

/* Links that look like buttons (label page) */
a.button {
  display: block;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 20px;
  margin: 12px 0;
  background: var(--primary);
  color: var(--on-primary);
}
a.button.secondary { background: transparent; color: var(--link); border: 1px solid var(--link); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .bar { max-width: 880px; margin: 0 auto; padding: 20px 16px 32px; font-size: 15px; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* Tables (privacy policy) */
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
th { color: var(--ink); font-weight: 600; }

/* ---- Home page ---- */
.home main { max-width: none; padding: 0; }
.home { overflow-x: hidden; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.hero {
  background: var(--navy) url("/brand/pattern-sparse-white.svg") center / 480px repeat;
  color: #fff;
  position: relative;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--navy) 0, rgba(18,22,51,.78) 40%, var(--navy) 100%); opacity: .92; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 16px; color: #fff; }
.hero p { color: #c9cbe0; font-size: 19px; margin: 0 0 24px; max-width: 30em; }
.hero .stores { font-size: 16px; margin: 14px 0 0; }
.hero .stores a { color: #b4d6ee; }
.hero .fine { font-size: 15px; margin: 14px 0 0; color: #9da0bf; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn.solid { background: var(--accent); color: #051f2f; }
.btn.solid:hover { background: #8ec2e5; }
.btn.ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.soon { border-color: rgba(255,255,255,.25); color: #c9cbe0; cursor: default; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero-phones { display: flex; justify-content: center; gap: 16px; }
.phone {
  margin: 0; width: min(42vw, 230px); border-radius: 34px; padding: 10px; background: #0b0b10;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.14);
}
/* The picture is 390x844, so the box is too: nothing is cropped or letterboxed. Inner radius = outer 34 - bezel 10 + 0. */
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 24px; background: #fff; }
.hero-phones { align-items: center; }
.hero-phones .phone:nth-child(1) { transform: rotate(-3deg) translateX(14px); position: relative; z-index: 1; }
.hero-phones .phone:nth-child(2) { transform: rotate(3deg) translateX(-14px); }

/* The web app in a browser window */
.browser { margin: 0 auto; max-width: 960px; border-radius: 14px; overflow: hidden; background: #0b0b10; box-shadow: 0 24px 60px rgba(0,0,0,.28), 0 0 0 1px var(--line); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #20222c; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #5b5e6e; }
.browser-bar em { margin-left: 12px; flex: 1; max-width: 320px; font-style: normal; font-size: 13px; color: #c9cbe0; background: #333646; border-radius: 999px; padding: 3px 14px; }
.browser img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1000; }

.section { padding: 64px 0; }
.section.alt { background: var(--card); border-block: 1px solid var(--line); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin: 0 0 8px; }
.section h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.section .intro { font-size: 19px; max-width: 34em; margin: 0 0 32px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features li { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.section.alt .features li { background: var(--bg); }
.features .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--link); margin-bottom: 14px; }
.features .ico svg { width: 24px; height: 24px; }
.features h3 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.features p { margin: 0; }

.split { display: grid; gap: 32px; align-items: center; }
.split .phone { margin: 0 auto; }
.split h2 { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--link); border-bottom: 3px solid var(--link); transform: rotate(-45deg); }

.closing { background: var(--navy); color: #fff; text-align: center; padding: 64px 0; }
.closing h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; }
.closing p { color: #c9cbe0; max-width: 32em; margin: 0 auto 24px; font-size: 19px; }
.closing .cta { justify-content: center; }
.closing .fine { font-size: 15px; margin-top: 20px; color: #9da0bf; }
.closing a:not(.btn) { color: #b4d6ee; }

@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; padding-top: 80px; padding-bottom: 80px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip .phone { order: 2; }
  .phone { width: 260px; }
  .hero-phones .phone { width: 220px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background .15s; }
}

.space-above { margin-top: 24px; }

/* "Open the Orion web app" on the account page */
.card.web-app { border-color: var(--primary); }
.card.web-app .actions { margin-top: 12px; }
a.button.open-app { display: inline-block; margin: 0; }
