/* American Rental Analytics — shell. Black, red, white, one grey. Montserrat. */
:root {
  --ink: #0B0B0C; --panel: #141517; --line: #2A2D31; --paper: #F4F4F2; --muted: #A6A9AE;
  --red: #D8232A;
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--paper); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, a { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Landing ---------- */
.landing { display: grid; grid-template-columns: 60fr 40fr; min-height: 100vh; }
.landing__photo { position: relative; overflow: hidden; background: var(--ink); }
.landing__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.landing__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.25) 0%, rgba(11,11,12,.15) 40%, rgba(11,11,12,.8) 100%), linear-gradient(90deg, rgba(11,11,12,0) 80%, rgba(11,11,12,.9) 100%); }
.landing__logo { position: absolute; top: 36px; left: 40px; width: min(300px, 46%); height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.landing__panel { display: grid; place-items: center; background: var(--ink); padding: 48px 32px; }
.landing__inner { width: 100%; max-width: 380px; }
.landing__title { margin: 0 0 14px; font-weight: 800; font-size: clamp(38px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -.02em; color: #fff; }
.landing__sub { margin: 0 0 34px; font-size: 18px; color: var(--muted); }
.msbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 58px; border: 1px solid #3A3D42; border-radius: 6px; background: #fff; color: #111; font-weight: 600; font-size: 17px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.msbtn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.landing__links { margin: 26px 0 0; display: flex; gap: 12px; font-size: 15px; color: #6B6E73; }
.landing__links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.landing__links a:hover { color: #fff; }
.landing__foot { margin: 40px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6B6E73; }

.tablet { position: absolute; left: 6%; right: 6%; bottom: -3%; max-width: 640px; padding: 16px; background: #0E0E10; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 0 0 2px #2A2C30; }
.tablet__screen { background: #fff; border-radius: 10px; overflow: hidden; aspect-ratio: 529 / 243; }
.tablet__screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--ink); }
.viewer__bar { display: flex; align-items: center; gap: 18px; height: 54px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.viewer__logo { width: 150px; height: auto; }
.viewer__tabs { flex: 1; display: flex; gap: 6px; }
.viewer__tab { padding: 8px 14px; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.viewer__tab:hover { color: #fff; }
a.viewer__tab { display: inline-block; text-decoration: none; }
.viewer__tab--ext::after { content: " \2197"; font-weight: 400; }
.viewer__tab.is-on { color: #fff; border-color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.viewer__btn { background: none; border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; color: var(--paper); font-size: 13px; text-decoration: none; }
.viewer__btn:hover { border-color: var(--red); }
.viewer__frameWrap { flex: 1; min-height: 0; background: #000; }
.viewer__frame { width: 100%; height: 100%; border: 0; display: block; }

@media (prefers-reduced-motion: no-preference) {
  .landing__inner > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .landing__inner > :nth-child(2) { animation-delay: .08s; }
  .landing__inner > :nth-child(3) { animation-delay: .14s; }
  .landing__inner > :nth-child(4) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 820px) {
  .landing { grid-template-columns: 1fr; min-height: auto; }
  .landing__photo { min-height: 46vh; }
  .landing__img { object-position: 50% 40%; }
  .landing__logo { top: 22px; left: 22px; width: 52%; }
  .tablet { left: 8%; right: 8%; bottom: -6%; padding: 10px; border-radius: 16px; }
  .landing__panel { padding: 44px 24px 40px; }
  .viewer__logo { width: 110px; }
}
@media (max-width: 520px) {
  .landing__img { object-position: 50% 85%; }
}
