:root {
  --color-accent: #186db7;
  --color-accent-hover: #145a98;
  --color-accent-soft: rgba(24, 109, 183, 0.12);
  --color-primary: var(--color-accent);
  --color-primary-dark: var(--color-accent-hover);
  --color-ink: #15202c;
  --color-ink-muted: #4d5d6d;
  --color-text: var(--color-ink);
  --color-text-secondary: var(--color-ink-muted);
  --color-stone: #d5e3ee;
  --color-paper: #f4f8fc;
  --color-bg: #eaf2f8;
  --color-success: #2f7d4a;
  --color-divider: rgba(21, 32, 44, 0.1);
  --color-border: rgba(21, 32, 44, 0.16);
  --font-display:
    "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --font: var(--font-body);
  --container: 1120px;
  --container-wide: 1280px;
  --header-h: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --space: 8px;
  --shadow-soft: 0 18px 50px rgba(21, 32, 44, 0.08);
}

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

html {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(
      1100px 520px at 8% -8%,
      rgba(24, 109, 183, 0.16),
      transparent 58%
    ),
    radial-gradient(
      900px 480px at 100% 0%,
      rgba(24, 109, 183, 0.1),
      transparent 52%
    ),
    radial-gradient(
      700px 400px at 70% 110%,
      rgba(24, 109, 183, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #eef5fa 0%, var(--color-bg) 42%, #f3f7fb 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body {
  margin: 0;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1 0 auto;
  position: relative;
  z-index: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 600;
  padding: 8px 14px;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 1.2em 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 600px) {
  .container {
    padding: 0 32px;
  }
}

.container-wide {
  max-width: var(--container-wide);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--color-paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid
    color-mix(in srgb, var(--color-stone) 70%, transparent);
}

.header-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

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

.brand:hover {
  text-decoration: none;
  color: var(--color-ink);
}

.brand-mark {
  height: 26px;
  width: 26px;
}

.brand-wordmark {
  height: 28px;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-desktop a:not(.btn) {
  color: var(--color-ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}

.nav-desktop a:not(.btn):hover,
.nav-desktop a:not(.btn)[aria-current="page"] {
  color: var(--color-ink);
  background: var(--color-accent-soft);
  text-decoration: none;
}

.nav-desktop .btn {
  margin-left: 8px;
}

.nav-desktop .btn-contained,
.nav-desktop .btn-contained:hover {
  color: #fff;
  background: var(--color-accent);
}

.nav-desktop .btn-contained:hover {
  background: var(--color-accent-hover);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  border-radius: 50%;
}

.nav-toggle:hover {
  background: var(--color-accent-soft);
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
  transition: background 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

body.nav-open .nav-toggle-icon {
  background: transparent;
}

body.nav-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

body.nav-open .site-header {
  background: color-mix(in srgb, var(--color-paper) 94%, #fff);
  border-bottom-color: transparent;
}

.nav-layer {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 400;
  pointer-events: none;
}

.nav-layer[hidden] {
  display: none !important;
}

.nav-layer.is-open {
  pointer-events: auto;
}

.nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 44, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-layer.is-open .nav-backdrop {
  opacity: 1;
}

.nav-sheet {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--color-paper) 94%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--color-stone) 80%, transparent);
  box-shadow: 0 24px 48px rgba(21, 32, 44, 0.12);
  transform: translateY(-12px);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

.nav-layer.is-open .nav-sheet {
  transform: none;
  opacity: 1;
}

.nav-sheet-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 28px;
}

.nav-sheet-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-stone) 80%, transparent);
}

.nav-sheet-nav a {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-radius: 12px;
}

.nav-sheet-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 99px;
  background: var(--color-accent);
}

.nav-sheet-nav a:hover {
  background: var(--color-accent-soft);
  text-decoration: none;
}

