/* ===================================================================
 * Splash site — home / about / privacy
 *
 * Loaded AFTER brand.css. Inherits the brand foundation (font-faces,
 * color tokens, type stack) and layers the splash-specific marketing
 * page components on top: nav, hero, feature sections, phone mockups,
 * legal page chrome.
 * =================================================================== */

/* Body — keep dark splash bg, but use brand body stack + brand black. */
body {
  font-family: var(--font-body);
  background: var(--c-black-90);
  color: #F5F5F7;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--c-slopey-100); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-black-70);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F5F5F7;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-slate-20);
  transition: color 0.2s;
}
.nav-links a:hover { color: #F5F5F7; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}
/* Soft slopey-red glow top-right */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(197, 72, 49, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
/* Mishka the bear — kept as a faint background graffiti element. */
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 500px; height: 500px;
  background: url('../img/bear-mascot-light.png') no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 2;
}
.hero-text { flex: 1; }

/* Eyebrow / hero badge — mono mini-tag, no pill chrome. */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 0 0;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--c-slopey-100);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--c-slopey-100);
  transform: rotate(45deg);
}
.hero-badge svg { display: none; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7.6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.0275em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #FFF;
}
.hero-title .accent { color: var(--c-slopey-100); }

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  color: var(--c-slate-10);
  line-height: 1.55;
  letter-spacing: 0.012em;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Hero CTAs */
.hero-cta-group {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--c-black-80);
  border: 1px solid var(--c-black-70);
  border-radius: 4px;
  padding: 13px 24px;
  color: var(--c-slate-20);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: default;
  transition: border-color 0.2s, opacity 0.2s, background 0.2s;
}
.hero-cta svg { opacity: 0.6; }

/* Log In — primary brand action */
.hero-cta-login {
  background: var(--c-slopey-100);
  border-color: var(--c-slopey-100);
  color: #FFF;
  cursor: pointer;
}
.hero-cta-login svg { opacity: 1; }
.hero-cta-login:hover {
  opacity: 0.92;
  color: #FFF;
}
.hero-cta-ios { cursor: default; }
.hero-cta-ios:hover { border-color: var(--c-slate-60); opacity: 1; }

.hero-phone { flex-shrink: 0; position: relative; z-index: 2; }

/* Optional brand accent layered behind hero phone (top-right corner). */
.hero-accent {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}
.hero-accent.hero-accent-castle {
  /* castle-white is cropped on the BOTTOM (foot/wings bleed off-canvas)
   * — pin bottom: 0 so the cropped bottom edge sits flush with the
   * hero's bottom edge, not floating mid-section. */
  bottom: 0;
  right: -120px;
  width: 360px;
  filter: brightness(0) saturate(100%)
          invert(38%) sepia(47%) saturate(870%) hue-rotate(346deg)
          brightness(86%) contrast(85%); /* tints white linework toward slopey */
  opacity: 0.18;
}

/* ===== PHONE MOCKUP ===== */
.phone-mockup {
  width: 260px;
  height: 594px;
  background: #110f12;
  border-radius: 36px;
  border: 3px solid var(--c-black-70);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}
.phone-screen {
  width: 100%;
  height: calc(100% - 54px);
  object-fit: cover;
  object-position: top;
  border-radius: 0 0 33px 33px;
  position: absolute;
  top: 54px;
  left: 0;
}
.feature-phone .phone-screen {
  height: calc(100% - 46px);
  top: 46px;
  border-radius: 0 0 27px 27px;
}

.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: #110f12;
  border-radius: 33px 33px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 24px 0;
  z-index: 3;
}
.feature-phone .phone-status-bar {
  height: 46px;
  border-radius: 27px 27px 0 0;
  padding: 14px 20px 0;
}
.status-time {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
}
.feature-phone .status-time { font-size: 12px; }
.status-icons { display: flex; align-items: center; gap: 6px; }
.feature-phone .status-icons svg { transform: scale(0.85); }

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: var(--c-black-90);
  border-radius: 14px;
  z-index: 4;
}
.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--c-slate-60);
  border-radius: 2px;
  z-index: 4;
}

/* ===== FEATURE SECTIONS ===== */
.features {
  padding: 0 32px;
  position: relative;
}

.feature-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 0;
  display: flex;
  align-items: center;
  gap: 80px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  position: relative;
}
.feature-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
/* Glow position follows the row direction (text side), keyed to
   nth-child parity so it stays correct no matter how the sections
   are ordered. Color stays per-feature. */
.feature-section:nth-child(odd)::after {
  right: -150px; top: 50%; transform: translateY(-50%);
}
.feature-section:nth-child(even)::after {
  left: -150px; top: 50%; transform: translateY(-50%);
}
.feature-section[data-feature="archive"]::after {
  background: radial-gradient(circle, rgba(197, 72, 49, 0.04) 0%, transparent 65%);
}
.feature-section[data-feature="travel"]::after {
  background: radial-gradient(circle, rgba(46, 125, 230, 0.035) 0%, transparent 65%);
}
.feature-section[data-feature="quest"]::after {
  background: radial-gradient(circle, rgba(229, 177, 43, 0.035) 0%, transparent 65%);
}
.feature-section[data-feature="technique"]::after {
  background: radial-gradient(circle, rgba(93, 63, 176, 0.045) 0%, transparent 65%);
}
.feature-section[data-feature="future"]::after {
  background: radial-gradient(circle, rgba(34, 184, 60, 0.04) 0%, transparent 65%);
}
.feature-section.visible { opacity: 1; transform: translateY(0); }
.feature-section:nth-child(even) { flex-direction: row-reverse; }
.feature-section + .feature-section {
  border-top: 1px solid var(--c-black-70);
}

