/* 360video.com site styles. One sheet for every page; page templates add only what is unique to them. */

:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #15191f;
  --surface-2: #1d232b;
  --border: #2a313b;
  --text: #e9edf1;
  --muted: #9aa5b1;
  --accent: #5cb8ff;
  --accent-ink: #06121d;
  --sale: #ffdc5d;
  --sale-ink: #1d1700;
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --content: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
}

img, video, canvas { max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

code, pre { font-family: var(--mono); font-size: .9em; }
pre {
  overflow-x: auto;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.45;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 16, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: .02em;
}
.brand img { height: 44px; width: auto; }
.brand strong { font-weight: 650; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

/* Main */
main { flex: 1; padding: clamp(28px, 5vw, 56px) 0; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.page-head { margin-bottom: 28px; }
.prose { max-width: 70ch; }
.center { text-align: center; }
.center .lede, .center.prose { margin-left: auto; margin-right: auto; }

.section { margin-top: clamp(40px, 6vw, 72px); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.button:hover { filter: brightness(1.08); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.actions.center { justify-content: center; }

/* 360 players (pano360.js styles the controls itself) */
/* Players take 75% of the content width, centered (full width on phones, below). */
.player {
  width: 75%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.player-view { aspect-ratio: 16 / 9; }
.hint { color: var(--muted); font-size: .95rem; margin-top: 12px; }
kbd {
  font-family: var(--mono);
  font-size: .85em;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
}

/* Numbered steps (How It Works, Help) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.steps > li { counter-increment: step; position: relative; min-width: 0; }
.steps > li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2em;
  height: 2em;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: .9rem;
}
.steps.gallery { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.steps.gallery figure { margin: 12px 0 0; }
.steps.gallery img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.steps h2, .steps h3 { display: inline; font-size: 1.1rem; }
.steps p { margin: 8px 0 0; }

table { border-collapse: collapse; margin: 12px 0; }
th, td { padding: 8px 14px; border: 1px solid var(--border); text-align: left; }
th { background: var(--surface-2); font-weight: 600; }

/* Domain-for-sale notice */
.for-sale {
  background: var(--sale);
  color: var(--sale-ink);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
}
.for-sale p { margin: 0; }
.for-sale a { color: inherit; font-size: 1.15em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; padding: 24px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 560px) {
  .player { width: 100%; }
  .site-header .wrap { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
  .brand img { height: 36px; }
  .site-nav ul { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
