/* Node Paper's site: ink on white, coloured only by the app's own link highlights. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1d3557;
  --ink-soft: #4f6680;
  --ink-faint: #5b708a;
  --paper: #ffffff;
  --mist: #f3f6f8;
  --mist-raised: #f7f9fb;
  --rule: #e3e9ed;
  --rule-strong: #d9e2e8;
  --grid: #e4ebef;
  --focus: #2f6fdb;

  /* The app's link highlights, by kind. */
  --place: #bff0cc;
  --place-ink: #135a2f;
  --person: #fbd1e6;
  --person-ink: #872056;
  --item: #cfe0ff;
  --item-ink: #1b4a93;
  --room: #ffe3a3;
  --room-ink: #6e4600;

  --font: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --radius: 8px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
}
a:hover {
  color: var(--focus);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

img {
  max-width: 100%;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus {
  top: 12px;
  color: #ffffff;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------ header and footer */

.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-size: 16px;
  font-weight: 500;
}
.nav a:not(.btn) {
  text-decoration: none;
}
/* On a phone the header keeps the name and the button; the sections are a scroll away. */
@media (max-width: 600px) {
  .nav-wide {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid var(--rule);
}
.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
}
.site-footer .about {
  flex: 1 1 320px;
  max-width: 460px;
}
.site-footer .name {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
}
.site-footer .about p:not(.name) {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.site-footer .nav {
  font-size: 15px;
}

/* ------------------------------------------------------------ type and buttons */

.title {
  margin-bottom: 24px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.lead {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.section-head {
  max-width: 760px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: #ffffff;
}
.btn-primary:hover {
  background: #142843;
  border-color: #142843;
  color: #ffffff;
}
.btn-outline {
  background: var(--paper);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--mist);
  color: var(--ink);
}
.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
}
.btn-large {
  min-height: 54px;
  padding: 0 28px;
  font-size: 18px;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

/* Links in the app's colours, by what they point at. */
.chip {
  padding: 0.06em 0.3em;
  border-radius: 0.28em;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.chip-place {
  background: var(--place);
  color: var(--place-ink);
}
.chip-person {
  background: var(--person);
  color: var(--person-ink);
}
.chip-item {
  background: var(--item);
  color: var(--item-ink);
}
.chip-room {
  background: var(--room);
  color: var(--room-ink);
}

/* A relation's name, as the app writes it on a link: dashed when it's a guess
   from your words, filled when it's one you kept (as facts are). */
.rel {
  display: inline-block;
  padding: 0 0.4em;
  border: 1.5px dashed var(--place-ink);
  border-radius: 0.3em;
  color: var(--place-ink);
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  vertical-align: 0.06em;
}
.rel.kept {
  border-style: solid;
  border-color: var(--place);
  background: var(--place);
}

/* A label above a line, as the app shows it ("fact"). */
.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  border: 1.5px solid currentColor;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}
.tag-person {
  color: var(--person-ink);
}

/* ------------------------------------------------------------ hero */

.hero {
  overflow: hidden;
}
.hero .wrap {
  padding-top: 80px;
  padding-bottom: 104px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px 56px;
}
.hero-copy {
  flex: 1 1 400px;
  max-width: 520px;
}
.hero-copy .lead {
  margin-bottom: 36px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}
.actions .text-link {
  font-size: 17px;
}
.hero-note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-faint);
}

.hero-art {
  flex: 1.4 1 540px;
  min-width: 0;
}

/* The devices are laid out at 760×520 and scaled to the width they get (site.js;
   the steps below stand in without it). */
.stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 760 / 520;
  --stage-scale: 0.75;
}
@media (max-width: 1000px) {
  .stage {
    --stage-scale: 0.9;
  }
}
@media (max-width: 760px) {
  .stage {
    --stage-scale: 0.6;
  }
}
@media (max-width: 480px) {
  .stage {
    --stage-scale: 0.44;
  }
}
.stage-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 760px;
  height: 520px;
  transform-origin: 0 0;
  transform: scale(var(--stage-scale));
}
.grid-nod {
  position: absolute;
  inset: -10% -14%;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 58% 55% at 58% 48%, #000000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 55% at 58% 48%, #000000 25%, transparent 72%);
}
.laptop {
  position: absolute;
  left: 124px;
  top: 18px;
  transform-origin: 0 0;
  transform: scale(0.86);
}
.hero-phone {
  position: absolute;
  left: 0;
  top: 86px;
  transform-origin: 0 0;
  transform: scale(0.5);
  filter: drop-shadow(0 26px 30px rgba(21, 40, 66, 0.32));
}

