:root {
  --ink: #15181C;
  --ink-2: #4A5058;
  --muted: #6B727B;
  --line: #E3E7EB;
  --paper: #FFFFFF;
  --soft: #F1F5F8;
  --sky: #0B93D9;
  --orange: #FF9A1F;
  --violet: #8A3FD6;
  --green: #2DBE3C;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Geist, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--sky); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
img { display: block; }
h1, h2, h3, p, figure { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.accent { color: var(--sky); }
.sq { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; font-weight: 500; transition: background .15s, color .15s; }
.btn-sm { height: 40px; padding: 0 18px; border-radius: 12px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--sky); color: #fff; }
.btn-white { height: 58px; padding: 0 26px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 600; }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-pill { align-self: flex-start; height: 50px; padding: 0 24px; border-radius: 999px; background: #221B1E; color: #fff; font-size: 15px; }
.btn-pill:hover { background: var(--sky); color: #fff; }
.btn-store {
  height: 56px; padding: 0 24px 0 20px; border-radius: 14px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; gap: 10px; transition: background .15s;
}
.btn-store:hover { background: var(--sky); color: #fff; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: 11px; opacity: .75; }
.store-text b { font-size: 17px; font-weight: 600; }

/* Nav */
.nav { padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--sky); }

/* Hero */
.hero { padding-top: 64px; padding-bottom: 40px; }
.crumb { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.display {
  margin-top: 22px; font-family: var(--display); font-weight: 700;
  font-size: clamp(52px, 9vw, 128px); line-height: .92; letter-spacing: -0.045em;
  max-width: 1050px; text-wrap: balance;
}
.hero-row {
  margin-top: 34px; display: grid; gap: 28px 64px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.lede { max-width: 520px; font-size: 19px; line-height: 29px; color: var(--ink-2); text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 500; }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Folder sheet */
.sheet-section { padding-top: 78px; padding-bottom: 100px; }
.folder { position: relative; }
.folder-tab {
  position: absolute; left: 0; top: -34px; height: 34px; width: min(260px, 60%);
  border-radius: 16px 16px 0 0; background: var(--soft); color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; padding: 0 18px;
}
.folder-body { background: var(--soft); border-radius: 0 22px 22px 22px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.sheet-row { display: flex; gap: 14px; }
.sheet-row figure { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ph { height: clamp(120px, 17vw, 220px); border-radius: 12px; background: #E3E9EE center / cover no-repeat; }
figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); padding: 0 2px; white-space: nowrap; overflow: hidden; }
figcaption span:first-child { overflow: hidden; text-overflow: ellipsis; }
.places { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.places-title { font-size: 15px; font-weight: 500; margin-right: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.chip .sq { width: 7px; height: 7px; }

/* Sections */
.section { padding-top: 100px; padding-bottom: 100px; }
.section-tail { padding-bottom: 110px; }
#features { padding-top: 40px; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 64px); line-height: .98; letter-spacing: -0.04em; text-wrap: balance; }
.h3 { margin-bottom: 40px; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -0.035em; }
.body-lg { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 460px; }
.split-head { display: grid; gap: 24px 64px; align-items: end; margin-bottom: 64px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.two-col { display: grid; gap: 56px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }

/* Feature cards */
.cards { display: grid; gap: 46px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { position: relative; margin-top: 30px; }
.card-tab {
  position: absolute; left: 0; top: -30px; height: 30px; width: 76px; border-radius: 12px 12px 0 0;
  background: var(--tint); color: var(--tab); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500;
}
.card-body { background: var(--tint); border-radius: 0 20px 20px 20px; padding: 28px 24px 30px; min-height: 230px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-family: var(--display); font-size: 23px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: #15181C; }
.card p { font-size: 15px; line-height: 23px; color: #3A4048; text-wrap: pretty; }

/* Search (dark) */
.dark { background: var(--ink); color: #fff; }
.on-dark { color: rgba(255, 255, 255, .72); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag { height: 34px; padding: 0 12px; border-radius: 9px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; font-size: 12px; color: rgba(255, 255, 255, .85); }
.searchbar { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 18px; }
#query { white-space: nowrap; overflow: hidden; }
.caret { width: 2px; height: 22px; background: var(--sky); margin-left: -8px; animation: caret 1s step-end infinite; }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.queries { display: flex; flex-wrap: wrap; gap: 6px; }
.queries button {
  height: 32px; padding: 0 12px; border-radius: 9px; border: 0; cursor: pointer; font-size: 12px;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s;
}
.queries button:hover { background: rgba(255, 255, 255, .16); }
.queries button[aria-pressed="true"] { background: var(--sky); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.result { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #2A2F36 center / cover no-repeat; animation: rise .35s ease both; }
.result:nth-child(2) { animation-delay: .04s; } .result:nth-child(3) { animation-delay: .08s; }
.result:nth-child(4) { animation-delay: .12s; } .result:nth-child(5) { animation-delay: .16s; } .result:nth-child(6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result span { position: absolute; left: 6px; bottom: 6px; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(21, 24, 28, .75); font-size: 10px; color: #fff; display: flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .result { animation: none; } .caret { animation: none; } }

/* Organize */
#organize { padding-top: 110px; }
.actions { border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.action { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.action + .action { border-top: 1px solid var(--line); }
.action-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.action-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.action-text { flex: 1; font-size: 16px; line-height: 22px; }
.next { font-size: 11px; color: #9AA0A8; }
.toast { padding: 16px 22px; background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.toast b { font-weight: 600; color: var(--sky); }

/* Gestures */
.gestures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line); }
.gesture { padding: 26px 24px 30px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.gesture .mono { font-size: 12px; }
.gesture h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.gesture p { font-size: 15px; line-height: 23px; color: var(--ink-2); max-width: 260px; }

/* Download */
.cta {
  border-radius: 28px; background: var(--sky); color: #fff; padding: clamp(40px, 6vw, 80px);
  display: grid; gap: 36px; align-items: end; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.cta-title { font-size: clamp(40px, 5.5vw, 72px); line-height: .95; letter-spacing: -0.045em; }

/* Footer */
.footer { padding: 0 12px 12px; overflow: hidden; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px) 0; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.footer-brand { flex: 2 1 320px; display: flex; flex-direction: column; gap: 20px; }
.footer-brand .brand { font-family: Geist, sans-serif; font-weight: 600; letter-spacing: -0.2px; gap: 12px; }
.footer-brand .brand img { width: 54px; }
.footer-line { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.4px; max-width: 400px; text-wrap: balance; }
.footer-line em { font-style: italic; }
.footer-cols { display: flex; gap: 32px; flex: 0 1 352px; }
.footer-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.footer-head { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6B4FB8; }
.wordmark {
  margin-top: clamp(56px, 8vw, 96px); font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 14.5vw, 196px); line-height: .8; letter-spacing: -0.04em; white-space: nowrap;
  color: #221B1E; text-align: center; transform: translateY(.12em);
}
.wordmark em { font-style: italic; }

/* Small screens */
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .hero { padding-top: 36px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .sheet-section { padding-bottom: 72px; }
  .sheet-row { gap: 10px; }
  .folder-body { gap: 12px; padding: 10px; }
}

/* Simple pages (privacy, support) */
.page { max-width: 720px; margin: 0 auto; padding: 48px 24px 120px; }
.page h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px; }
.page h2 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.page p, .page li { font-size: 17px; line-height: 27px; color: var(--ink-2); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 20px; margin: 10px 0 0; }
.page a:not(.btn) { color: var(--sky); }
.page .updated { color: var(--muted); }
