/* hushtype site. Palette and type follow the app (src/styles/theme.css). */

@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/libre-baskerville.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/libre-baskerville-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/fonts/mulish.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f1e9;
  --surface: #fcfaf5;
  --well: #eceee3;
  --ink: #26352d;
  --ink-deep: #263d34;
  --accent: #315640;
  --accent-hover: #264533;
  --on-accent: #fcfaf3;
  --muted: #5f675c;
  --border: #d9dcd0;
  --soft-accent: #e3eadd;
  --inverse-bg: #1e2d25;
  --inverse-text: #e6e9df;
  --inverse-muted: #b8c2b3;
  --window: #ffffff;
  --bubble-in: #e9e9eb;
  --command-bg: #1e2d25;

  --serif: Baskerville, "Libre Baskerville", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Mulish", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-window:
    0 1px 2px rgb(38 53 45 / 0.08), 0 18px 40px -12px rgb(38 53 45 / 0.28);
  --shadow-card:
    0 1px 2px rgb(38 53 45 / 0.06), 0 8px 24px -12px rgb(38 53 45 / 0.18);

  --z-header: 10;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #18211c;
    --surface: #202b23;
    --well: #2c372b;
    --ink: #e6e9df;
    --ink-deep: #d9e2ca;
    --accent: #b2c8a6;
    --accent-hover: #c3d6b8;
    --on-accent: #1b2b20;
    --muted: #acb5a7;
    --border: #3a473b;
    --soft-accent: #2c3a2f;
    --inverse-bg: #b2c8a6;
    --inverse-text: #1b2b20;
    --inverse-muted: #33443a;
    --window: #1f2621;
    --bubble-in: #343d37;
    --command-bg: #0e1511;
    --shadow-window:
      0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -12px rgb(0 0 0 / 0.6);
    --shadow-card:
      0 1px 2px rgb(0 0 0 / 0.25), 0 8px 24px -12px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
  line-height: 1.5;
}

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

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-s);
  z-index: var(--z-header);
}
.skip-link:focus {
  top: 12px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1rem/1 var(--sans);
  cursor: pointer;
  transition:
    background-color 150ms ease-out,
    transform 150ms ease-out;
}
.button:hover {
  background: var(--accent-hover);
}
.button:active {
  transform: translateY(1px);
}
.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.92rem;
}
.button-large {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.08rem;
}
.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.button-quiet:hover {
  background: var(--well);
}

.download-glyph {
  width: 18px;
  height: 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2v10M4.5 7.5 9 12l4.5-4.5M3 16h12'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-top: env(safe-area-inset-top);
  background: var(--paper);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-deep);
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1.3px;
  line-height: 1;
  text-decoration: none;
}
.wordmark-mark {
  width: 32px;
  height: 36px;
  background: var(--ink-deep);
  mask: url("/brand/mark.png") center / contain no-repeat;
}
.wordmark-small {
  font-size: 20px;
}
.wordmark-small .wordmark-mark {
  width: 26px;
  height: 29px;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
}

.mobile-menu {
  display: none;
  position: relative;
}
.mobile-menu summary {
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.mobile-menu-panel a {
  padding: 10px 12px;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.mobile-menu-panel a:hover {
  background: var(--well);
}

@media (max-width: 760px) {
  .header-row {
    gap: 10px;
  }
  .site-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    margin-left: auto;
  }
}

/* Hero */

.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 1.8rem + 5.2vw, 5.9rem);
  line-height: 1;
  color: var(--ink-deep);
}
.hero-title em {
  color: var(--accent);
}

.lede {
  max-width: 34ch;
  margin-top: 28px;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 36px;
}

.platform-note {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}
.platform-note strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lede {
    max-width: 44ch;
  }
}

/* Demo */

.demo {
  position: relative;
}

.demo-window {
  position: relative;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--window);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
}
.traffic {
  display: flex;
  gap: 7px;
}
.traffic i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.traffic i:nth-child(2) {
  background: #febc2e;
}
.traffic i:nth-child(3) {
  background: #28c840;
}
.window-title {
  font-weight: 600;
}
.mode-chip {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft-accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .mode-chip {
    color: var(--accent);
  }
}

