@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

  :root {
    /* dominant dark, mapped from Forest Ink */
    --forest: #071A2B;
    --forest-deep: #040E18;
    /* single bright CTA accent, mapped from Lime Voltage */
    --lime: #43C316;
    --lime-dark: #27750D;
    /* secondary dark surface, mapped from Spruce */
    --spruce: #0F375A;
    /* pale wash for soft highlight surfaces, mapped from Linen Mist */
    --linen: #EDF3DC;
    /* supporting accent, mapped from Alarm Red */
    --coral: #00BFD5;
    --coral-dark: #007684;
    /* text + surfaces */
    --charcoal: #33394A;
    --pebble: #5F6A7A;
    --fog: #ECEFE6;
    --paper: #FCFCF8;
    --line: #E1E4D9;
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --header-sticky: 85px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--charcoal);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 0.98;
    text-transform: uppercase;
  }

  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }

  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

  /* ---------- BUTTONS ---------- */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    padding: 13px 26px; border-radius: 9999px; border: none; cursor: pointer;
    transition: transform 0.15s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-lime { background: var(--lime); color: var(--forest-deep); }
  .btn-outline { background: transparent; border: 1.5px solid var(--forest); color: var(--forest); }
  .btn-outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: var(--paper); }
  .btn-outline-light:hover { border-color: var(--paper); }
  .link { font-weight: 600; font-size: 15px; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--paper);
  }
  html[data-focus="pointer"] a:focus,
  html[data-focus="pointer"] button:focus,
  html[data-focus="pointer"] input:focus,
  html[data-focus="pointer"] textarea:focus,
  html[data-focus="pointer"] select:focus {
    outline: none;
    box-shadow: none;
  }

  /* ---------- TOP BAR ---------- */
  .topbar { background: var(--forest); color: var(--linen); text-align: center; font-size: 13px; padding: 9px 20px; }
  .topbar a { text-decoration: underline; color: var(--lime); font-weight: 600; }

  /* ---------- NAV ---------- */
  nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  #how,
  #pricing,
  #story,
  #faq,
  .template-card,
  .legal-content h2[id],
  .legal-content h3[id] {
    scroll-margin-top: calc(var(--header-sticky) + 16px);
  }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; position: relative; }
  .logo-img { height: 46px; width: auto; display: block; }
  .nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; flex-shrink: 0; }
  .nav-links a { color: var(--forest); opacity: 0.75; transition: opacity 0.15s; white-space: nowrap; }
  .nav-links a:hover { opacity: 1; }
  .nav-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
  .nav-login { font-size: 15px; font-weight: 500; color: var(--forest); opacity: 0.75; white-space: nowrap; }
  .nav-login:hover { opacity: 1; }
  nav .wrap > a { flex-shrink: 0; }
  .nav-menu {
    display: none; width: 44px; height: 44px; flex-shrink: 0;
    align-items: center; justify-content: center;
    border: 1.5px solid var(--forest); border-radius: 9999px;
    background: transparent; padding: 0; cursor: pointer; color: var(--forest);
  }
  .nav-menu svg { display: block; }
  .nav-menu .bar { transform-origin: center; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
  .nav-menu[aria-expanded="true"] .bar-1 { transform: translateY(5px) rotate(45deg); }
  .nav-menu[aria-expanded="true"] .bar-2 { opacity: 0; }
  .nav-menu[aria-expanded="true"] .bar-3 { transform: translateY(-5px) rotate(-45deg); }
  .nav-panel[hidden] { display: none; }
  .nav-panel { border-top: 1px solid var(--line); background: var(--paper); }
  .nav-panel-inner { max-width: 1200px; margin: 0 auto; padding: 8px 32px 28px; display: flex; flex-direction: column; align-items: flex-start; }
  .nav-panel-inner > a:not(.btn) {
    display: flex; align-items: center; min-height: 48px;
    font-size: 16px; font-weight: 600; color: var(--forest);
  }
  .nav-panel-inner .btn { margin-top: 8px; min-height: 48px; }
  .nav-links a.nav-current,
  .nav-panel-inner > a.nav-current {
    opacity: 1;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
  }
  .nav-links a.nav-current:hover { opacity: 1; }

  .skip-link {
    position: absolute;
    left: 16px;
    top: 8px;
    z-index: 30;
    padding: 10px 16px;
    background: var(--paper);
    color: var(--forest);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
  }
  .skip-link:focus,
  .skip-link:focus-visible {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    overflow: visible;
  }
  #main { scroll-margin-top: var(--header-sticky); }
  #main:focus { outline: none; }

  /* ---------- FOOTER ---------- */
  footer { background: var(--forest-deep); color: #93A0B8; padding: 60px 0 40px; }
  footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
  .foot-links { display: flex; flex-wrap: wrap; row-gap: 12px; column-gap: 24px; font-size: 14px; }
  .foot-links a:hover { color: var(--lime); }
  footer .foot-bottom {
    margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-mono); font-size: 12.5px; display: flex; justify-content: center; text-align: center; flex-wrap: wrap; gap: 10px; width: 100%;
  }
  .foot-bottom a:hover { color: var(--lime); }

  /* ---------- CONTACT MODAL ---------- */
  .modal-overlay { position: fixed; inset: 0; background: rgba(4,14,24,0.6); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
  .modal-overlay.open { display: flex; }
  .modal-box { background: var(--paper); border-radius: 24px; padding: 38px; max-width: 440px; width: 100%; position: relative; }
  .modal-box h2 { font-size: 26px; color: var(--forest); margin-bottom: 8px; text-transform: none; }
  .modal-sub { font-size: 14px; color: var(--pebble); margin-bottom: 22px; line-height: 1.5; }
  .modal-box form + .modal-sub { margin-top: 16px; margin-bottom: 0; }
  .modal-box form + .modal-sub a { text-decoration: underline; }
  .modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--pebble); }
  .modal-field { margin-bottom: 16px; }
  .modal-field label { display: block; font-size: 13px; font-weight: 600; color: var(--forest); margin-bottom: 6px; }
  .modal-field input, .modal-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-family: var(--font-body); font-size: 14px; color: var(--charcoal); background: var(--fog); }
  .modal-field textarea { min-height: 100px; resize: vertical; }
  .modal-submit { width: 100%; margin-top: 4px; justify-content: center; }

  .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--forest); color: var(--paper); font-size: 14px; font-weight: 500;
    padding: 14px 22px; border-radius: 9999px; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 200;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  @media (max-width: 720px) {
    footer .wrap { flex-direction: column; align-items: center; text-align: center; }
  }

  @media (max-width: 1187px) {
    .nav-links, .nav-actions { display: none; }
    .nav-menu { display: inline-flex; }
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-menu .bar { transition: none; }
    html body .faq-q .icon,
    html body .faq-a { transition: none; }
    .btn { transition: none; }
    .btn:hover { transform: none; }
  }

  /* ---------- RULES SHARED BY TWO OR MORE PAGES ---------- */
  .eyebrow {
    font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
    color: var(--lime-dark); text-transform: uppercase; margin-bottom: 18px; display: block;
  }
  .dark-band { background: var(--forest); border-radius: 32px; padding: 64px 56px; }
  .dark-band-outer { padding: 0 0 110px; }
  .dark-band-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
  .dark-band h2 { font-size: 44px; color: var(--lime); }
  .dark-band p.body-copy { font-family: var(--font-body); text-transform: none; font-size: 16px; color: #C9D2E3; margin: 20px 0 0; max-width: 420px; line-height: 1.6; }
  .price-card { background: var(--paper); border-radius: 20px; padding: 34px 30px; }
  .price-figure { font-family: var(--font-mono); font-size: 52px; color: var(--forest); font-weight: 500; }
  .price-unit { font-size: 13px; color: var(--pebble); margin-top: -4px; margin-bottom: 20px; }
  .price-card .btn { width: 100%; justify-content: center; }
  .bold-section { background: var(--forest); padding: 110px 0; text-align: center; }
  .bold-section h2 { font-size: 56px; color: var(--paper); max-width: 780px; margin: 0 auto; }
  .bold-section p.body-copy { font-family: var(--font-body); text-transform: none; font-size: 18px; color: #C9D2E3; max-width: 520px; margin: 26px auto 36px; line-height: 1.6; }
  .security-section { padding: 110px 0; }
  .security-section h2 { font-size: 42px; color: var(--forest); }
  .security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .security-item svg { width: 26px; height: 26px; margin-bottom: 22px; }
  .security-item h3,
  .security-section .security-item h2 { font-family: var(--font-body); font-weight: 700; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--forest); margin-bottom: 8px; }
  .security-item p { font-size: 15.5px; color: var(--pebble); line-height: 1.6; }
  @media (max-width: 900px) {
    .dark-band-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; gap: 36px; }
  }
  @media (max-width: 720px) {
    .dark-band { padding: 40px 24px; border-radius: 24px; }
  }
  .page-header { padding: 64px 0 32px; border-bottom: 1px solid var(--line); }
  .page-header .wrap { max-width: 820px; }
  .page-header h1 { font-size: 48px; color: var(--forest); }
  .page-header p.sub { font-family: var(--font-body); text-transform: none; font-size: 18px; color: var(--pebble); max-width: 620px; margin-top: 18px; line-height: 1.6; }
  .legal-header { padding: 64px 0 32px; border-bottom: 1px solid var(--line); }
  .legal-header .wrap { max-width: 780px; }
  .legal-header h1 { font-size: 48px; color: var(--forest); }
  .legal-header .updated { font-family: var(--font-mono); font-size: 13px; color: var(--pebble); margin-top: 16px; display: block; }
  .legal-content .wrap { max-width: 780px; }
  .legal-content h2 { font-family: var(--font-display); font-size: 26px; color: var(--forest); text-transform: none; margin: 48px 0 16px; }
  .legal-content h2:first-child { margin-top: 0; }
  .legal-content p { font-size: 16px; line-height: 1.7; color: var(--charcoal); margin-bottom: 18px; }
  .legal-content ul, .legal-content ol { margin: 0 0 18px 22px; }
  .legal-content li { font-size: 16px; line-height: 1.7; color: var(--charcoal); margin-bottom: 8px; }
  .legal-content a { color: var(--coral-dark); text-decoration: underline; }
  .legal-content strong { color: var(--forest); }
  .legal-content table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 14.5px; }
  .legal-content th { text-align: left; background: var(--linen); color: var(--forest); font-weight: 600; padding: 10px 14px; border-bottom: 2px solid var(--line); }
  .legal-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--charcoal); }
  @media (max-width: 720px) {
    .page-header { padding: 40px 0 28px; }
    .page-header h1 { font-size: 34px; }
    .legal-header { padding: 40px 0 28px; }
    .legal-header h1 { font-size: 34px; }
    .legal-content h2 { font-size: 22px; }
    .legal-content table { font-size: 13px; }
    .legal-content th, .legal-content td { padding: 8px 10px; }
  }
