/* Knotflow site: simple, proof-first. Brand tokens from the extension (DESIGN.md). */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #141414;
  --ink-2: #4f586b;
  --line: #e3e7ef;
  --soft: #f3f5fa;
  --brand: #2e4fff;
  --sky: linear-gradient(180deg, #5b8fd0 0%, #8fb4e2 30%, #c9dcf0 60%, #ecdfc6 82%, #ffffff 100%);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --wrap: min(1160px, calc(100% - 40px));
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  font-feature-settings: 'cv11', 'ss03';
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgb(46 79 255 / 0.16); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.tnum { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
:lang(zh) .serif { font-family: var(--font); font-style: normal; font-weight: 750; }

/* --- Buttons --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms, color 160ms;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* --- Top bar ----------------------------------------------------------------------- */

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  width: var(--wrap);
  height: 72px;
  margin: 0 auto;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; text-decoration: none; }
.wordmark img { border-radius: 8px; }
/* The name is set in the serif italic in every language (it is a logo, not text to translate). */
.wordmark span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.45em; letter-spacing: -0.01em; line-height: 1; }
.top-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.top-links a { text-decoration: none; }
.top-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-end { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang summary:hover, .lang[open] summary { background: rgb(255 255 255 / 0.6); }
.lang-menu {
  position: absolute;
  right: 0;
  top: 44px;
  display: grid;
  min-width: 170px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(16 24 48 / 0.08), 0 16px 40px rgb(16 24 48 / 0.16);
}
.lang-menu a { padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: 14px; }
.lang-menu a:hover { background: var(--soft); }
.lang-menu a[aria-current] { font-weight: 650; }

/* --- Hero: headline, one action, the real product --------------------------------- */

.hero {
  padding: 128px 0 40px;
  text-align: center;
  background: var(--sky); /* the brand sky, fading into the page */
}
.hero h1 {
  width: var(--wrap);
  max-width: 22ch;
  margin: 0 auto;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero h1 .serif { display: block; font-size: 1.1em; } /* the contrast gets its own line */
.hero-sub { width: var(--wrap); max-width: 58ch; margin: 22px auto 0; font-size: clamp(17px, 1.5vw, 20px); color: #26303f; text-wrap: balance; }
.hero-cta { display: grid; justify-items: center; gap: 12px; margin-top: 30px; }
.hero-note { font-size: 14px; color: var(--ink-2); }
.demo { width: var(--wrap); margin: 48px auto 0; }
.demo video {
  width: 100%;
  border-radius: var(--radius);
  background: #dfe8f5;
  box-shadow: 0 2px 6px rgb(16 24 48 / 0.08), 0 30px 80px rgb(16 24 48 / 0.22);
}
.demo figcaption { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

/* --- How it works: three numbered steps, then the button ------------------------------ */

.steps-sec { width: var(--wrap); margin: 0 auto; padding-top: 110px; text-align: center; scroll-margin-top: 20px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 34px; padding: 0; list-style: none; text-align: left; }
.steps3 li { display: grid; align-content: start; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps3 .num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 17px; font-weight: 650; }
.steps3 strong { margin-top: 6px; font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
.steps3 li > span:last-child { font-size: 17px; color: var(--ink-2); }

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

.proof { width: var(--wrap); margin: 0 auto; padding: 110px 0 0; }
.proof-alt { width: 100%; margin-top: 110px; padding: 90px 0; background: var(--soft); }
.proof-alt > * { width: var(--wrap); margin-left: auto; margin-right: auto; }
/* In the full-bleed band the heading block spans the wrap, so it lines up with the images below. */
.proof-alt > .proof-head { max-width: none; }
.proof-alt > .proof-head h2 { max-width: 760px; }
.proof-head { max-width: 760px; }
.proof h2, .steps-sec h2, .band h2, .uses h2, .feature h2, .notes-sec h2, .share h2, .free h2, .faq h2, .last h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.proof-head p { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 60ch; }

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 44px;
}
.compare figure img { border-radius: 12px; border: 1px solid var(--line); }
.compare figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.compare figcaption strong { color: var(--ink); }
/* The tall capture scrolls inside a frame about the height of the shot next to it. */
.tall-scroll {
  height: clamp(320px, 32vw, 420px);
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  scrollbar-width: thin;
}
.tall-scroll img { border: 0; border-radius: 0; width: 100%; }
.compare-inbox .tall-scroll { height: clamp(320px, 33vw, 440px); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; gap: 4px; }
.facts strong { font-size: clamp(28px, 3vw, 40px); font-weight: 650; letter-spacing: -0.03em; }
.facts span { color: var(--ink-2); }
.also { margin-top: 32px; font-size: 16px; color: var(--ink-2); }

/* --- Call to action between the proof and the features ---------------------------------- */

.band {
  display: grid;
  justify-items: center;
  gap: 20px;
  width: var(--wrap);
  margin: 90px auto 0;
  padding: 56px 24px;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(160deg, #d6e4fa 0%, #e9eefb 50%, #f6e6c9 100%);
}
.band p { font-size: 15px; color: var(--ink-2); margin-top: -6px; }

/* --- Who it's for -------------------------------------------------------------------- */

.uses { width: var(--wrap); margin: 0 auto; padding-top: 110px; }
.uses h2 { max-width: 760px; }
.uses ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.uses li { display: grid; align-content: start; gap: 6px; padding-top: 18px; border-top: 2px solid var(--ink); }
.uses strong { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.uses span { font-size: 16px; color: var(--ink-2); }

/* --- Features (editor, PDF) --------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 56px;
  align-items: center;
  width: var(--wrap);
  margin: 0 auto;
  padding-top: 120px;
}
.feature-copy p { margin-top: 16px; font-size: 18px; color: var(--ink-2); }
.feature .shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgb(16 24 48 / 0.12); }
.feature-pdf { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.feature-pdf .feature-copy { order: 2; }
.pages { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--soft); }
.pages img { border-radius: 4px; box-shadow: 0 8px 24px rgb(16 24 48 / 0.14); }

.ticks { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 16px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.2 2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* --- Choosing the scroll panel by hand ---------------------------------------------- */

.pick {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}
.pick img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 48px rgb(16 24 48 / 0.1); }
.pick h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
.pick p { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 46ch; }

/* --- Numbered notes (the heart of the page) ------------------------------------------- */

.notes-sec { width: var(--wrap); margin: 0 auto; padding-top: 120px; scroll-margin-top: 20px; }
.notes-sec .shot { margin-top: 40px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 70px rgb(16 24 48 / 0.14); }
.notes-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; margin-top: 40px; }
.notes-grid .ticks { margin-top: 4px; font-size: 17px; }
.copied figcaption { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.copied pre {
  margin: 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: #0f1729;
  color: #e8ecf5;
  font: 14px/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --- Download, copy, Drive ------------------------------------------------------------ */

.share { width: var(--wrap); margin: 0 auto; padding-top: 120px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; align-items: start; }
.share-grid img { border-radius: 12px; border: 1px solid var(--line); }
.share-grid figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.ticks-row { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin-top: 28px; }

/* --- What's free right now ------------------------------------------------------------- */

.free { width: var(--wrap); margin: 0 auto; padding-top: 120px; text-align: center; scroll-margin-top: 20px; }
.free-sub { margin: 14px auto 0; max-width: 56ch; font-size: 18px; color: var(--ink-2); }
.free-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 40px auto 36px; text-align: left; }
.free-col { padding: 28px 30px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.free-col:last-child { border: 2px solid var(--ink); }
.free-col h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.free-col .ticks { margin-top: 18px; }

/* --- Paid launch: plans, Pro note ---------------------------------------------------- */

.plan-price { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; color: var(--ink-2); font-size: 15px; }
.plan-price strong { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.plan-card { display: flex; flex-direction: column; }
.plan-card .ticks { flex: 1; align-content: start; margin-bottom: 26px; }
.plan-card .btn { width: 100%; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-badge { padding: 5px 11px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.plan-for { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.plan-alt { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.plan-terms { margin-top: 14px; font-size: 13px; color: var(--ink-2); text-align: center; }
.plan-reassure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.plan-reassure li { display: inline-flex; align-items: center; gap: 8px; }
.plan-reassure li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.plan-fine { max-width: 62ch; margin: 18px auto 0; font-size: 14px; color: var(--ink-2); }
.pro-note { margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: 15px; color: var(--ink-2); }

/* --- Pricing ---------------------------------------------------------------------------- */

.pricing { width: var(--wrap); margin: 0 auto; padding-top: 130px; text-align: center; scroll-margin-top: 20px; }
.pricing-sub { margin-top: 14px; font-size: 19px; color: var(--ink-2); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 44px auto 0; text-align: left; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.plan-pro { border: 2px solid var(--ink); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 20px; font-weight: 650; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.price .tnum { font-size: 52px; font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.price .per { font-size: 17px; color: var(--ink-2); }
.plan-note { margin-top: 6px; min-height: 1.5em; color: var(--ink-2); font-size: 15px; }
.plan .ticks { flex: 1; align-content: start; margin-bottom: 28px; }
.plan .btn { width: 100%; }
.plan-fine { margin-top: 12px; font-size: 13px; color: var(--ink-2); text-align: center; }
.toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--soft); }
.toggle button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; }
.toggle button[aria-checked='true'] { background: var(--ink); color: #fff; }

/* --- FAQ ------------------------------------------------------------------------------- */

.faq { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding-top: 130px; }
.qa { margin-top: 32px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font-size: 26px; font-weight: 400; color: var(--ink-2); transition: transform 200ms var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 22px; max-width: 64ch; font-size: 16px; color: var(--ink-2); }

/* --- Closing ------------------------------------------------------------------------------ */

.last {
  display: grid;
  justify-items: center;
  gap: 28px;
  margin-top: 130px;
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #c9dcf0 55%, #f2d9b0 100%);
}
.last h2 { max-width: 20ch; }
.last .last-sub { margin-top: -14px; font-size: 15px; color: var(--ink-2); }
.last .last-tip { max-width: 44ch; padding: 12px 18px; border-radius: 14px; background: rgb(255 255 255 / 0.65); font-size: 15px; color: var(--ink); }
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  width: var(--wrap);
  margin: 0 auto;
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--ink-2);
}
.foot nav { display: flex; gap: 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin-left: auto; }

/* --- Thank-you and legal pages ------------------------------------------------------------ */

.plain { background: var(--sky) no-repeat; background-size: 100% 520px; }
.page { padding: 110px 20px 80px; }
.page-card { max-width: 720px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: #fff; box-shadow: 0 20px 60px rgb(16 24 48 / 0.1); }
.page-card h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 650; }
.page-card h2 { margin-top: 32px; font-size: 21px; letter-spacing: -0.01em; }
.page-card p, .page-card li { font-size: 16px; line-height: 1.65; }
.page-card p { margin-top: 12px; }
.page-card ul, .page-card ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.page-card .updated { color: var(--ink-2); font-size: 14px; }
.key-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; padding: 18px 22px; border-radius: 14px; background: var(--soft); }
.key { font: 700 clamp(20px, 3vw, 30px) / 1 var(--font); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.key-box .btn { margin-left: auto; }
.status { margin-top: 14px; color: var(--ink-2); }

/* --- Small screens ------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .top-links { display: none; }
  .top { gap: 10px; }
  .top-end { margin-left: auto; }
  .top-end > .btn { display: none; }
  .hero { padding-top: 104px; }
  .compare, .feature, .feature-pdf, .plans, .pick, .notes-grid, .share-grid, .free-grid { grid-template-columns: 1fr; }
  .pick { gap: 20px; margin-top: 40px; }
  .notes-sec, .share, .free { padding-top: 72px; }
  .notes-grid { gap: 28px; }
  .ticks-row { grid-template-columns: 1fr; }
  .feature-pdf .feature-copy { order: 0; }
  .feature { gap: 28px; padding-top: 72px; }
  .proof, .uses, .steps-sec { padding-top: 72px; }
  .steps3 { grid-template-columns: 1fr; gap: 12px; margin: 28px 0 26px; }
  .steps3 li { grid-template-columns: 38px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px; }
  .steps3 .num { grid-row: span 2; }
  .steps3 strong { margin-top: 0; font-size: 19px; }
  .band { margin-top: 64px; padding: 44px 20px; }
  .uses ul { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .proof-alt { margin-top: 72px; padding: 56px 0; }
  .faq { padding-top: 80px; }
  .last { margin-top: 90px; padding: 72px 20px; }
  .facts { gap: 12px; }
  .facts strong { font-size: 22px; }
  .facts span { font-size: 13px; }
  .pages { padding: 16px; gap: 12px; }
  .foot p { margin-left: 0; }
}

/* Phones: one column for the numbers and the use cases, so nothing breaks mid-number. */
@media (max-width: 560px) {
  .btn-lg { max-width: 100%; padding: 0 22px; font-size: 16px; }
  .band { padding: 40px 16px; }
  .facts { grid-template-columns: 1fr; gap: 10px; margin-top: 36px; }
  .facts li { display: flex; align-items: baseline; gap: 10px; }
  .facts strong { font-size: 24px; white-space: nowrap; }
  .facts span { font-size: 15px; }
  .uses ul { grid-template-columns: 1fr; gap: 22px; }
  .proof-head p, .feature-copy p { font-size: 17px; }
  .compare { gap: 22px; margin-top: 32px; }
  .copied pre { padding: 16px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}