.scene {
  position: absolute;
  inset: 44px 0 0;
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.scene.is-active {
  opacity: 1;
}

.thread {
  flex: 1;
}
.thread-name {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.bubble {
  display: inline-block;
  max-width: 75%;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 0.98rem;
  line-height: 1.4;
}
.bubble-in {
  background: var(--bubble-in);
  border-bottom-left-radius: 6px;
}
.slack-line {
  margin-top: 10px;
  font-size: 0.98rem;
}
.slack-line b {
  margin-right: 8px;
}

.mail-fields p {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.mail-fields span {
  width: 64px;
  color: var(--muted);
}

.composer {
  min-height: 48px;
  font-size: 1.02rem;
  line-height: 1.45;
}
.composer-pill {
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
}
.composer-box {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.composer-page {
  flex: 1;
  padding-top: 16px;
}

.typed {
  white-space: pre-line;
  border-radius: 3px;
  transition: background-color 700ms ease-out;
}
.typed.is-fresh {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  transition: none;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.overlay-pill {
  position: absolute;
  left: 50%;
  bottom: 88px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: #1e2d25;
  color: #e6e9df;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.45);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition:
    opacity 200ms ease-out,
    transform 200ms ease-out;
}
.overlay-pill.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.wave i {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: #b2c8a6;
  transform: scaleY(0.25);
}
.overlay-pill[data-state="listening"] .wave i {
  animation: wave 900ms ease-in-out infinite;
}
.wave i:nth-child(2) {
  animation-delay: -700ms;
}
.wave i:nth-child(3) {
  animation-delay: -250ms;
}
.wave i:nth-child(4) {
  animation-delay: -550ms;
}
.wave i:nth-child(5) {
  animation-delay: -100ms;
}
.wave i:nth-child(6) {
  animation-delay: -400ms;
}
.wave i:nth-child(7) {
  animation-delay: -800ms;
}
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}
.overlay-pill[data-state="working"] .wave i {
  transform: scaleY(0.2);
}

.demo.is-paused *,
.demo.is-paused *::before {
  animation-play-state: paused !important;
}

.demo-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}

.keys {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.key {
  display: block;
  height: 58px;
  padding-bottom: 4px;
  border-radius: 10px;
  background: var(--border);
}
.key-option {
  width: 66px;
}
.key-space {
  width: 150px;
}
.key-face {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 54px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: transform 90ms ease-out;
}
.key-face b {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
}
.key-face small {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1;
}
.key-space .key-face small {
  align-self: center;
}
.keys.is-down .key-face {
  transform: translateY(4px);
  border-color: var(--accent);
}

.heard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 3.2em;
}
.heard-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.heard-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.35;
}
.heard-text span {
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.heard-text span.is-said {
  opacity: 1;
}

@media (max-width: 560px) {
  .demo-window {
    aspect-ratio: 4 / 3.6;
  }
  .demo-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .key-space {
    width: 120px;
  }
  .scene {
    padding: 18px;
  }
}

/* Sections */

.section {
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.section-tight {
  padding: clamp(56px, 6vw, 96px) 0;
}

.section-head {
  max-width: 640px;
}
.section-intro {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.pipeline li {
  padding: 28px 28px 0 0;
  border-top: 2px solid var(--ink-deep);
}
.pipeline li + li {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}
.step-number {
  display: block;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pipeline p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}
@media (max-width: 960px) {
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
  .pipeline li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 560px) {
  .pipeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .pipeline li + li {
    padding-left: 0;
    border-left: 0;
  }
}

.examples-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.examples {
  margin: 0;
}
.examples div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.examples div:first-child {
  border-top: 1px solid var(--border);
}
.examples dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.88rem;
}
.examples dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
}
@media (max-width: 960px) {
  .examples-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .examples div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

.modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.mode {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.mode h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}
.mode-apps {
  margin: 8px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}
.mode p:last-child {
  font-size: 0.98rem;
}
@media (max-width: 960px) {
  .modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section-ink {
  border-top: 0;
  background: var(--inverse-bg);
  color: var(--inverse-text);
}
.section-ink .eyebrow {
  color: var(--inverse-muted);
}
.section-ink h2 {
  color: var(--inverse-text);
}
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
}
.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.privacy-list li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-top: 1px solid color-mix(in srgb, var(--inverse-text) 18%, transparent);
  font-size: 1.05rem;
}
.privacy-list li:last-child {
  border-bottom: 1px solid
    color-mix(in srgb, var(--inverse-text) 18%, transparent);
}
.privacy-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 24px;
  width: 14px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
@media (max-width: 960px) {
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.screens {
  position: relative;
  margin: 0;
  padding: 0 0 12% 10%;
}
.screen {
  display: block;
  width: 100%;
  height: auto;
}
.screen-back {
  position: absolute;
  right: 12%;
  bottom: 0;
  width: 78%;
}
.screen-front {
  position: relative;
  width: 86%;
  margin-left: auto;
}
@media (max-width: 960px) {
  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .screens {
    margin-inline: -8px;
    padding: 0 0 22% 0;
  }
  .screen-front {
    width: 94%;
  }
  .screen-back {
    right: auto;
    left: 0;
    width: 84%;
  }
}

/* Install */

.section-install {
  background: var(--well);
}
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.install-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 0 24px -6px;
}
.requirements {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.requirements li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.install-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.install-steps li {
  position: relative;
  padding: 0 0 26px 52px;
  counter-increment: step;
}
.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.install-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.install-steps p {
  margin-top: 4px;
  color: var(--muted);
}

.command {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid color-mix(in srgb, var(--command-bg) 70%, var(--border));
  border-radius: 12px;
  background: var(--command-bg);
  color: #e6e9df;
}
.command code {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  user-select: all;
}
@media (max-width: 560px) {
  .command {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .command code {
    padding: 0 4px;
  }
}
.nowrap {
  white-space: nowrap;
}

.copy-button {
  flex-shrink: 0;
  min-width: 76px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #b2c8a6;
  color: #1b2b20;
  font: 700 0.9rem/1 var(--sans);
  cursor: pointer;
}
.copy-button:hover {
  background: #c3d6b8;
}
.copy-button.is-copied {
  background: #e6e9df;
}

.install-notes {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.install-notes details + details {
  margin-top: 4px;
}
.install-notes summary,
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.install-notes summary {
  padding: 8px 0;
}
.install-notes summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}
.install-notes summary::after,
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.install-notes details[open] summary::after,
.faq details[open] summary::after {
  content: "\2212";
}
.install-notes p {
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.96rem;
}
@media (max-width: 960px) {
  .install-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Platforms */

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.platform {
  padding: 26px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-m);
}
.platform-ready {
  border: 1px solid var(--accent);
  background: var(--surface);
}
.platform h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}
.platform p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}
.status {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--well);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.status-ready {
  background: var(--accent);
  color: var(--on-accent);
}
@media (max-width: 760px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:first-child {
  border-top: 1px solid var(--border);
}
.faq summary {
  padding: 20px 0;
  font-size: 1.08rem;
}
.faq p {
  max-width: 62ch;
  padding-bottom: 22px;
  color: var(--muted);
}
@media (max-width: 960px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */

.site-footer {
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.footer-row p:first-of-type {
  margin-left: auto;
}
@media (max-width: 560px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-row p:first-of-type {
    margin-left: 0;
  }
}

/* Dialogs */

.dialog {
  width: min(620px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.45);
}
.dialog::backdrop {
  background: rgb(24 33 28 / 0.45);
}
.dialog[open] {
  animation: dialog-in 180ms ease-out;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dialog[open] {
    animation: none;
  }
}
.dialog h2 {
  font-size: 1.9rem;
}
.dialog-close-form {
  position: absolute;
  top: 14px;
  right: 14px;
}
.dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover {
  background: var(--well);
  color: var(--ink);
}
.dialog-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: -4px 0 12px -4px;
}
.dialog-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft-accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.dialog-lede {
  margin-top: 10px;
  color: var(--muted);
}
.dialog-warning {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, #97621b 14%, transparent);
  font-size: 0.95rem;
}
.dialog-steps {
  margin: 20px 0 0;
  padding-left: 1.3em;
}
.dialog-steps li {
  padding-left: 4px;
  margin-bottom: 14px;
}
.dialog-fine {
  color: var(--muted);
  font-size: 0.9rem;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.dialog-actions form {
  display: contents;
}
