@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ============================================
   PLACELY LANDING PAGE — Design Tokens & Base
   ============================================ */

:root {
  /* Product Colors */
  --color-product: #ed5b53;
  --color-product-hover: #d5524b;
  --color-product-normal: #ed5b53;

  /* Light Theme (default) */
  --color-bg: #ffffff;
  --color-bg-input: #ffffff;
  --color-text-primary: #202020;
  --color-text-secondary: #b1b1b1;
  --color-text-body: #b1b1b1;
  --color-border-input: #eeeeee;
  --color-placeholder: #b1b1b1;
  --color-footer: #b1b1b1;

  /* Typography */
  --font-family: "Inter", sans-serif;

  /* Font Sizes */
  --fs-hero: 32px;
  --fs-body: 16px;
  --fs-body-secondary: 16px;
  --fs-body-small: 14px;
  --fs-logo: 28px;
  --fs-footer: 12px;

  /* Line Heights */
  --lh-body: 30px;
  --lh-secondary: 24px;

  /* Spacing */
  --page-padding: 16px;
  --section-gap: 32px;
  --text-gap: 8px;

  /* Shadows */
  --shadow-input: inset 0px 0.5px 4px 0px rgba(96, 97, 112, 0.16);
  --shadow-button: 0px 0px 1px 0px rgba(40, 41, 61, 0.15), 1px 1px 2px 0px rgba(96, 97, 112, 0.15);

  /* Radius */
  --radius: 4px;

  /* Layering */
  --z-below: -1;
  --z-raised: 1;
  --z-tabs: 10;
  --z-sticky: 20;

  /* Transitions */
  --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark Theme */
.dark {
  --color-bg: #090a0b;
  --color-bg-input: rgba(11, 17, 21, 0.6);
  --color-text-primary: #ffffff;
  --color-text-secondary: #909090;
  --color-text-body: #909090;
  --color-border-input: rgba(255, 255, 255, 0.14);
  --color-placeholder: rgba(255, 255, 255, 0.22);
  --color-footer: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  transition: var(--transition-theme);
}

.dark body {
  background: linear-gradient(-55deg, #090a0b 0%, #0b1115 100%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input {
  font-family: inherit;
  outline: none;
  border: none;
  background: transparent;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--color-product);
}

/* ============================================
   Layout
   ============================================ */

.page {
  position: relative;
  min-height: 100svh;
  /* max-height: 100svh; */
  overflow-x: hidden;
}

/* ============================================
   Header
   ============================================ */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--page-padding);
  position: relative;
  z-index: var(--z-tabs);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo__icon {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0;
}

.logo__text {
  font-size: var(--fs-logo);
  font-weight: 700;
  line-height: normal;
  color: var(--color-text-primary);
  transition: var(--transition-theme);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border-radius: var(--radius);
  color: var(--color-text-secondary);
  transition: var(--transition-theme);
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    color: var(--color-text-primary);
  }
}

.theme-toggle:active {
  transform: scale(0.95);
  transition: transform 160ms ease-out;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

.theme-toggle__icon--hidden {
  display: none;
}

.light .theme-toggle__icon--moon,
.dark .theme-toggle__icon--sun {
  display: none !important;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  z-index: var(--z-tabs);
  padding: 0 var(--page-padding);
  /* padding-block: 2rem; */
  max-width: 100%;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  transition: var(--transition-theme);
  white-space: normal;
}

.hero__title .highlight {
  color: var(--color-product);
}

.hero__description {
  margin-top: var(--text-gap);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text-body);
  transition: var(--transition-theme);
}

/* ============================================
   Email Form
   ============================================ */

.email-form {
  margin-top: var(--section-gap);
  max-width: 100%;
}

.email-form__input-wrapper {
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-form__input {
  width: 100%;
  height: 41px;
  padding: 5px 15px;
  font-size: var(--fs-body-small);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-input);
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius);
  box-shadow: var(--shadow-input);
  transition: var(--transition-theme);
}

.email-form__input::placeholder {
  color: var(--color-placeholder);
}

.email-form__input:focus {
  border-color: var(--color-product);
}

