/* Doorcam website. Plain CSS, no build step. */

:root {
  --ground: #ffffff;
  --ink: #0b0d12;
  --ink-soft: #2a2f38;
  --muted: #5b6270;
  --line: #e6e8ec;
  --surface: #f4f6f9;
  --desktop: #edf1f7;
  --desktop-line: #e1e5ec;
  --accent: #2b59e3;
  --accent-strong: #1f47c7;
  --accent-soft: rgba(43, 89, 227, 0.12);
  --live: #ff453a;

  --page-width: 1120px;
  --gutter: 24px;
  --section-space: clamp(72px, 10vw, 120px);

  --shadow-widget: 0 1px 2px rgba(11, 13, 18, 0.12), 0 14px 34px rgba(11, 13, 18, 0.18);
  --shadow-card: 0 1px 2px rgba(11, 13, 18, 0.06), 0 10px 28px rgba(11, 13, 18, 0.1);
  --shadow-window: 0 2px 4px rgba(11, 13, 18, 0.08), 0 24px 48px rgba(11, 13, 18, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

img,
svg {
  display: block;
}

a {
  color: var(--muted);
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] {
  scroll-margin-top: 24px;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-top: var(--section-space);
}

/* Shared text styles */

.section-title {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-title--center {
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.fine-print {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding-inline: 30px;
  border-radius: 28px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.button:focus-visible {
  border-radius: 28px;
}

.button--small {
  height: 44px;
  padding-inline: 20px;
  border-radius: 22px;
  font-size: 15px;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
}

.site-nav a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}

@media (max-width: 600px) {
  .site-nav a:not(.button) {
    display: none;
  }
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  text-align: center;
}

.hero__icon {
  filter: drop-shadow(0 12px 18px rgba(11, 13, 18, 0.14));
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero__lede {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero .button {
  margin-top: 32px;
}

/* Desktop with widgets */

.desktop {
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid var(--desktop-line);
  border-radius: 24px;
  background: var(--desktop);
}

.desktop__menubar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 32px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--desktop-line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.desktop__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.desktop__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: 48px clamp(16px, 3vw, 32px) 56px;
}

/* Widgets follow the real widget: snapshot, scrim, name, time, play button. */

.widget {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: #000000;
  color: #ffffff;
  box-shadow: var(--shadow-widget);
}

.widget::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.widget--large {
  width: min(344px, 100%);
}

.widget--medium {
  aspect-ratio: 344 / 164;
}

.widget__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget__label {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 12px;
}

.widget--large .widget__label,
.widget--medium .widget__label {
  padding: 12px 14px;
}

.widget__name,
.widget__time {
  display: block;
  line-height: 1.25;
}

.widget__name {
  font-size: 13px;
  font-weight: 600;
}

.widget__time {
  margin-top: 1px;
  font-size: 11px;
  opacity: 0.85;
}

.widget__play {
  flex: none;
  opacity: 0.9;
}

.widget-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(344px, 100%);
}

.widget-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Widget facts */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 48px;
  padding-top: 48px;
}

.fact svg {
  color: var(--accent);
}

.fact h2 {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}

.fact p {
  margin-top: 8px;
  color: var(--muted);
}

/* Feature rows: text and a picture side by side, stacked on narrow screens. */

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 72px;
}

.feature--media-left {
  flex-direction: row-reverse;
}

.feature__text {
  flex: 1 1 340px;
  min-width: 0;
}

.feature__text .section-title {
  margin-top: 16px;
}

.feature__media {
  flex: 1 1 440px;
  min-width: 0;
  border-radius: 28px;
  background: var(--surface);
}

/* Notifications */

.notifications {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px clamp(16px, 5vw, 64px);
}

.notification {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.notification img {
  flex: none;
}

.notification__body {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}

.notification__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.notification__title {
  font-weight: 600;
}

.notification__time {
  color: var(--muted);
  font-size: 12px;
}

.notification__text {
  margin-top: 2px;
  color: var(--ink-soft);
}

/* Live view window */

.live {
  padding: 48px clamp(16px, 4vw, 48px);
}

.window {
  overflow: hidden;
  border: 1px solid #d9dce2;
  border-radius: 14px;
  background: #000000;
  box-shadow: var(--shadow-window);
}

.window__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding-inline: 12px;
  border-bottom: 1px solid #dde0e5;
  background: #f1f2f4;
}

.window__lights {
  display: flex;
  gap: 8px;
}

.window__lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window__lights span:nth-child(1) {
  background: #ff5f57;
}

.window__lights span:nth-child(2) {
  background: #febc2e;
}

.window__lights span:nth-child(3) {
  background: #28c840;
}

.window__title {
  position: absolute;
  right: 0;
  left: 0;
  color: #3a3f48;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.window__video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.window__video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.window__badge,
.window__control {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.window__badge {
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.window__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}

.window__control {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* Setup steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

.step {
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.step h3 {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 660px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.privacy-note svg {
  flex: none;
  margin-top: 2px;
}

/* Pricing */

.pricing {
  text-align: center;
}

.pricing .lede {
  max-width: 560px;
  margin: 12px auto 0;
}

.pricing .fine-print {
  margin-top: 20px;
}

.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.plan {
  flex: 0 1 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
}

.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.plan__price {
  margin-top: 6px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan__period {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

/* Download call to action */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px;
  border-radius: 32px;
  background: var(--surface);
  text-align: center;
}

.cta img {
  filter: drop-shadow(0 10px 16px rgba(11, 13, 18, 0.14));
}

.cta .section-title {
  margin-top: 16px;
}

.cta .lede {
  margin-top: 12px;
}

.cta .button {
  margin-top: 28px;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 48px 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  max-width: 560px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Text pages (privacy) */

.prose {
  max-width: 720px;
  padding-top: 48px;
}

.prose h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.prose h2 {
  margin-top: 40px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--accent);
}

.prose a:hover {
  color: var(--accent-strong);
}
