/* Temper website. Apple-style product page: black and pale-grey bands, very large type, real screenshots. */

:root {
  --black: #000;
  --ink: #1d1d1f;
  --grey: #86868b;
  --grey-dark: #a1a1a6;
  --paper: #fff;
  --pale: #f5f5f7;
  --line: #d2d2d7;
  --blue: #2f6fd6;
  --blue-bright: #6b98f0;
  --temper: linear-gradient(90deg, #f0d68e, #d39a5b, #9a72d6, #5b8def);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, 4vw);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 52px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
}

/* ------------------------------------------------------------ navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 48px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #e8e8ed;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}
.nav.on-light {
  background: rgba(251, 251, 253, 0.8);
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.nav nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav nav a,
.footer a {
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav nav a:hover,
.footer a:hover {
  opacity: 1;
}
.nav-cta {
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* ------------------------------------------------------------ bands */

section {
  padding: 120px var(--gutter);
}
.dark {
  background: var(--black);
  color: #f5f5f7;
}
.light {
  background: var(--paper);
}
.tint {
  background: var(--pale);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}
h1 {
  font-size: clamp(48px, 8.4vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.02em;
}
.center {
  text-align: center;
}

.lede {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.33;
  letter-spacing: -0.02em;
}
.dark .lede,
.dark .copy p:not(.kicker) {
  color: var(--grey-dark);
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 0;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(1100px, 120vw);
  height: 520px;
  transform: translateX(-50%);
  background: var(--temper);
  filter: blur(120px);
  opacity: 0.32;
  border-radius: 50%;
  pointer-events: none;
}
.hero > *:not(.hero-glow) {
  position: relative;
}
.hero-icon {
  margin: 0 auto 28px;
}
.ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.button:hover {
  background: #2a63c2;
}
.link {
  color: var(--blue-bright);
  font-size: 17px;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}
.platforms {
  margin: 20px 0 0;
  color: var(--grey);
  font-size: 14px;
}
.hero-shot {
  max-width: 1120px;
  margin: 72px auto 0;
  transform-origin: 50% 0;
}

/* ------------------------------------------------------------ app window frame */

.window {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #15191e;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px -20px rgba(0, 0, 0, 0.45),
    0 12px 30px -12px rgba(0, 0, 0, 0.3);
}
.light .window,
.tint .window {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 30px 80px -24px rgba(0, 0, 0, 0.28),
    0 10px 24px -12px rgba(0, 0, 0, 0.16);
}
.window-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #1f242b;
}
.light .window-bar,
.tint .window-bar {
  background: #e6e8ec;
}
.window-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.window-bar i:nth-child(2) {
  background: #febc2e;
}
.window-bar i:nth-child(3) {
  background: #28c840;
}

/* ------------------------------------------------------------ feature bands */

.feature {
  text-align: center;
}
.copy {
  max-width: 760px;
  margin: 0 auto;
}
.kicker {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  background: var(--temper);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.light .kicker,
.tint .kicker {
  background: linear-gradient(90deg, #b8832e, #9c5f2a, #6a47a8, #2f63cc);
  -webkit-background-clip: text;
  background-clip: text;
}
.copy p:not(.kicker) {
  max-width: 680px;
  margin: 24px auto 0;
  color: #515154;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.43;
}
.feature .window {
  max-width: 1080px;
  margin: 64px auto 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 72px auto 0;
  padding: 0;
  list-style: none;
}
.stats strong {
  display: block;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  background: var(--temper);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span {
  display: block;
  max-width: 240px;
  margin: 12px auto 0;
  color: var(--grey-dark);
  font-size: 17px;
}

/* ------------------------------------------------------------ grid */

.grid-section {
  background: var(--pale);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 64px auto 0;
}
.grid article {
  padding: 36px 32px;
  border-radius: 24px;
  background: var(--paper);
}
.grid p {
  margin: 12px 0 0;
  color: #515154;
}

/* ------------------------------------------------------------ download */

.download {
  text-align: center;
}
.download > img {
  margin: 0 auto 24px;
}
.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 56px auto 0;
}
.platform {
  display: block;
  padding: 28px 20px;
  border-radius: 20px;
  background: #1d1d1f;
  text-decoration: none;
  transition: background 0.2s;
}
.platform:hover {
  background: #2c2c2e;
}
.platform strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
}
.platform span {
  display: block;
  margin-top: 6px;
  color: var(--grey-dark);
  font-size: 15px;
}
.fine {
  max-width: 620px;
  margin: 36px auto 0;
  color: var(--grey);
  font-size: 14px;
}
.fine a {
  color: var(--blue-bright);
}

.terminal {
  max-width: 820px;
  margin: 40px auto 0;
}
.terminal > p {
  margin: 0 0 12px;
  color: var(--grey-dark);
  font-size: 15px;
}
.cmd {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 12px 12px 12px 20px;
  border-radius: 14px;
  background: #1d1d1f;
  text-align: left;
}
.cmd .os {
  flex: none;
  width: 128px;
  color: var(--grey);
  font-size: 13px;
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  color: #f5f5f7;
}
.cmd button {
  flex: none;
  padding: 6px 14px;
  border: 0;
  border-radius: 980px;
  background: #2c2c2e;
  color: #f5f5f7;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cmd button:hover {
  background: #3a3a3c;
}

/* ------------------------------------------------------------ footer */

.footer {
  background: var(--pale);
  color: #6e6e73;
  font-size: 12.5px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px var(--gutter);
}
.footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ motion */

[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-fade].in {
  opacity: 1;
  transform: none;
}
.no-js [data-fade] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-fade] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-shot {
    transform: none !important;
  }
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 820px) {
  section {
    padding: 88px var(--gutter);
  }
  .hero {
    padding-top: 72px;
    padding-bottom: 0;
  }
  .nav nav {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
  .stats,
  .grid,
  .downloads {
    grid-template-columns: 1fr;
  }
  .grid article {
    padding: 28px 24px;
  }
  .window {
    border-radius: 8px;
  }
  .cmd {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .cmd .os {
    width: 100%;
  }
  .window-bar {
    padding: 8px 10px;
    gap: 6px;
  }
  .window-bar i {
    width: 9px;
    height: 9px;
  }
}
