  :root {
    --primary: #C85A28;
    --primary-dark: #A8461E;
    --bg: #1C1815;
    --surface: #23201A;
    --surface-elevated: #2E2A22;
    --border: #45392E;
    --text-primary: #F2E9D8;
    --text-secondary: #B8AC98;
    --text-muted: #948970;
    /* lighter rust for small text on dark — brand rust (--primary) is only
       ~3.7:1 on its own tinted pill at caption sizes, under AA 4.5:1. Use
       this for small rust text (eyebrow, checklist marks); keep --primary
       for fills, borders, and large display accents where 3:1 suffices. */
    --accent-text: #D97A45;
    --font-display: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
    --font-body: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, .logo, .btn { font-family: var(--font-display); }

  a { color: inherit; }

  .wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 12px;
  }

  /* --- Nav --- */
  nav.wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 6px;
  }

  .logo {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1.2;
  }
  /* "Pocket Secretary" never splits, so a narrow screen breaks the name as
     Contractors / Pocket Secretary instead of one word per line */
  .logo-line { white-space: nowrap; }

  .logo-badge {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* mark colors: rust shield/pencil-body flat against the badge, pocket
       and pencil-tip cut out in the page background so they read as
       negative space (same "on ink" treatment documented in
       assets/Iconography/logo-maybe.svg, just swapped to the new palette) */
    --m-line: var(--bg);
    --m-shield: var(--primary);
    --m-pocket: var(--bg);
    --m-body: var(--primary);
    --m-tip: var(--bg);
    --m-lead: var(--text-primary);
    --m-eraser: #3E6B4C;
  }
  .logo-badge svg { width: 100%; height: 100%; }
  .footer-mark { width: 72px; height: 60px; opacity: 0.7; }

