/* TruScan 2.0 Field notes (docs/design/truscan-2.0/screens/FieldNotes.html). The numbered rules
   mirror the screen one to one; colours use the theme tokens. The section filters are jump links. */
/* The screens use browser defaults: undo the older site-wide heading, paragraph and link tweaks. */
.fn-page :where(h1, h2, h3, h4) { letter-spacing: normal; text-wrap: wrap; }
.fn-page :where(p) { text-wrap: wrap; }
.fn-page :where(a) { text-underline-offset: auto; }
.fn-1 {
  position: relative;
  margin-top: -76px;
  padding-top: 76px;
  background: radial-gradient(ellipse 50% 45% at 20% 0%, var(--mint-soft), rgba(168,245,213,0) 70%);
}
.fn-2 {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 20%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 25% 20%, #000, transparent 75%);
  pointer-events: none;
}
.fn-3 {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  justify-content: space-between;
  align-items: flex-end;
}
.fn-4 {
  flex: 1 1 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fn-5 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.fn-6 {
  margin: 0;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.058em;
  animation-delay: .08s;
}
.fn-7 {
  margin: 0;
  max-width: 520px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
  animation-delay: .16s;
}
.fn-8 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation-delay: .24s;
}
.fn-9 {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--mint-soft);
  border: 1px solid rgba(168,245,213,0.30);
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.fn-10 {
  font-size: 12px;
  color: var(--text-3);
}
.fn-11, .fn-13 {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text-soft);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.fn-12, .fn-14 {
  font-size: 12px;
  color: var(--muted);
}
.fn-15 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px 0;
}
.fn-16, .fn-47 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: baseline;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.fn-17, .fn-48 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.fn-18, .fn-49 {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.fn-19 {
  font-size: 16px;
  color: var(--text-3);
}
.fn-20 {
  display: flex;
  flex-wrap: wrap;
  border-radius: 32px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.fn-21 {
  position: relative;
  flex: 1 1 520px;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  background: radial-gradient(circle at 50% 55%, rgba(168,245,213,0.12), rgba(168,245,213,0) 60%), var(--inset);
}
.fn-22 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 440px;
  transform: translate(-50%, -50%);
  opacity: 0.32;
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 68%);
  mask-image: radial-gradient(circle, #000 35%, transparent 68%);
}
.fn-23 {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(21,26,28,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168,245,213,0.30);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  margin-right: 120px;
  animation-delay: -1s;
}
.fn-24 {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(21,26,28,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,193,90,0.35);
  color: var(--amber);
  font-size: 16px;
  font-weight: 600;
  margin-left: 100px;
  animation-delay: -3.2s;
}
.fn-25 {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(21,26,28,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-2);
  font-size: 16px;
  font-weight: 600;
  margin-right: 60px;
  animation-delay: -5s;
}
.fn-26 {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 44px;
}
.fn-27 {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fn-28 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.fn-29 {
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-ink);
  background: var(--mint);
  padding: 5px 12px;
  border-radius: 999px;
}
.fn-30 {
  font-size: 14px;
  color: var(--text-3);
}
.fn-31 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.fn-32 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
}
.fn-33 {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.fn-34 {
  font-size: 14px;
  color: var(--muted);
}
.fn-35 {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 600;
}
.fn-36 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 16px;
  margin-top: 16px;
}
.fn-37 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  padding: 32px;
  border-radius: 28px;
  border: 1px dashed rgba(255,255,255,0.14);
}
.fn-38 {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-soft);
}
.fn-39, .fn-44 {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-3);
}
.fn-40 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.fn-41 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fn-42 {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.fn-43, .fn-53 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.fn-45 {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
}
.fn-46 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 0;
}
.fn-50 {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  align-items: center;
  padding: 40px;
  border-radius: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.fn-51 {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
}
.fn-52 {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fn-54 {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}
.fn-55 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fn-56 {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

/* SVG colours follow the theme tokens. */
.fn-page [stroke="#8A9692"] { stroke: var(--muted); }

/* Light theme. */
[data-theme="light"] .fn-1 {
  background: radial-gradient(ellipse 50% 45% at 20% 0%, rgba(168,245,213,0.3), rgba(168,245,213,0) 70%);
}
[data-theme="light"] .fn-2 {
  background-image: linear-gradient(rgba(11,18,16,0.05) 1px, transparent 1px);
}
[data-theme="light"] .fn-9 {
  background: rgba(11,122,82,0.08);
  border: 1px solid rgba(11,122,82,0.27);
}
[data-theme="light"] .fn-11, [data-theme="light"] .fn-13 {
  background: #FFFFFF;
  border: 1px solid rgba(11,18,16,0.09);
  box-shadow: 0 1px 2px rgba(11,18,16,0.04);
}
[data-theme="light"] .fn-16, [data-theme="light"] .fn-47 {
  border-bottom: 1px solid rgba(11,18,16,0.07);
}
[data-theme="light"] .fn-20 {
  border: 1px solid rgba(11,18,16,0.07);
  box-shadow: 0 1px 2px rgba(11,18,16,0.04);
}
[data-theme="light"] .fn-21 {
  background: radial-gradient(circle at 50% 55%, rgba(168,245,213,0.36), rgba(168,245,213,0) 60%), var(--inset);
}
[data-theme="light"] .fn-23 {
  border: 1px solid rgba(11,122,82,0.27);
}
[data-theme="light"] .fn-25 {
  border: 1px solid rgba(11,18,16,0.14);
}
[data-theme="light"] .fn-35 {
  background: #FFFFFF;
  border: 1px solid rgba(11,18,16,0.12);
  box-shadow: 0 1px 2px rgba(11,18,16,0.04);
}
[data-theme="light"] .fn-37 {
  border: 1px dashed rgba(11,18,16,0.14);
}
[data-theme="light"] .fn-40 {
  border: 1px solid rgba(11,18,16,0.07);
  box-shadow: 0 1px 2px rgba(11,18,16,0.04);
}
[data-theme="light"] .fn-45 {
  background: rgba(11,18,16,0.05);
}
[data-theme="light"] .fn-50 {
  border: 1px solid rgba(11,18,16,0.07);
  box-shadow: 0 1px 2px rgba(11,18,16,0.04);
}
[data-theme="light"] .fn-51 {
  background: rgba(11,18,16,0.05);
}
[data-theme="light"] .fn-56 {
  background: #FFFFFF;
  border: 1px solid rgba(11,18,16,0.12);
  box-shadow: 0 1px 2px rgba(11,18,16,0.04);
}
/* Light theme keeps the image stage dark, as Home-Light does, so its chips keep their dark colours. */
[data-theme="light"] .fn-21 { background: radial-gradient(circle at 50% 55%, rgba(168,245,213,0.12), rgba(168,245,213,0) 60%), #0D1112; }
[data-theme="light"] .fn-23 { color: #A8F5D5; border-color: rgba(168,245,213,0.30); }
[data-theme="light"] .fn-24 { color: #FFC15A; }
[data-theme="light"] .fn-25 { color: #AEB9B5; border-color: rgba(255,255,255,0.14); }

/* Links in place of the screen's buttons, and states. */
.fn-page { overflow-x: hidden; }
.fn-9, .fn-11, .fn-13 { box-sizing: border-box; text-decoration: none; }
.fn-9:hover { color: var(--accent); }
.fn-page .ts-btn-s { transition: background .2s, border-color .2s; }
.fn-page a.ts-btn-s:hover { color: var(--text-soft); background: var(--btn-2-hover-bg); border-color: var(--btn-2-hover-border); }
.fn-page a.fn-56:hover { color: var(--text); }
.fn-page .ts-tile { transition: border-color .3s, transform .3s; }
.fn-page .ts-tile:hover { color: inherit; border-color: rgba(168,245,213,0.32); transform: translateY(-3px); }
[data-theme="light"] .fn-page .ts-tile:hover { border-color: rgba(11,122,82,0.30); }
.fn-page .ts-tile:hover .fn-35 { background: var(--btn-2-hover-bg); border-color: var(--btn-2-hover-border); }

@media (max-width: 639px) {
  .fn-3 { padding-top: 48px; }
  .fn-4 { flex-basis: 100%; gap: 18px; }
  .fn-6 { font-size: 56px; }
  .fn-7 { font-size: 17px; }
  .fn-15 { padding-top: 72px; }
  .fn-46 { padding-top: 88px; }
  .fn-18, .fn-49 { font-size: 28px; }
  .fn-21 { flex-basis: 100%; min-height: 300px; }
  .fn-22 { width: 340px; }
  .fn-23 { margin-right: 60px; }
  .fn-24 { margin-left: 50px; }
  .fn-25 { margin-right: 30px; }
  .fn-26 { flex-basis: 100%; padding: 28px 24px; }
  .fn-36 { grid-template-columns: 1fr; }
  .fn-37, .fn-40 { min-height: 0; padding: 28px 24px; }
  .fn-50 { padding: 28px 24px; }
  .fn-52 { flex-basis: 100%; }
}