.email-form__button {
  position: relative;
  right: auto;
  top: auto;
  height: 41px;
  width: 100%;
  background-color: var(--color-product);
  border: 1px solid var(--color-product-hover);
  border-radius: var(--radius);
  box-shadow: var(--shadow-button);
  color: #ffffff;
  font-size: var(--fs-body-small);
  font-weight: 600;
  line-height: var(--lh-body);
  text-align: center;
  transition: background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .email-form__button:hover {
    background-color: var(--color-product-hover);
  }
}

.email-form__button:active {
  transform: scale(0.98);
}

/* Success/Error states */
.email-form__message {
  margin-top: 8px;
  font-size: var(--fs-body-small);
  line-height: var(--lh-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.email-form__message--visible {
  opacity: 1;
}

.email-form__message--success {
  color: #4caf50;
}

.email-form__message--error {
  color: var(--color-product);
}

/* ============================================
   Event Cards
   ============================================ */

.event-cards {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 45%;
  z-index: var(--z-sticky);
  pointer-events: none;
  overflow: hidden;
}

.event-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  font-family: var(--font-family);
  font-size: var(--text-xxsmall, 12px);
  line-height: 1.4;
  color: #202020;
  opacity: 1;
  pointer-events: none;
  max-width: min(200px, calc(100% - 32px));
  transform: translateY(0) scale(1);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.event-card--entering {
  opacity: 0;
  transform: translateY(15px) scale(0.96);
}

.event-card--floating {
  animation: event-card-float var(--float-duration, 3s) ease-in-out infinite;
}

.event-card--exiting {
  animation: none;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition-duration: 0.35s;
}

@keyframes event-card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(5px);
  }
}

.dark .event-card {
  background: rgba(14, 21, 27, 0.75);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.event-card__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card__icon svg {
  width: 12px;
  height: 12px;
}

.event-card__icon--danger {
  background: #fee2e2;
  color: #dc2626;
}

.event-card__icon--danger,
.dark .event-card__icon--danger {
  background: rgba(220, 38, 38, 0.2);
}

.event-card__icon--fix {
  background: #fef3c7;
  color: #d97706;
}

.event-card__icon--fix,
.dark .event-card__icon--fix {
  background: rgba(217, 119, 6, 0.2);
}

.event-card__icon--user-event {
  background: #dbeafe;
  color: #2563eb;
}

.event-card__icon--user-event,
.dark .event-card__icon--user-event {
  background: rgba(37, 99, 235, 0.2);
}

.event-card__icon--record-event {
  background: #d1fae5;
  color: #059669;
}

.event-card__icon--record-event,
.dark .event-card__icon--record-event {
  background: rgba(5, 150, 105, 0.2);
}

.event-card__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.event-card__action {
  font-weight: 600;
  font-size: var(--text-xxsmall, 12px);
  color: inherit;
  overflow-wrap: break-word;
}

.event-card__detail {
  font-weight: 400;
  font-size: var(--text-xxsmall, 12px);
  color: #6b7280;
}

.event-card__detail,
.dark .event-card__detail {
  color: #9ca3af;
}

.event-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xxsmall, 12px);
  color: #9ca3af;
}

.event-card__meta,
.dark .event-card__meta {
  color: #6b7280;
}

.event-card__meta-name {
  display: flex;
  align-items: center;
  gap: 3px;
}

.event-card__meta-name svg {
  width: 10px;
  height: 10px;
}

/* ============================================
   Illustration
   ============================================ */

.illustration {
  bottom: 0;
  position: absolute;
  right: 0;
  z-index: var(--z-raised);
  pointer-events: none;
  height: auto;
  display: none;
}

.illustration__img {
  width: 100%;
  height: auto;
  display: block;
}

.illustration__img--dark {
  display: none;
}

.dark .illustration__img--light {
  display: none;
}

.dark .illustration__img--dark {
  display: block;
}

/* Window animations for dark mode SVG */
.window-glow {
  animation: windowGlow 2s ease-in-out infinite alternate;
}

.window-blink {
  animation: windowBlink 0.15s ease-in-out infinite !important;
}

.window-off {
  opacity: 0;
  background-color: #000;
  color: #000;
  filter: none;
}

@keyframes windowGlow {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 178, 0, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(255, 178, 0, 0.9));
  }
}

@keyframes windowBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.3;
  }
}

