/* ottokode.com: monochrome, like the apps' admin, with each app's accent color. */
:root {
  --bg: #ffffff;
  --fg: #0d0d0d;
  --fg-2: #353740;
  --muted: #6e6e80;
  --subtle: #f7f7f8;
  --border: #ececf1;
  --border-strong: #d9d9e3;
  --accent: #0d0d0d;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img,
svg,
iframe {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 17px;
}
.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--fg);
  display: grid;
  place-items: center;
}
.brand__mark span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.nav a {
  text-decoration: none;
  color: var(--fg-2);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--subtle);
}
.btn--primary {
  background: var(--fg);
  border-color: var(--fg);
  color: #fff;
}
.btn--primary:hover {
  background: #2b2b2b;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--subtle);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-2);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 600;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 6.4vw, 76px);
}
h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}
h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--fg-2);
  max-width: 640px;
  margin: 24px 0 0;
}
.muted {
  color: var(--muted);
}

/* Sections */
.hero {
  padding: 96px 0 72px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  align-items: center;
}
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section__head p {
  margin: 12px 0 0;
  color: var(--fg-2);
  max-width: 560px;
}

/* App grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
}
.card__icon svg,
.card__icon img {
  width: 100%;
  height: 100%;
}
.card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
}
.card__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.card__foot b {
  color: var(--fg);
  font-weight: 500;
}
.arrow {
  transition: transform 0.15s;
}
a.card:hover .arrow {
  transform: translateX(3px);
}

/* Principles */
.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.point h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.point p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
}
.point__num {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

/* App page */
.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 80px 0 64px;
}
.app-hero__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
}
.app-hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
}
.media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--subtle);
}
.media img {
  width: 100%;
  height: auto;
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid var(--border);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}
.check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.prose {
  max-width: 720px;
  font-size: 18px;
  color: var(--fg-2);
}
.prose p {
  margin: 0 0 16px;
}
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.shots figure {
  margin: 0;
}
.shots figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
}
.plan {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.plan--pro {
  border-color: var(--fg);
}
.plan__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.plan__price {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 14px 0 4px;
}
.plan__price small {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.plan li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  color: var(--fg-2);
}
.plan li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}
.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

/* Pricing table on the home page */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th,
.table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table th {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.table td:first-child {
  font-weight: 500;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* FAQ */
.faq {
  max-width: 800px;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 12px 0 0;
  color: var(--fg-2);
}

/* CTA band */
.band {
  margin: 24px 0 96px;
  padding: 56px;
  border-radius: 28px;
  background: #0d0d0d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.band p {
  margin: 12px 0 0;
  color: #b4b4c0;
  max-width: 520px;
}
.band .btn {
  background: #fff;
  color: #0d0d0d;
  border-color: #fff;
}

/* Document pages */
.doc {
  max-width: 760px;
  padding: 72px 0 96px;
}
.doc h1 {
  font-size: clamp(36px, 5vw, 56px);
}
.doc h2 {
  font-size: 24px;
  margin: 48px 0 12px;
  letter-spacing: -0.015em;
}
.doc p,
.doc li {
  color: var(--fg-2);
  font-size: 17px;
}
.doc ul {
  padding-left: 20px;
}
.doc li {
  margin: 6px 0;
}
.doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}
.links {
  list-style: none;
  padding: 0 !important;
  border-top: 1px solid var(--border);
}
.links li {
  margin: 0 !important;
  border-bottom: 1px solid var(--border);
}
.links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--fg);
}
.links a span:last-child {
  margin-left: auto;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  font-size: 14px;
  color: var(--muted);
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer li {
  margin: 8px 0;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--fg);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
  }
  .footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .nav a:not(.nav__keep) {
    display: none;
  }
  .grid,
  .points,
  .features,
  .shots,
  .plans {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .section {
    padding: 56px 0;
  }
  .band {
    padding: 36px 24px;
  }
  .table .hide-sm {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card,
  .arrow {
    transition: none;
  }
}

/* Home hero: copy beside a grid of the six app icons */
.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mosaic a {
  aspect-ratio: 1;
  border-radius: 26%;
  overflow: hidden;
  transition: transform 0.2s;
}
.mosaic a:nth-child(3n + 2) {
  transform: translateY(24px);
}
.mosaic a:hover {
  transform: translateY(-4px);
}
.mosaic a:nth-child(3n + 2):hover {
  transform: translateY(20px);
}
.mosaic svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 900px) {
  .hero__split {
    grid-template-columns: 1fr;
  }
  .mosaic {
    max-width: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mosaic a {
    transition: none;
  }
}

.install { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.install[hidden] { display: none; }
.install label { display: grid; gap: 4px; font-size: 14px; }
.install input[name="shop"] { padding: 10px 12px; border: 1px solid #d4d4d8; border-radius: 8px; font: inherit; min-width: 240px; }
