/* noteproof.app's styles, for every page (site/*.html). The colors and fonts are the extension's (CLAUDE.md, "Design"). */

@font-face {
  font-family: 'Inter Variable';
  src: url(fonts/inter.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono Variable';
  src: url(fonts/jetbrains-mono.woff2) format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --page: #131315;
  --panel: #1c1c1e;
  --card: #232327;
  --raised: #2c2c30;
  --border: #3a3a3f;
  --hairline: rgb(255 255 255 / 0.07);
  --text: #ededef;
  --muted: #a1a1aa;
  --label: #8e8e96;
  --accent: #8b9cff;
  --green: #3dd68c;
  --red: #ff6b6b;
  --amber: #f5a524;
  --sans: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
kbd {
  white-space: nowrap;
  font: 600 0.8em var(--sans);
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--card);
  color: var(--text);
}

/* The bar at the top */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(19 19 21 / 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
.name {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.top nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--text);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #15151a;
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: #a3b1ff;
}
.button.small {
  padding: 7px 13px;
  font-size: 14px;
  border-radius: 8px;
}
.button.quiet {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}
.button.quiet:hover {
  background: var(--raised);
}
.button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.soon {
  color: var(--muted);
  font-size: 15px;
}

/* The first screen */
.hero {
  padding: 88px 0 0;
}
h1 {
  margin: 0;
  max-width: 17em;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}
h1 span {
  display: block;
  color: var(--muted);
}
.lead {
  margin: 22px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}
.shot {
  position: relative;
  margin: 64px 0 0;
}
.shot::before {
  content: '';
  position: absolute;
  inset: -8% 10% 20%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(139 156 255 / 0.22), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.window {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #202024;
  border-bottom: 1px solid var(--border);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3f3f45;
}
.window-bar .url {
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 7px;
  background: var(--page);
  color: var(--label);
  font-size: 12.5px;
}
.caption {
  margin: 14px 0 0;
  color: var(--label);
  font-size: 14px;
  text-align: center;
}

/* Sections */
section {
  padding: 120px 0 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  max-width: 18em;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.intro {
  margin: 16px 0 0;
  max-width: 38em;
  color: var(--muted);
  font-size: 18px;
}
h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 650;
}
.card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.step {
  padding: 26px 24px 24px;
}
.step .n {
  display: block;
  margin-bottom: 18px;
  color: var(--label);
  font: 600 13px var(--mono);
}
.step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}
.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.green {
  color: var(--green);
  border-color: rgb(61 214 140 / 0.35);
  background: rgb(61 214 140 / 0.08);
}
.pill.red {
  color: var(--red);
  border-color: rgb(255 107 107 / 0.4);
  background: rgb(255 107 107 / 0.08);
}
.pill.amber {
  color: var(--amber);
  border-color: rgb(245 165 36 / 0.35);
  background: rgb(245 165 36 / 0.08);
}

/* The demo */
.demo {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.demo[hidden] {
  display: none;
}
.demo-locked {
  padding: 20px;
}
.demo-locked h3,
.demo-site h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demo-locked ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.demo-locked li {
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.demo-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}
.demo-badge {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--raised);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.demo .address {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  font: 12.5px/1.6 var(--mono);
  color: var(--muted);
  word-break: break-all;
}
.demo .address .edge {
  color: var(--text);
  font-weight: 600;
}
.demo .address .prefix {
  color: var(--label);
}
.demo-note {
  margin: 14px 0 0;
  color: var(--label);
  font-size: 13px;
}
.demo-site {
  padding: 20px;
}
.tries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.tries span {
  color: var(--muted);
  font-size: 14px;
  margin-right: 4px;
}
.page {
  color-scheme: light;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f7f9;
  color: #1f2328;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.page-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid #e3e6ea;
  font-weight: 700;
  font-size: 15px;
}
.page-bar i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #0e9f6e;
}
.page form {
  padding: 18px 18px 20px;
}
.page h4 {
  margin: 0 0 12px;
  font-size: 19px;
}
.page label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.page input,
.page select {
  width: 100%;
  font: 15px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding: 10px 12px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  color: #1f2328;
}
.page input {
  font-family: var(--mono);
  font-size: 13.5px;
}
.page .send {
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: #0e9f6e;
  color: #fff;
  font: 600 15px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
}
.page .sent {
  min-height: 1.5em;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #0e7a55;
}
.page .sent[data-color='red'] {
  color: #c62828;
}
.page .sent[data-color='amber'] {
  color: #9a6700;
}

/* Features */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-text {
  order: 2;
}
.feature.wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.feature.wide .feature-text {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.feature.wide .ticks {
  margin-top: 4px;
}
.feature.narrow {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.feature.narrow .window {
  max-width: 380px;
  margin: 0 auto;
}
.feature h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.feature p {
  margin: 14px 0 0;
  color: var(--muted);
}
.ticks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15.5px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks strong {
  color: var(--text);
  font-weight: 600;
}

/* Private by design */
.principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
  margin-top: 44px;
}
.principles dl {
  margin: 0;
  display: grid;
  gap: 26px;
}
.principles dt {
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.principles dd {
  margin: 4px 0 0;
  color: var(--muted);
}

/* A check, not a guarantee */
.honest {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 0;
  padding: 26px 28px;
  border-color: rgb(245 165 36 / 0.25);
}
.honest svg {
  flex: none;
  margin-top: 3px;
  color: var(--amber);
}
.honest p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Questions */
.faq {
  margin-top: 36px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+' / '';
  color: var(--label);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−' / '';
}
.faq details p {
  margin: -6px 0 22px;
  max-width: 46em;
  color: var(--muted);
}

/* The end */
.end {
  padding: 72px 32px;
  text-align: center;
  background: radial-gradient(70% 120% at 50% 0%, rgb(139 156 255 / 0.14), transparent 70%), var(--panel);
}
.end h2 {
  margin: 0 auto;
}
.end .ctas {
  justify-content: center;
}
footer {
  margin-top: 96px;
  border-top: 1px solid var(--hairline);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 40px;
  color: var(--label);
  font-size: 14px;
}
footer .name {
  font-size: 15px;
  margin-right: auto;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  /* Only the two pages stay in the bar: Questions and the policy are in the footer and below. */
  .top nav a:nth-child(n + 3) {
    display: none;
  }
  .steps,
  .demo,
  .feature,
  .feature.flip,
  .feature.narrow,
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature,
  .principles {
    gap: 28px;
  }
  .feature.wide .feature-text {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .feature.wide .ticks {
    margin-top: 18px;
  }
  .feature.flip .feature-text {
    order: 0;
  }
  .principles .window {
    max-width: 380px;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* The pages' links fit beside the name; the demo is a button on the page itself. */
  .top .wrap {
    gap: 18px;
  }
  .top .wrap > .button {
    display: none;
  }
  .hero {
    padding-top: 48px;
  }
  .lead {
    font-size: 17px;
  }
  section {
    padding-top: 88px;
  }
  .shot {
    margin-top: 40px;
  }
  .window-bar .url {
    display: none;
  }
  .demo-locked,
  .demo-site {
    padding: 14px;
  }
  .honest {
    flex-direction: column;
    gap: 8px;
    padding: 22px 20px;
  }
  .end {
    padding: 56px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* The home page's two doors, the crypto page's checks and bridge, the notes page's complaints */
.hero .eyebrow {
  margin-bottom: 18px;
}
.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.door,
.bridge {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.door:hover,
.bridge:hover {
  border-color: var(--border);
  background: #202023;
}
.door-text,
.bridge-text {
  padding: 28px 28px 24px;
}
.door-text .eyebrow,
.bridge-text .eyebrow {
  margin-bottom: 10px;
}
.door h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.door p:not(.eyebrow),
.bridge p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}
.more {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.door img {
  width: calc(100% - 56px);
  height: 300px;
  margin: auto 28px 0;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.bridge {
  flex-direction: row;
  align-items: stretch;
}
.bridge-text {
  flex: 1;
  align-self: center;
  padding: 36px;
}
.bridge h2 {
  font-size: clamp(24px, 3vw, 32px);
}
.bridge img {
  width: 42%;
  max-height: 340px;
  margin: 28px 28px 0 0;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  align-self: flex-end;
}
.checks,
.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.pains {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.check,
.pain {
  padding: 24px;
}
.check p,
.pain p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}
.pain h3 {
  font-size: 18px;
  line-height: 1.35;
}
.page-bar-note {
  font-weight: 400;
  color: #59636e;
}
@media (max-width: 900px) {
  .doors,
  .checks,
  .pains {
    grid-template-columns: minmax(0, 1fr);
  }
  .bridge {
    flex-direction: column;
  }
  .bridge img {
    width: calc(100% - 56px);
    margin: 0 28px;
  }
}
@media (max-width: 560px) {
  .door-text,
  .bridge-text {
    padding: 22px 20px 20px;
  }
  .door img,
  .bridge img {
    width: calc(100% - 40px);
    height: 220px;
    margin-left: 20px;
    margin-right: 20px;
  }
}
