/* The app's design system (app/lib/app/theme/mono.dart) on the web: same tones, type and components. */

@font-face { font-family: Geist; src: url(/fonts/Geist-Light.ttf) format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --page: #f3f3f1;
  --card: #ffffff;
  --pill: #f3f3f1;
  --hover: #e8e8e5;
  --line: #e4e4e0;
  --ink: #111111;
  --muted: #6b6b6b;
  --faint: #a3a3a0;
  --accent: #ff6b1a;
  --accent-soft: #ffe9dc;
  --shadow: 0 8px 18px -6px rgba(17, 17, 17, 0.04), 0 1px 2px rgba(17, 17, 17, 0.024);
  --accent-shadow: 0 16px 30px -10px rgba(255, 107, 26, 0.28);
  --edge: var(--line);
  --blue: #4c8df6;
  --green: #2fbf71;
  --orange: #ff8a3d;
  --purple: #9b7bf7;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0b0b;
    --card: #1a1a1a;
    --pill: #262626;
    --hover: #222222;
    --line: #2a2a2a;
    --ink: #f4f4f4;
    --muted: #a3a3a3;
    --faint: #6e6e6e;
    --accent-soft: #3a2414;
    --shadow: none;
    --accent-shadow: 0 16px 30px -10px rgba(255, 107, 26, 0.18);
    --edge: transparent;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.5 Geist, -apple-system, "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
::selection { background: rgba(255, 107, 26, 0.25); }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }

.wrap { max-width: 1264px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* Top bar: the lockup on the left, pills on the right. */
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-top: 14px; }
.lockup { display: inline-flex; align-items: center; gap: 0.48em; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.mark { width: 1.37em; height: 1.37em; display: block; }
.mark rect { fill: var(--ink); }
.mark path { fill: none; stroke-width: 108.54; }
.mark .s { stroke: var(--page); }
.mark .sd { fill: var(--page); }
.mark .o { stroke: var(--accent); }
.mark .od { fill: var(--accent); }
.bar nav { display: flex; align-items: center; gap: 6px; }
.quiet { display: inline-flex; align-items: center; height: 46px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); text-decoration: none; transition: color 0.2s, background 0.2s; }
.quiet:hover { color: var(--ink); background: var(--hover); }

/* Pills and buttons, as in the app. */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--edge); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background 0.2s; }
a.pill:hover { background: var(--hover); }
.pill.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.next { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 28px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; box-shadow: 0 12px 26px -8px rgba(255, 107, 26, 0.35); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.next svg.i { font-size: 24px; }
.next:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -8px rgba(255, 107, 26, 0.42); }
.next:active { transform: scale(0.98); }
.primary { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--page); font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }

