/* Shelvora landing — Ink Indigo #16213E · Amber Lamp #E9A23B · Paper #F6F1E7 · Charcoal #0C0C10 · Slate #5B6172 */
:root {
  --ink: #16213E;
  --amber: #E9A23B;
  --paper: #F6F1E7;
  --charcoal: #0C0C10;
  --slate: #5B6172;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--paper);
  background: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Language toggle */
.lang-toggle {
  position: fixed; top: 18px; right: 18px; z-index: 20;
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(246, 241, 231, 0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(246, 241, 231, 0.15);
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; opacity: 0.7;
  transition: background 0.15s, opacity 0.15s;
}
.lang-toggle button.active { background: var(--amber); color: var(--ink); opacity: 1; }

/* Device frame */
.device {
  background: #0a0c11;
  border: 1px solid rgba(246, 241, 231, 0.14);
  border-radius: 34px;
  padding: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  width: 248px;
}
.device img, .device video { display: block; width: 100%; border-radius: 26px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  padding: 96px max(32px, calc((100% - 1160px) / 2)) 64px;
  min-height: 100svh;
  /* full-bleed background; content stays centered within ~1160px via the padding above */
  background: linear-gradient(165deg, var(--ink) 0%, var(--charcoal) 78%);
}
.hero-logo { width: 84px; height: 84px; margin-bottom: 22px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5)); }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 80px); line-height: 1; margin: 0; letter-spacing: -0.01em; }
.tagline { font-family: var(--serif); font-size: clamp(20px, 3vw, 27px); color: var(--amber); margin: 16px 0 14px; }
.subtitle { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; color: rgba(246, 241, 231, 0.78); max-width: 460px; margin: 0 0 26px; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--amber); border: 1px solid rgba(233, 162, 59, 0.45);
  padding: 8px 16px; border-radius: 999px; background: rgba(233, 162, 59, 0.08);
}
.hero-pitch {
  margin: 0 0 22px; font-family: var(--serif); font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 500; color: var(--amber); letter-spacing: 0.01em;
}
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 16px; text-decoration: none;
  color: var(--ink); background: var(--amber);
  padding: 14px 28px; border-radius: 12px;
  transition: transform 0.12s ease, background 0.12s;
}
.btn-download:hover { background: #f0ad4d; }
.btn-download:active { transform: translateY(1px); }
.cta-note { margin: 14px 0 0; font-size: 13px; color: var(--slate); }

/* Install help (collapsible, understated) */
.install-help { margin: 16px 0 0; max-width: 460px; }
.install-help summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 600; color: rgba(246, 241, 231, 0.7);
  padding: 6px 0; transition: color 0.15s;
}
.install-help summary:hover { color: var(--amber); }
.install-help summary::-webkit-details-marker { display: none; }
.install-help summary::before { content: "+"; font-weight: 700; opacity: 0.7; }
.install-help[open] summary::before { content: "–"; }
.install-steps {
  margin: 6px 0 0; padding-left: 20px; text-align: left;
  font-size: 13px; line-height: 1.6; color: rgba(246, 241, 231, 0.62);
}
.install-steps li { margin: 4px 0; }

/* Hero device trio */
.hero-devices { position: relative; display: flex; justify-content: center; align-items: center; min-height: 540px; }
.device-front { z-index: 3; width: 250px; }
.device-sm { position: absolute; width: 196px; z-index: 1; opacity: 0.92; }
.device-back { left: 50%; transform: translateX(-128%) translateY(26px) rotate(-9deg); }
.device-back2 { left: 50%; transform: translateX(28%) translateY(26px) rotate(9deg); }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
  max-width: 1080px; margin: 0 auto; padding: 84px 32px;
}
.feature.reverse .feature-text { order: 2; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.feature-text h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 14px; }
.feature-text p { font-size: 16px; line-height: 1.65; color: rgba(246, 241, 231, 0.74); margin: 0; max-width: 460px; }
.feature-media { display: flex; justify-content: center; }

/* Square panel (theme grid) */
.panel {
  width: 100%; max-width: 380px; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(246, 241, 231, 0.12); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #0d1018;
}
.panel img { display: block; width: 100%; }

/* Demo videos */
.demo { text-align: center; padding: 84px 32px 96px; }
.demo-title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4vw, 38px); margin: 0 0 48px; }
.video-grid { display: flex; gap: 56px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.video-item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.video-item figcaption { font-family: var(--serif); font-size: 17px; color: rgba(246, 241, 231, 0.82); }
.device-video { width: 264px; }
.device-video video { display: block; width: 100%; border-radius: 26px; }

/* Footer */
.footer {
  border-top: 1px solid rgba(246, 241, 231, 0.08); background: var(--ink);
  padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 500; font-size: 20px; }
.footer-tag { margin: 0; font-size: 14px; color: var(--slate); }
.footer-origin { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(91, 97, 114, 0.85); text-align: center; max-width: 440px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 84px; min-height: auto; }
  .hero-logo, .badge { margin-left: auto; margin-right: auto; }
  .subtitle { margin-left: auto; margin-right: auto; }
  .install-help { margin-left: auto; margin-right: auto; }
  /* Keep the 3-phone trio on mobile but scale the whole group down so it never overflows. */
  .hero-devices { margin-top: 12px; min-height: 360px; transform: scale(0.62); transform-origin: center top; }
  .feature { grid-template-columns: 1fr; gap: 28px; text-align: center; padding: 60px 28px; }
  .feature.reverse .feature-text { order: 0; }
  .feature-text p, .subtitle { max-width: 540px; margin-left: auto; margin-right: auto; }
  .kicker { margin-left: auto; margin-right: auto; }
}
@media (max-width: 380px) {
  .hero-devices { transform: scale(0.52); }
}
