/* ROREPS public site — shared marketing + legal styles */

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-elevated: #0a0a0c;
  --bg-deep: #040405;
  --panel: #111111;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f2ea;
  --text-muted: #9f9aaa;
  --text-faint: #666271;
  --paper: #fff4dc;
  --accent: #ff6a00;
  --accent-warm: #ff7a00;
  --accent-soft: rgba(255, 106, 0, 0.12);
  --accent-border: rgba(255, 148, 76, 0.32);
  --green: #30d596;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-condensed: "Barlow Condensed", "Helvetica Neue", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --legal-max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-warm);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--paper);
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% -10%, rgba(255, 106, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(255, 176, 0, 0.06), transparent 50%),
    linear-gradient(180deg, #070708 0%, var(--bg) 40%, #030303 100%);
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.site-nav,
.site-main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-mark span {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--paper);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.875rem;
}

.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--font-condensed);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-warm);
}

.draft-note {
  margin-top: 1rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* Landing hero — compact first viewport, content + product preview */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.85fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.hero-copy {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding-top: 0.35rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 10vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-headline {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-support {
  max-width: 34ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.hero-status {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.15rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

/* iPhone product mock — brand mark splash */
.hero-device {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 280px);
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.phone-glow {
  position: absolute;
  inset: 18% 8% 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.32), transparent 70%);
  filter: blur(22px);
  z-index: 0;
  width: auto;
  height: auto;
  transform: none;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 248px);
  animation: phone-float 5.5s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  padding: 10px;
  border-radius: 36px;
  background:
    linear-gradient(160deg, #3a3a3e 0%, #151517 35%, #0a0a0b 70%, #2a2a2e 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 9 / 17.2;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 106, 0, 0.14), transparent 55%),
    linear-gradient(180deg, #0c0c0e 0%, #050505 55%, #030303 100%);
}

.phone-ui {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.65rem 0.7rem;
  gap: 0.35rem;
}

.phone-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(247, 242, 234, 0.88);
  padding: 0.15rem 0.35rem 0.1rem;
}

.phone-status > :last-child {
  justify-self: end;
}

.phone-dynamic {
  width: 54px;
  height: 14px;
  border-radius: 999px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-status-icons {
  letter-spacing: 0.12em;
  opacity: 0.55;
  font-size: 0.45rem;
}

.phone-ui-logo {
  justify-content: flex-start;
}

.phone-logo-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding-bottom: 1.25rem;
}

.phone-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-logo-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  line-height: 0.9;
}

.phone-logo-tag {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #120800;
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.28);
}

.btn-primary:hover {
  background: var(--accent-warm);
  color: #120800;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--paper);
}

.btn-secondary:hover {
  border-color: var(--accent-border);
  color: var(--paper);
  background: var(--accent-soft);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: var(--paper);
}

.section p {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
  margin-top: 2rem;
}

.info-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

.info-item p {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
}

/* Legal / support pages */
.legal-page .site-main {
  max-width: var(--legal-max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: var(--paper);
}

.legal-meta {
  margin: 0 0 2rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.legal-page h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-condensed);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page li + li {
  margin-top: 0.35rem;
}

.admin-page .site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.admin-page h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  letter-spacing: 0.06em;
  color: var(--paper);
}

.admin-lede {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.tool-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.tool-row:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
}

.tool-row h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-condensed);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

.tool-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tool-row .chev {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(160px, 200px);
    align-items: start;
    gap: 1rem 1.25rem;
    padding: 1rem 1.5rem 1.5rem;
  }

  .hero-device {
    justify-self: end;
    width: 100%;
    max-width: 200px;
    margin-top: 0.35rem;
  }

  .hero-brand {
    font-size: clamp(3.2rem, 12vw, 5rem);
  }

  .hero-headline {
    max-width: 14ch;
    font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  }

  .hero-support {
    font-size: 0.95rem;
  }

  .phone {
    width: 100%;
    animation: none;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.9rem 1.15rem;
  }

  .hero {
    display: block;
    position: relative;
    padding: 0.45rem 1.15rem 0.75rem;
    padding-right: calc(110px + 1.5rem);
    overflow: hidden;
  }

  .hero-copy {
    display: grid;
    gap: 0.55rem;
  }

  .hero-brand {
    font-size: clamp(2.6rem, 13vw, 3.8rem);
  }

  .hero-headline {
    max-width: none;
    font-size: clamp(1.1rem, 4.2vw, 1.35rem);
  }

  .hero-support {
    max-width: none;
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-device {
    position: absolute;
    top: 0.35rem;
    right: 1rem;
    width: 110px;
    max-width: 110px;
    margin: 0;
    justify-self: auto;
  }

  .phone,
  .phone-glow,
  .hero-device {
    animation: none;
  }

  .phone {
    width: 100%;
  }

  .phone-screen {
    aspect-ratio: 9 / 14;
  }

  .phone-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .phone-logo-wordmark {
    font-size: 1.15rem;
  }

  .phone-logo-tag {
    font-size: 0.55rem;
  }

  .phone-logo-stage {
    gap: 0.45rem;
    padding-bottom: 0.75rem;
  }

  .section {
    padding: 1.5rem 1.15rem;
  }

  .info-list {
    gap: 1.1rem;
    margin-top: 1.25rem;
  }

  .tool-row {
    grid-template-columns: 1fr;
  }

  .tool-row .chev {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone,
  .hero-brand,
  .hero-headline,
  .hero-support,
  .hero-status,
  .hero-actions,
  .hero-device {
    animation: none;
  }
}
