/*
 * The page around the island. Colors are Adwaita dark, the palette Isla
 * itself reads: the page is the desktop surface, the pill is true black.
 * Spacing: 4 8 12 16 24 32 40 48 64 80 96. Type: Tailwind steps.
 */

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --page: #1e1e1e;
  --stage: #242424;
  --window: #2c2c2c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.66);
  --text-faint: rgba(255, 255, 255, 0.48);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --wrap: 1200px;
  --gutter: 48px;
  --isla-hero-room: 472px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Instrument Sans', 'TeX Gyre Heros', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 56px;
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #2a2a2a;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35);
  font: 600 12px/16px 'Instrument Sans', sans-serif;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9999px;
  font: 600 16px/24px 'Instrument Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 300ms var(--ease),
    transform 300ms var(--ease),
    color 300ms var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  padding-inline: 16px;
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 86%, #fff);
}
.btn-quiet {
  background: #2e2e2e;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  padding: 4px 12px 4px 4px;
}
.btn-quiet kbd {
  height: 24px;
}
.btn-quiet:hover {
  background: #383838;
}
.btn-quiet[aria-pressed='true'] {
  background: rgba(var(--accent-rgb), 0.24);
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: 600 14px/20px 'Instrument Sans', sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------ bezel */

.topisla {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 50;
  translate: -50% 0;
}

.bezel {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding-inline: 24px;
  font-size: 14px;
  line-height: 20px;
}
.bezel-mark {
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  font-stretch: 88%;
  text-decoration: none;
}
.bezel-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 300ms var(--ease);
}
.bezel-link:hover {
  color: var(--text);
}

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

.hero {
  position: relative;
  min-height: max(100svh, 860px);
  display: flex;
  align-items: flex-end;
  padding: var(--isla-hero-room) 0 64px;
}
.hero-sentinel {
  position: absolute;
  top: 62%;
  left: 0;
  width: 1px;
  height: 1px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
}
.hero-copy {
  max-width: 680px;
}
.hero h1 {
  font-size: 72px;
  line-height: 1;
  font-weight: 600;
  font-stretch: 84%;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 4px;
}
.lede {
  max-width: 600px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 28px;
  color: var(--text-dim);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}
.proof {
  max-width: 300px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-faint);
}

.tour {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: 360px;
}
.tour-hint {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-dim);
  text-align: right;
}
.tour-hint kbd {
  height: 20px;
  min-width: 20px;
  padding: 0 4px;
}
.tour-states,
.music-steps,
.hz {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #181818;
}
.tour-states button,
.music-steps button,
.hz button {
  padding: 4px 12px;
  border: 0;
  border-radius: 9999px;
  background: none;
  color: var(--text-dim);
  font: 500 14px/20px 'Instrument Sans', sans-serif;
  cursor: pointer;
  transition:
    background-color 300ms var(--ease),
    color 300ms var(--ease);
}
.tour-states button:hover,
.music-steps button:hover,
.hz button:hover {
  color: var(--text);
  background: #262626;
}
.tour-states button[aria-pressed='true'],
.music-steps button[aria-pressed='true'],
.hz button[aria-checked='true'] {
  background: #000;
  color: var(--text);
}
.tour-states {
  border-radius: 20px;
}
.tour-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-faint);
  font: 500 14px/20px 'Instrument Sans', sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tour-toggle:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- tagline */

.tagline {
  padding: 96px 0;
}
.tagline-text {
  max-width: calc(880px + 2 * var(--gutter));
  font-size: 48px;
  line-height: 1;
  font-weight: 600;
  font-stretch: 84%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.tagline-text .w {
  color: rgba(255, 255, 255, 0.28);
  transition: color 800ms var(--ease);
}
.tagline-text .w.on {
  color: var(--text);
}

/* --------------------------------------------------------------- features */

.feature {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  color: var(--text-dim);
}
.feature-copy h2 {
  margin-bottom: 8px;
  font-size: 36px;
  line-height: 40px;
  font-stretch: 86%;
  letter-spacing: -0.015em;
  color: var(--text);
}
.keys {
  display: flex;
  gap: 4px;
}
.aside {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #181818;
  font-size: 14px;
  line-height: 20px;
}

/* A slice of screen with the island hanging from its top edge. */
.stage {
  --s: 1;
  position: relative;
  margin: 0;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--stage);
  overflow: hidden;
  isolation: isolate;
}
.stage-isla {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  translate: -50% 0;
}
.stage figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-dim);
}
.stage .note {
  color: var(--text-faint);
}

