/* ========================================================================
   Alarmingly — marketing page
   Design tokens are pulled from the actual app icon (navy / teal / coral)
   so this page and the app feel like the same product.
   ======================================================================== */

:root {
  --navy-950: #081726;
  --navy-900: #0d2039;
  --navy-800: #14304f;
  --navy-700: #1c3f66;
  --navy-600: #2a527f;

  --teal: #2bb8a6;
  --teal-soft: rgba(43, 184, 166, 0.16);
  --coral: #f1543f;
  --coral-soft: rgba(241, 84, 63, 0.16);

  --ink: #f4f7fa;
  --ink-muted: #aebdd1;
  --ink-faint: #7c8ea6;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --shadow-lg: 0 30px 60px -20px rgba(3, 10, 20, 0.6);
  --shadow-md: 0 16px 32px -16px rgba(3, 10, 20, 0.5);

  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

em {
  color: var(--teal);
  font-style: normal;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------
   Background glow — two soft blurred blobs, purely decorative
   --------------------------------------------------------------------- */

.bg-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  max-width: 90vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--teal {
  top: -220px;
  left: -160px;
  background: var(--teal);
}

.bg-glow--coral {
  top: 420px;
  right: -220px;
  background: var(--coral);
  opacity: 0.14;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(8, 23, 38, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand__mark {
  border-radius: 8px;
  display: block;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.language-picker select {
  max-width: 132px;
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.language-picker select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .brand {
  margin-right: 0;
  margin-left: auto;
}

html[dir="rtl"] .bg-glow--teal {
  left: auto;
  right: -160px;
}

html[dir="rtl"] .bg-glow--coral {
  right: auto;
  left: -220px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill--ghost {
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
}

.pill--solid {
  background: var(--teal);
  color: var(--navy-950);
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.eyebrow {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero__note {
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* ---- Hero phone mockup ---- */

.hero__art {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 320px);
  border: 8px solid #302d33;
  border-radius: 36px;
  background: #151318;
  box-shadow: var(--shadow-lg);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  min-height: 590px;
  border-radius: 28px;
  padding: 12px 16px 18px;
  background: #151318;
  color: #e9e1e9;
}

.mock-status,
.mini-phone__status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  color: #e9e1e9;
  font-size: 0.74rem;
  font-weight: 700;
}

.mock-kicker {
  color: #d7bcff;
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.mock-fired {
  color: #c9c1cb;
  font-size: 0.8rem;
  margin-bottom: 24px;
}

.mock-subject {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 18px;
}

.mock-time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.chip {
  padding: 3px 9px;
  border-radius: 9px;
  border: 1px solid #49444f;
  font-size: 0.71rem;
}

.mock-attendees-label {
  color: #cbc2ce;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.mock-attendees {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.8rem;
}

.mock-attendees li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mock-person {
  color: #cbc2ce;
  font-size: 0.7rem;
}

.mock-response {
  margin-inline-start: auto;
  color: #cbc2ce;
  font-size: 0.7rem;
}

.mock-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-btn {
  position: relative;
  display: block;
  text-align: center;
  padding: 10px 28px;
  border-radius: 999px;
  background: #494255;
  color: #eadbff;
  font-size: 0.84rem;
  font-weight: 600;
}

.mock-btn__icon {
  position: absolute;
  inset-inline-start: 15px;
  font-size: 1rem;
  line-height: 1;
}

/* ---------------------------------------------------------------------
   Problem section
   --------------------------------------------------------------------- */

.problem {
  position: relative;
  z-index: 1;
  padding: 40px 24px 100px;
}

.problem__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.problem h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}

.problem p {
  color: var(--ink-muted);
  font-size: 1.08rem;
}

/* ---------------------------------------------------------------------
   Shared section heading
   --------------------------------------------------------------------- */

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 56px;
}

/* ---------------------------------------------------------------------
   Features
   --------------------------------------------------------------------- */

.features {
  position: relative;
  z-index: 1;
  padding: 40px 24px 110px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.feature-icon--teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.feature-icon--coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* ---------------------------------------------------------------------
   How it works
   --------------------------------------------------------------------- */

.how {
  position: relative;
  z-index: 1;
  padding: 40px 24px 110px;
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.how__steps li {
  display: flex;
  gap: 20px;
}

.how__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
}

.how__steps h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.how__steps p {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* ---- mini phone (armed alarms) ---- */

.mini-phone {
  width: min(100%, 390px);
  border: 8px solid #302d33;
  border-radius: 30px;
  padding: 14px;
  background: #151318;
  color: #e9e1e9;
  box-shadow: var(--shadow-md);
}

.mini-phone__status {
  margin-bottom: 14px;
}

.mini-phone__appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.mini-phone__appname {
  font-size: 1.35rem;
  font-weight: 500;
}

.mini-phone__tools {
  display: flex;
  gap: 9px;
}

.mini-phone__tools svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #d0c7d2;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-section-label {
  color: #c9c1cb;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 8px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #2b2532;
  border-radius: 13px;
  padding: 12px 10px;
  margin-bottom: 8px;
}

.mini-row--meeting {
  background: #28242b;
}

.mini-icon {
  flex-shrink: 0;
  width: 23px;
  color: #d7bcff;
  font-size: 1.2rem;
  text-align: center;
}

.mini-icon--cal {
  color: #c9c1cb;
}

.mini-row__content {
  min-width: 0;
  flex: 1;
}

.mini-title {
  font-size: 0.84rem;
  margin-bottom: 3px;
}

.mini-sub {
  font-size: 0.7rem;
  color: #c9c1cb;
}

.mini-menu {
  font-size: 1.4rem;
  line-height: 1;
  color: #c9c1cb;
}

.mini-all-day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 9px;
  font-size: 0.82rem;
}

.mini-all-day span:last-child {
  margin-inline-start: auto;
  color: #c9c1cb;
}

/* ---------------------------------------------------------------------
   Privacy
   --------------------------------------------------------------------- */

.privacy {
  position: relative;
  z-index: 1;
  padding: 20px 24px 130px;
}

.privacy__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.privacy .feature-icon {
  margin-bottom: 22px;
}

.privacy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}

.privacy p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.privacy p + p {
  margin-top: 16px;
}

.privacy a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.privacy a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.brand--footer {
  margin-right: 0;
  margin-bottom: 4px;
}

.site-footer__domain {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer__copy {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.site-footer__links {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
}

.site-footer__links a {
  color: var(--ink-muted);
}

.site-footer__links a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--delay {
  transition-delay: 0.12s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .how__art {
    order: -1;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .site-header__inner {
    gap: 12px;
  }

  .site-header__inner > .pill--ghost {
    display: none;
  }

  .language-picker select {
    max-width: 118px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 48px;
    padding-bottom: 56px;
    gap: 44px;
    text-align: center;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__cta {
    align-items: center;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .phone {
    width: 100%;
    max-width: 320px;
  }
}

/* ---------------------------------------------------------------------
   Legal / policy pages (privacy.html, and any future terms page) --
   deliberately not using .reveal here: a policy page must render fully
   and immediately with JS disabled, not depend on IntersectionObserver.
   --------------------------------------------------------------------- */

.legal {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal__back:hover {
  color: var(--ink);
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}

.legal__updated {
  color: var(--ink-faint);
  font-size: 0.88rem;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal p {
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.legal ul,
.legal ol {
  color: var(--ink-muted);
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--ink);
}

.legal a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--teal-soft);
}

.legal a:hover {
  text-decoration-color: currentColor;
}
