/* Bottom Drawer website, in the app's modern design language:
   warm paper ground, soft colour glows, frosted glass cards, notebook covers with a spine,
   Fraunces titles, Inter for everything else, Caveat only where someone "writes".
   Layout: a hero with the app's home screen in a phone, then wide sections that stack on phones. */
:root {
  --ground: #F5F0E8;
  --sheet: #FBF8F3;
  --ink: #1F1A16;
  --ink-soft: #6D6258;
  --ink-faint: #6F655B;
  --line: #E6DCCF;
  --glass: rgba(255, 255, 255, .62);
  --glass-edge: rgba(255, 255, 255, .9);
  --glass-shadow: 0 6px 20px rgba(60, 40, 20, .08);
  --tint: rgba(31, 26, 22, .06);
  --glow-a: #F2C9A8;
  --glow-b: #C9D6C0;
  --glow-opacity: .55;
  --coral: #E0704F;
  --due: #B5452C;
  --pen: #3B2A20;
  --paper: #FFFDF7;
  --btn-bg: #1F1A16;
  --btn-fg: #F5F0E8;
  --link: #4F8476;

  --sage: #8C9F6E;
  --plum: #8A6283;
  --slate: #6F8BA0;
  --terracotta: #C27A5C;
  --teal: #5E9488;
  --brass: #D6A83F;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --measure: 64ch;
  --wide: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1A1613;
    --sheet: #24201C;
    --ink: #F2EBE1;
    --ink-soft: #C3B8AB;
    --ink-faint: #A89C8F;
    --line: #3D3530;
    --glass: rgba(255, 255, 255, .06);
    --glass-edge: rgba(255, 255, 255, .09);
    --glass-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    --tint: rgba(255, 255, 255, .09);
    --glow-opacity: .16;
    --paper: #2B2622;
    --pen: #F2EBE1;
    --btn-bg: #F2EBE1;
    --btn-fg: #1A1613;
    --link: #8FC2B4;
    --due: #E98A6F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #1A1613;
  --sheet: #24201C;
  --ink: #F2EBE1;
  --ink-soft: #C3B8AB;
  --ink-faint: #A89C8F;
  --line: #3D3530;
  --glass: rgba(255, 255, 255, .06);
  --glass-edge: rgba(255, 255, 255, .09);
  --glass-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  --tint: rgba(255, 255, 255, .09);
  --glow-opacity: .16;
  --paper: #2B2622;
  --pen: #F2EBE1;
  --btn-bg: #F2EBE1;
  --btn-fg: #1A1613;
  --link: #8FC2B4;
  --due: #E98A6F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before, body::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--glow-opacity);
  pointer-events: none;
}
body::before { left: -120px; top: -100px; width: 520px; height: 420px; background: var(--glow-a); }
body::after { right: -140px; top: 520px; width: 460px; height: 480px; background: var(--glow-b); }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wide); margin: 0 auto; }
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

/* Header */
.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.2rem/1 var(--display);
  letter-spacing: -.01em;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 6px; font-size: .92rem; font-weight: 500; }
.site-nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.site-nav a:hover { background: var(--tint); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--tint); color: var(--ink); }

/* Pills and buttons */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1 var(--body);
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(40px, 8vw, 112px) clamp(64px, 10vw, 128px);
}
.eyebrow { font: 500 .95rem/1 var(--body); color: var(--ink-faint); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 4.6rem); letter-spacing: -.025em; }
.hero .lede { margin-top: 24px; font-size: 1.2rem; color: var(--ink-soft); max-width: 36ch; }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero .device-note { font-size: .92rem; color: var(--ink-faint); max-width: 30ch; }
.hero-art { display: flex; justify-content: center; }