/* Tower Pulse Animation — hidden until JS adds .tower-pulse--visible */
.tower-pulse {
  position: absolute;
  /* Center on the red circle: x=484/846≈57.2%, y=92/531≈17.3% */
  left: 57.2%;
  top: 17.3%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  z-index: var(--z-below);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tower-pulse--visible {
  opacity: 1;
}

/* Outer soft glow halo — no z-index so tower antenna shows through */
.tower-pulse__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 91, 83, 0.25) 0%, rgba(237, 91, 83, 0) 70%);
  animation: glow-breathe 3s ease-in-out infinite alternate;
}

/* Solid core circle — z-index so it sits above tower */
.tower-pulse__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ed5b53 !important;
  box-shadow: 0 0 12px 4px rgba(255, 163, 159, 0.534) !important;
  animation: core-glow 3s ease-in-out infinite alternate;
}

.dark .tower-pulse__core {
  background: #ed5b53;
  box-shadow: 0 0 12px 4px rgba(237, 91, 83, 0.25);
}

@keyframes glow-breathe {
  0% {
    width: 40px;
    height: 40px;
    opacity: 0.6;
  }
  100% {
    width: 70px;
    height: 70px;
    opacity: 1;
  }
}

@keyframes core-glow {
  0% {
    box-shadow: 0 0 10px 3px rgba(237, 91, 83, 0.3);
  }
  100% {
    box-shadow: 0 0 18px 6px rgba(237, 91, 83, 0.5);
  }
}

.tower-pulse__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(237, 91, 83, 0.4);
  opacity: 0;
  animation: pulse-ring 3s ease-out infinite;
}

.tower-pulse__ring--1 {
  animation-delay: 0s;
}

.tower-pulse__ring--2 {
  animation-delay: 1.5s;
}

@keyframes pulse-ring {
  0% {
    width: 30px;
    height: 30px;
    opacity: 0.6;
  }
  100% {
    width: 90px;
    height: 90px;
    opacity: 0;
  }
}

/* ============================================
   Window Animations (dark mode inline SVG)
   ============================================ */

/* Warm glow — subtle brightness pulse on #FFB200 windows */
.window-glow {
  animation: window-warm-glow 4s ease-in-out infinite alternate;
}

@keyframes window-warm-glow {
  0% {
    fill-opacity: 0.7;
  }
  100% {
    fill-opacity: 1;
  }
}

/* Blink — faulty bulb flicker, applied temporarily by JS */
.window-blink {
  animation: window-flicker 0.3s steps(2, end) infinite;
}

@keyframes window-flicker {
  0% {
    fill-opacity: 0.9;
  }
  50% {
    fill-opacity: 0.1;
  }
  100% {
    fill-opacity: 0.7;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  position: absolute;
  z-index: var(--z-tabs);
  padding: 0 var(--page-padding);
  padding-top: 8px;
  padding-bottom: 2rem;
}

.footer__text {
  font-size: var(--fs-footer);
  font-weight: 400;
  line-height: var(--lh-secondary);
  color: var(--color-footer);
  text-align: center;
  width: 100%;
}

/* ============================================
   Product Overview
   ============================================ */

.product-overview {
  position: relative;
  z-index: var(--z-sticky);
  padding: 80px var(--page-padding) 96px;
  color: var(--color-text-primary);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-input);
  transition: var(--transition-theme);
}