nav.wrap > a.logo, 
nav.wrap > div:last-child {
  flex: 1;
  nav a.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }
}
nav.wrap > div:last-child {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
}

  nav a.nav-link:hover { color: var(--text-primary); }

  /* Phones: name and links share the top row, the shield sits centered
     under them. In one flex row the shield squeezed the name into three
     lines and pushed it against the left edge. */
  @media (max-width: 600px) {
    nav.wrap {
      display: grid;
      grid-template-columns: min-content 1fr;
      grid-template-areas: "logo links" "emblem emblem";
      align-items: start;
      gap: 4px 16px;
    }
    nav.wrap > a.logo { grid-area: logo; font-size: 17px; }
    nav.wrap > div:last-child { grid-area: links; }
    nav.wrap .hero-emblem { grid-area: emblem; justify-self: center; margin-top: 8px; }
  }

  /* --- Hero --- */
  header.hero {
    padding: 32px 0 44px;
    text-align: center;
  }

  /* hero emblem — full-color "cream pocket" treatment (distinct from the
     negative-space nav/footer mark above), floats + glows, stitch draws
     itself in once on load */

  .hero-emblem {
    --m-line: #241D16;
    --m-shield: var(--primary);
    --m-pocket: #F5EDE0;
    --m-stitch: #241D16;
    --m-body: var(--primary);
    --m-tip: var(--bg);
    --m-lead: #F2E9D8;
    --m-eraser: #3E6B4C;
    --lift: 0px; 
    position: relative;
    width: clamp(96px, 14vw, 140px);
    /* aspect-ratio: 1 / 1; */
    margin: 0;
    display: grid;
    place-items: center;
    transform: translateY(var(--lift));
    animation: hero-floaty 5.5s ease-in-out infinite;
    flex: 0 0 auto;
  }
  .hero-emblem::before {
    content: "";
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(200, 90, 40, .34), rgba(200, 90, 40, 0) 72%);
    filter: blur(6px);
    opacity: .85;
  }
  .hero-emblem svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .55)) drop-shadow(0 3px 8px rgba(0, 0, 0, .45));
    animation: hero-mark-in 1.5s cubic-bezier(.2, .9, .25, 1) both;
  }
  .hero-emblem .stitch {
    stroke-dasharray: 2.5 6.5;
    animation: hero-sew 1.5s ease-out .35s infinite;
  }
  @keyframes hero-floaty { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(7px); } }
  @keyframes hero-mark-in { 0% { opacity: 0; transform: scale(.76) translateY(10px); } 100% { opacity: 1; transform: none; } }
  @keyframes hero-sew { from { stroke-dashoffset: 340; } to { stroke-dashoffset: 0; } }
  @media (prefers-reduced-motion: reduce) {
    .hero-emblem, .hero-emblem svg, .hero-emblem .stitch { animation: none; }
  }

  .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-text);
    background: rgba(200, 90, 40, 0.12);
    border: 1px solid rgba(200, 90, 40, 0.3);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(32px, 5.5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    font-weight: 800;
  }

  h1 .accent { color: var(--primary); }

  .hero-sub {
    max-width: 640px;
    margin: 20px auto 36px;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.5;
  }

  .cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .btn:hover { transform: translateY(-1px); }

  .btn-primary {
    background: var(--primary);
    color: #F2E9D8;
  }
  .btn-primary:hover { background: var(--primary-dark); }

  .btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-primary);
  }
  .btn-ghost:hover { border-color: var(--primary); }

  .hero-note {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
  }

  /* --- Feature grid --- */
  section.features {
    padding: 0px;
  }

  .section-heading {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
  }

  .section-heading h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
  }

  .section-heading p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    padding: 0 80px;
    gap: 20px;
  }

  @media (max-width: 860px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; padding: 0; }
    .cta-row { flex-direction: column; align-items: stretch; }
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
  }

  .card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
  }
  .card h3 a { color: inherit; text-decoration: none; }
  .card h3 a:hover { text-decoration: underline; }

  .card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin: 0;
  }

  /* --- Philosophy band --- */
  section.philosophy {

    display: flex;
    align-items: center;
    /* border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); */
  }

  .philosophy .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-sizing: border-box;
    padding: 12px 50px;
    gap: 48px;
    align-items: center;
    padding-bottom: 24px;
  }


  @media (max-width: 760px) {
    .philosophy .wrap { grid-template-columns: 1fr; }
  }

  .philosophy h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
  }

  .philosophy p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0 0 16px;
  }

  .philosophy p:last-child { margin-bottom: 0; }

  .philosophy .accent-word { color: var(--primary); font-weight: 700; }

  .checklist {
    list-style: none;
    margin-left: 30%;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-size: 24px;
    gap: 14px;
  }

  .checklist li {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text-primary);
  }

  .checklist .check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(200, 90, 40, 0.15);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    margin-top: 1px;
  }

  /* --- Final CTA --- */
  section.final-cta {
    padding: 96px 0;
    text-align: center;
  }

  section.final-cta h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
  }

  section.final-cta p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto 32px;
  }

  /* --- Footer --- */
  footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
  }

  footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }

  footer .foot-note {
    font-size: 13px;
    color: var(--text-muted);
  }

  footer .foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
  }
  footer .foot-links a { white-space: nowrap; }

  /* Phones: stack the footer and center it, so the links wrap as whole
     words inside the screen and the Nordaware badge sits on the center line */
  @media (max-width: 600px) {
    footer .wrap {
      flex-direction: column;
      text-align: center;
      gap: 20px;
    }
    footer .foot-links { justify-content: center; }
  }

  footer a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
  }
  footer a:hover { color: var(--text-primary); }

  /* social icons — inline single-path SVGs (Simple Icons), tinted via
     currentColor so they pick up the muted/​primary footer palette */
  footer .socials {
    display: flex;
    gap: 4px;
  }
  footer .socials a {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--text-muted);
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  }
  footer .socials a:hover {
    color: var(--primary);
    background: var(--surface-elevated);
    transform: translateY(-1px);
  }
  footer .socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }