/* Buckets' page, inside the shared Nautilus frame. Its colours come from
   the app icon: a sunset gradient, a teal pixel bucket and deep plum. */

.buckets {
  --b-peach: #fbb37b;
  --b-coral: #ec8a86;
  --b-rose: #c94f7c;
  --b-plum: #2a1733;
  --b-teal: #2fc4b2;
  --b-teal-deep: #1f998a;
  --b-cream: #fff7ef;
  --b-sunset: linear-gradient(165deg, var(--b-peach) 0%, var(--b-coral) 48%, var(--b-rose) 100%);
}

/* Pixel buckets, drawn on a 12 by 12 grid. */
.pix { width: 28px; height: 28px; shape-rendering: crispEdges; flex: none; }

/* Hero */
.b-hero { background: var(--b-sunset); color: var(--b-plum); padding: var(--s8) 0 var(--s8); border-bottom: 3px solid var(--line); overflow: clip; }
.b-hero__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s7); align-items: center; }
.b-hero .eyebrow { color: var(--b-plum); opacity: .8; }
.b-hero h1 { margin: var(--s4) 0 var(--s5); font-size: clamp(2.5rem, 5.4vw, 4.2rem); }
.b-hero .lede { color: #4a2638; max-width: 30em; }
.b-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin: var(--s6) 0 var(--s4); }
.b-hero .status { background: var(--b-cream); font-size: .95rem; padding: 10px 16px 10px 14px; }
.b-hero__note { font-size: .88rem; color: #4a2638; }

/* A Mac screen whose menu bar stays put while the panel drops from it. */
.drop { background: #0b0c0f; padding: clamp(5px, 1vw, 12px); border-radius: clamp(10px, 1.6vw, 20px); box-shadow: 0 30px 60px -28px rgba(42, 23, 51, .75); }
.drop__screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: clamp(4px, .7vw, 9px);
  background: radial-gradient(120% 90% at 20% 100%, #2a8a8a 0%, transparent 55%), radial-gradient(90% 80% at 85% 90%, #8d3c7d 0%, transparent 60%), #2b1738;
}
.drop__bar { position: absolute; z-index: 2; inset: 0 0 auto; height: 2.6%; background-repeat: no-repeat; background-size: 100% auto; background-position: top; }
.drop__panel { position: absolute; inset: 0 0 auto; }
.drop__panel img { width: 100%; clip-path: inset(4% 0 0 0); }
.drop__panel.is-dropping { animation: drop .7s cubic-bezier(.2, .9, .25, 1.04); }
@keyframes drop { from { transform: translateY(-100%); } }
.drop__hint { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-family: var(--rounded); font-weight: 700; font-size: clamp(.8rem, 1.5vw, 1.05rem); color: rgba(255, 255, 255, .85); }

/* Rail of buckets that changes the screen */
.b-tour { padding: var(--s9) 0; }
.tour { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.rail { display: grid; gap: 6px; background: var(--b-plum); padding: var(--s3); border-radius: var(--r-m); border: 2.5px solid var(--line); box-shadow: 0 6px 0 var(--line); }
.rail__label { font-family: var(--rounded); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #b89fb8; padding: 6px 8px 2px; }
.rail button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; cursor: pointer; text-align: left;
  font: 700 1rem var(--rounded); color: #f3e6ef; background: transparent; border: 2px solid transparent;
}
.rail button:hover { background: rgba(255, 255, 255, .08); }
.rail button[aria-selected="true"] { border-color: #f0835b; background: rgba(240, 131, 91, .14); color: #fff; }
.rail .pix { width: 24px; height: 24px; }
.tour__view .drop__screen { aspect-ratio: 1600 / 647; }
.tour__view .drop__bar { height: 4%; }
.tour__caption { margin-top: var(--s5); max-width: 40em; }
.tour__caption h3 { font-size: 1.6rem; }
.tour__caption p { margin-top: var(--s2); color: var(--ink-2); font-size: 1.1rem; }

/* Ways to open it */
.b-open { padding: var(--s9) 0; background: var(--paper-2); border-block: 1.5px solid rgba(11, 42, 91, .1); }
.ways4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.way { background: var(--b-cream); border: 2.5px solid var(--line); border-radius: var(--r-l); padding: var(--s5); box-shadow: 0 5px 0 var(--line); }
.way__art { height: 92px; display: grid; place-items: center; margin-bottom: var(--s4); border-radius: var(--r-m); background: var(--b-sunset); border: 2px solid var(--line); position: relative; overflow: hidden; }
.way h3 { font-size: 1.15rem; margin-bottom: var(--s2); }
.way p { color: var(--ink-2); font-size: .95rem; }
.way__art .menubar { position: absolute; inset: 0 0 auto; height: 14px; background: rgba(42, 23, 51, .55); }
.way__art .notch { position: absolute; left: 50%; top: 0; translate: -50% 0; width: 46px; height: 18px; background: #0b0c0f; border-radius: 0 0 8px 8px; }
.way__art .arrow { font: 800 1.6rem var(--rounded); color: #fff; text-shadow: 0 2px 0 var(--b-plum); }
.way__art kbd { background: #fff; color: var(--ink); font-size: 1.3rem; padding: .2em .55em; }
.way__art .file { width: 26px; height: 32px; background: #fff; border: 2px solid var(--line); border-radius: 3px 9px 3px 3px; position: absolute; left: 50%; top: 22px; translate: -50% 0; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 20% { transform: translateY(26px); } 60%, 100% { transform: translateY(0); } }
.way__art .swipe { width: 76px; margin-top: 18px; }
.way__art .tray { position: absolute; right: 18px; top: 0; height: 14px; width: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .35); border-radius: 3px; }
.way__art .tray .pix { width: 12px; height: 12px; }
.way__art .pointer { position: absolute; right: 12px; top: 18px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid #fff; transform: rotate(-30deg); filter: drop-shadow(0 2px 0 var(--b-plum)); }

/* Built-in buckets */
.b-kinds { padding: var(--s9) 0; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.kind { border: 2.5px solid var(--line); border-radius: var(--r-l); padding: var(--s5); background: var(--paper-2); }
.kind__head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s2); }
.kind h3 { font-size: 1.25rem; }
.kind p { color: var(--ink-2); }

/* Reminders in plain words */
.b-remind { padding: var(--s9) 0; background: var(--b-plum); color: #f6e9f1; --line: #120a17; }
.b-remind__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s8); align-items: center; }
.b-remind .lede { color: #d7bfd0; margin-top: var(--s4); }
.b-remind .fine { color: #b89fb8; margin-top: var(--s4); }
.b-remind :focus-visible { outline-color: var(--b-peach); }
.remind { background: #3a2245; border: 2.5px solid #120a17; border-radius: var(--r-l); padding: var(--s5); box-shadow: 0 8px 0 #120a17; }
.remind__form { display: flex; gap: var(--s2); }
.remind__form input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 2px solid #5a3a68; background: #2a1733; color: #fff;
  font: 600 1rem var(--sans);
}
.remind__form input::placeholder { color: #a58aa8; }
.remind__form input:focus { outline: none; border-color: var(--b-peach); }
.remind__form .btn { --line: #120a17; }
.remind__preview { min-height: 34px; margin: var(--s3) 0 var(--s2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .95rem; color: #d7bfd0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(47, 196, 178, .18); color: #9ff0e4; font: 700 .85rem var(--rounded); white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; }
.remind__examples { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s4); }
.remind__examples button { font: 600 .85rem var(--rounded); color: #f6e9f1; background: transparent; border: 1.5px dashed #7a5888; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.remind__examples button:hover { border-color: var(--b-peach); }
.remind__list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid #5a3a68; }
.remind__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1.5px solid #5a3a68; }
.remind__list li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b89fb8; flex: none; }
.remind__list .t { font-weight: 600; }
.remind__empty { color: #a58aa8; font-size: .92rem; padding: 10px 0; }
.remind__list .remind__empty::before { display: none; }

/* Folders */
.b-folders { padding: var(--s9) 0; }
.b-folders__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.b-folders__grid > div > p { margin-top: var(--s4); color: var(--ink-2); font-size: 1.1rem; }
.finder { background: var(--paper-2); border: 2.5px solid var(--line); border-radius: var(--r-l); box-shadow: 0 6px 0 var(--line); overflow: hidden; }
.finder__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 2px solid var(--line); background: var(--paper-3); font: 700 .9rem var(--rounded); }
.finder__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; border: 1px solid rgba(0, 0, 0, .2); }
.finder__bar i:nth-child(2) { background: #febc2e; }
.finder__bar i:nth-child(3) { background: #28c840; margin-right: 8px; }
.finder table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.finder th { text-align: left; font: 700 .75rem var(--rounded); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 10px 14px 6px; }
.finder td { padding: 10px 14px; border-top: 1.5px solid rgba(11, 42, 91, .1); }
.finder td:first-child { font-family: var(--mono); font-size: .88rem; white-space: nowrap; }

/* The rest */
.b-more { padding: 0 0 var(--s9); }
.b-more__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s7); list-style: none; margin: 0; padding: 0; }
.b-more__list li { padding: 14px 0; border-top: 1.5px solid rgba(11, 42, 91, .14); color: var(--ink-2); }
.b-more__list b { font-family: var(--rounded); color: var(--ink); }

/* Privacy */
.b-privacy { padding: var(--s9) 0; background: var(--paper-3); }
.b-privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: end; }
.b-privacy h2::after { content: ""; display: block; width: 120px; height: 10px; border-radius: 5px; margin-top: var(--s5); background: linear-gradient(90deg, var(--b-peach), var(--b-rose) 60%, var(--b-teal) 60%); }
.b-privacy p + p { margin: var(--s4) 0 var(--s5); color: var(--ink-2); }

/* Closing */
.b-cta { background: var(--b-sunset); border-block: 3px solid var(--line); padding: var(--s8) 0; text-align: center; color: var(--b-plum); }
.b-cta img { width: 120px; margin: 0 auto var(--s4); }
.b-cta p { margin: var(--s4) auto var(--s5); font-size: 1.15rem; max-width: 30em; }
.b-cta .status { background: var(--b-cream); font-size: 1rem; padding: 10px 18px 10px 14px; }

@media (max-width: 960px) {
  .b-hero__grid, .b-remind__grid, .b-folders__grid, .b-privacy__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .tour { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: repeat(3, 1fr); }
  .rail__label { display: none; }
  .ways4 { grid-template-columns: repeat(2, 1fr); }
  .kinds { grid-template-columns: repeat(2, 1fr); }
  .b-tour, .b-open, .b-kinds, .b-remind, .b-folders, .b-privacy { padding: var(--s8) 0; }
  .b-more { padding-bottom: var(--s8); }
}

@media (max-width: 720px) {
  .b-hero { padding-top: var(--s6); }
  .rail { grid-template-columns: repeat(2, 1fr); padding: var(--s2); }
  .rail button { font-size: .92rem; padding: 7px 8px; }
  .ways4, .kinds, .b-more__list { grid-template-columns: 1fr; }
  .remind { padding: var(--s4); }
  .remind__form { flex-direction: column; }
  .finder td, .finder th { padding-inline: 10px; }
  .finder td:first-child { white-space: normal; }
}
