/* RemoteOne — site styles
   Shares its visual language with the App Store screenshots: warm black,
   one amber accent, large tight display type, a monospaced eyebrow. */

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

:root {
  --bg:      #0a0a0c;
  --bg-2:    #101013;
  --fg:      #f5f3ee;
  --dim:     rgba(245, 243, 238, 0.62);
  --faint:   rgba(245, 243, 238, 0.38);
  --line:    rgba(255, 255, 255, 0.08);
  --accent:  #f0bf4c;
  --accent-ink: #1a1408;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@supports (color: oklch(0.8 0.1 80)) {
  :root { --accent: oklch(0.82 0.15 85); }
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--fg); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

/* ── Type ─────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.center-head { text-align: center; }
.center-head .eyebrow { justify-content: center; }

.display {
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--accent); }
.display-sm { font-size: clamp(2.6rem, 6vw, 4.6rem); }

.headline {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.headline .dim { color: var(--faint); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.45;
  color: var(--dim);
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin-top: 28px;
}
.body {
  color: var(--dim);
  font-size: 1.06rem;
  line-height: 1.6;
  max-width: 46ch;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s;
  box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn:active { transform: translateY(0); }
.btn-small {
  padding: 9px 16px;
  font-size: 0.86rem;
  box-shadow: none;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* ── Device frame ─────────────────────────────────────── */
.device {
  --w: 280px;
  width: var(--w);
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(160deg, #3a3a3f 0%, #1b1b1e 40%, #0f0f11 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 2px 0 rgba(255, 255, 255, 0.04),
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 18px 40px -20px rgba(0, 0, 0, 0.6);
}
.device img, .device video {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: calc(var(--w) * 0.13);
  background: #000;
}
.device-large { --w: min(300px, 70vw); margin: 0 auto; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 150px 0 70px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  background: radial-gradient(ellipse 55% 50% at 70% 35%,
              color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--faint);
}

.hero-stage {
  position: relative;
  height: 640px;
}
.hero-glow {
  position: absolute;
  inset: 12% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 65%);
  filter: blur(30px);
}
.hero-stage .device { position: absolute; top: 50%; left: 50%; }
.device-front {
  --w: 290px;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.device-back {
  --w: 240px;
  opacity: 0.92;
  z-index: 1;
}
.device-left  { transform: translate(-112%, -46%) rotate(-7deg); }
.device-right { transform: translate(12%, -46%) rotate(7deg); }
.device-back img, .device-back video { filter: saturate(0.9) brightness(0.82); }

.brands {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.brands li {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--faint);
}
.brands-more a {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
}

/* ── Sections ─────────────────────────────────────────── */
.section { padding: clamp(88px, 11vw, 140px) 0; position: relative; }

/* Split: copy + one device */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}

.ticks {
  list-style: none;
  margin-top: 30px;
  display: grid;
  gap: 14px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--fg);
  font-size: 0.98rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