.feature-text { flex: 1; position: relative; z-index: 1; }

/* Brand accent — sits BEHIND the entire feature section as a faint
 * background contour. Each accent PNG has cropped contour lines on
 * specific edges; we pin the accent to the matching section corner so
 * the image's cropped edge meets the section's edge (so cropping
 * reads as intentional bleed, never as floating fragments). */
.feature-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  width: clamp(380px, 55%, 640px);
}
/* Accent (cropped TOP + RIGHT contour) pins to the section's text-side
   corner so the cropped edges meet the section edges and read as
   intentional bleed. Keyed to nth-child parity so it tracks the
   alternating row direction regardless of section order: odd rows have
   text on the right (pin top-right), even rows are reversed with text on
   the left (pin top-left, flipped horizontally). */
.feature-section:nth-child(odd) .feature-accent {
  top: -20px;
  right: -40px;
}
.feature-section:nth-child(even) .feature-accent {
  top: -20px;
  left: -40px;
  transform: scaleX(-1);
}
.feature-text { padding-top: 24px; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(197, 72, 49, 0.10);
  border-radius: 4px;
  margin-bottom: 20px;
}
.feature-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--c-slopey-100);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #FFF;
}
.feature-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--c-slate-10);
  line-height: 1.65;
  letter-spacing: 0.012em;
  max-width: 460px;
}
.feature-phone { flex-shrink: 0; position: relative; z-index: 2; }
.feature-phone .phone-mockup {
  width: 220px;
  height: 506px;
  border-radius: 30px;
}
.feature-phone .phone-mockup::before {
  width: 80px;
  height: 24px;
  top: 10px;
  border-radius: 12px;
}

/* Per-feature accent recolor (label + icon tint). */
.feature-section[data-feature="quest"] .feature-icon {
  background: rgba(229, 177, 43, 0.12);
}
.feature-section[data-feature="quest"] .feature-label {
  color: var(--c-sunburst-100);
}
.feature-section[data-feature="travel"] .feature-icon {
  background: rgba(46, 125, 230, 0.12);
}
.feature-section[data-feature="travel"] .feature-label {
  color: var(--c-sky-100);
}
.feature-section[data-feature="technique"] .feature-icon {
  background: rgba(93, 63, 176, 0.14);
}
.feature-section[data-feature="technique"] .feature-label {
  color: var(--c-overhang-80);
}
.feature-section[data-feature="future"] .feature-icon {
  background: rgba(34, 184, 60, 0.12);
}
.feature-section[data-feature="future"] .feature-label {
  color: var(--c-slabby-100);
}

/* Inline links inside feature copy (e.g. the roadmap link in Future Plans). */
.feature-desc a {
  color: var(--c-slabby-100);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.feature-desc a:hover { color: var(--c-slabby-80); }

/* Text-only feature row (Future Plans): no phone mockup, so center the
   copy block instead of splitting it left/right. */
.feature-section--text {
  justify-content: center;
  text-align: center;
}
.feature-section--text .feature-text {
  max-width: 760px;
  padding-top: 0;
}
.feature-section--text .feature-desc {
  max-width: 640px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--c-black-70);
  padding: 48px 32px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-slate-20);
}
.footer-links a:hover { color: #F5F5F7; }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-slate-40);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ===== LEGAL / ABOUT PAGES ===== */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 140px 32px 80px;
  position: relative;
  z-index: 1;
}
.page-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #FFF;
}
.page-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-slate-40);
  margin-bottom: 48px;
}
.page-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.0055em;
  text-transform: uppercase;
  margin-top: 44px;
  margin-bottom: 14px;
  color: #FFF;
}
.page-content p, .page-content ul {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--c-slate-10);
  line-height: 1.75;
  letter-spacing: 0.012em;
  margin-bottom: 16px;
}
.page-content ul { padding-left: 24px; }
.page-content li { margin-bottom: 8px; }
.page-content a { color: var(--c-slopey-100); text-decoration: underline; }

/* Background watermark on legal/about pages (castle-white outline,
 * very faint). castle-white is cropped on the BOTTOM, so we pin the
 * image bottom flush to the viewport bottom (bottom: 0). Right edge
 * is pushed slightly off so the silhouette also bleeds into the
 * right edge instead of floating in space. */
.page-watermark {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 720px;
  max-width: 90vw;
  bottom: 0;
  right: -120px;
  opacity: 0.05;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-nav { padding: 14px 20px; }
  .nav-logo span { display: none; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }

  .hero { padding: 100px 20px 60px; }
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .hero-title { font-size: 40px; letter-spacing: -0.022em; }
  .hero-subtitle { font-size: 16px; margin: 0 auto 32px; }
  .hero-badge { margin-bottom: 18px; }
  .hero-cta-group { align-items: center; }
  .hero-accent { display: none; }

  .features { padding: 0 20px; }
  .feature-section {
    flex-direction: column !important;
    text-align: center;
    gap: 40px;
    padding: 60px 0;
  }
  .feature-text { padding-top: 0; }
  .feature-accent { display: none; }
  .feature-title { font-size: 28px; }
  .feature-desc { margin: 0 auto; font-size: 15px; }

  .page-content { padding: 110px 20px 60px; }
  .page-content h1 { font-size: 28px; }
  .page-watermark { display: none; }

  .site-footer { padding: 36px 20px; }
}
