/* Nautilus: the shared frame for every page. Cream paper, navy ink and
   outlines, flat buttons on a hard navy edge. Each app page adds its own
   accent inside this frame (see the app folders). */

:root {
  --paper: #f6efe3;
  --paper-2: #fdf9f1;
  --paper-3: #ece2d0;
  --ink: #12233d;
  --ink-2: #4a586c;
  --line: #0b2a5b;
  --blue: #1f7ce3;
  --blue-deep: #1557c0;
  --sky: #45b6ff;
  --navy: #2a5a8f;
  --gold: #ffb829;
  --orange: #f78c1f;
  --leaf: #4fa83d;
  --pink: #d93a6a;
  --red: #e5484d;

  /* One accent per app, used on the home page and in each app's pages. */
  --recall: #1f7ce3;
  --duet: #8b4ee8;
  --duet-blue: #1b63f9;
  --buckets: #2fc4b2;
  --buckets-rose: #c94f7c;

  --rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  --r-s: 10px; --r-m: 18px; --r-l: 28px;
  --hard-shadow: 0 4px 0 var(--line);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --appbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--rounded); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: rgba(18, 35, 61, .07); padding: .12em .4em; border-radius: 6px; }
kbd {
  display: inline-block; min-width: 1.9em; padding: .1em .5em; text-align: center;
  border: 1.5px solid currentColor; border-bottom-width: 3px; border-radius: 7px;
  font-weight: 600;
}
section { scroll-margin-top: 72px; }
.has-appbar section { scroll-margin-top: 64px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
figure { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.lede { font-size: 1.18rem; color: var(--ink-2); }
.fine { font-size: .9rem; color: var(--ink-2); }
.eyebrow { font-family: var(--rounded); font-weight: 700; color: var(--blue-deep); letter-spacing: .01em; }
.link { font-family: var(--rounded); font-weight: 700; color: var(--blue-deep); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link:hover { color: var(--ink); }
.underline { background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 92% / 100% .22em; }

.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head p { margin-top: var(--s4); font-size: 1.18rem; color: var(--ink-2); }

/* Buttons: a flat face on a hard navy edge, pressed down on click. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--rounded); font-weight: 700; font-size: 1.05rem; line-height: 1;
  padding: 16px 24px; border-radius: 16px; border: 2.5px solid var(--line);
  text-decoration: none; cursor: pointer; color: var(--ink);
  box-shadow: var(--hard-shadow);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #2b89ee; }
.btn--ghost { background: var(--paper-2); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--small { padding: 10px 16px; font-size: .95rem; border-radius: 12px; box-shadow: 0 3px 0 var(--line); }
.btn--small:hover { box-shadow: 0 5px 0 var(--line); }
/* A button for something that is not available yet: flat, no edge to press. */
.btn--soon, .btn--soon:hover, .btn--soon:active {
  background: transparent; color: var(--ink-2); border-style: dashed; box-shadow: none; transform: none; cursor: default;
}

/* Status chips: where each app can be had today. */
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px;
  font-family: var(--rounded); font-weight: 700; font-size: .85rem; line-height: 1.2;
  background: var(--paper-2); border: 2px solid var(--line);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); flex: none; }
.status--soon::before { background: var(--gold); box-shadow: 0 0 0 2px var(--line) inset; }

/* Company header */
.site-header { position: relative; z-index: 60; background: var(--paper); border-bottom: 1.5px solid rgba(11, 42, 91, .12); }
.home .site-header { position: sticky; top: 0; border-bottom-color: transparent; transition: border-color .2s; }
.home .site-header.is-stuck { border-bottom-color: rgba(11, 42, 91, .14); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--rounded); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; align-items: center; gap: var(--s2); }
.site-nav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 10px;
  text-decoration: none; font-family: var(--rounded); font-weight: 700; color: var(--ink-2);
}
.site-nav a img { width: 22px; height: 22px; }
.site-nav a:hover { color: var(--ink); background: rgba(11, 42, 91, .06); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--line); }

