/* SinBot website, "Paper" style (owner's choice 2026-10-29): white ground, ink text, one crimson accent.
   The font is stored on the site itself (fonts/, SIL Open Font License), so visitors' browsers contact no one else.
   The Cardano signing page (cardano.html) still uses styles.css. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --ink: #14161b;
  --muted: #575d6b;
  --line: #ebedf1;
  --soft: #f4f5f7;
  --card: #f7f8fa;
  --accent: #c42b31;
  --link: #b4232a;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.logo i { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: inline-block; }
.nav { display: flex; gap: 28px; align-items: center; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .pill-dark { color: #ffffff; background: var(--ink); padding: 10px 18px; border-radius: 999px; }
.nav .pill-dark:hover { color: #ffffff; background: #2b2e36; }

/* Buttons */
.buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.button { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; }
.button.primary { background: var(--accent); color: #ffffff; }
.button.primary:hover { background: #a8242a; color: #ffffff; }
.button.secondary { background: var(--bg); color: var(--ink); border: 1px solid #d9dce2; }
.button.secondary:hover { border-color: var(--ink); }

/* Home */
.hero { padding: 104px 0 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 20px; display: inline-block; background: var(--soft); color: #3d424d; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.hero h1 { margin: 0 0 20px; font-size: 60px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; max-width: 820px; text-wrap: balance; }
.lead { margin: 0 0 36px; font-size: 19px; color: var(--muted); max-width: 600px; }

.features { padding: 0 0 96px; }
.features-grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: 20px; grid-column: span 3; }
.feature.big { padding: 36px; background: var(--card); border-color: var(--card); grid-column: span 6; }
.feature .num { margin: 0 0 12px; color: var(--accent); font-weight: 800; font-size: 14px; }
.feature h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.feature.big h2 { font-size: 24px; letter-spacing: -0.02em; }
.feature p:last-child { margin: 0; color: var(--muted); }
.feature.big p:last-child { max-width: 440px; }

/* Plain message pages (404) */
.message { padding: 104px 0 120px; text-align: center; }
.message h1 { margin: 0 0 16px; font-size: 44px; letter-spacing: -0.03em; }
.message p { margin: 0 0 32px; color: var(--muted); font-size: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fafbfc; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-block: 28px; }
.site-footer a { color: var(--muted); }

@media (max-width: 1040px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.big { grid-column: span 1; }
}
@media (max-width: 720px) {
  .nav { gap: 18px; }
  .nav .hide-small { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 17px; margin-bottom: 28px; }
  .buttons { width: 100%; flex-direction: column; }
  .features { padding-bottom: 56px; }
  .features-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature, .feature.big { padding: 24px; }
  .feature.big h2 { font-size: 21px; }
  .message { padding: 64px 0 80px; }
  .message h1 { font-size: 34px; }
}
