/* Small animated pictures next to each pitch. Same white, same D font, a little color. */

:root {
  --green: #28a745;
  --orange: #f08a00;
  --blue: #1f6fe5;
  --line: #e6e6e6;
  --dim: #6e6e73;
}

.lead {
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: var(--gutter);
}

.cta {
  display: inline-block;
  opacity: 1;
  padding: 10px 18px;
  border-radius: 10px;
  background: #000;
  color: #fff;
}

.cta:hover {
  text-decoration: none;
  background: #222;
}

/* Text on one side, picture on the other. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 64px;
  align-items: center;
}

.feature + .feature { margin-top: 110px; }
h2 + .feature { margin-top: 50px; }

.feature--flip { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.feature--flip > :first-child { order: 2; }

.feature--stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.feature--stack p { margin-bottom: 4px; }

.feature p:last-child { margin-bottom: 0; }

.feature h3 {
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: var(--gutter-small);
}

@media screen and (max-width: 760px) {
  .feature,
  .feature--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gutter);
  }

  .feature--flip > :first-child { order: 0; }
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: D-Bold, sans-serif;
  white-space: nowrap;
}

.pill--safe { background: #e3f5e6; color: var(--green); }
.pill--caution { background: #fdf0dd; color: var(--orange); }
.pill--keep { background: #ececec; color: var(--dim); }

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

.row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__size { color: var(--dim); white-space: nowrap; }

.folder {
  width: 22px;
  height: 18px;
  flex: none;
}

/* 1. Ask about any folder */
.ask__q {
  color: var(--blue);
  margin: 12px 0 8px;
  position: relative;
  display: inline-block;
}

.ask__q::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 4px;
  width: 14px;
  height: 18px;
  margin-left: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 18'%3E%3Cpath d='M1 1v14l4-4 3 6 2-1-3-6h5z' fill='%23000' stroke='%23fff'/%3E%3C/svg%3E") no-repeat;
  opacity: 0;
  transition: opacity 200ms;
}

.ask.is-asking .ask__q::after { opacity: 1; }

/* All answers share one grid cell; the hidden ones only hold the height, so the box never grows. */
.ask__a {
  display: grid;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f6f6f6;
}

.ask__a > * { grid-area: 1 / 1; }
.ask__ghost { visibility: hidden; }
.ask__a .pill { margin-bottom: 6px; }

.ask__live .pill {
  opacity: 0;
  transition: opacity 300ms;
}

.ask.is-done .ask__live .pill { opacity: 1; }

.ask__text::after {
  content: "▍";
  color: var(--blue);
  animation: blink 0.9s steps(1) infinite;
}

.ask.is-done .ask__text::after { content: ""; }

@keyframes blink { 50% { opacity: 0; } }

.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6d6d6;
}

.dots i.on { background: #000; }

/* 2. Where your data goes */
.flow__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
}

.flow__box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  min-height: 150px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.flow__box b { font-family: D-Bold, sans-serif; }

.flow__note {
  color: var(--dim);
  font-size: 0.8rem;
}

.flow__doc { position: relative; }

.flow__doc i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e2e2e2;
  margin: 6px 0;
  filter: blur(1.2px);
}

.flow__doc span {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.1rem;
}

.flow__wire {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 0.72rem;
  white-space: nowrap;
}

.sees__wire {
  width: 70px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  animation: wire 0.8s linear infinite;
}

@keyframes wire { to { background-position: 24px 0; } }
@keyframes wire-v { to { background-position: 0 24px; } }

.sees__spark {
  width: 28px;
  height: 28px;
}

.flow__us {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1.5px dashed #d0d0d0;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.9rem;
}

.flow__us b {
  font-family: D-Bold, sans-serif;
  text-decoration: line-through;
  color: var(--dim);
  white-space: nowrap;
}

