/* Orboria — orboria.app. One stylesheet, no fonts fetched, nothing tracked. */

:root {
  --bg: #000;
  --ink: #ececee;
  --muted: #8e8e93;
  --faint: #48484a;
  --line: #1c1c1e;
  --raise: #0e0e10;
  --glow: rgba(255, 255, 255, 0.10);
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 34rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

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

/* The bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 17px/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mark img { width: 28px; height: 28px; border-radius: 7px; }

.bar nav { display: flex; gap: 22px; font-size: 15px; color: var(--muted); }
.bar nav a { text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

/* The first view */

.hero {
  text-align: center;
  padding: clamp(40px, 8vw, 96px) var(--gutter) 0;
  position: relative;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.022em; margin: 0; }

.hero h1 {
  font-size: clamp(40px, 7.4vw, 76px);
  line-height: 1.04;
  max-width: 12ch;
  margin: 0 auto;
}

.lede {
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.45;
  max-width: 32rem;
  margin: 22px auto 0;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #000;
  font: 600 16px/1 var(--font);
  text-decoration: none;
}
.store svg { width: 17px; height: 20px; }
.store[aria-disabled="true"] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--faint); }

.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* A phone, drawn as the store frames draw it */

.phone {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 1320 / 2868;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.155);
  background: #050505;
  box-shadow: inset 0 0 0 1px #2a2a2c, 0 0 0 calc(var(--w) * 0.012) #121214;
  position: relative;
  flex: none;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--w) * 0.128);
}
.phone::after {
  /* the island */
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.055);
  left: 50%;
  width: calc(var(--w) * 0.28);
  height: calc(var(--w) * 0.083);
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}

.hero .phone { --w: min(340px, 78vw); margin: clamp(48px, 7vw, 80px) auto 0; }

.halo {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(900px, 160vw);
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255,255,255,0.09), rgba(255,255,255,0.03) 45%, transparent 70%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; scale: 0.94; }
  50% { opacity: 1; scale: 1.04; }
}

/* The frames, one after another */

.frames { max-width: 1080px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }

.frame {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 8vw, 120px);
  padding: clamp(48px, 7vw, 88px) 0;
}
.frame:nth-child(even) { grid-template-columns: auto 1fr; }
.frame:nth-child(even) .copy { order: 2; }

.frame .phone { --w: min(300px, 70vw); }

.copy { max-width: var(--measure); }
.copy .step { color: var(--faint); font: 500 13px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; }
.copy h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; margin-top: 14px; }
.copy p { color: var(--muted); margin: 18px 0 0; }
.copy p strong { color: var(--ink); font-weight: 500; }

/* Bands */

.band {
  max-width: 1080px;
  margin: clamp(64px, 10vw, 128px) auto 0;
  padding: 0 var(--gutter);
}

.band h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; text-align: center; }
.band > p { color: var(--muted); text-align: center; max-width: 34rem; margin: 18px auto 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.facts div { background: var(--bg); padding: 28px 26px; }
.facts h3 { font-size: 19px; letter-spacing: -0.01em; }
.facts p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

.tablet {
  --w: min(760px, 100%);
  width: var(--w);
  margin: 56px auto 0;
  padding: 14px;
  border-radius: 34px;
  background: #050505;
  box-shadow: inset 0 0 0 1px #2a2a2c, 0 0 0 6px #121214;
}
.tablet img { width: 100%; aspect-ratio: 2752 / 2064; border-radius: 22px; }

/* Long text: privacy, support */

.page { max-width: 42rem; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 0; }
.page h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.05; }
.page .lede { margin-left: 0; text-align: left; }
.page h2 { font-size: 22px; letter-spacing: -0.012em; margin-top: 48px; }
.page p, .page li { color: #c7c7cc; }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; }
.page .dated { color: var(--muted); font-size: 14px; margin-top: 56px; }

.contact {
  margin-top: 36px;
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact p { margin: 0; }
.contact a { font: 600 20px/1.3 var(--display); text-decoration: none; }
.contact .note { margin-top: 8px; }

details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* The foot */

.foot {
  max-width: 1080px;
  margin: clamp(96px, 14vw, 180px) auto 0;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 14px;
}
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Things come into view, slowly, unless motion is turned down */

.reveal { opacity: 0; translate: 0 24px; transition: opacity 0.9s ease, translate 0.9s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .halo { animation: none; opacity: 0.8; }
  .reveal { opacity: 1; translate: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Phone width */

@media (max-width: 760px) {
  .frame, .frame:nth-child(even) { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 36px; }
  .frame:nth-child(even) .copy { order: 0; }
  .copy { margin: 0 auto; }
  .facts { grid-template-columns: 1fr; }
  .bar nav { gap: 16px; }
}

/* The legal page and support, as Imagoria sets them */

.eyebrow { color: var(--muted); font: 500 13px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.toc { display: flex; gap: 22px; margin-top: 22px; }
.toc a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--faint); padding-bottom: 3px; }
.toc a:hover { color: var(--ink); }
.page section { padding-top: 64px; margin-top: 56px; border-top: 1px solid var(--line); scroll-margin-top: 8px; }
.page .part { font-size: clamp(28px, 4.4vw, 38px); }
.page section .dated { margin-top: 10px; }
.short {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink) !important;
}