.desk {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.win {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: var(--window);
}
.win::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 12px;
  width: 40%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.win-a {
  left: 6%;
  top: 34%;
  width: 46%;
  height: 52%;
}
.win-b {
  left: 56%;
  top: 22%;
  width: 38%;
  height: 34%;
}
.win-c {
  left: 56%;
  top: 60%;
  width: 38%;
  height: 26%;
}
.win-wide {
  left: 6%;
  top: 40%;
  width: 88%;
  height: 46%;
}

.stage-launcher {
  min-height: calc(380px * var(--s) + 72px);
}
.stage-notification {
  min-height: calc(150px * var(--s) + 180px);
}
.stage-music {
  min-height: calc(190px * var(--s) + 200px);
}
.stage-whatsapp {
  min-height: calc(620px * var(--s) + 84px);
}
.stage-shot {
  min-height: calc(130px * var(--s) + 330px);
}
.stage-tray {
  min-height: calc(380px * var(--s) + 72px);
}
.stage-screens {
  min-height: 400px;
}
.stage-theming {
  min-height: calc(300px * var(--s) + 96px);
}
.music-steps {
  justify-content: flex-start;
}

.shot-row {
  margin-top: 48px;
  display: flex;
  justify-content: flex-end;
}
.shot {
  margin: 0;
  width: min(100%, 580px);
}
.shot img {
  border-radius: 30px;
  background: #000;
}
.shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-faint);
}

/* The WhatsApp section: copy across the top, the panel full width below,
   so the pill can grow to its real size. */
.feature-wide .feature-grid {
  grid-template-columns: 1fr;
  gap: 48px;
}
.feature-wide .feature-copy {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 64px;
  max-width: none;
}
.feature-head,
.feature-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-body {
  max-width: 600px;
}
.wa-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-quiet:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn-quiet:disabled:hover {
  background: #2e2e2e;
}
.btn-quiet:disabled:active {
  transform: none;
}

/* Screenshots: the frozen screen, dimmed except for the picked region. */
.freeze {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: crosshair;
  touch-action: none;
  visibility: hidden;
}
.freeze.is-on {
  visibility: visible;
  background: rgba(0, 0, 0, 0.45);
}
.freeze.is-on.has-box {
  background: none;
}
.freeze-box {
  position: absolute;
  display: none;
  border: 2px solid #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
}
.has-box .freeze-box {
  display: block;
}
.freeze-box.is-window {
  border-color: var(--accent);
  border-radius: 12px;
}
.flash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.flash.is-on {
  animation: flash 380ms var(--ease);
}
@keyframes flash {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 0;
  }
}
/* The thumbnail: the same desk, scaled down to the picked region. */
.thumb {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  background: var(--stage);
}
.thumb .win {
  background: #4a4a4a;
  border-color: rgba(255, 255, 255, 0.2);
}
.thumb .win::before {
  display: none;
}
/* Two caption rows here: keep the windows clear of them. */
.stage-shot .win-a {
  height: 42%;
}
.stage-shot .win-c {
  height: 18%;
}

/* Two monitors side by side, each with its own pill. */
.screens {
  position: absolute;
  inset: 24px 24px 96px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-content: center;
  align-items: end;
  gap: 16px;
}
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #1a1a1a;
  overflow: hidden;
}
.screen .win {
  border-radius: 6px;
}
.screen .win::before {
  left: 8px;
  top: 8px;
  height: 5px;
}

/* Isla Files: an empty island where the pill will be, and the plan. */
.next {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.next-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: start;
}
.next-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  color: var(--text-dim);
}
.next-copy h2 {
  font-size: 36px;
  line-height: 40px;
  font-stretch: 86%;
  letter-spacing: -0.015em;
  color: var(--text);
}
.ghost {
  position: relative;
  align-self: flex-start;
  margin: -96px 0 32px;
  padding: 0 9px;
}
.ghost span {
  display: block;
  padding: 12px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
}
.plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  margin: 0;
  padding-top: 8px;
}
.plan dt {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.plan dd {
  margin: 8px 0 0;
  color: var(--text-dim);
}

/* Accent swatches. */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.swatch {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--c);
  background-clip: padding-box;
  cursor: pointer;
  transition: transform 300ms var(--ease);
}
.swatch:hover {
  transform: scale(1.08);
}
.swatch:active {
  transform: scale(0.98);
}
.swatch[aria-checked='true'] {
  box-shadow:
    0 0 0 2px var(--page),
    0 0 0 4px var(--text);
}
.swatch-readout {
  min-height: 40px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-faint);
}

/* ------------------------------------------------------------------ built */

