/* Floats website — shared by index.html and pricing.html */

:root {
  --bg: #1a1b1f;
  --tile: #222328;
  --tile-alt: #26272d;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --accent: #f8c472;
  --on-accent: #1a1b1f;
  --pad-x: clamp(20px, 5vw, 72px);
  --header-h: 72px;
  --font: "adobe-garamond-pro", "Adobe Garamond Pro", "EB Garamond", Garamond, Georgia, serif;
  /* the app's own UI font, used inside the interactive demos */
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

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

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: env(safe-area-inset-bottom, 0px); }

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

/* ---------- Header: transparent over the video, frosted once it scrolls away ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad-x) 0;
}

/* The frosted background is a separate layer that fades in. Keeping a
   backdrop-filter on the header itself while transparent left a thin bright
   line along its bottom edge over the video. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(26, 27, 31, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.site-header.is-frosted::before,
.site-header.is-solid::before {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .site-header::before { transition: none; }
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }

.header-link { font-size: 1.125rem; text-decoration: none; color: var(--text-dim); }
.header-link:hover { color: var(--text); }

/* ---------- Hero: video background, copy scrolls away ---------- */
.hero { position: relative; height: 200svh; }

.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--tile);
}

.hero-video { position: absolute; inset: 0; }
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.72;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: 0 0 auto;
  height: 100svh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vh, 40px);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) var(--pad-x) 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

/* the cursor underscore from the logo */
.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.07em;
  margin-left: 0.08em;
  background: var(--accent);
  vertical-align: baseline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 44px;
  border: 1px solid var(--accent);
  cursor: pointer;
}
.button:hover { background: var(--text); border-color: var(--text); }

/* icon slot: stays hidden until an SVG is placed inside it */
.button-icon { display: inline-flex; width: 0.9em; height: 1em; }
.button-icon:empty { display: none; }
.button-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Testimonials: 1 to 3, tiles share the width evenly ---------- */
.testimonials { display: flex; }

