/* DropWatch site. Paper and ink from the logo: navy folder, green gear, near-black wordmark.
   Literata (the e-book reading face) for everything you read; the Mac's own font inside the Finder demo. */
:root {
  --paper: #f2f5f9;
  --ink: #141b24;
  --navy: #1e4c86;
  --green: #2e7a50;
  --line: #cbd6e3;
  --amber: #8f540f;
  --soft: #4a5666;
  --serif: "Literata", Georgia, serif;
  --mac: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
  font-optical-sizing: auto;
}
a { color: var(--navy); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.top, main, footer { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.75rem 0 0;
}
.brand img { display: block; height: 2.25rem; width: auto; }
.platform { margin: 0; color: var(--soft); font-size: .9375rem; }

h1, h2 { font-weight: 750; letter-spacing: -.015em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); max-width: 14ch; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 1.1rem; }

.hero { padding: clamp(3rem, 9vw, 6rem) 0 0; }
.lede { font-size: clamp(1.15rem, 2vw, 1.3rem); max-width: 36em; margin: 1.5rem 0 0; color: #283241; }

main > section + section { margin-top: clamp(4rem, 10vw, 7rem); }
main p, main li, main dd { max-width: 40em; }

/* The Finder demo. Built from real Finder proportions: 22px rows, gray header, traffic lights. */
.demo { margin: clamp(2.5rem, 6vw, 4rem) 0 0; }
.finder {
  font: 13px/1.3 var(--mac);
  color: #1d1d1f;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #c3ccd8;
  box-shadow: 0 1px 0 #fff inset, 0 24px 48px -24px rgba(20, 40, 80, .35), 0 2px 6px rgba(20, 40, 80, .08);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.titlebar {
  display: flex; align-items: center; gap: 1rem;
  padding: 10px 14px; background: #f6f7f9; border-bottom: 1px solid #e1e5ea;
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.wintitle { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ficon { width: 16px; height: 13px; flex: none; }
.dicon { width: 12px; height: 15px; flex: none; }

.cols, .rows li { display: grid; grid-template-columns: minmax(0, 1fr) 11.5em 4.5em; column-gap: 12px; }
.cols { padding: 5px 14px; color: #6e6e73; font-size: 11.5px; border-bottom: 1px solid #ececef; }
.cols span:last-child, .rows li > span:nth-child(3) { text-align: right; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 3px 14px; align-items: center; min-height: 24px; max-width: none; }
.rows li > span:nth-child(n+2) { color: #6e6e73; }
.rows .name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rows .name .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder { grid-template-rows: auto auto; }
.folder > .inner { grid-column: 1 / -1; }
.inner li { padding-left: 0; padding-right: 0; }
.inner .name { padding-left: 38px; }
.disc { font-weight: 400; color: #8a8a8e; font-size: 10px; width: 10px; }

#top li { background: #fff; }
.rows li.arriving .txt { color: #8a8a8e; }
.rows li.reading { background: #e8f0fb; }
.rows li.filed { animation: settle 1.6s ease-out; }
.rows li.parked { animation: park 1.6s ease-out; }
@keyframes settle { from { background: #dcefe3; } to { background: transparent; } }
@keyframes park { from { background: #f8ead6; } to { background: transparent; } }
.caret { display: inline-block; width: 1px; height: 1.1em; background: var(--navy); margin-left: 1px; vertical-align: -2px; }

.status {
  margin: auto 0 0; padding: 8px 14px; min-height: 2.4em;
  border-top: 1px solid #ececef; background: #fafbfc; color: #505862; font-size: 12px;
  max-width: none;
}
.status.ok { color: var(--green); }
.status.warn { color: var(--amber); }

figcaption { margin-top: 1rem; color: var(--soft); font-size: .9375rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
#replay {
  font: 600 .9375rem/1 var(--serif); color: var(--navy); background: none;
  border: 1.5px solid var(--navy); border-radius: 999px; padding: .55em 1.1em; cursor: pointer;
}
#replay:hover { background: var(--navy); color: #fff; }
#replay[disabled] { opacity: .45; cursor: default; background: none; color: var(--navy); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The rule sentence: blanks you fill in, drawn as underlined fields. */
.sentence { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.7; max-width: 32em !important; margin: 0 0 1.5rem; }
.sentence em {
  font-style: normal; font-weight: 600; color: var(--navy);
  border-bottom: 2px solid #9db8da; padding: 0 .1em; white-space: nowrap;
}
@media (max-width: 560px) { .sentence em { white-space: normal; } }

.care dl { margin: 0; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.4rem 2.5rem; }
.care dt { font-weight: 600; padding-top: .9rem; border-top: 2px solid var(--green); }
.care dd { margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .care dl { grid-template-columns: 1fr; gap: 0; }
  .care dd { border-top: 0; padding-top: .35rem; margin-bottom: 1.4rem; }
}

.send ul { padding-left: 1.2em; margin: 0 0 1.4rem; }
.send li { margin-bottom: .7rem; }
.send li::marker { color: var(--navy); }

.beta {
  border-top: 2px solid var(--ink); padding-top: 2rem;
}
.beta form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; max-width: 40rem; }
.beta input {
  flex: 1 1 11rem; font: 400 1rem var(--mac); padding: .7em .85em;
  border: 1px solid #aeb9c7; border-radius: 7px; background: #fff; color: var(--ink);
}
.beta button, .button {
  font: 600 1rem/1 var(--serif); padding: .8em 1.4em; border-radius: 7px; border: 0;
  background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; display: inline-block;
}
.beta button:hover, .button:hover { background: #163a67; }
.reveal-msg { color: var(--soft); min-height: 1.5em; }

footer {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  margin-top: clamp(4rem, 10vw, 7rem); padding: 1.5rem 0 3rem; border-top: 1px solid var(--line);
  font-size: .9375rem;
}

/* Privacy page */
.doc { padding: clamp(3rem, 8vw, 5rem) 0 0; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }

@media (max-width: 640px) {
  .platform { display: none; }
  .cols, .rows li { grid-template-columns: minmax(0, 1fr); }
  .cols span:nth-child(n+2), .rows li > span:nth-child(n+2) { display: none; }
  .rows .name .txt { white-space: normal; overflow-wrap: anywhere; }
  .inner .name { padding-left: 26px; }
}
