/* sanji.space - shared styles.
   Base rules and tokens copied from the design mockup at
   sanji-brand-v2/Sanji Landing.dc.html. Hover/focus/active rules below
   replace the mockup's style-hover / style-focus / style-active attributes,
   which only exist inside the design tool and have no effect in a browser. */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFAF0;
  color: #16161D;
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #16161D; text-decoration: none; }
a:hover { color: #FF6A3D; }

button { font-family: inherit; }

/* Keyframes ported as-is from the mockup. */
@keyframes sj-float { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
@keyframes sj-marquee { to { transform: translateX(-50%); } }
@keyframes sj-nudgeL { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-2.5px); } }
@keyframes sj-nudgeR { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2.5px); } }
@keyframes sj-bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.15); } }
@keyframes sj-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sj-dots { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes sj-caret { 50% { opacity: 0; } }

.sj-floater { position: absolute; box-sizing: border-box; animation: sj-float var(--dur, 8s) ease-in-out var(--delay, 0s) infinite; }
.sj-marquee-track { animation: sj-marquee 30s linear infinite; }
.sj-pop { animation: sj-pop .35s ease-out both; }
.sj-dot { animation: sj-dots 1s infinite; }
.sj-dot-2 { animation: sj-dots 1s .15s infinite; }
.sj-dot-3 { animation: sj-dots 1s .3s infinite; }
.sj-online-dot { animation: sj-dots 1.6s infinite; }
.sj-caret { animation: sj-caret 1s steps(1) infinite; }
.sj-orbit-l { animation: sj-nudgeL 3.2s ease-in-out infinite; }
.sj-orbit-r { animation: sj-nudgeR 3.2s ease-in-out infinite; }
.sj-orbit-dot { transform-origin: 41px 12px; animation: sj-bob 1.6s ease-in-out infinite; }

/* Interactive states (was style-hover / style-focus / style-active in the mockup). */
.nav-link:hover { background: var(--hover-bg); }
.nav-download:hover { background: #FF6A3D; color: #16161D; }
.dropdown-item:hover { background: #2A2A33; color: #FFFAF0; }
.btn-primary:hover { transform: translateY(-3px); color: #FFD84D; }
.btn-secondary:hover { transform: translateY(-3px); color: #16161D; }
.tab-inactive:hover { transform: translateY(-3px); background: #FFD84D; }
.replay-btn:hover { background: #FFD84D; }
.tilt-card:hover { transform: translateY(-8px) rotate(var(--tilt)); }
.agent-card:hover { transform: translateY(-6px); }
.agent-card-add:hover { background: #FFFAF0; }
.input-pill:focus { box-shadow: 0 0 0 4px #FFD84D; }
.btn-waitlist:hover { background: #16161D; color: #FFFAF0; }
.btn-waitlist:active { transform: translateY(4px); box-shadow: 0 1px 0 #16161D; }
.footer-input:focus { border-color: #FFD84D; }
.footer-submit:hover { transform: translateY(-2px); background: #FFD84D; border-color: #FFD84D; }
.footer-link:hover { color: #FFD84D; }
.footer-col-link:hover { transform: translateX(3px); color: #FFFAF0; }
.back-to-top:hover { background: #FFD84D; color: #16161D; }

/* Honeypot field: off-screen, not display:none, so it still reads as a normal
   field to a bot but never shows or gets focus for a person. */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

[hidden] { display: none !important; }

/* Nav pill: the mockup fixes height:62px, which only works on one line.
   min-height keeps every link reachable if the pill wraps on a narrow phone. */
.nav-pill { min-height: 62px; height: auto; }

/* Narrow phones: keep the pill nav to logo + Unduh so it never wraps or
   overflows; the same links are always reachable via the footer and by
   scrolling the page itself. */
@media (max-width: 560px) {
  .nav-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sj-floater, .sj-marquee-track, .sj-pop, .sj-dot, .sj-dot-2, .sj-dot-3,
  .sj-online-dot, .sj-caret, .sj-orbit-l, .sj-orbit-r, .sj-orbit-dot {
    animation: none !important;
  }
  .tilt-card:hover, .agent-card:hover, .btn-primary:hover, .btn-secondary:hover,
  .tab-inactive:hover, .footer-submit:hover, .back-to-top:hover {
    transform: none !important;
  }
  * { transition-duration: 0.001ms !important; }
}

/* Legal / help pages: single-column prose in the same brand style. */
.prose-hero {
  position: relative;
  overflow: hidden;
  background: var(--prose-accent, #FF6A3D);
  background-image: radial-gradient(rgba(22, 22, 29, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  padding: 150px 24px 56px;
  box-sizing: border-box;
}
.prose-hero-inner { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.prose-eyebrow {
  align-self: flex-start;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #FFFAF0;
  border: 1.5px solid #16161D;
  border-radius: 999px;
  padding: 6px 12px;
}
.prose-title { margin: 0; font-size: clamp(36px, 6vw, 60px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.prose-lede { margin: 0; font-size: 18px; line-height: 1.5; max-width: 560px; }
.prose-body { max-width: 680px; margin: 0 auto; padding: 56px 24px 100px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.65; }
.prose-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 28px 0 0; }
.prose-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose-body th, .prose-body td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid #E2DFD7; }
.prose-body a { text-decoration: underline; text-underline-offset: 3px; }
.prose-updated { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #6B6A73; text-transform: uppercase; letter-spacing: 0.06em; }