@media screen and (max-width: 450px) {
  .flow__row { grid-template-columns: minmax(0, 1fr); }
  .flow__wire { padding: 10px 0; }
  .sees__wire { width: 2px; height: 30px; background: repeating-linear-gradient(180deg, var(--blue) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation-name: wire-v; }
  .flow__box { min-height: 0; }
}

/* 3. Built in, Claude Code or your key */
.claude {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.claude__opt {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  transition: border-color 400ms, box-shadow 400ms;
}

.claude__opt b {
  display: block;
  font-family: D-Bold, sans-serif;
  margin-bottom: 4px;
}

.claude__opt span {
  color: var(--dim);
  font-size: 0.85rem;
}

.claude__opt.on {
  border-color: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.claude__opt .check {
  float: right;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #c7c7cc;
  transition: all 300ms;
}

.claude__opt.on .check {
  border-color: #000;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3 3 7-7' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* 4. Making an add-on */
.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 50px 0 60px;
}

@media screen and (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .step { height: 210px; }
}

.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  height: 230px;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0.35;
  transform: translateY(6px);
  transition: opacity 400ms, transform 400ms, box-shadow 400ms;
}

.step.on {
  opacity: 1;
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.step__n {
  color: var(--dim);
  margin-bottom: 14px;
  font-size: 0.85rem;
}

.step .row { white-space: nowrap; }
.step .pill { flex: none; }
.step p { font-size: 0.95rem; }

.bubble {
  background: #eef3fd;
  border-radius: 14px 14px 14px 3px;
  padding: 14px 16px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.code {
  font: 0.72rem/1.55 Menlo, monospace;
  background: #f6f6f6;
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre;
  overflow: hidden;
  height: 140px;
  box-sizing: border-box;
  color: #333;
}

.code .c { color: #8e8e93; }

.mini-tabs {
  display: flex;
  background: #ececec;
  border-radius: 8px;
  padding: 2px;
  font-size: 0.75rem;
  margin-bottom: 16px;
  white-space: nowrap;
}

.mini-tabs span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--dim);
}

.mini-tabs span.on {
  background: #fff;
  color: #000;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.mini-btn {
  display: block;
  text-align: center;
  border: 1px solid #d0d0d0;
  border-radius: 7px;
  padding: 4px;
  margin-top: 8px;
}

/* 5. Careful */
.careful .row {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c7c7cc;
  border-radius: 4px;
  flex: none;
  text-align: center;
  line-height: 13px;
  font-size: 12px;
}

.box.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.box.lock { border: 0; }

.careful .row.gone { opacity: 0.3; text-decoration: line-through; }

.careful__btn {
  margin-top: 14px;
  text-align: center;
  padding: 9px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  transition: background 300ms;
}

.careful__btn.done { background: #e3f5e6; color: var(--green); }

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticks li {
  margin-bottom: var(--gutter-small);
  padding-left: 26px;
  position: relative;
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: D-Bold, sans-serif;
}

/* 5b. More space, nothing lost */
.dups .row,
.cloud .row {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.dups__disk {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 12px;
  font-size: 0.9rem;
  color: var(--dim);
}

.dups__disk b {
  font-weight: 200;
  color: #000;
  min-width: 64px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dups__bar {
  flex: 1;
  display: flex;
  gap: 3px;
  height: 10px;
}

.dups__bar i {
  flex: 1 1 0;
  border-radius: 5px;
  background: #7fb0f2;
  transition: flex-grow 900ms ease-in-out, opacity 600ms;
}

.dups.merged .dups__bar i + i {
  flex-grow: 0.0001;
  opacity: 0;
}

.dups__note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 500ms;
}

.dups.merged .dups__note,
.shrink.shrunk .dups__note {
  opacity: 1;
}

.shrink__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 0.95rem;
}

.shrink__row .row__size { font-size: 0.8rem; text-align: right; }

.shrink__bar {
  height: 10px;
}

.shrink__bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 5px;
  background: #b79af2;
  transition: width 1000ms ease-in-out;
}

.shrink.shrunk .shrink__bar i { width: calc(var(--to) * 100%); }
.shrink .dups__note { margin-top: 12px; }

.cloud__age {
  color: var(--orange);
  font-size: 0.85rem;
  white-space: nowrap;
}

.cloud .row {
  transition: opacity 500ms, transform 500ms;
}

.cloud .row.moved .row__name,
.cloud .row.moved .cloud__age { opacity: 0.35; }
.cloud .row.moved .row__size { color: var(--blue); }

.cloud__dest {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--blue);
}

.cloud__dest svg { width: 30px; height: 22px; flex: none; }
.cloud__dest span { flex: 1; }
.cloud__dest b { font-weight: 200; color: #000; font-variant-numeric: tabular-nums; }

@media screen and (max-width: 450px) {
  .shrink__row { grid-template-columns: 50px minmax(0, 1fr); }
  .shrink__row .row__size { grid-column: 2; text-align: left; }
  .cloud__age { display: none; }
}

/* 6. What it found: one compact card */
.cleared {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 28px 32px;
}

@media screen and (max-width: 600px) {
  .cleared { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px; }
}

.cleared__num {
  font-size: 1.4rem;
  line-height: 1;
  white-space: nowrap;
}

.cleared__num span {
  font-size: 4.2rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.cleared p { margin: 0 0 14px; }
.cleared p.tiny { margin: 14px 0 0; color: var(--dim); }

.cleared__bar {
  display: flex;
  gap: 2px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #f3f3f3;
}

.cleared__bar i {
  flex: var(--w) 1 0;
  background: var(--c);
  transition: flex-grow 700ms ease-in-out;
}

.cleared__bar i.gone { flex-grow: 0.0001; }

@media (prefers-reduced-motion: reduce) {
  .sees__wire, .ask__text::after { animation: none; }
  .step { opacity: 1; transform: none; }
}

/* Pricing: three plans side by side, stacked on phones. */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.plan h3 { margin-bottom: var(--gutter-small); }
.plan p { margin-bottom: var(--gutter-small); }
.plan.card { padding: 20px 22px; }
.plan__buy { margin-top: var(--gutter); }

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

/* Thank-you page: the license key. */
.key {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  word-break: break-all;
  user-select: all;
}

/* Treemap preview */
.tree__map {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 2fr;
  grid-template-rows: 3fr 2fr 1fr;
  grid-template-areas: "a a b c" "a a b d" "e f g d";
  gap: 3px;
  height: 230px;
}

.tree__map i {
  background: var(--c);
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.12);
  padding: 6px 8px;
  font-style: normal;
  font-size: 0.8rem;
  overflow: hidden;
}

/* Pricing page */
.plan { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.plan .plan__buy { margin-top: auto; padding-top: var(--gutter); margin-bottom: 0; }
.plans { align-items: stretch; margin: var(--gutter) 0 calc(var(--gutter) * 3); }
.plan:not(.card) { padding: 20px 0; }
.plan__price { font-size: 2.4rem; line-height: 1; margin-bottom: var(--gutter) !important; }
.plan__once { font-family: D-Light, sans-serif; font-size: 1rem; color: var(--dim, #666); }

.cta--light { background: #f1f1f3; color: #000; }
.cta--light:hover { background: #e6e6e9; }

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--gutter);
  font-size: 0.95rem;
}
.compare th { font-family: D-Bold, sans-serif; text-align: left; font-weight: normal; }
.compare th, .compare td { padding: 10px 12px 10px 0; border-bottom: 1px solid #e6e6e9; vertical-align: top; }
.compare td:first-child { width: 40%; }
.compare .yes { color: var(--green, #1a8f3a); font-family: D-Bold, sans-serif; }
.compare .no { color: #aaa; }
.compare--free td:first-child { width: auto; }
.compare--free td:last-child { text-align: right; white-space: nowrap; }

@media screen and (max-width: 560px) {
  .compare { font-size: 0.85rem; }
  .compare th, .compare td { padding-right: 6px; }
  .compare--free td:last-child { white-space: normal; }
}