.built {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.built h2 {
  font-size: 36px;
  line-height: 40px;
  font-stretch: 86%;
  letter-spacing: -0.015em;
}
.built-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
  margin-top: 48px;
}
.fact h3 {
  font-size: 20px;
  line-height: 28px;
}
.fact p {
  margin-top: 8px;
  color: var(--text-dim);
}
.fact-spring {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 64px;
  align-items: start;
  margin-top: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.fact-spring h3,
.fact-spring p {
  grid-column: 1;
}
.fact-spring p {
  max-width: 480px;
  margin-top: 0;
}
.graph {
  grid-column: 2;
  grid-row: 1 / span 3;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000;
}
.graph canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 300;
}
.graph-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.graph-bar .hz {
  background: #141414;
}
.graph-readout {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.real {
  margin-top: 96px;
}
.real h3 {
  font-size: 20px;
  line-height: 28px;
}
.real > p {
  margin-top: 8px;
  color: var(--text-dim);
}
.real-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}
.real-grid figure {
  margin: 0;
}
.real-grid figure:nth-child(1) {
  grid-column: 1 / span 8;
}
.real-grid figure:nth-child(2) {
  grid-column: 1 / span 5;
  grid-row: 2 / span 2;
}
.real-grid figure:nth-child(3) {
  grid-column: 6 / span 7;
  grid-row: 2;
}
.real-grid figure:nth-child(4) {
  grid-column: 6 / span 4;
  grid-row: 3;
}
.real-grid img {
  border-radius: 12px;
}
.real-grid figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-faint);
}

/* ------------------------------------------------------------------ outro */

.outro {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.outro h2 {
  font-size: 48px;
  line-height: 1;
  font-stretch: 84%;
  letter-spacing: -0.02em;
}
.outro p {
  max-width: 560px;
  margin: 24px auto 32px;
  color: var(--text-dim);
}
.outro code {
  font: 500 14px/20px 'Instrument Sans', sans-serif;
  padding: 2px 8px;
  border-radius: 6px;
  background: #2a2a2a;
  color: var(--text);
  overflow-wrap: anywhere;
}

.foot {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-faint);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.foot a {
  color: var(--text-dim);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  :root {
    --gutter: 32px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tour {
    align-items: flex-start;
    max-width: none;
  }
  .tour-hint {
    text-align: left;
  }
  .tour-states {
    justify-content: flex-start;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-copy {
    max-width: 640px;
  }
  .fact-spring {
    grid-template-columns: 1fr;
  }
  .graph {
    grid-column: 1;
    grid-row: auto;
  }
  .built-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-wide .feature-copy,
  .next-grid {
    grid-template-columns: 1fr;
  }
  .feature-wide .feature-copy {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --isla-hero-room: 280px;
  }
  /* The pill takes the whole top edge of a phone; the wordmark would sit
     under it once music slots open. */
  .bezel {
    display: none;
  }
  .hero {
    min-height: 100svh;
    padding-bottom: 48px;
  }
  .hero h1 {
    font-size: 48px;
    font-stretch: 78%;
  }
  .hero h1 br {
    display: none;
  }
  .lede {
    font-size: 18px;
    line-height: 28px;
    margin-top: 16px;
  }
  .tour-hint {
    display: none;
  }
  .tagline {
    padding: 64px 0;
  }
  .tagline-text {
    font-size: 30px;
    line-height: 36px;
  }
  .feature,
  .built,
  .next,
  .outro {
    padding: 64px 0;
  }
  .ghost {
    margin-top: -64px;
  }
  .plan {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .next-copy h2 {
    font-size: 30px;
    line-height: 36px;
  }
  .stage-whatsapp {
    min-height: calc(620px * var(--s) + 176px);
  }
  .stage-shot {
    min-height: calc(130px * var(--s) + 360px);
  }
  .stage-screens {
    min-height: 560px;
  }
  .screens {
    inset: 16px 16px auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-copy h2,
  .built h2 {
    font-size: 30px;
    line-height: 36px;
  }
  .outro h2 {
    font-size: 36px;
    line-height: 40px;
  }
  .built-grid {
    grid-template-columns: 1fr;
  }
  .real-grid {
    grid-template-columns: 1fr;
  }
  .real-grid figure:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }
  .stage figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .stage-whatsapp figcaption .note {
    width: 100%;
  }
  .foot-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .flash.is-on {
    animation: none;
  }
  .btn,
  .swatch,
  .tagline-text .w,
  .tour-states button,
  .music-steps button,
  .hz button {
    transition: none;
  }
  .tagline-text .w {
    color: var(--text);
  }
}