.testimonial {
  flex: 1 1 0;
  margin: 0;
  padding: clamp(56px, 7vw, 112px) var(--pad-x);
  background: var(--tile);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.testimonial:nth-child(2) { background: var(--tile-alt); }

.testimonial blockquote { margin: 0; font-size: clamp(1.375rem, 1.8vw, 1.75rem); line-height: 1.35; }

.testimonial figcaption { font-size: 1.0625rem; color: var(--text-dim); line-height: 1.4; }
.testimonial figcaption strong { color: var(--text); font-weight: 600; display: block; }

/* with a single testimonial: centred, larger quote */
.testimonial:only-child { align-items: center; text-align: center; }
.testimonial:only-child blockquote { max-width: 54ch; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.25; }

/* ---------- Features: alternating tiles ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: min(80svh, 720px); }

.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 112px) var(--pad-x);
}

.feature h2 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  max-width: 30ch;
  color: var(--text-dim);
  font-size: clamp(1.1875rem, 1.5vw, 1.4375rem);
  line-height: 1.5;
}

.feature-text.is-accent { background: var(--accent); color: var(--on-accent); }
.feature-text.is-accent p { color: rgba(26, 27, 31, 0.78); }

.feature-media {
  position: relative;
  margin: 0;
  padding: 0;
  background: var(--tile);
  overflow: hidden;
}
.feature.is-flipped .feature-text { order: 2; }
.feature.is-flipped .feature-media { order: 1; background: var(--tile-alt); }

/* ---------- Closing CTA ---------- */
.closing { padding: clamp(80px, 14vh, 160px) var(--pad-x); text-align: center; }
.closing h2 {
  margin: 0 0 clamp(32px, 5vh, 56px);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.button.is-massive {
  display: flex;
  width: 100%;
  padding: clamp(28px, 5vw, 56px) 24px;
  font-size: clamp(2.25rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- Footer ---------- */
.site-footer { padding: 0 var(--pad-x) 40px; color: var(--text-dim); font-size: 1rem; text-align: center; }

/* =====================================================================
   Interactive demos — small working pieces of the app inside each tile
   ===================================================================== */

.demo {
  position: absolute;
  inset: 0;
  font-family: var(--ui);
  font-size: 14px;
  color: #ecebe7;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background-image: radial-gradient(circle, rgba(236, 235, 231, 0.09) 1px, transparent 1.3px);
  background-size: 22px 22px;
}

.demo-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(44, 45, 52, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(236, 235, 231, 0.75);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s;
}
.demo.touched .demo-hint { opacity: 0; }

.d-card {
  position: absolute;
  width: clamp(150px, 34%, 210px);
  padding: 12px 14px 11px;
  border-radius: 12px;
  background: rgba(44, 45, 52, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px rgba(0, 0, 0, 0.28);
  cursor: grab;
  transition: box-shadow 0.15s, opacity 0.25s, transform 0.25s;
}
.d-card:active { cursor: grabbing; }
.d-card.target { box-shadow: 0 0 0 2px #f8c472, 0 10px 26px rgba(0, 0, 0, 0.28); }
.d-card.blocked { border-style: dashed; }
.d-card.blocked .d-title { opacity: 0.6; }
.d-card.done .d-title { text-decoration: line-through; color: rgba(236, 235, 231, 0.5); }

.d-title { font-weight: 600; font-size: 13.5px; line-height: 1.3; padding-right: 16px; }
.d-sub { margin-top: 4px; font-size: 11.5px; color: rgba(236, 235, 231, 0.55); }
.d-dot { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; }

.d-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.d-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid rgba(236, 235, 231, 0.35);
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.d-check:hover { border-color: #4caf6e; }
.d-card.done .d-check { background: #4caf6e; border-color: #4caf6e; }
.d-card.done .d-check::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 2px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.d-badge {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 20px;
  background: rgba(236, 235, 231, 0.07);
  color: rgba(236, 235, 231, 0.6);
  white-space: nowrap;
}
.d-badge.blocked { color: #e08a63; background: rgba(224, 138, 99, 0.12); }

.d-handle {
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #1a1b1f;
  border: 1.5px solid rgba(236, 235, 231, 0.55);
  cursor: crosshair;
}
.d-handle::after { content: ""; position: absolute; inset: -10px; }
.d-handle:hover { background: #f8c472; border-color: #f8c472; }

.d-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.d-edges path { fill: none; stroke: rgba(236, 235, 231, 0.32); stroke-width: 1.6; stroke-dasharray: 5 5; }
.d-edges path.done { stroke: rgba(236, 235, 231, 0.6); stroke-dasharray: none; }
.d-edges path.draft { stroke: #f8c472; stroke-dasharray: 4 4; }
.d-edges path.fresh { animation: draw 0.6s ease-out; }
.d-edges marker path { fill: none; stroke: rgba(236, 235, 231, 0.55); stroke-width: 1.6; stroke-dasharray: none; }
@keyframes draw { from { stroke-dashoffset: 200; } }

/* Projects demo */
.d-project { position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; }
.d-proj-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.demo-projects .d-card { cursor: pointer; }
.demo-projects .d-card.dim { opacity: 0.18; transform: scale(0.97); }
.d-chips {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(44, 45, 52, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.d-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 0;
  background: none;
  color: rgba(236, 235, 231, 0.7);
  font: 12.5px var(--ui);
  cursor: pointer;
  white-space: nowrap;
}
.d-chip:hover { color: #fff; }
.d-chip.active { background: rgba(236, 235, 231, 0.12); color: #fff; font-weight: 600; }
.d-chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }


/* =====================================================================
   Pricing page
   ===================================================================== */

.page { padding: calc(var(--header-h) + 64px) var(--pad-x) 80px; max-width: 1080px; margin: 0 auto; }

.page-intro { text-align: center; max-width: 38ch; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(248, 196, 114, 0.5);
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.page-intro h1 { margin: 0 0 18px; font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.025em; }
.page-intro p { margin: 0; color: var(--text-dim); font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.5; }

.offer { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--tile); }
.offer-main { padding: clamp(32px, 5vw, 56px); }
.offer-side { padding: clamp(32px, 5vw, 56px); background: var(--tile-alt); }

.offer h2 { margin: 0 0 6px; font-size: 1.9rem; font-weight: 500; }
.offer .muted { color: var(--text-dim); font-size: 1.15rem; margin: 0; }

.price { display: flex; align-items: baseline; gap: 16px; margin: 28px 0 6px; }
.price-now { font-size: clamp(3.5rem, 7vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.price-was { font-size: 1.75rem; color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.price-note { color: var(--text-dim); font-size: 1.1rem; margin: 0 0 28px; }

.offer .button { width: 100%; }
.buy-small { margin-top: 14px; font-size: 1rem; color: var(--text-dim); text-align: center; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 1.2rem; line-height: 1.4; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: "✓"; color: var(--accent); font-family: var(--ui); font-size: 0.95rem; padding-top: 3px; }

.notice { margin-top: 56px; padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(248, 196, 114, 0.35); background: rgba(248, 196, 114, 0.05); }
.notice h2 { margin: 0 0 12px; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.01em; }
.notice > p { margin: 0 0 22px; color: var(--text-dim); font-size: 1.2rem; line-height: 1.5; max-width: 62ch; }
.notice ol { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 1.15rem; line-height: 1.45; }
.notice ol strong { font-weight: 600; }
.notice .small { margin-top: 18px; font-size: 1.05rem; color: var(--text-dim); }
.os-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.os-tab { font: 1rem var(--font); padding: 7px 14px; background: none; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-dim); cursor: pointer; }
.os-tab[aria-selected="true"] { border-color: var(--accent); color: var(--text); }

.faq { margin-top: 72px; }
.faq h2 { margin: 0 0 20px; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 500; }
.faq details { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.faq summary { cursor: pointer; font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--ui); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-dim); font-size: 1.15rem; line-height: 1.55; max-width: 70ch; }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  :root { --header-h: 60px; }
  .brand img { height: 28px; }
  .testimonials { flex-direction: column; }
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature .feature-text, .feature.is-flipped .feature-text { order: 1; }
  .feature .feature-media, .feature.is-flipped .feature-media { order: 2; aspect-ratio: 1 / 1; }
  .feature p { max-width: none; }
  .offer { grid-template-columns: 1fr; }
  .d-card { width: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-stage { position: relative; }
}

/* =====================================================================
   usefloats.com additions: header nav, footer links, sign-in, Mac app page
   ===================================================================== */

.header-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.hero-note { margin: 16px 0 0; font-size: 1.15rem; color: var(--text-dim); }

.site-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Sign-in */
.signin { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 24px) var(--pad-x) 48px; }
.signin-card { width: min(440px, 100%); background: var(--tile); padding: clamp(28px, 5vw, 48px); text-align: center; }
.signin-card h1 { margin: 0 0 10px; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.signin-card > p { margin: 0 0 28px; color: var(--text-dim); font-size: 1.2rem; line-height: 1.45; }
.google-button {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 14px 20px; background: #fff; color: #1f1f1f; border: 1px solid #fff;
  font: 500 1.05rem var(--ui); text-decoration: none; cursor: pointer;
}
.google-button:hover { background: #f1f1f1; }
.google-button svg { width: 20px; height: 20px; flex: none; }
.signin-error { margin: 0 0 20px; padding: 10px 14px; border: 1px solid rgba(248, 196, 114, 0.5); color: var(--accent); font-size: 1.05rem; text-align: left; }
.signin-small { margin: 22px 0 0; color: var(--text-dim); font-size: 0.98rem; line-height: 1.5; }
.signin-small a { color: var(--text); }

/* Plans on the pricing page */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2px; }
.plan { background: var(--tile); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.plan.is-featured { background: var(--tile-alt); box-shadow: inset 0 0 0 1px rgba(248, 196, 114, 0.45); }
.plan h2 { margin: 0 0 4px; font-size: 1.9rem; font-weight: 500; }
.plan .muted { color: var(--text-dim); font-size: 1.15rem; margin: 0; }
.plan .ticks { margin: 28px 0 32px; flex: 1; }
.plan .button { width: 100%; }
.plan .price { margin-top: 22px; }
.plan .price-now.is-free { font-size: clamp(3rem, 6vw, 4.25rem); }
.button.is-quiet { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.button.is-quiet:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--text); }

/* Legal pages and the Mac app page */
.prose { max-width: 70ch; margin: 0 auto; font-size: 1.2rem; line-height: 1.6; color: var(--text-dim); }
.prose h1 { color: var(--text); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; }
.prose h2 { color: var(--text); font-size: 1.6rem; font-weight: 500; margin: 40px 0 10px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .updated { font-size: 1rem; margin: 0 0 32px; }
.prose a { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

@media (max-width: 800px) {
  .plans { grid-template-columns: 1fr; }
}
.page-intro { max-width: 1040px; }
.page-intro p { max-width: 38ch; margin-left: auto; margin-right: auto; }
.signin-card > p.signin-small { margin: 22px 0 0; font-size: 0.98rem; }
.nowrap { white-space: nowrap; }
.plan .ticks { align-content: start; }

/* =====================================================================
   Demo ghost cursor, calendar demo, editor demo, single pricing button
   ===================================================================== */

.d-ghost {
  position: absolute; left: 0; top: 0; z-index: 10;
  width: 24px; height: 24px;
  pointer-events: none; opacity: 0; transition: opacity 0.25s;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.d-ghost.on { opacity: 1; }
.d-ghost svg { width: 100%; height: 100%; fill: #fff; stroke: #1a1b1f; stroke-width: 1.4; stroke-linejoin: round; transform-origin: 4px 2.5px; transition: transform 0.12s; }
.d-ghost.down svg { transform: scale(0.84); }
.d-ghost::before {
  content: ""; position: absolute; left: -10px; top: -11px; width: 28px; height: 28px;
  border-radius: 50%; border: 2px solid #f8c472; opacity: 0;
}
.d-ghost.ripple::before { animation: d-ripple 0.55s ease-out; }
@keyframes d-ripple { from { opacity: 0.9; transform: scale(0.3); } to { opacity: 0; transform: scale(1.2); } }

/* Calendar demo */
.demo-cal { background-image: none; }
.d-cal-col { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(236, 235, 231, 0.07); }
.d-cal-col:first-child { border-left: 0; }
.d-cal-col.today { background: rgba(236, 138, 45, 0.06); border-left-color: rgba(236, 138, 45, 0.4); }
.d-cal-label { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 14px; font-size: 12.5px; color: rgba(236, 235, 231, 0.6); }
.d-cal-dow { font-weight: 500; }
.d-cal-day { font-weight: 650; color: #ecebe7; font-variant-numeric: tabular-nums; }
.today .d-cal-day { background: #ec8a2d; color: #fff; border-radius: 10px; padding: 0 7px; }
.d-cal-rule { position: absolute; left: 0; right: 0; top: 44px; border-top: 1px solid rgba(236, 235, 231, 0.08); }
.demo-cal .d-card { padding: 10px 11px 10px 14px; cursor: grab; }
.demo-cal .d-card.lifted { z-index: 5; transition: none; box-shadow: 0 0 0 1.5px rgba(248, 196, 114, 0.7), 0 16px 34px rgba(0, 0, 0, 0.4); }
.demo-cal .d-title { font-size: 13px; padding-right: 0; }
.d-edges path.dim { opacity: 0.15; }

/* Editor demo */
.demo-editor .d-card { cursor: pointer; }
.d-card.selected { box-shadow: 0 0 0 2px #f8c472, 0 10px 26px rgba(0, 0, 0, 0.28); }
.d-panel {
  position: absolute; top: 14px; right: 14px; max-height: calc(100% - 28px); z-index: 4;
  width: min(64%, 380px);
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: #26272d;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: auto;
  transform: translateX(calc(100% + 30px));
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.d-panel.open { transform: none; }
.d-panel-close {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  border: 0; border-radius: 7px; background: transparent;
  color: rgba(236, 235, 231, 0.6); font: 400 20px/1 var(--ui); cursor: pointer;
}
.d-panel-close:hover { background: rgba(236, 235, 231, 0.08); color: #fff; }
.d-panel [contenteditable] { outline: none; cursor: text; user-select: text; -webkit-user-select: text; }
.d-panel h3 { margin: 2px 34px 8px 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.d-panel p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: rgba(236, 235, 231, 0.72); }
.d-panel h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 650; }
.d-todo { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; font-size: 13.5px; line-height: 1.35; }
.d-box { flex: none; position: relative; width: 15px; height: 15px; margin-top: 1px; border-radius: 4px; border: 1.5px solid rgba(236, 235, 231, 0.45); cursor: pointer; }
.d-todo.done .d-box { background: #4caf6e; border-color: #4caf6e; }
.d-todo.done .d-box::after { content: ""; position: absolute; left: 3.5px; top: 0.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.d-todo.done .d-text { color: rgba(236, 235, 231, 0.45); text-decoration: line-through; }
.d-text { flex: 1; min-height: 1.35em; }
.d-text.typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: #f8c472; animation: d-blink 1s steps(1) infinite; }
@keyframes d-blink { 50% { opacity: 0; } }

@media (max-width: 800px) {
  .d-panel { width: auto; left: 14px; }
}

/* Pricing: one button under both plans */
.plans-cta { margin: clamp(28px, 4vw, 44px) auto 0; max-width: 480px; text-align: center; }
.plans-cta .button { width: 100%; }