/* A phone's screen: the app between the safe areas, as a home-screen app sits. */
.device-iphone-14-pro .device-screen.app-screen {
  background: linear-gradient(#f4f7f8 50%, #fbfcfc 50%);
  padding: 47px 0 21px;
  overflow: hidden;
}
.app-screen img {
  display: block;
  width: 390px;
  height: 762px;
}

/* ------------------------------------------------------------ sections */

.section {
  border-top: 1px solid var(--rule);
}
.section > .wrap {
  padding-top: 104px;
  padding-bottom: 104px;
}

.how-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 72px;
  margin-top: 64px;
}
.examples {
  flex: 1 1 520px;
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.example {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.example-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.example-line {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
}
.example-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.example-text strong {
  color: var(--ink);
}

.phone-figure {
  flex: 1 1 480px;
  max-width: 520px;
  margin: 0 auto;
}
.phone-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 18px;
}
.phone-figure .phone-box {
  width: 235px;
  height: 477px;
  filter: drop-shadow(0 26px 30px rgba(21, 40, 66, 0.28));
}
.phone-figure .phone-scale {
  transform-origin: 0 0;
  transform: scale(0.55);
}
.phone-figure figcaption {
  margin: 24px auto 0;
  max-width: 340px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}

/* Four across, two by two, then one above another. */
.also,
.more-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.more-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .also,
  .more-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .also,
  .more-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.also {
  gap: 36px 48px;
  margin-top: 88px;
}
.also h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.also p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.band {
  background: var(--mist);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band .wrap {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}
.band .wrap > div {
  flex: 1 1 420px;
}
.band h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.band p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}
/* The band follows a section with no rule of its own. */
.band + .section {
  border-top: 0;
}

/* Free and paid, side by side; the 1px gap draws the rule between them, either way they wrap. */
.compare {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 56px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  overflow: hidden;
}
.plan {
  flex: 1 1 380px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--paper);
}
.plan-sync {
  background: var(--mist-raised);
}
.plan h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}
.plan-summary {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-more {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-faint);
}
.checks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
  line-height: 1.5;
}
.checks li {
  display: flex;
  gap: 12px;
}
.checks li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%231d3557' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.plan-action {
  margin-top: auto;
}

.more > .wrap {
  padding-top: 88px;
}
.more h2 {
  margin-bottom: 36px;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.more-list {
  gap: 8px 40px;
  list-style: none;
  padding: 0;
}
.more-list li {
  padding: 22px 0 8px;
  border-top: 2px solid var(--ink);
}
.more-list .name {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  text-decoration: none;
}
.more-list p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.more-list p.soon {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------ pages past the first */

.page-head {
  border-bottom: 1px solid var(--rule);
}
.page-head .wrap {
  padding-top: 72px;
  padding-bottom: 64px;
}
.page-head .title {
  max-width: 900px;
  font-size: clamp(38px, 4.6vw, 60px);
}
.page-head .lead {
  max-width: 720px;
}

/* A page in sections, each with a heading you can link to. */
.doc > .wrap {
  padding-top: 24px;
  padding-bottom: 104px;
}
.doc section {
  max-width: 760px;
  padding-top: 64px;
  scroll-margin-top: 16px;
}
.doc section.wide {
  max-width: none;
}
.doc h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.doc h3 {
  margin: 28px 0 8px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 750;
}
.doc p,
.doc li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.doc p + p,
.doc p + ul,
.doc ul + p,
.doc p + ol,
.doc ol + p {
  margin-top: 16px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 8px;
}
.doc strong {
  color: var(--ink);
}
.doc a:not(.anchor):not(.btn) {
  text-underline-offset: 3px;
}
.doc code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--mist);
  font-size: 0.9em;
}

/* The # after a heading: copy it to link straight to that part of the page. */
.anchor {
  margin-left: 4px;
  color: var(--ink-faint);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
}
h2:hover .anchor,
h3:hover .anchor,
.anchor:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .anchor {
    opacity: 0.45;
  }
}

/* A question and its answer. */
.qa {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 16px;
}
.qa:last-child {
  border-bottom: 1px solid var(--rule);
}
.qa h2 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.doc .qa-list {
  max-width: 760px;
  padding-top: 40px;
}

/* The worked example: steps in order, each with what the app shows. */
.steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 48px;
  counter-reset: step;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.doc .steps li {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 28px;
}
.step-text {
  flex: 1 1 220px;
}
.step-text h3 {
  margin-top: 0;
}
.step-text h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 15px;
  vertical-align: 2px;
}
.step-phone {
  flex: none;
  width: 266px;
  height: 539px;
  margin: 0 auto;
  filter: drop-shadow(0 22px 26px rgba(21, 40, 66, 0.25));
}
.step-phone .phone-scale {
  transform-origin: 0 0;
  transform: scale(0.62);
}

.note-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--mist);
}
.doc .note-box p {
  font-size: 16px;
}

/* ------------------------------------------------------------ footer: contact and pages */

.site-footer .contact {
  margin-top: 14px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 40px;
  font-size: 15px;
  font-weight: 500;
}
.footer-nav a {
  text-decoration: none;
}
.more-sync {
  margin-top: 28px;
  font-size: 16px;
}
