  :root {
    --ink: #0E1A33;
    --blue: #2F5BEA;
    --blue-dark: #2247C2;
    --ice: #EEF2F9;
    --paper: #FFFFFF;
    --mint: #2E9E7A;
    --muted: #4B5876;
    --rule: #D5DCEA;
    --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
  .wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }

  header.top { padding: 28px 0; }
  header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
  .brand { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; }
  .brand span { color: var(--blue); }
  .top-link { white-space: nowrap; font-weight: 600; font-size: 16px; text-decoration: none; padding: 8px 4px; border-bottom: 2px solid var(--blue); }
  .top-link:hover { color: var(--blue); }

  .hero { padding: 56px 0 96px; }
  .hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
  h1 {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
  }
  .lede { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 36px; }
  .actions { display: flex; flex-wrap: wrap; gap: 14px; }
  .btn {
    display: inline-block; font-family: var(--body); font-weight: 600; font-size: 17px;
    padding: 14px 26px; border-radius: 8px; text-decoration: none; border: 2px solid var(--blue);
    transition: background-color .15s, color .15s, border-color .15s;
  }
  .btn.primary { background: var(--blue); color: #fff; }
  .btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
  .btn.plain { background: transparent; color: var(--blue); }
  .btn.plain:hover { background: var(--ice); }

  .gate { width: 100%; height: auto; }
  .gate .wire { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
  .gate .body { fill: var(--ice); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
  .gate .out { stroke: var(--mint); }
  .gate text { font-family: var(--body); font-size: 17px; font-weight: 600; fill: var(--ink); }
  .gate .and-mark { font-family: var(--display); font-weight: 800; font-size: 40px; fill: var(--blue); letter-spacing: -0.02em; }
  @media (prefers-reduced-motion: no-preference) {
    .gate .wire { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s ease-out .2s forwards; }
    .gate .out { animation-delay: .9s; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
  }

  .band { background: var(--ice); padding: 88px 0; }
  .band.white { background: var(--paper); }
  h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 12px; }
  .section-intro { color: var(--muted); max-width: 36em; margin: 0 0 44px; }

  .rows { border-top: 1px solid var(--rule); }
  .row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
  .row h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; margin: 0; }
  .row p { margin: 0; color: var(--muted); max-width: 36em; }

  .product { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; }
  .product h3 { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; margin: 0 0 8px; color: var(--blue); }
  .product ul { margin: 0 0 28px; padding-left: 1.1em; color: var(--muted); }
  .product li { margin-bottom: 6px; }
  .product p { margin: 0 0 20px; }

  .contact a.mail { font-family: var(--display); font-weight: 800; font-size: clamp(16px, 4.4vw, 36px); letter-spacing: -0.025em; text-decoration: none; border-bottom: 3px solid var(--blue); white-space: nowrap; }
  .contact a.mail:hover { color: var(--blue); }

  footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

  @media (max-width: 820px) {
    body { font-size: 17px; }
    .hero { padding: 24px 0 64px; }
    .hero .wrap, .row, .product { grid-template-columns: 1fr; gap: 20px; }
    .gate { max-width: 420px; }
    .band { padding: 64px 0; }
    .brand { font-size: 20px; }
    .top-link { font-size: 15px; }
    .row { gap: 8px; padding: 22px 0; }
  }

  /* ---- multi-page additions ---- */
  header.top .wrap { gap: 12px 28px; }
  nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
  nav.main a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 2px; border-bottom: 2px solid transparent; }
  nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--blue); }
  nav.main a.cta { background: var(--blue); color: #fff; padding: 9px 18px; border-radius: 8px; border: 0; font-weight: 600; }
  nav.main a.cta:hover { background: var(--blue-dark); }

  .page-head { padding: 48px 0 24px; }
  .page-head h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
  .prose { max-width: 42em; padding-bottom: 72px; }
  .prose h2 { font-size: 26px; margin: 40px 0 8px; }
  .prose p, .prose li { color: #2b3752; }
  .prose ul { padding-left: 1.2em; }
  .prose .note { background: var(--ice); border-left: 4px solid var(--blue); padding: 14px 18px; border-radius: 6px; color: var(--muted); font-size: 16px; }

  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
  .card { border: 1px solid var(--rule); border-radius: 12px; padding: 24px; background: var(--paper); }
  .card h3 { font-family: var(--display); font-size: 21px; margin: 0 0 8px; letter-spacing: -0.015em; }
  .card p { margin: 0; color: var(--muted); font-size: 16px; }
  .steps { counter-reset: s; display: grid; gap: 18px; padding: 0; list-style: none; max-width: 44em; }
  .steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
  .steps li strong { display: block; color: var(--ink); font-family: var(--display); font-size: 20px; }
  .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }

  form.contact-form { display: grid; gap: 16px; max-width: 560px; }
  form.contact-form label { font-weight: 600; font-size: 16px; display: grid; gap: 6px; }
  form.contact-form input, form.contact-form textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); }
  form.contact-form textarea { min-height: 140px; resize: vertical; }
  form.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
  .form-msg { margin: 0; padding: 12px 14px; border-radius: 8px; display: none; font-size: 16px; }
  .form-msg.ok { display: block; background: #e6f5ef; color: #166548; }
  .form-msg.err { display: block; background: #fdecec; color: #9b1c1c; }
  .contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding-bottom: 80px; }
  .contact-info p { margin: 0 0 14px; color: var(--muted); }
  .contact-info a { color: var(--blue); font-weight: 600; }

  footer .foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
  footer .foot-links a { text-decoration: none; }
  footer .foot-links a:hover { color: var(--blue); }
  @media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } nav.main { gap: 2px 16px; } }


  .plan { display: flex; flex-direction: column; gap: 10px; position: relative; }
  .plan .price { margin: 0; color: var(--muted); }
  .plan .price strong { font-family: var(--display); font-size: 36px; color: var(--ink); letter-spacing: -0.03em; }
  .plan ul { margin: 4px 0 12px; padding-left: 1.1em; color: var(--muted); font-size: 16px; flex: 1; }
  .plan .btn { text-align: center; }
  .plan.featured { border: 2px solid var(--blue); }
  .plan .badge { position: absolute; top: -13px; left: 20px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
  .cards.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
