/* Alive.am — landing page */

:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --bg: #ffffff;
  --surface: #f4f4f4;
  --chip: #f6f6f6;
  --chip-ghost: #fbfbfb;
  --line: #ececec;
  --line-soft: #e2e2e2;

  --gutter: 32px;
  --page: 1040px;
  --device-w: 280px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'M PLUS 1p', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout ------------------------------------------------------------------ */

.shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
}

.page {
  width: 100%;
  max-width: var(--page);
  display: flex;
  flex-direction: column;
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
  padding: 40px 0 0;
  display: flex;
  align-items: center;
}

.wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.hero {
  padding: clamp(72px, 12vw, 140px) 0 clamp(72px, 11vw, 130px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7.2vw, 68px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: pretty;
}

.lede {
  margin: 0;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}

/* App rows ---------------------------------------------------------------- */

.apps {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 11vw, 130px);
}

.app {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 7vw, 80px);
  align-items: center;
}

/* Device frame */

.device {
  position: relative;
  flex: 0 0 var(--device-w);
  width: var(--device-w);
  max-width: 100%;
  padding: 14px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2e2e30, #141415);
  box-shadow: 0 30px 60px rgba(17, 17, 17, 0.18);
}

.device-btn {
  position: absolute;
  width: 3px;
  background: #3a3a3c;
  border-radius: 2px;
}

.btn-left {
  left: -2px;
  top: 96px;
  height: 46px;
}

.btn-right-a {
  right: -2px;
  top: 82px;
  height: 30px;
}

.btn-right-b {
  right: -2px;
  top: 118px;
  height: 60px;
}

.screen {
  border-radius: 33px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.5);
}

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

.app-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 420px;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.12);
}

.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-copy h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.app-copy p {
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.cta {
  font-family: inherit;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: #f0f0f0;
  color: var(--faint);
  cursor: default;
}

/* More -------------------------------------------------------------------- */

.more {
  margin: clamp(88px, 13vw, 150px) 0 0;
  padding: clamp(44px, 6vw, 64px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.more h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 22ch;
}

.more p {
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}

.chips {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  background: var(--chip);
  border-radius: 999px;
  padding: 10px 20px;
}

.chips .chip-ghost {
  color: var(--faint);
  background: var(--chip-ghost);
  border: 1px dashed var(--line-soft);
  padding: 9px 19px;
}

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

.colophon {
  padding: 40px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--faint);
}

/* Reveal ------------------------------------------------------------------ */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* Small screens ----------------------------------------------------------- */

@media (max-width: 560px) {
  :root { --gutter: 22px; }

  .masthead { padding-top: 28px; }
  .colophon { padding-bottom: 40px; }
}