/* Headlines: Geist Light, tight, one line per row, the last full stop in orange. */
.display { margin: 0; font-weight: 300; font-size: var(--size, clamp(44px, 6.4vw, 96px)); line-height: 1.12; letter-spacing: -0.045em; }
.display .ln { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.display .ln > span { display: inline-block; }
.display .muted { color: var(--faint); }
.stop { color: var(--accent); }
.arrow { display: inline-block; width: 1.3em; height: 0.5em; margin-left: 0.22em; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.caret { display: inline-block; width: 0.13em; height: 0.82em; margin-left: 0.08em; border-radius: 1em; background: var(--accent); vertical-align: middle; }
.discs { display: inline-flex; margin-left: 0.22em; vertical-align: middle; }
.discs i { width: 0.78em; height: 0.78em; border-radius: 50%; border: max(2px, 0.045em) solid var(--page); }
.discs i + i { margin-left: -0.22em; }
.pitch { margin: 14px 0 0; max-width: 30em; font-size: clamp(16.5px, 1.5vw, 20px); line-height: 1.45; letter-spacing: -0.01em; color: var(--muted); }

/* Sections: words on the left, the app on the right. */
.hero { display: grid; grid-template-columns: 11fr 10fr; gap: 56px; align-items: center; min-height: min(820px, calc(100svh - 70px)); padding: 24px 0 40px; }
.story { display: grid; grid-template-columns: 11fr 10fr; gap: 56px; align-items: center; padding: 120px 0; }
.story + .story { padding-top: 40px; }
.stage { position: relative; }
@media (max-width: 900px) {
  .hero, .story { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero .display, .story .display { --size: min(12.4vw, 88px); }
  .hero { padding-top: 40px; }
  .story { padding: 72px 0; }
  .story + .story { padding-top: 24px; }
}

/* Note cards (NoteCardView). */
.peek { height: 640px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent 97%); mask-image: linear-gradient(#000 62%, transparent 97%); }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.columns > div { display: grid; gap: 12px; }
.columns > div + div { margin-top: 38px; }
.note { padding: 12px 10px 16px 16px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); --sub: var(--muted); --meta: var(--faint); }
.note.featured { background: var(--accent); color: #fff; box-shadow: var(--accent-shadow); --sub: rgba(255, 255, 255, 0.86); --meta: rgba(255, 255, 255, 0.78); }
.note-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; color: var(--meta); }
.note-top svg.i { font-size: 20px; margin-right: 6px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--meta); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--meta)); }
.badge { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 12px; font-weight: 500; color: #fff; }
.note h3 { margin: 6px 6px 0 0; font-size: 18px; font-weight: 500; line-height: 1.22; letter-spacing: -0.025em; }
.note.featured h3 { font-size: 21px; }
.note p { margin: 8px 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--sub); }
.note-foot { display: flex; align-items: center; justify-content: space-between; margin: 14px 6px 0 0; font-size: 12.5px; font-weight: 500; color: var(--meta); }
.note-foot svg.i { font-size: 15px; }
.checks { list-style: none; margin: 12px 6px 0 0; padding: 0; display: grid; gap: 6px; }
.check, .media { display: block; height: 34px; line-height: 34px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--pill); font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check::before { content: ""; display: inline-block; vertical-align: middle; width: 15px; height: 15px; margin: -2px 9px 0 0; border-radius: 50%; border: 1.5px solid var(--faint); }
.check.done { color: var(--faint); text-decoration: line-through; }
.check.done::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 12px no-repeat; }
.featured .check, .featured .media { background: #fff; color: #111; }
.featured .check::before { border-color: #9a9a9a; }
.featured .check.done { color: #9a9a9a; }
.media { padding-left: 10px; }
.media svg.i { font-size: 16px; color: var(--accent); vertical-align: middle; margin: -2px 8px 0 0; }

/* Typing demo: a suggestion appears in grey and is kept. */
.compose { max-width: 440px; margin: 0 auto; padding: 18px 22px 20px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.compose h3 { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; }
.compose .meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.compose .meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.compose .meta span { color: var(--faint); }
.compose .body { height: calc(17px * 1.55 * 3); margin-top: 14px; font-size: 17px; line-height: 1.55; letter-spacing: -0.012em; }
.compose .ghost { color: var(--faint); transition: color 0.35s, opacity 0.4s; }
.compose .ghost.kept { color: var(--ink); }
.compose .cur { display: inline-block; width: 2.5px; height: 21px; margin: 0 1.5px; border-radius: 2px; background: var(--accent); vertical-align: middle; }
.compose .chips { display: flex; align-items: center; gap: 14px; height: 40px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--muted); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.compose .use { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; letter-spacing: -0.01em; transition: transform 0.12s; }
.compose .use svg.i { font-size: 17px; }
.compose .use.pressed { transform: scale(0.94); }
.compose .chips.hidden { opacity: 0; transform: translateY(6px); }

/* Notebooks as folders (FolderCard). The outline is drawn by site.js; without it the card is a plain rounded box. */
.folder { position: relative; isolation: isolate; height: 196px; padding: 30px 14px 14px 16px; display: flex; flex-direction: column; color: var(--ink); }
.folder > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; }
.folder > svg .shape { fill: var(--card); }
.folder > svg .sheet { fill: var(--c); opacity: 0.35; }
.folder:not(.drawn) { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
@media (prefers-color-scheme: light) { .folder > svg { filter: drop-shadow(0 8px 12px rgba(17, 17, 17, 0.05)); } }
@media (prefers-color-scheme: dark) { .folder > svg .sheet { opacity: 0.5; } }
.folder .initial { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--c); color: #fff; font-size: 16px; font-weight: 600; }
.folder h3 { margin: 12px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.folder .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.folder .count { padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--page); font-size: 12px; font-weight: 600; }
.folder .go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pill); }
.folder .go svg.i { font-size: 16px; }
.folders { max-width: 520px; width: 100%; margin: 0 auto; }

/* Privacy as three status cards. */
.status { display: grid; gap: 12px; max-width: 440px; margin: 0 auto; }
.state { display: flex; align-items: center; gap: 14px; padding: 16px 14px 16px 16px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); --soft: var(--pill); --sub: var(--muted); }
.state.on { background: var(--accent); color: #fff; box-shadow: var(--accent-shadow); --soft: rgba(255, 255, 255, 0.2); --sub: rgba(255, 255, 255, 0.86); }
.state .ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); }
.state .ic svg.i { font-size: 20px; }
.state div { flex: 1; min-width: 0; }
.state strong { display: block; font-size: 16.5px; font-weight: 500; letter-spacing: -0.015em; }
.state span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--sub); }
.state em { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 500; font-style: normal; color: var(--sub); }
.state.on em { color: #fff; }
.small-print { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 30em; font-size: 15px; line-height: 1.5; color: var(--muted); }
.small-print strong { font-weight: 500; color: var(--ink); }

/* Everything else, as cards. */
.more { padding: 120px 0 40px; }
.more .head { max-width: 760px; margin-bottom: 48px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; padding: 16px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.tile.wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.tile.wide .shot { order: 2; min-height: 0; padding: 0; }
.tile.wide .text { display: flex; flex-direction: column; justify-content: flex-end; }
.panel { display: grid; gap: 6px; padding: 12px 12px 14px 14px; border-radius: 20px; background: var(--pill); }
.panel strong { margin-top: 2px; font-size: 17px; font-weight: 500; letter-spacing: -0.025em; }
.panel .prose { margin-bottom: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.panel .media { background: var(--card); }
.tile .shot { display: grid; align-content: start; gap: 6px; min-height: 176px; padding: 4px 0 20px; }
.tile h3 { margin: auto 4px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.025em; }
.tile p { margin: 4px 4px 4px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.bubble { justify-self: end; max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--ink); color: var(--page); font-size: 14px; font-weight: 500; }
.answer { padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--pill); font-size: 14px; line-height: 1.45; }
.answer .tag { margin-top: 8px; display: flex; color: var(--muted); }
.flash { display: grid; place-items: center; min-height: 118px; padding: 16px; border-radius: 20px; background: var(--pill); text-align: center; font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.flash small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.progress { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.progress i { width: 6px; height: 6px; border-radius: 3px; background: var(--faint); opacity: 0.45; }
.progress i.on { width: 22px; background: var(--ink); opacity: 1; }
.progress i.done { background: var(--muted); opacity: 1; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--pill); font-size: 15px; color: var(--ink); }
.search svg.i { font-size: 20px; color: var(--muted); }
.search .cur { width: 2px; height: 18px; border-radius: 1px; background: var(--accent); margin-left: -8px; }
.hit { padding: 8px 6px 0; font-size: 14px; line-height: 1.4; }
.hit strong { display: block; font-weight: 500; letter-spacing: -0.01em; }
.hit span { color: var(--muted); }
.hit mark { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 0 2px; }
.summary { font-size: 14px; line-height: 1.45; color: var(--muted); padding: 4px 4px 2px; }
.summary b { display: block; font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0.02em; margin-bottom: 2px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; grid-template-columns: 1fr; }
  .tile.wide .shot { order: 0; }
}

.closing { padding: 120px 0 96px; }
.closing .actions { margin-top: 32px; }

/* Footer. */
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 28px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
footer .lockup { font-size: 15px; }
footer .left { display: flex; align-items: center; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--ink); }

/* Documents: privacy, terms, support. */
.doc { max-width: 760px; padding: 64px 0 104px; }
.doc .display { --size: clamp(40px, 6.2vw, 68px); white-space: normal; }
.doc .updated { margin: 14px 0 48px; font-size: 15px; color: var(--faint); }
.doc h2 { margin: 52px 0 10px; font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.025em; }
.doc h3 { margin: 28px 0 6px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.62; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--faint); }
.doc strong { font-weight: 500; }
.doc a { text-decoration-color: var(--faint); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { text-decoration-color: var(--accent); }
.doc table { width: 100%; margin: 16px 0 20px; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; line-height: 1.5; }
.doc th, .doc td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-weight: 500; background: var(--pill); }
.doc td { color: var(--muted); }
.doc td:first-child { color: var(--ink); }
.doc .card { margin: 0 0 12px; padding: 22px 22px 24px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.doc .card p { margin: 0 0 18px; }
.doc .card p:last-child { margin: 0; }
.doc .card .primary, .doc .card .next { text-decoration: none; }
.doc .points { list-style: none; padding: 0; display: grid; gap: 12px; }
.doc .points li { margin: 0; padding: 18px 20px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); color: var(--muted); }
.doc .points li a { color: var(--ink); text-decoration: none; }
.doc .points li a:hover { color: var(--accent); }
.qa { display: grid; gap: 12px; margin-top: 12px; }
.qa section { padding: 20px 22px 8px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); scroll-margin-top: 24px; }
.qa h2 { margin: 0 0 6px; font-size: 19px; }
.qa p { color: var(--muted); }
.lost { min-height: calc(100svh - 70px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 80px; }

/* Entrances, like the app's Rise and line reveal. Only with JavaScript, and never with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(18px); transition: opacity 0.56s var(--ease), transform 0.56s var(--ease); transition-delay: var(--d, 0ms); }
  .js .rise.in { opacity: 1; transform: none; }
  .js .reveal .ln > span { transform: translateY(105%); transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1); }
  .js .reveal.in .ln > span { transform: none; }
  .js .reveal.in .ln:nth-child(1) > span { transition-delay: 40ms; }
  .js .reveal.in .ln:nth-child(2) > span { transition-delay: 120ms; }
  .js .reveal.in .ln:nth-child(3) > span { transition-delay: 200ms; }
}