/* The app's home screen, drawn in HTML */
.phone {
  width: min(100%, 340px);
  border-radius: 48px;
  padding: 10px;
  background: #2A2420;
  box-shadow: 0 40px 80px -30px rgba(40, 25, 10, .5), 0 0 0 1px rgba(0, 0, 0, .2);
}
.screen {
  position: relative;
  overflow: hidden;
  border-radius: 39px;
  background: #F5F0E8;
  color: #1F1A16;
  padding: 40px 14px 20px;
  font-family: var(--body);
}
.screen .g { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.screen > *:not(.g) { position: relative; }
.app-hdr { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 6px; }
.app-hdr small { display: block; font: 500 11px/1 var(--body); color: #6F655B; margin-bottom: 6px; }
.app-hdr b { font: 600 27px/1 var(--display); letter-spacing: -.4px; }
.app-av { width: 34px; height: 34px; border-radius: 50%; background: #1F1A16; color: #F5F0E8; font: 600 13px/34px var(--body); text-align: center; position: relative; }
.app-av i { position: absolute; right: -1px; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: #E0704F; border: 2px solid #F5F0E8; }
.app-glass { background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 20px rgba(60, 40, 20, .08); }
.app-tray { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; }
.app-tray .stack { position: relative; width: 38px; height: 34px; flex: none; }
.app-tray .stack span { position: absolute; width: 24px; height: 33px; border-radius: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.app-tray b { display: block; font: 600 12.5px/1.2 var(--body); }
.app-tray em { display: block; font: 500 10.5px/1.3 var(--body); font-style: normal; color: #6F655B; }
.app-badge { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: #E0704F; color: #fff; font: 700 11px/22px var(--body); text-align: center; }
.app-sec { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px; margin-top: 18px; }
.app-sec b { font: 600 13px/1 var(--body); }
.app-sec span { font: 500 10.5px/1 var(--body); color: #6F655B; }
.app-away { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-chip { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 12px; min-width: 0; }
.app-chip .d { flex: none; width: 22px; height: 22px; border-radius: 7px; color: #fff; font: 700 10px/22px var(--body); text-align: center; }
.app-chip b { display: block; font: 600 10.5px/1.15 var(--body); white-space: nowrap; }
.app-chip em { display: block; font: 500 9.5px/1.2 var(--body); font-style: normal; color: #6F655B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-chip em.due { color: #B5452C; }
.app-chip > span:last-child { min-width: 0; }
.app-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 9px; }
.app-meta { margin-top: 5px; font: 500 9.5px/1.2 var(--body); color: #6F655B; padding-left: 2px; }

/* A notebook cover: spine shadow on the left, a soft sheen */
.cv {
  position: relative;
  aspect-ratio: 89 / 119;
  border-radius: 10px 12px 12px 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px -6px rgba(40, 25, 10, .35);
}
.cv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: rgba(0, 0, 0, .14); }
.cv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%); }
.cv b { position: absolute; left: 14%; right: 8%; bottom: 9%; font: 600 12.5px/1.1 var(--display); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); z-index: 2; }
.cv .turn { position: absolute; right: 6px; top: 6px; padding: 3px 5px; border-radius: 7px; background: rgba(255, 255, 255, .88); font: 700 7px/1 var(--body); letter-spacing: .04em; color: #1F1A16; z-index: 3; }
.cv.sage { background: linear-gradient(160deg, #9DB07E, #7E9361); }
.cv.plum { background: linear-gradient(160deg, #9C7395, #7C5776); }
.cv.slate { background: linear-gradient(160deg, #7F9BB0, #5F7C92); }
.cv.terracotta { background: linear-gradient(160deg, #D08A6C, #B2694C); }
.cv.teal { background: linear-gradient(160deg, #6FA597, #4F8476); }
.cv.new { background: transparent; border: 1.5px dashed #C9BCAE; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.cv.new::before, .cv.new::after { display: none; }
.cv.new i { width: 28px; height: 28px; border-radius: 50%; background: #1F1A16; color: #F5F0E8; font: 400 18px/27px var(--body); font-style: normal; text-align: center; }
.cv.new span { font: 600 9.5px/1 var(--body); color: #6D6258; }

/* Sections */
.section { padding-block: clamp(80px, 12vw, 160px); }
.center { text-align: center; }
.narrow { max-width: 36rem; }
.narrow .soon { margin-top: 36px; }
.section-head { max-width: 40rem; }
.section h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.section .sub { margin-top: 18px; color: var(--ink-soft); font-size: 1.15rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.step { padding: 26px 24px; border-radius: 24px; display: grid; gap: 10px; align-content: start; }
.step .hand { font: 600 1.6rem/1 var(--hand); color: var(--pen); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--ink-soft); font-size: 1rem; }

/* Three ways: just the object, a name and one line */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 6vw, 72px); margin-top: clamp(48px, 7vw, 80px); text-align: center; }
.way .object { height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.way .object svg { width: auto; height: 120px; overflow: visible; }
.way h3 { font-size: 1.5rem; }
.way p { margin-top: 8px; color: var(--ink-soft); }
.way .object svg, .way .card, .way .bow { transform-box: fill-box; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.way-pass .object svg { transform-origin: 50% 0; }
.way-give .object svg { transform-origin: 50% 100%; }
.way-give .bow { transform-origin: 50% 80%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .way-pass:hover .object svg { animation: swing 1.1s ease-in-out; }
  .way-lend:hover .card { transform: translateY(-14px) rotate(-4deg); }
  .way-give:hover .object svg { animation: hop .7s cubic-bezier(.34, 1.56, .64, 1); }
  .way-give:hover .bow { transform: scale(1.18); }
}
@keyframes swing { 0% { transform: rotate(0); } 20% { transform: rotate(12deg); } 45% { transform: rotate(-9deg); } 70% { transform: rotate(5deg); } 100% { transform: rotate(0); } }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-12px) scale(1.03); } 60% { transform: translateY(0) scale(.98, 1.02); } 100% { transform: none; } }

/* Promises */
.promises { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.promises li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border-radius: 22px; }
.promises .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.promises svg { width: 20px; height: 20px; }
.promises strong { display: block; font-weight: 600; margin-bottom: 4px; }
.promises span { color: var(--ink-soft); font-size: .98rem; }

/* Closing */
.closing { text-align: center; }
.closing-card { max-width: 720px; margin: 0 auto; padding: clamp(36px, 6vw, 56px) clamp(20px, 5vw, 48px); border-radius: 36px; display: grid; justify-items: center; gap: 24px; }
.closing .hand { font: 600 clamp(1.8rem, 4vw, 2.4rem)/1.25 var(--hand); color: var(--pen); max-width: 28ch; }

/* Footer */
.site-footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--ink-faint);
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* Text pages: privacy, support, invite, 404 */
.page { max-width: var(--measure); margin: 0 auto; padding-block: clamp(24px, 5vw, 56px) 80px; }
.page h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); letter-spacing: -.02em; }
.page .updated { margin-top: 12px; color: var(--ink-soft); }
.page .summary { margin-top: 28px; padding: 22px 24px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.page .summary p + p { margin-top: 10px; }
.page h2 { font-size: 1.55rem; margin-top: 48px; margin-bottom: 12px; }
.page h3 { font-family: var(--body); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; margin-top: 24px; margin-bottom: 6px; }
.page p + p, .page p + ul, .page ul + p, .page .table-scroll + p { margin-top: 12px; }
.page ul { padding-left: 1.2em; margin: 0; }
.page li + li { margin-top: 6px; }
.page table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .96rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
.page th { font-weight: 600; font-size: .85rem; color: var(--ink-faint); }
.table-scroll { overflow-x: auto; }

.faq { margin-top: 16px; display: grid; gap: 8px; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 14px; top: 50%;
  width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%;
  background: var(--tint);
  font: 400 1.1rem/28px var(--body); text-align: center;
  color: var(--ink);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-soft); }
.faq details > div p + p { margin-top: 10px; }

.contact { margin-top: 28px; padding: 22px 24px; border-radius: 22px; background: var(--sheet); box-shadow: 0 10px 40px -16px rgba(30, 20, 10, .25); display: grid; gap: 6px; }
.contact .address { font: 600 1.2rem/1.3 var(--body); user-select: all; word-break: break-all; }
.contact span:last-child { color: var(--ink-soft); font-size: .95rem; }

.invite { text-align: center; }
.invite .hand { font: 600 1.9rem/1.2 var(--hand); color: var(--pen); margin-bottom: 8px; }
.invite-notebook { width: 120px; margin: 24px auto 20px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .promises { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .app-away { grid-template-columns: minmax(0, 1fr); }
}
