/* TopDock landing page. Supaste-style notch menu bar, Cooldock-style
   sections and a live HTML preview of the bar, in the colours of the TopDock
   logo: a pastel glow (cream, blush, lavender, sky) with the logo's blue,
   coral and violet dots. Always light, whatever the visitor's theme. */

:root {
  color-scheme: light;
  --bg: #fbf8f4;
  --surface: #ffffff;
  --fg: #16131d;
  --muted: #615c70;
  --border: #ebe5ee;
  --hover: #f3eff5;
  /* The logo's dots. */
  --dot-blue: #0177f8;
  --dot-coral: #f96b65;
  --dot-violet: #694bf8;
  --accent: #0177f8;
  --kicker: #694bf8;
  --badge: #e5484d;
  /* The logo's pastel glow. */
  --pastel: radial-gradient(70% 60% at 12% 18%, #fde4cf 0%, transparent 70%),
    radial-gradient(60% 55% at 85% 12%, #e6d6fa 0%, transparent 70%),
    radial-gradient(65% 60% at 72% 85%, #a9c9fb 0%, transparent 70%),
    radial-gradient(55% 55% at 22% 88%, #f9cfe6 0%, transparent 70%), #f9f2f2;
  --ink: linear-gradient(90deg, #0177f8 0%, #694bf8 55%, #f96b65 100%);
  --hero-fg: #16131d;
  --hero-muted: #4f4a60;
  /* Tile accents, as in the app (light mode shades). */
  --blue: #2563eb;
  --green: #15803d;
  --orange: #c2410c;
  --purple: #7c3aed;
  --pink: #be185d;
  --teal: #0f766e;
  --radius: 22px;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

em {
  font-style: normal;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

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

/* ---- Notch menu bar -------------------------------------------------------- */

.notch-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.notch {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 52px;
  padding: 0 10px 0 12px;
  background: #000;
  color: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.18);
  font-size: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
}


.nav-links {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: rgb(255 255 255 / 0.72);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.nav-cta svg,
.btn svg,
.eyebrow svg {
  width: 15px;
  height: 15px;
}

/* ---- Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 150px 16px 0;
  text-align: center;
  color: var(--hero-fg);
  background: linear-gradient(180deg, transparent 75%, var(--bg) 100%), var(--pastel);
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em,
.final h2 em {
  background: var(--ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.lede {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 18px;
  color: var(--hero-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: #000;
  color: #fff;
}

.btn-glass {
  background: rgb(255 255 255 / 0.55);
  color: #16131d;
  border: 1px solid rgb(255 255 255 / 0.9);
  backdrop-filter: blur(8px);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--hero-muted);
}

/* ---- Live preview of TopDock ------------------------------------------------ */

.desktop {
  position: relative;
  max-width: 1080px;
  margin: 64px auto 0;
  height: 480px;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(70% 70% at 10% 10%, #fbe5cf 0%, transparent 60%),
    radial-gradient(60% 70% at 45% 40%, #f6c9ec 0%, transparent 60%),
    radial-gradient(70% 70% at 70% 85%, #8b7cf6 0%, transparent 60%),
    radial-gradient(70% 70% at 100% 40%, #8fc8fa 0%, transparent 60%),
    #e9dcf5;
  box-shadow: 0 30px 80px rgb(60 30 120 / 0.28);
  overflow: hidden;
  text-align: left;
  color: #0d0d0d;
}

.bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 10px;
  background: rgb(13 13 13 / 0.92);
  color: #f7f7f7;
  backdrop-filter: blur(20px);
}

.tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.tile.is-open {
  background: rgb(255 255 255 / 0.1);
}

/* The colour strip under a named tile, as in the app. */
.tile[style*="--strip"]::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--strip);
}

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--badge);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.bar-gear {
  margin-left: auto;
  opacity: 0.6;
  font-size: 14px;
}

/* Simple line icons, drawn in CSS masks so they follow the text colour. */
.ic {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}

.ic-gmail {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18.5V7.5a1.5 1.5 0 0 1 2.4-1.2L12 11.5l6.6-5.2A1.5 1.5 0 0 1 21 7.5v11'/%3E%3Cpath d='M3 18.5h4v-7M21 18.5h-4v-7'/%3E%3C/svg%3E");
}

.ic-outlook {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7h8a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-8'/%3E%3Cpath d='m12 9 4.5 3.5L21 9'/%3E%3Crect x='3' y='5' width='10' height='14' rx='1.5'/%3E%3Ccircle cx='8' cy='12' r='2.6'/%3E%3C/svg%3E");
}

.ic-x {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E");
}

.ic-reddit {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='14' rx='8' ry='5.5'/%3E%3Cpath d='M12 8.5 13.2 4l3.3.8'/%3E%3Ccircle cx='18' cy='5' r='1.3'/%3E%3C/svg%3E");
}

.ic-mail {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.panel {
  position: absolute;
  top: 46px;
  /* Drops down under the "Work" tile, like the real panel. */
  left: 132px;
  width: 400px;
  border-radius: 14px;
  background: #161616;
  color: #f7f7f7;
  border: 1px solid #2a2a2a;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
  overflow: hidden;
  font-size: 13px;
}

.panel .muted {
  color: #9aa1ad;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #2a2a2a;
}

.panel-new {
  margin-left: auto;
  color: #9aa1ad;
  font-size: 12px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.row {
  display: flex;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #2a2a2a;
}

/* Rows are buttons in the clickable preview. */
button.row {
  width: 100%;
  margin: 0;
  border-width: 0 0 1px;
  border-style: solid;
  border-color: #2a2a2a;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.row:hover {
  background: #1f1f1f;
}

button.row:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #4d9dff;
}

.row > div {
  min-width: 0;
  flex: 1;
}

.row p {
  margin: 0;
}

.row p:first-child {
  display: flex;
  justify-content: space-between;
}

.row time {
  color: #9aa1ad;
  font-size: 12px;
}

.row .subj {
  font-size: 12px;
  font-weight: 600;
}

.row .muted {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row:not(.unread) strong,
.row:not(.unread) .subj {
  font-weight: 500;
}

.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1f1f1f;
  color: #9aa1ad;
  font-size: 12px;
  font-weight: 700;
}

.av.sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
  background: var(--hover);
  color: var(--muted);
}

.unread-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #4d9dff;
  flex: none;
}

.panel-foot {
  padding: 8px 16px;
  color: #9aa1ad;
  font-size: 10px;
}

/* ---- Sections --------------------------------------------------------------- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 16px 40px;
}

.center {
  text-align: center;
}

.section h2,
.privacy h2,
.final h2 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 820px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
}

/* ---- Feature rows ------------------------------------------------------------ */

.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature.flip .feature-copy {
  order: 2;
}

.kicker {
  margin: 0 0 10px;
  color: var(--kicker);
  font-weight: 650;
  font-size: 14px;
}

.feature h3 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 720;
}

.feature-copy > p:not(.kicker) {
  margin: 16px 0 0;
  color: var(--muted);
}

.ticks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.ticks li {
  display: flex;
  gap: 10px;
}

.ticks li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.feature-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 300px;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(70% 70% at 0% 0%, #fde4cf 0%, transparent 65%),
    radial-gradient(70% 70% at 100% 0%, #e2d3fb 0%, transparent 65%),
    radial-gradient(80% 80% at 80% 100%, #a3c4fb 0%, transparent 65%),
    radial-gradient(70% 70% at 10% 100%, #f8cde6 0%, transparent 65%), #f1e6f4;
}

.mini-bar {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgb(13 13 13 / 0.92);
  color: #f7f7f7;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.3);
}

.keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  color: #16131d;
  font-size: 13px;
}

kbd {
  display: inline-block;
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgb(255 255 255 / 0.95);
  color: #0d0d0d;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.2);
}

.card {
  width: 100%;
  max-width: 360px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 20px 50px rgb(60 30 120 / 0.18);
  font-size: 14px;
}

.compose p {
  margin: 0 0 8px;
}

.from {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.from strong {
  color: var(--fg);
}

.field {
  min-height: 70px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--bg);
}

.attach {
  margin-top: 10px;
}

.attach span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
}

.attach em {
  font-family: var(--sans);
  font-style: normal;
  color: var(--muted);
}

.compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.btn-mini {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: -48px;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: #161616;
  color: #f7f7f7;
  font-size: 12px;
  white-space: nowrap;
}

.toast b {
  color: #4d9dff;
}

.compose {
  position: relative;
  margin-bottom: 40px;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-row .muted {
  margin-left: auto;
}

.setting-row.combined {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.swatches {
  display: flex;
  gap: 6px;
  margin: 10px 0 14px 23px;
}

.swatches i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.swatches i.on {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--fg);
}

.activity {
  display: grid;
  gap: 14px;
}

.act {
  display: flex;
  gap: 12px;
}

.act svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.act p {
  margin: 0;
}

.faces {
  display: flex;
  gap: 4px;
  margin-bottom: 4px !important;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
  border-bottom: 0;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: 999px;
  background: var(--border);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}

.switch.on {
  background: var(--accent);
}

.switch.on::after {
  left: 19px;
}

/* ---- Privacy ------------------------------------------------------------------- */

.privacy {
  margin: 60px 0 0;
  padding: 100px 16px 110px;
  background: radial-gradient(60% 50% at 50% 0%, rgb(105 75 248 / 0.28) 0%, transparent 70%), #0e0c14;
  color: #f7f7f7;
  text-align: center;
}

.privacy .sub {
  color: #a7a2b8;
}

.privacy-logo {
  width: 150px;
  height: auto;
  margin: 0 auto 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 48px auto 0;
  text-align: left;
}

.pcard {
  padding: 24px;
  border-radius: 20px;
  background: #17141f;
  border: 1px solid #2a2535;
}

.pcard h4 {
  font-size: 18px;
  font-weight: 680;
}

.pcard p {
  margin: 10px 0 0;
  color: #a7a2b8;
  font-size: 14px;
}

/* ---- FAQ ------------------------------------------------------------------------ */

.faq {
  max-width: 760px;
}

.faq h2 {
  margin-bottom: 28px;
  text-align: center;
}

details {
  border-bottom: 1px solid var(--border);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 620;
  font-size: 18px;
  list-style: none;
}

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

summary::after {
  content: "+";
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ---- Final call and footer -------------------------------------------------------- */

.final {
  margin: 80px 16px 0;
  padding: 90px 16px;
  border-radius: 32px;
  text-align: center;
  color: #16131d;
  background:
    radial-gradient(60% 70% at 10% 10%, #fde4cf 0%, transparent 65%),
    radial-gradient(60% 70% at 90% 15%, #e2d3fb 0%, transparent 65%),
    radial-gradient(70% 80% at 75% 100%, #a3c4fb 0%, transparent 65%),
    radial-gradient(60% 70% at 20% 100%, #f8cde6 0%, transparent 65%), #f3e8f2;
}

.final img {
  margin: 0 auto 20px;
  filter: drop-shadow(0 14px 30px rgb(105 75 248 / 0.3));
}

.final .sub {
  color: #4f4a60;
  margin-bottom: 28px;
}

.final .btn {
  cursor: default;
}

/* ---- Site footer (every page) --------------------------------------------------- */

.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 16px 36px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-tagline {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  text-align: right;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 36px 24px;
  padding: 40px 0 36px;
}

.footer-h {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
}

.footer-col a {
  color: var(--fg);
  text-decoration: none;
  opacity: 0.82;
  transition: color 0.15s, opacity 0.15s;
}

.footer-col a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-col .soon {
  color: var(--muted);
  font-size: 12px;
}

.footer-col address {
  font-style: normal;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
}

.footer-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---- Inner pages: hero, article text, tables, cards ------------------------------- */

.page-hero {
  padding: 132px 16px 60px;
  text-align: center;
  color: var(--hero-fg);
  background: linear-gradient(180deg, transparent 70%, var(--bg) 100%), var(--pastel);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(36px, 6.4vw, 64px);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.page-hero h1 em,
.cta-box h2 em {
  background: var(--ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.page-hero .lede {
  margin-top: 20px;
}

.page-hero .hero-actions {
  margin-top: 28px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--hero-muted);
  font-size: 13px;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.5;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.post-meta {
  margin: 18px 0 0;
  color: var(--hero-muted);
  font-size: 14px;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 0;
  font-size: 17px;
  line-height: 1.7;
}

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

.prose h2 {
  margin: 52px 0 0;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.prose h3 {
  margin: 32px 0 0;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 16px 0 0;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 650;
}

.prose .ticks {
  padding-left: 0;
  font-size: 17px;
}

.prose .ticks li + li {
  margin-top: 0;
}

.prose blockquote {
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--kicker);
  color: var(--muted);
}

.callout {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 16px;
}

.callout p:first-child {
  margin-top: 0;
}

.callout-title {
  font-weight: 650;
}

.table-wrap {
  margin: 24px 0 0;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  background: var(--hover);
  font-size: 13px;
  font-weight: 650;
}

.table-wrap tbody th {
  font-weight: 620;
}

.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin-top: 10px !important;
  color: var(--muted);
  font-size: 13px;
}

.more {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.more a {
  color: var(--accent);
  text-decoration: none;
}

.more a:hover {
  text-decoration: underline;
}

/* Cards for blog posts and related pages. */
.cards-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 16px 0;
}

.cards-section.tight {
  padding-top: 64px;
}

.cards-section > h2 {
  text-align: center;
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.cards-section > .sub {
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgb(60 30 120 / 0.1);
}

.post-card .kicker {
  font-size: 13px;
}

.post-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.post-card p {
  flex: 1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.post-card .read {
  flex: none;
  margin-top: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.privacy .more {
  margin-top: 36px;
}

.privacy .more a {
  color: #a9c9fb;
}

.faq .more {
  margin-top: 24px;
  color: var(--muted);
  font-weight: 500;
}

.compare-links {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.compare-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.compare-links a:hover {
  text-decoration: underline;
}

.cta-box {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 44px 28px;
  border-radius: 28px;
  text-align: center;
  color: #16131d;
  background:
    radial-gradient(60% 70% at 10% 10%, #fde4cf 0%, transparent 65%),
    radial-gradient(60% 70% at 90% 15%, #e2d3fb 0%, transparent 65%),
    radial-gradient(70% 80% at 75% 100%, #a3c4fb 0%, transparent 65%),
    radial-gradient(60% 70% at 20% 100%, #f8cde6 0%, transparent 65%), #f3e8f2;
}

.prose + .cta-box,
.cta-box.in-flow {
  margin-left: 16px;
  margin-right: 16px;
}

@media (min-width: 792px) {
  .prose + .cta-box,
  .cta-box.in-flow {
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-box h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.cta-box p {
  max-width: 520px;
  margin: 14px auto 0;
  color: #4f4a60;
}

.cta-box .hero-actions {
  margin-top: 24px;
}

.faq-inline {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.faq-inline h2 {
  margin: 56px 0 12px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 720;
  letter-spacing: -0.035em;
}

/* ---- Narrow screens ------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .notch {
    gap: 16px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 20px;
  }

  .feature.flip .feature-copy {
    order: 0;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-tagline {
    text-align: left;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .prose {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding-top: 104px;
    padding-bottom: 44px;
  }

  .hero {
    padding-top: 110px;
  }

  .lede {
    font-size: 16px;
  }

  .desktop {
    height: 470px;
    margin-top: 44px;
    border-radius: 16px 16px 0 0;
  }

  .hide-sm {
    display: none;
  }

  .tile {
    padding: 0 7px;
    font-size: 12px;
  }

  .panel {
    left: 8px;
    right: 8px;
    width: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .feature-art {
    min-height: 0;
    padding: 20px 14px;
  }

  .nav-cta {
    padding: 0 12px;
  }
}

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

  .btn,
  .switch::after,
  .post-card {
    transition: none;
  }
}


/* Todos art */
.ic-todo {
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f7f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}

.panel-synced {
  margin-left: 10px;
  color: var(--muted);
  font-size: 11px;
}

.todo-card {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
}

.todo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.todo-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.todo-chips span.on {
  border-color: var(--accent);
  color: var(--fg);
  font-weight: 600;
}

.todo-chips b {
  font-weight: 500;
  opacity: 0.7;
}

.todo-chips i,
.proj i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.todo-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

.todo-row p {
  margin: 0;
}

.todo-row.done p:first-child {
  color: var(--muted);
  text-decoration: line-through;
}

.check {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  border-radius: 4px;
  border: 1.5px solid var(--muted);
}

.check.on {
  border-color: var(--accent);
  background: var(--accent) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.due {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.due.late {
  color: #dc2626;
  font-weight: 600;
}

.due.today {
  color: var(--accent);
}

.proj,
.src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-weight: 400;
}

.src .ic {
  width: 12px;
  height: 12px;
}

/* Dock styles art */
.art-styles {
  gap: 14px;
}

.ds {
  width: 100%;
  max-width: 360px;
}

.ds-label {
  display: block;
  margin-bottom: 5px;
  color: #16131d;
  font-size: 12px;
  font-weight: 600;
}

.ds-bar {
  display: flex;
  gap: 6px;
  height: 24px;
  padding: 6px 8px;
  background: rgb(13 13 13 / 0.92);
}

.ds-bar i {
  width: 38px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.22);
}

.ds-full {
  width: 100%;
  border-radius: 4px;
}

.ds-pill {
  width: 56%;
  margin: 0 auto;
  border-radius: 999px;
}

.ds-float {
  width: 64%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgb(0 0 0 / 0.35);
}

.themes {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.themes span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.75);
  color: #16131d;
  font-size: 12px;
}

.themes span.on {
  background: #16131d;
  color: #fff;
  font-weight: 600;
}

/* ---- Pricing ------------------------------------------------------------------------ */

.price-card {
  max-width: 460px;
  margin: 36px auto 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgb(60 30 120 / 0.1);
  text-align: left;
}

.plans {
  display: grid;
  gap: 10px;
}

.plan {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--hover);
  cursor: pointer;
}

.plan input {
  position: absolute;
  opacity: 0;
}

.plan:has(input:checked) {
  border-color: var(--accent);
  background: var(--surface);
}

.plan:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.plan-main strong {
  font-size: 17px;
}

.plan-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.plan-price {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.plan-price s {
  margin-right: 4px;
  color: var(--muted);
  font-size: 15px;
}

.plan-price b {
  color: var(--fg);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.save,
.ends,
.pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.save {
  background: #dcfce7;
  color: #15803d;
}

.ends {
  background: #ffedd5;
  color: #c2410c;
}

.pill {
  margin: 0 4px 0 0;
  background: #dbeafe;
  color: #1d4ed8;
}

.buy {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}

.buy[aria-disabled="true"] {
  opacity: 0.85;
  cursor: default;
}

.price-notes {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

.price-notes li::before {
  content: "✓ ";
  color: #15803d;
}

/* ---- Motion (homepage visuals; motion.js adds .motion and .in-view) ------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.98);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  70% {
    transform: scale(1.18);
  }
}

@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px rgb(1 119 248 / 0.18);
  }
}

@keyframes beat {
  0%,
  60%,
  100% {
    transform: scale(1);
  }
  70% {
    transform: scale(1.25);
  }
  80% {
    transform: scale(0.95);
  }
  90% {
    transform: scale(1.12);
  }
}

@keyframes keypress {
  0%,
  20%,
  100% {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgb(0 0 0 / 0.2);
  }
  8% {
    transform: translateY(2px);
    box-shadow: 0 0 0 rgb(0 0 0 / 0.2);
    background: #e8f1ff;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes switch-on {
  from {
    background: var(--border);
  }
}

@keyframes knob-on {
  from {
    left: 3px;
  }
}

/* Hero: the panel drops down under its tile; badges pop in; unread dots pulse. */
.motion .desktop .panel,
.motion .desktop .bar .badge {
  opacity: 0;
}

.motion .desktop.in-view .panel {
  opacity: 1;
  animation: drop 0.6s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.motion .desktop.in-view .bar .badge {
  opacity: 1;
  animation: pop 0.45s backwards;
}

.motion .desktop.in-view .bar .tile:nth-child(2) .badge {
  animation-delay: 0.1s;
}
.motion .desktop.in-view .bar .tile:nth-child(3) .badge {
  animation-delay: 0.2s;
}
.motion .desktop.in-view .bar .tile:nth-child(4) .badge {
  animation-delay: 0.3s;
}
.motion .desktop.in-view .bar .tile:nth-child(5) .badge {
  animation-delay: 0.4s;
}

.motion .desktop.in-view .unread-dot {
  animation: pulse 2.4s 1.2s ease-in-out infinite;
}

/* Badges tick up; the keys press in turn. */
.badge.bump {
  animation: bump 0.4s ease-out;
}

.motion .art-tiles.in-view kbd {
  animation: keypress 4s ease-in-out infinite;
}
.motion .art-tiles.in-view kbd:nth-of-type(2) {
  animation-delay: 1s;
}
.motion .art-tiles.in-view kbd:nth-of-type(3) {
  animation-delay: 2s;
}
.motion .art-tiles.in-view kbd:nth-of-type(4) {
  animation-delay: 3s;
}

/* Writing a reply. */
.field.typing::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -2px;
  border-right: 2px solid var(--accent);
  animation: blink 0.8s step-end infinite;
}

.attach,
.toast {
  transition:
    opacity 0.35s,
    transform 0.35s;
}

.attach.hidden {
  opacity: 0;
  transform: translateY(6px);
}

.toast.hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.btn-mini {
  display: inline-block;
  transition: transform 0.15s;
}

.btn-mini.pressed {
  transform: scale(0.92);
}

/* Picking a colour. */
.swatches i {
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.motion .swatches i.on {
  transform: scale(1.12);
}

.motion .setting-row.combined {
  opacity: 0;
}

.motion .in-view .setting-row.combined {
  opacity: 1;
  animation: rise 0.5s 0.4s backwards;
}

/* X activity: rows slide in, the heart beats. */
.motion .art-activity .act {
  opacity: 0;
}

.motion .art-activity.in-view .act {
  opacity: 1;
  animation: rise 0.5s backwards;
}
.motion .art-activity.in-view .act:nth-child(2) {
  animation-delay: 0.15s;
}
.motion .art-activity.in-view .act:nth-child(3) {
  animation-delay: 0.3s;
}

.motion .art-activity.in-view .act:first-child svg {
  animation: beat 2.6s 0.8s infinite;
}

/* Todos: rows come in, one gets ticked off and back. */
.motion .art-todos .todo-row {
  opacity: 0;
}

.motion .art-todos.in-view .todo-row {
  opacity: 1;
  animation: rise 0.45s backwards;
}
.motion .art-todos.in-view .todo-row:nth-child(3) {
  animation-delay: 0.1s;
}
.motion .art-todos.in-view .todo-row:nth-child(4) {
  animation-delay: 0.2s;
}
.motion .art-todos.in-view .todo-row:nth-child(5) {
  animation-delay: 0.3s;
}

.check {
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.todo-row p:first-child {
  transition: color 0.3s;
}

/* Dock styles: one at a time steps forward. */
.ds {
  transition:
    transform 0.35s,
    opacity 0.35s;
}

.motion .art-styles.in-view .ds {
  opacity: 0.55;
}

.motion .art-styles.in-view .ds.active {
  opacity: 1;
  transform: scale(1.04);
}

.themes span {
  transition:
    background 0.3s,
    color 0.3s;
}

/* Quiet settings: the switches flip on one by one. */
.motion .art-quiet.in-view .switch.on {
  animation: switch-on 0.35s backwards;
}

.motion .art-quiet.in-view .switch.on::after {
  animation: knob-on 0.35s backwards;
}

.motion .art-quiet.in-view .toggle-row:nth-child(3) .switch.on,
.motion .art-quiet.in-view .toggle-row:nth-child(3) .switch.on::after {
  animation-delay: 0.45s;
}

.motion .art-quiet.in-view .toggle-row:nth-child(4) .switch.on,
.motion .art-quiet.in-view .toggle-row:nth-child(4) .switch.on::after {
  animation-delay: 0.9s;
}

.motion .art-quiet.in-view .toggle-row:first-child .switch.on,
.motion .art-quiet.in-view .toggle-row:first-child .switch.on::after {
  animation-delay: 0.2s;
}

/* ---- Top menu: Features dropdown, phone menu -------------------------------------------- */

.notch {
  position: relative;
}

.nav-links {
  align-items: center;
}

.has-menu {
  position: relative;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.72);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}

.menu-btn:hover,
.has-menu.open .menu-btn {
  color: #fff;
}

.chev {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.has-menu.open .chev {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: -14px;
  display: grid;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
}

/* Keeps the menu open while the pointer crosses the gap below the button. */
.submenu::before {
  content: "";
  position: absolute;
  inset: -16px 0 auto;
  height: 16px;
}

.has-menu:hover .submenu,
.has-menu:focus-within .submenu,
.has-menu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .notch.nav-open .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 14px 16px;
    border-radius: 0 0 18px 18px;
    background: #000;
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.25);
  }

  .notch.nav-open .nav-links > li > a,
  .notch.nav-open .menu-btn {
    display: flex;
    padding: 10px 6px;
  }

  /* On phones the feature links simply sit under "Features". */
  .notch.nav-open .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 4px 14px;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .notch.nav-open .submenu::before {
    display: none;
  }

  .notch.nav-open .chev {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .submenu,
  .chev {
    transition: none;
  }
}

/* ---- Hero: TopDock on a Windows laptop, clickable (demo.js) ---------------------------- */

.laptop {
  max-width: 1120px;
  margin: 64px auto 0;
}

.laptop-lid {
  position: relative;
  padding: 18px 18px 22px;
  border-radius: 26px 26px 10px 10px;
  background: linear-gradient(180deg, #2b2b31, #18181c);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.06) inset,
    0 40px 90px rgb(60 30 120 / 0.3);
}

.laptop-cam {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #0b0b0e;
  box-shadow: 0 0 0 1px #34343c;
}

.laptop .desktop {
  max-width: none;
  margin: 0;
  height: 540px;
  border-radius: 8px;
  box-shadow: none;
}

.laptop-base {
  position: relative;
  height: 20px;
  margin: 0 -48px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #d9d6df, #a9a5b3);
  box-shadow: 0 18px 30px rgb(40 20 80 / 0.2);
}

.laptop-base span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 120px;
  height: 7px;
  margin-left: -60px;
  border-radius: 0 0 8px 8px;
  background: #8f8b99;
}

.laptop .bar {
  position: relative;
  z-index: 3;
}

.laptop .tile {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.laptop .tile:hover {
  background: rgb(255 255 255 / 0.07);
}

.laptop .tile.is-open {
  background: rgb(255 255 255 / 0.12);
}

.laptop .tile:focus-visible {
  outline: 2px solid #4d9dff;
  outline-offset: -2px;
}

.laptop .panel {
  z-index: 4;
  max-height: calc(100% - 104px);
  overflow-y: auto;
}

/* A document window behind the panel: the bar keeps its own space above it. */
.app-window {
  position: absolute;
  top: 70px;
  right: 6%;
  width: 46%;
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.82);
  box-shadow: 0 20px 50px rgb(40 20 80 / 0.25);
  backdrop-filter: blur(6px);
}

.app-title {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 32px;
  padding: 0 14px;
  border-bottom: 1px solid rgb(0 0 0 / 0.06);
  color: #555;
  font-size: 12px;
}

.app-title span {
  margin-right: auto;
}

.app-title i {
  width: 10px;
  height: 2px;
  background: #777;
}

.app-body {
  display: grid;
  gap: 12px;
  padding: 24px 28px;
}

.app-body b {
  height: 16px;
  width: 55%;
  border-radius: 4px;
  background: #cfcadb;
}

.app-body span {
  height: 8px;
  border-radius: 4px;
  background: #e2deea;
}

.app-body .short {
  width: 70%;
}

.demo-hint {
  position: absolute;
  top: 52px;
  right: 18px;
  z-index: 2;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(13 13 13 / 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.3s;
}

.demo-hint::before {
  content: "↖ ";
}

.demo-hint.gone {
  opacity: 0;
}

/* Windows 11 taskbar. */
.taskbar {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  background: rgb(243 240 248 / 0.82);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgb(255 255 255 / 0.5);
  color: #222;
  font-size: 12px;
}

.tb-apps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-start {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #0067c0;
}

.tb-start svg {
  width: 20px;
  height: 20px;
}

.tb-search {
  width: 150px;
  height: 30px;
  padding-left: 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  color: #666;
  line-height: 30px;
}

.tb-app {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.tb-files {
  background: linear-gradient(135deg, #ffd66b, #f0a92e);
}

.tb-browser {
  background: conic-gradient(from 210deg, #1e88e5, #26c6da, #66bb6a, #1e88e5);
  border-radius: 50%;
}

.tb-mail {
  background: linear-gradient(135deg, #4f8cff, #2563eb);
}

.tb-tray {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-tray img {
  border-radius: 4px;
}

.tb-sys {
  font-size: 11px;
  filter: grayscale(1);
}

.tb-clock {
  display: grid;
  text-align: right;
  line-height: 1.2;
}

.tb-clock b {
  font-weight: 500;
}

.tb-clock small {
  font-size: 11px;
}

/* Inside the panel: reading a message, ticking todos. */
.panel-back {
  margin-left: auto;
  border: 0;
  background: none;
  color: #9aa1ad;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.panel-back:hover {
  color: #fff;
}

.read {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.read h4 {
  margin: 0;
  font-size: 15px;
}

.read-from {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.read-text {
  margin: 0;
  color: #d9dce2;
  line-height: 1.55;
}

.reply textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #4d9dff;
  border-radius: 8px;
  background: #0d0d0d;
  color: #f7f7f7;
  font: inherit;
  resize: none;
}

.read-actions {
  display: flex;
  gap: 8px;
}

.pill-btn {
  height: 30px;
  padding: 0 14px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: none;
  color: #f7f7f7;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.pill-btn.primary {
  border-color: #0099ff;
  background: #0099ff;
  color: #04101f;
}

.panel .check {
  margin-top: 2px;
  border-color: #6b7280;
}

.panel .row.todo.done strong {
  color: #9aa1ad;
  text-decoration: line-through;
}

.panel .due {
  margin-top: 2px;
  font-size: 12px;
  color: #9aa1ad;
}

.panel .due.late {
  color: #ff6b6f;
}

.panel .due.today {
  color: #4d9dff;
}

.act-ic {
  font-size: 15px;
}

.act-like {
  color: #f472b6;
}

.act-repost {
  color: #4ade80;
}

.act-follow {
  color: #60a5fa;
}

.demo-toast {
  position: absolute;
  bottom: 60px;
  left: 50%;
  z-index: 5;
  padding: 7px 16px;
  border-radius: 999px;
  background: #161616;
  color: #f7f7f7;
  font-size: 12px;
  transform: translateX(-50%);
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.demo-toast.out {
  opacity: 0;
  transform: translate(-50%, 8px);
}

@media (max-width: 900px) {
  .laptop {
    margin-top: 44px;
  }

  .laptop-lid {
    padding: 10px 10px 14px;
    border-radius: 18px 18px 8px 8px;
  }

  .laptop .desktop {
    height: 470px;
  }

  .laptop-base {
    margin: 0 -14px;
    height: 12px;
  }

  .app-window,
  .tb-search,
  .tb-sys {
    display: none;
  }

  .demo-hint {
    top: auto;
    bottom: 56px;
    right: 50%;
    transform: translateX(50%);
  }

  .demo-hint::before {
    content: "↑ ";
  }

  .tb-apps {
    margin-right: auto;
  }
}

.motion .desktop.in-view.used .panel {
  animation: drop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.laptop .panel {
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}

@media (max-width: 520px) {
  .laptop .panel-head .muted,
  .laptop .panel-synced {
    display: none;
  }
}

/* Demo: todos made from a message. */
.todo-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #0f0f0f;
}

.todo-form label {
  display: grid;
  gap: 4px;
  font-size: 11px;
}

.todo-form input,
.todo-form select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #161616;
  color: #f7f7f7;
  font: inherit;
  font-size: 13px;
}

.todo-form input:focus,
.todo-form select:focus {
  outline: none;
  border-color: #4d9dff;
}

.tag-todo {
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 4px;
  background: #1f1f1f;
  color: #4d9dff;
  font-size: 10px;
  font-weight: 600;
}

.panel .row.todo {
  align-items: flex-start;
  gap: 8px;
}

.todo-tick {
  display: flex;
  flex: 1;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.todo-tick > span:last-child {
  display: grid;
  gap: 2px;
}

.panel .row.todo.done strong {
  color: #9aa1ad;
  text-decoration: line-through;
}

.panel .row.todo.fresh {
  background: rgb(77 157 255 / 0.08);
}

.src-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  margin-top: 1px;
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #9aa1ad;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.src-link:hover {
  background: #1f1f1f;
  color: #f7f7f7;
}

.src-link .ic {
  width: 12px;
  height: 12px;
}

.demo-toast button {
  margin-left: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #4d9dff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Hidden parts of the demo stay hidden, whatever display their class sets. */
.laptop [hidden] {
  display: none !important;
}

/* ---- Feature chips: two rows that drift sideways ------------------------------------ */

.chip-marquee {
  display: grid;
  gap: 10px;
  max-width: 1080px;
  margin: 32px auto 0;
  overflow: hidden;
  /* Fade the rows out at both edges. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.chip-row {
  overflow: hidden;
}

.chip-track {
  display: flex;
  width: max-content;
  animation: chips-drift 60s linear infinite;
}

.chip-row.reverse .chip-track {
  animation-direction: reverse;
  animation-duration: 70s;
}

.chip-marquee:hover .chip-track {
  animation-play-state: paused;
}

.chip-marquee .chips {
  flex-wrap: nowrap;
  justify-content: flex-start;
  max-width: none;
  margin: 0;
  padding-right: 8px;
}

.chip-marquee .chips li {
  white-space: nowrap;
}

@keyframes chips-drift {
  to {
    transform: translateX(-50%);
  }
}

/* Less motion: still rows you can scroll yourself, without the copies. */
@media (prefers-reduced-motion: reduce) {
  .chip-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .chip-row {
    overflow-x: auto;
  }

  .chip-track {
    animation: none;
  }

  .chip-track .chips[aria-hidden="true"] {
    display: none;
  }
}

/* ---- Pricing (cards) ------------------------------------------------------------------ */

.billing {
  display: inline-flex;
  gap: 4px;
  margin: 28px auto 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.billing label {
  position: relative;
  cursor: pointer;
}

.billing input {
  position: absolute;
  opacity: 0;
}

.billing span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}

.billing em {
  padding: 1px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-style: normal;
}

.billing input:checked + span {
  background: var(--fg);
  color: var(--surface);
}

.billing input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 28px auto 0;
  text-align: left;
}

.plans-grid.single {
  grid-template-columns: minmax(0, 430px);
  justify-content: center;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgb(60 30 120 / 0.08);
}

.plan-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.plan-for {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.plan-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.plan-amount b {
  color: var(--fg);
  font-size: 52px;
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan-amount s {
  font-size: 20px;
}

.plan-small {
  margin: 0;
  min-height: 1.5em;
  color: var(--muted);
  font-size: 13px;
}

.plan-buy {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
}

.plan-buy[aria-disabled="true"] {
  cursor: default;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 14px;
}

.plan-list li,
.price-trust li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-list svg,
.price-trust svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: #15803d;
}

/* The founding card: dark, with the logo's gradient as its edge. */
.plan-card.founding {
  border: 2px solid transparent;
  background:
    linear-gradient(#16131d, #16131d) padding-box,
    var(--ink) border-box;
  color: #f4f2fb;
  box-shadow: 0 30px 70px rgb(105 75 248 / 0.28);
}

.plan-card.founding::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(60% 50% at 100% 0%, rgb(105 75 248 / 0.35), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgb(249 107 101 / 0.18), transparent 70%);
  pointer-events: none;
}

.plan-card.founding > * {
  position: relative;
}

.plan-card.founding .plan-for,
.plan-card.founding .plan-small,
.plan-card.founding .plan-amount {
  color: #b8b2cc;
}

.plan-card.founding .plan-amount b {
  background: var(--ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-card.founding .plan-list {
  border-top-color: rgb(255 255 255 / 0.12);
}

.plan-card.founding .plan-list svg {
  color: #8fe3b0;
}

.founding-tag {
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: #ffd4b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.plan-buy-light {
  background: #fff;
  color: #16131d;
}

.plan-buy-light:hover {
  background: #f1eefb;
}

.price-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  /* On phones the founding offer comes first. */
  .plan-card.founding {
    order: -1;
  }

  .plan-card {
    padding: 26px 22px;
  }

  .plan-amount b {
    font-size: 46px;
  }
}

/* "Only €3.25 a month": the per-month price as a label under the big price. */
.per-month {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: 600;
}

.per-month b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.per-month[hidden] {
  display: none;
}

.plan-card.founding .per-month {
  background: rgb(143 227 176 / 0.16);
  color: #8fe3b0;
}

/* ---- Cookie banner (analytics.js) ------------------------------------------------------- */

.consent {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgb(40 20 80 / 0.18);
  color: var(--fg);
  font-size: 14px;
}

.consent p {
  margin: 0;
}

.consent a {
  color: var(--accent);
}

/* Accept and Decline look the same: saying no is as easy as saying yes. */
.consent-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.consent-actions button {
  flex: 1;
  height: 40px;
  border: 1px solid var(--fg);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent-actions button:hover {
  background: var(--hover);
}

.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  opacity: 0.82;
  cursor: pointer;
  transition: color 0.15s, opacity 0.15s;
}

.footer-link-btn:hover {
  color: var(--accent);
  opacity: 1;
}

/* ---- Back to top ------------------------------------------------------------------------ */

.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #000;
  color: #fff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--accent);
}

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

.to-top svg {
  width: 20px;
  height: 20px;
}

/* Keep clear of the cookie banner while it's open. */
body:has(.consent) .to-top {
  bottom: 170px;
}

@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }
}