.nav-sheet-nav a[aria-current="page"] {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.nav-sheet-cta {
  justify-content: center;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after,
  .nav-backdrop,
  .nav-sheet {
    transition: none;
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle,
  .nav-layer {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--color-accent);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.btn-contained,
.btn-contained {
  background: var(--color-accent);
  color: #fff;
}

.btn-contained:hover,
.btn-contained:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-outlined,
.btn-outlined {
  border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  color: var(--color-accent);
}

.btn-outlined:hover,
.btn-outlined:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.btn-icon img,
.btn .icon-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.cta-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-ink-muted);
}

/* Layout helpers */
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-sm {
  gap: 8px;
}

.stack-lg {
  gap: 32px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.center {
  text-align: center;
}

.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 32px;
}
.mt-6 {
  margin-top: 48px;
}
.mt-8 {
  margin-top: 64px;
}
.mt-12 {
  margin-top: 96px;
}
.mb-6 {
  margin-bottom: 48px;
}
.mb-12 {
  margin-bottom: 96px;
}
.pb-4 {
  padding-bottom: 32px;
}
.py-6 {
  padding-top: 48px;
  padding-bottom: 48px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.paper {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-paper) 88%, #fff);
  padding: 16px 20px;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.avatar-lg {
  width: 112px;
  height: 112px;
}

.avatar-xl {
  width: 168px;
  height: 168px;
  border-radius: var(--radius);
}

.avatar-sm {
  width: 2em;
  height: 2em;
}

.avatar-md {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
}

.quote-icon {
  float: left;
  margin-right: 10px;
  font-size: 2rem;
  line-height: 1;
  opacity: 0.45;
  font-family: var(--font-display);
}

.censored {
  position: relative;
  color: transparent;
}

.censored::after {
  background: var(--color-stone);
  position: absolute;
  content: "";
  transform: rotate(-5deg);
  inset: 0;
  border-radius: 2px;
}

.censored::before {
  position: absolute;
  content: "🤬";
  z-index: 2;
  font-style: normal;
  font-size: 1.3em;
  text-align: center;
  color: var(--color-ink);
  top: -0.3em;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Device frames */
.device {
  --bezel: 7px;
  --radius-outer: 16px;
  --radius-inner: 10px;
  --chassis: #323a44;
  --chassis-hi: #4e5864;
  --btn: #282f36;
  position: relative;
  margin: 0;
  width: 100%;
  padding: 4px;
}

.device-chassis {
  position: relative;
  background: linear-gradient(
    165deg,
    #3e4752 0%,
    var(--chassis) 45%,
    #252b32 100%
  );
  border-radius: var(--radius-outer);
  padding: var(--bezel);
  box-shadow:
    0 0 0 1px var(--chassis-hi),
    0 14px 32px rgba(21, 32, 44, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.device-screen {
  overflow: hidden;
  border-radius: var(--radius-inner);
  background: #1e242b;
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

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

.device-camera {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #4e5864 0 28%,
    #1e242b 32% 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.device-ipad.device-landscape .device-camera {
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
}

.device-ipad.device-portrait .device-camera {
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.device-iphone {
  --bezel: 6px;
  --radius-outer: 22px;
  --radius-inner: 16px;
  max-width: 280px;
}

.device-iphone .device-camera {
  display: none;
}

.device-btn {
  position: absolute;
  background: var(--btn);
  border-radius: 1px;
  z-index: 1;
}

.device-iphone .device-btn-silent {
  left: -3px;
  top: 12%;
  width: 3px;
  height: 16px;
  border-radius: 1px 0 0 1px;
}

.device-iphone .device-btn-vol-up {
  left: -3px;
  top: 20%;
  width: 3px;
  height: 32px;
  border-radius: 1px 0 0 1px;
}

.device-iphone .device-btn-vol-down {
  left: -3px;
  top: 32%;
  width: 3px;
  height: 32px;
  border-radius: 1px 0 0 1px;
}

.device-iphone .device-btn-power {
  right: -3px;
  top: 24%;
  width: 3px;
  height: 52px;
  border-radius: 0 1px 1px 0;
}

.device-ipad.device-portrait .device-btn-vol-up {
  left: -3px;
  top: 18%;
  width: 3px;
  height: 28px;
  border-radius: 1px 0 0 1px;
}

.device-ipad.device-portrait .device-btn-vol-down {
  left: -3px;
  top: 26%;
  width: 3px;
  height: 28px;
  border-radius: 1px 0 0 1px;
}

.device-ipad.device-portrait .device-btn-power {
  right: -3px;
  top: 20%;
  width: 3px;
  height: 48px;
  border-radius: 0 1px 1px 0;
}

.device-ipad.device-landscape .device-btn-vol-up {
  top: -3px;
  left: 18%;
  width: 28px;
  height: 3px;
  border-radius: 1px 1px 0 0;
}

.device-ipad.device-landscape .device-btn-vol-down {
  top: -3px;
  left: 26%;
  width: 28px;
  height: 3px;
  border-radius: 1px 1px 0 0;
}

.device-ipad.device-landscape .device-btn-power {
  bottom: -3px;
  right: 20%;
  width: 48px;
  height: 3px;
  border-radius: 0 0 1px 1px;
}

.device-ipad.device-portrait {
  max-width: 400px;
}

/* Home - hero */
.hero {
  padding: 32px 20px 56px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.hero-copy {
  max-width: 40rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 1.2rem + 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  max-width: 10em;
  text-wrap: balance;
}

.hero-support {
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
  margin: 0 0 24px;
  max-width: 32ch;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4px 0 24px;
}

.hero-ipad {
  width: 100%;
}

.hero-iphone {
  position: absolute;
  left: 3%;
  bottom: 4px;
  width: 26%;
  max-width: 140px;
  z-index: 2;
}

@media (min-width: 600px) {
  .hero {
    padding: 48px 32px 72px;
  }

  .hero-stage {
    max-width: 40rem;
    padding-bottom: 28px;
  }

  .hero-iphone {
    max-width: 160px;
  }
}

@media (min-width: 1040px) {
  .hero {
    padding: 56px 32px 88px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(22rem, 1fr) minmax(24rem, 1.15fr);
    gap: 48px 56px;
    align-items: center;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  }

  .hero-stage {
    margin: 0;
    max-width: none;
  }
}

/* Home - section surfaces */
.band {
  padding: 56px 0;
}

@media (min-width: 800px) {
  .band {
    padding: 80px 0;
  }
}

.band-paper {
  background: color-mix(in srgb, var(--color-paper) 92%, #fff);
  border-block: 1px solid color-mix(in srgb, var(--color-stone) 70%, transparent);
}

.band-mist {
  background: color-mix(in srgb, var(--color-accent) 7%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--color-accent) 16%, var(--color-stone));
}

.problem {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.28rem;
  line-height: 1.5;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.trust-strip li {
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--color-stone) 80%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #fff 55%, transparent);
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.shot-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.shot-copy {
  max-width: 40rem;
}

.shot-copy h2 {
  margin-top: 0;
}

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

.shot-ipad {
  margin-inline: auto;
}

@media (min-width: 900px) {
  .shot-layout {
    grid-template-columns: 1fr 0.85fr;
    gap: 56px;
  }
}

.quote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px;
  background: color-mix(in srgb, var(--color-paper) 94%, #fff);
  border: 1px solid color-mix(in srgb, var(--color-stone) 75%, transparent);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.quote-card > div {
  min-width: 0;
}

.quote-card p {
  margin: 0;
  font-size: 1.15rem;
}

.quote-card .author-line {
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .quote-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 32px 36px;
  }

  .quote-card .avatar-desktop {
    display: block;
  }

  .quote-card .avatar-mobile {
    display: none;
  }
}

.avatar-desktop {
  display: none;
  flex-shrink: 0;
}

.avatar-mobile {
  display: inline-flex;
  margin-right: 12px;
}

.author-line {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  margin-top: 14px;
}

.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 42rem;
  margin: 0 auto;
}

.cta-panel h2 {
  margin: 0;
}

.cta-panel p {
  margin: 0;
  color: var(--color-ink-muted);
}

@media (min-width: 900px) {
  .cta-panel {
    align-items: center;
    text-align: center;
  }
}

.home-blog {
  max-width: 42rem;
  margin: 0 auto;
}

.home-blog-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.home-blog-card {
  padding: 22px 24px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.home-blog-card time {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

.home-blog-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.home-blog-card h2 a {
  color: var(--color-ink);
  text-decoration: none;
}

.home-blog-card h2 a:hover {
  color: var(--color-accent);
}

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

.home-blog-more {
  font-weight: 600;
  text-decoration: none;
}

.home-blog-more::after {
  content: " →";
}

/* Product */
.product-headline {
  text-align: center;
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  padding-top: 48px;
  margin: 0 0 12px;
}

.product-lede {
  text-align: center;
  color: var(--color-ink-muted);
  max-width: 36rem;
  margin: 0 auto 40px;
}

.devices-showcase {
  position: relative;
  margin: 0 auto 48px;
  max-width: 1100px;
}

.devices-ipad {
  width: 78%;
  margin-left: 14%;
}

.devices-iphone {
  position: absolute;
  bottom: 0;
  left: 2%;
  width: 20%;
  max-width: none;
}

#devices.hidden .device {
  opacity: 0;
}

#devices.hidden .devices-iphone {
  transform: translateX(-12px);
}

#devices.show .devices-ipad {
  opacity: 1;
  transition: opacity 0.8s ease;
}

#devices.show .devices-iphone {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s ease 0.2s,
    transform 0.7s ease 0.2s;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  max-width: 900px;
  margin: 32px auto 80px;
}

@media (min-width: 600px) {
  .pillars {
    gap: 40px 32px;
  }
}

.pillar {
  padding-top: 14px;
  border-top: 1px solid var(--color-divider);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  margin: 0;
}

.feature-pair {
  display: grid;
  gap: 28px;
  align-items: center;
  margin: 72px 0;
}

.feature-pair .device {
  justify-self: center;
}

.feature-pair .device-ipad.device-landscape {
  max-width: 100%;
}

.feature-pair h3 {
  margin-top: 0;
}

.feature-pair p {
  color: var(--color-ink-muted);
}

@media (min-width: 900px) {
  .feature-pair {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }

  .feature-pair-reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .feature-pair-reverse .feature-copy {
    order: -1;
  }
}

.phone-pair {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.phone-pair .device-iphone {
  width: min(280px, 70vw);
}

@media (min-width: 700px) {
  .phone-pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.other-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 24px auto 0;
}

.other-features li {
  list-style: none;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--color-paper) 80%, #fff);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--color-ink);
}

.other-features {
  padding: 0;
}

html.js .js-reveal {
  opacity: 0;
  transform: translateY(18px);
}

html.js .js-reveal.is-inview {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

html:not(.js) #devices.hidden .device {
  opacity: 1;
  transform: none;
}

/* Pricing */
.pricing {
  padding-top: 56px;
  padding-bottom: 72px;
}

.pricing .page-header {
  margin-bottom: 28px;
}

.pricing .page-header h1 {
  margin-top: 0;
}

.pricing-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .pricing-layout {
    grid-template-columns: 5fr 6fr;
    gap: 64px;
  }
}

.price-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 16px;
  gap: 16px;
}

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.85;
  margin: 0;
  text-align: center;
}

.price small {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  opacity: 0.75;
}

.price-list {
  margin-top: 8px;
}

.price-list > * {
  border-top: 1px solid var(--color-divider);
  padding: 14px 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-list .check {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.price-host-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.price-host-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.price-host-logo img {
  display: block;
  height: 15px;
  width: auto;
  opacity: 0.65;
}

.price-host-logo:hover img {
  opacity: 1;
}

.note {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
  margin-top: 16px;
}

.trust-points {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-points li {
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
}

.trust-points strong {
  display: block;
  margin-bottom: 4px;
}

.trust-points p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.98rem;
}

/* Accordion */
details.accordion {
  border-bottom: 1px solid var(--color-divider);
}

details.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 40px 14px 4px;
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
}

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

details.accordion summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-ink-muted);
  border-bottom: 2px solid var(--color-ink-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

details.accordion[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

details.accordion .accordion-body {
  padding: 0 4px 16px;
  color: var(--color-ink-muted);
}

/* Resources */
.resources {
  padding-bottom: 72px;
}

.page-header {
  max-width: 40rem;
  margin-bottom: 36px;
}

.page-header h1 {
  margin-top: 0.4em;
}

.resource-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
  }
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 12px;
  background: color-mix(in srgb, var(--color-paper) 88%, #fff);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.resource-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.resource-card h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}

.resource-card > p {
  margin: 0 0 20px;
  color: var(--color-ink-muted);
}

.resource-launches {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.resource-launch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-accent-soft);
  border: 1px solid transparent;
}

.resource-launch:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--color-accent) 18%, #fff);
}

.resource-launch-muted {
  background: color-mix(in srgb, var(--color-paper) 40%, #fff);
  border-color: var(--color-border);
}

.resource-launch img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.resource-launch strong,
.resource-launch small {
  display: block;
}

.resource-launch strong {
  font-size: 0.95rem;
}

.resource-launch small {
  margin-top: 1px;
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}

.resource-links {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.resource-links a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 4px;
  border-top: 1px solid var(--color-divider);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
}

.resource-links a:hover {
  color: var(--color-accent);
}

.resource-links small {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

.resource-brand {
  margin-top: 40px;
  padding: 24px 22px;
  background: color-mix(in srgb, var(--color-paper) 88%, #fff);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.resource-brand h2 {
  margin: 0 0 4px;
  font-size: 1.45rem;
}

.resource-brand p {
  margin: 0 0 20px;
  color: var(--color-ink-muted);
}

.brand-assets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 700px) {
  .brand-assets {
    grid-template-columns: repeat(5, 1fr);
  }
}

.brand-assets a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.brand-assets a:hover {
  border-color: var(--color-accent);
}

.brand-assets img {
  max-height: 40px;
  width: auto;
}

.brand-asset-dark {
  background: var(--color-ink) !important;
}

/* About */
.page-intro {
  max-width: 40rem;
  color: var(--color-ink-muted);
  font-size: 1.1rem;
}

.contributor-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 16px;
}

@media (min-width: 600px) {
  .contributor-card {
    flex-direction: row;
    align-items: center;
    padding: 8px 8px 8px 0;
  }
}

.social-links {
  display: flex;
  gap: 4px;
  padding-top: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-ink-muted);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  text-decoration: none;
}

.contributors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contributor-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  min-width: 112px;
  background: color-mix(in srgb, var(--color-paper) 70%, #fff);
}

.contributor-tile:hover {
  text-decoration: none;
  background: var(--color-accent-soft);
}

.contributor-tile span {
  font-size: 0.875rem;
  font-weight: 500;
}

.about-contributors {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .about-contributors {
    grid-template-columns: 4fr auto 7fr;
    align-items: start;
  }
}

.v-divider {
  display: none;
  width: 1px;
  background: var(--color-divider);
  align-self: stretch;
}

@media (min-width: 900px) {
  .v-divider {
    display: block;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 0;
  margin-top: auto;
  padding: 40px 0 28px;
  border-top: 1px solid var(--color-divider);
  background: color-mix(in srgb, var(--color-paper) 55%, transparent);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
}

.footer-nav a {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-divider);
  color: var(--color-ink-muted);
  font-size: 0.88rem;
}

.footer-copy {
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-meta a {
  color: var(--color-ink-muted);
  text-decoration: none;
}

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

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  margin-left: auto;
}

.footer-credit img {
  display: block;
  height: 18px;
  width: auto;
}

@media (max-width: 599px) {
  .footer-credit {
    margin-left: 0;
    width: 100%;
  }
}

/* Legal / terms content */
.prose {
  max-width: 42rem;
  padding-top: 24px;
  padding-bottom: 48px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose :where(h1, h2, h3, h4) {
  margin-top: 1.5em;
}

.prose :where(ul, ol) {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin: 1.4em 0;
}

.prose pre {
  overflow-x: auto;
  margin: 1.4em 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #15202c;
  color: #eef5fa;
  font-size: 0.88rem;
  line-height: 1.5;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose :not(pre) > code {
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: var(--color-accent-soft);
}

/* Blog */
.blog {
  padding-bottom: 72px;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-teaser {
  padding: 22px 0;
  border-top: 1px solid var(--color-divider);
}

.post-teaser time {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.post-teaser h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.post-teaser h2 a {
  color: var(--color-ink);
  text-decoration: none;
}

.post-teaser h2 a:hover {
  color: var(--color-accent);
}

.post-teaser p {
  margin: 0;
  max-width: 42rem;
  color: var(--color-ink-muted);
}

.post {
  max-width: 42rem;
  padding-top: 48px;
  padding-bottom: 72px;
}

@media (min-width: 600px) {
  .post {
    padding-top: 64px;
  }
}

.post-header {
  margin: 0 0 36px;
}

.post-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  text-wrap: balance;
}

.post-meta {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 0.98rem;
}

.post-meta span {
  margin: 0 0.35em;
}

.post-body {
  max-width: none;
  padding: 0;
}

.post-nav {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--color-divider);
}

.post-nav a {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.post-nav a:hover {
  color: var(--color-accent);
}

.post-nav a::before {
  content: "← ";
}

@media (prefers-reduced-motion: reduce) {
  html {
    background-attachment: scroll;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-reveal,
  #devices.hidden .device {
    opacity: 1;
    transform: none;
  }
}