.product-overview__inner {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.product-overview__eyebrow,
.product-overview__number {
  color: var(--color-product);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-overview h2 {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.product-overview__lead {
  max-width: 760px;
  margin-top: 28px;
  color: var(--color-text-body);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.product-overview__grid {
  display: grid;
  gap: 40px;
  margin-top: 72px;
}

.product-overview__grid article {
  padding-top: 20px;
  border-top: 1px solid var(--color-border-input);
}

.product-overview__grid h3 {
  margin-top: 30px;
  font-size: 20px;
  line-height: 1.3;
}

.product-overview__grid article > p:last-child,
.product-overview__faq details p {
  margin-top: 12px;
  color: var(--color-text-body);
  font-size: 15px;
  line-height: 1.7;
}

.product-overview__faq {
  max-width: 900px;
  margin-top: 96px;
}

.product-overview__faq h2 {
  margin: 0 0 32px;
  font-size: clamp(28px, 4vw, 42px);
}

.product-overview__faq details {
  border-top: 1px solid var(--color-border-input);
}

.product-overview__faq details:last-child {
  border-bottom: 1px solid var(--color-border-input);
}

.product-overview__faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
}

.product-overview__faq summary::-webkit-details-marker {
  display: none;
}

.product-overview__faq summary::after {
  content: "+";
  color: var(--color-product);
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.product-overview__faq details[open] summary::after {
  transform: rotate(45deg);
}

.product-overview__faq details p {
  max-width: 720px;
  margin: -4px 0 24px;
}

/* ============================================
   Responsive — Tablet (≥ 481px)
   ============================================ */

@media (width >= 770px) {
  :root {
    --page-padding: 16px;
    --fs-hero: 36px;
    --fs-body: 18px;
    --fs-footer: 14px;
    --fs-logo: 32px;
  }

  .hero {
    margin-top: 60px;
  }

  .hero__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .logo__icon {
    height: 32px !important;
    width: 32px !important;
  }

  .email-form {
    max-width: 70%;
  }

  .email-form__input-wrapper {
    height: 41px;
    display: block;
    flex-direction: unset;
    gap: unset;
  }

  .email-form__input {
    height: 100%;
    padding: 5px 134px 5px 15px;
  }

  .email-form__button {
    position: absolute;
    width: 118px;
    right: 0;
    top: 0;
  }

  .illustration {
    width: 170%;
    right: -60%;
  }

  .footer__text {
    text-align: left;
    width: auto;
  }

  .product-overview__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================
   Responsive — Desktop (≥ 1025px)
   usually laptops
   ============================================ */

@media (width >= 1025px) {
  :root {
    --page-padding: 66px;
    --fs-hero: 36px;
    --fs-body: 18px;
    --fs-footer: 14px;
    --fs-logo: 32px;
  }

  .header {
    padding: 66px var(--page-padding);
  }

  .hero {
    margin-top: 20px;
    max-width: 60vw;
  }

  .hero__description {
    max-width: none;
  }

  .email-form {
    max-width: 728px;
  }

  .footer {
    position: absolute;
    bottom: 2rem;
  }

  .illustration {
    width: 78vw;
    right: -20%;
  }

  .event-cards {
    width: 70%;
    height: 70%;
  }

  .event-card {
    font-size: 14px;
    gap: 12px;
    padding: 12px 16px;
    max-width: min(320px, calc(100% - 32px));
  }

  .event-card__icon {
    width: 32px;
    height: 32px;
  }

  .event-card__icon svg {
    width: 16px;
    height: 16px;
  }

  .event-card__action {
    font-weight: 600;
    font-size: 14px;
    color: inherit;
  }

  .event-card__detail {
    font-weight: 400;
    font-size: 12px;
    color: #6b7280;
  }

  .event-card__meta {
    gap: 8px;
    font-size: var(--text-xxsmall, 12px);
  }
}

/* ============================================
   Responsive — Large Desktop (≥ 1281px)
   usually laptops but with high reso
   ============================================ */

@media (width >= 1281px) {
  .hero {
    margin-top: 10vh;
    max-width: 60vw;
  }

  .email-form {
    max-width: 100%;
  }

  .footer {
    position: absolute;
    bottom: 2rem;
  }

  .illustration {
    width: 80vw;
    right: -20%;
  }
}

/* ============================================
   Responsive — Extra Large Desktop (≥ 192px)
   high resolution desktops
   ============================================ */

@media (width >= 1920px) {
  .hero {
    width: 60vw;
    max-width: 1200px;
  }

  .illustration {
    width: 70vw;
    right: -10%;
  }
}

/* ============================================
   Responsive — Edge Cases
   ============================================ */

/* illustration hidden on screen where viewport height is low */
@media (height >= 659px) {
  .illustration {
    display: block;
  }
}

@media (width <= 400px) and (height <= 900px) {
  .illustration {
    bottom: -10%;
  }
}

@media (width >= 770px) and (width <= 1024px) and (height <= 1108px) {
  .illustration {
    width: 140vw;
    right: -50%;
  }
}

/* ============================================
   Reduced Motion — disable all keyframe animations
   and heavy transitions for users who prefer it
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .tower-pulse,
  .window-blink,
  .window-flicker,
  .window-glow,
  .pulse-ring {
    animation: none !important;
    transition: none !important;
  }
}

@media (width >= 770px) and (width <= 1024px) and (height <= 1046px) {
  .illustration {
    width: 80vw;
    right: -20%;
  }
}