/* ── Themes (full-bleed, takes the selected theme's palette) ── */
.themes {
  --tbg: #c7d5e3;
  --tfg: #1d2a3a;
  background: var(--tbg);
  color: var(--tfg);
  transition: background 0.8s var(--ease), color 0.8s var(--ease);
  overflow: hidden;
}
.themes .eyebrow { color: var(--tfg); opacity: 0.7; }
.themes .body { color: var(--tfg); opacity: 0.72; }
.themes-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.theme-list {
  margin-top: 40px;
  display: grid;
  border-top: 1px solid color-mix(in srgb, var(--tfg) 18%, transparent);
}
.theme-opt {
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--tfg) 18%, transparent);
  color: var(--tfg);
  opacity: 0.5;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  padding: 14px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.25s, padding 0.35s var(--ease), color 0.8s var(--ease), border-color 0.8s var(--ease);
}
.theme-opt span {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.theme-opt:hover { opacity: 0.8; }
.theme-opt.is-active { opacity: 1; padding-left: 14px; }
.theme-opt.is-active::before {
  content: '';
  position: absolute;
  margin-left: -14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.themes-stage .device { --w: min(320px, 72vw); }
.themes-stage .device {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 50px 90px -30px rgba(0, 0, 0, 0.55),
    0 18px 40px -20px rgba(0, 0, 0, 0.4);
}
#themeDevice { transition: opacity 0.25s ease, transform 0.4s var(--ease); }
#themeDevice.swapping { opacity: 0.6; transform: scale(0.99); }

/* ── Spec grid ────────────────────────────────────────── */
.spec {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.spec-item {
  padding: 34px 40px 34px 0;
  border-bottom: 1px solid var(--line);
}
.spec-item:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-item:nth-child(even) { padding-left: 40px; padding-right: 0; }
.spec-item h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.spec-item p { color: var(--dim); font-size: 0.98rem; max-width: 44ch; }
.spec-item a { color: var(--fg); }
.spec-watch {
  display: flex;
  align-items: center;
  gap: 24px;
}
.spec-watch img {
  width: 96px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 0 0 6px #1b1b1e, 0 0 0 7px rgba(255,255,255,0.1), 0 20px 40px -12px rgba(0,0,0,0.8);
  flex-shrink: 0;
}

/* ── Duo (inside "everything") ────────────────────────── */
.duo { margin-top: 96px; }
.duo .eyebrow { justify-content: center; }
.duo-row {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}
.duo-frame {
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(160deg, #3a3a3f 0%, #1b1b1e 40%, #0f0f11 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 50px 90px -30px rgba(0, 0, 0, 0.85);
}
.duo-frame img {
  width: 100%;
  aspect-ratio: 2007 / 2853;
  object-fit: cover;
  border-radius: 26px;
}
.duo figcaption {
  margin-top: 20px;
  color: var(--dim);
  font-size: 0.94rem;
  text-align: center;
}
.duo figcaption strong { color: var(--fg); font-weight: 600; }

/* ── Pricing ──────────────────────────────────────────── */
.plans {
  margin: 72px auto 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 34px 38px;
  background: var(--bg-2);
}
.plan-pro {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%),
    var(--bg-2);
}
.plan h3 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.plan-pro h3 { color: var(--accent); }
.price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 10px 0 2px;
}
.price span { font-size: 1rem; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.price-alt { color: var(--faint); font-size: 0.86rem; }
.plan ul { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.plan li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96rem;
  color: var(--dim);
}
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.48em;
  width: 10px;
  height: 6px;
  border-left: 1.6px solid var(--fg);
  border-bottom: 1.6px solid var(--fg);
  transform: rotate(-45deg);
  opacity: 0.6;
}
.plan-pro li::before { border-color: var(--accent); opacity: 1; }
.fine {
  text-align: center;
  color: var(--faint);
  font-size: 0.82rem;
  margin-top: 26px;
}
.fine a { color: var(--dim); }

/* ── Final CTA ────────────────────────────────────────── */
.final {
  position: relative;
  padding: clamp(110px, 16vw, 200px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.final-glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 1100px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 62%);
  pointer-events: none;
}
.final .wrap { position: relative; }
.final-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 36px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,0.08);
}
.final .display { margin-bottom: 40px; }

/* ── Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.86rem;
  color: var(--faint);
}
.footer nav { display: flex; gap: 24px; }
.footer a { color: var(--dim); text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* ── Reveal on scroll ─────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.spec-item:nth-child(2), .plan:nth-child(2), .duo-row figure:nth-child(2) { transition-delay: 0.08s; }
.spec-item:nth-child(3) { transition-delay: 0.16s; }
.spec-item:nth-child(4) { transition-delay: 0.24s; }
.spec-item:nth-child(5) { transition-delay: 0.32s; }
.spec-item:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  #themeDevice, .themes, .theme-opt { transition: none; }
}

/* ── Document pages (support, privacy) ────────────────── */
.doc {
  max-width: 760px;
  padding-top: 140px;
  padding-bottom: 120px;
}
.doc h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.doc .last-updated {
  color: var(--faint);
  margin: 18px 0 56px;
  font-size: 1rem;
}
.doc h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 64px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.doc h3,
.doc .faq-q {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
}
.doc p, .doc li { color: var(--dim); font-size: 1rem; line-height: 1.65; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-stage { height: 520px; }
  .device-front { --w: 240px; }
  .device-back { --w: 200px; }
  .split, .themes-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .themes-stage { order: -1; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .brands { justify-content: flex-start; }
  .spec { grid-template-columns: 1fr; }
  .spec-item, .spec-item:nth-child(even) { padding: 28px 0; border-right: 0; }
  .spec-item:nth-child(odd) { border-right: 0; }
  .duo-row { grid-template-columns: minmax(0, 340px); }
  .plans { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-stage { height: 440px; }
  .device-front { --w: 210px; }
  .device-back { --w: 170px; }
  .hero-note br { display: none; }
}