/* App bar: sticky under the company header on each app's pages. */
.appbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.appbar.is-stuck { border-bottom-color: rgba(11, 42, 91, .14); }
.appbar__row { display: flex; align-items: center; gap: var(--s5); min-height: 60px; }
.appbar__name { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--rounded); font-weight: 800; font-size: 1.2rem; margin-right: auto; }
.appbar__name img { width: 32px; height: 32px; }
.appbar__links { display: flex; align-items: center; gap: var(--s5); }
.appbar__links a { text-decoration: none; font-family: var(--rounded); font-weight: 600; color: var(--ink-2); padding: 6px 2px; white-space: nowrap; }
.appbar__links a:hover { color: var(--ink); box-shadow: 0 2.5px 0 var(--gold); }

/* Device frames around the app screenshots. Bezels use lengths, not
   percentages, so a narrow frame does not get a thick border. */
.mac { background: #0b0c0f; padding: clamp(5px, 1.1vw, 14px) clamp(5px, 1.1vw, 14px) clamp(6px, 1.3vw, 16px); border-radius: clamp(10px, 1.8vw, 22px); box-shadow: 0 24px 50px -24px rgba(18, 35, 61, .45); }
.mac img { width: 100%; border-radius: clamp(4px, .8vw, 10px); }
.ipad { background: #0b0c0f; padding: clamp(6px, 1.2vw, 14px); border-radius: clamp(12px, 2vw, 24px); }
.ipad img { width: 100%; border-radius: clamp(5px, 1vw, 12px); }
.phone { background: #1a2233; padding: clamp(4px, .55vw, 7px); border-radius: 16% / 7.4%; box-shadow: 0 24px 40px -18px rgba(18, 35, 61, .5); }
.phone img { width: 100%; border-radius: 14% / 6.4%; }
.shot img { width: 100%; border-radius: var(--r-s); border: 2px solid var(--line); }

/* Footer */
.footer { background: var(--ink); color: #c9d3e2; padding: var(--s8) 0 var(--s6); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s6); }
.footer .brand { color: #fff; margin-bottom: var(--s3); }
.footer .brand img { width: 32px; height: 32px; }
.footer p { max-width: 24em; }
.footer h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8fa0b8; margin-bottom: var(--s3); }
.footer nav a { display: block; padding: 5px 0; text-decoration: none; }
.footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer :focus-visible { outline-color: var(--gold); }
.footer__legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; color: #8fa0b8; }
.footer__legal p { max-width: none; }
.footer__legal p + p { margin-top: var(--s2); }

/* Long-form pages: privacy policies. */
.doc { padding: var(--s8) 0 var(--s9); }
.doc__body { max-width: 46rem; }
.doc__app { display: inline-flex; align-items: center; gap: 10px; font-family: var(--rounded); font-weight: 700; color: var(--ink-2); text-decoration: none; }
.doc__app img { width: 30px; height: 30px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: var(--s4) 0 var(--s2); }
.doc h2 { font-size: 1.45rem; margin: var(--s7) 0 var(--s3); }
.doc h3 { font-size: 1.1rem; margin: var(--s5) 0 var(--s2); }
.doc p, .doc li { margin: 0 0 var(--s3); }
.doc ul { padding-left: 1.3rem; }
.doc .meta { color: var(--ink-2); font-size: .92rem; margin-bottom: var(--s6); }
.doc .summary { background: var(--paper-2); border: 2.5px solid var(--line); border-radius: var(--r-m); box-shadow: 0 5px 0 var(--line); padding: var(--s5); margin-bottom: var(--s6); }
.doc .summary p:last-child { margin-bottom: 0; }
.doc a { color: var(--blue-deep); text-underline-offset: 3px; }
.doc hr { border: 0; border-top: 1.5px solid rgba(11, 42, 91, .14); margin: var(--s7) 0 var(--s5); }
.doc .colophon { font-size: .9rem; color: var(--ink-2); }

/* Entrances: only when script is running and motion is welcome. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: min(1160px, 100% - 32px); }
  .site-header__row { min-height: 58px; gap: var(--s2); }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 6px 7px; font-size: .95rem; }
  .site-nav a img { display: none; }
  .appbar__row { gap: var(--s3); min-height: 56px; }
  .appbar__links { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
