:root {
    --bg: #f7f8f7;
    --surface: #ffffff;
    --surface-2: #eef2f0;
    --ink: #1c2321;
    --ink-soft: #55615d;
    --ink-faint: #8a948f;
    --line: #dde3e0;
    --teal: #0f6b5c;
    --teal-ink: #ffffff;
    --teal-soft: #e3f0ec;
    --sans: "Inter", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121716; --surface: #1a211f; --surface-2: #202927; --ink: #eef2f0; --ink-soft: #aab4af; --ink-faint: #717c77;
      --line: #2c3633; --teal: #3fb39b; --teal-ink: #0d1412; --teal-soft: #1b2e2a; color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #121716; --surface: #1a211f; --surface-2: #202927; --ink: #eef2f0; --ink-soft: #aab4af; --ink-faint: #717c77;
    --line: #2c3633; --teal: #3fb39b; --teal-ink: #0d1412; --teal-soft: #1b2e2a; color-scheme: dark;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
  @media (min-width: 720px) { .wrap { padding: 0 40px; } }
  section { padding: 80px 0; }
  section + section { border-top: 1px solid var(--line); }
  .kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--teal); }
  h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 10px; }
  .sub { color: var(--ink-soft); margin-top: 12px; max-width: 620px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .95rem; padding: 12px 20px; border-radius: 8px; text-decoration: none; border: 1px solid var(--teal); background: var(--teal); color: var(--teal-ink); }
  .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn:hover { filter: brightness(1.05); }
  :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

  /* Nav */
  nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
  .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
  .brand-text b { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
  .brand-text small { font-size: .66rem; letter-spacing: .08em; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
  .links a.xlink { color: var(--teal); font-weight: 600; }
  .links a.xlink:hover { text-decoration: underline; }
  .switch { margin-top: 48px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
  .switch p { color: var(--ink-soft); max-width: 640px; }
  .switch p b { color: var(--ink); }
  .brand i { width: 28px; height: 28px; border-radius: 7px; background: var(--teal); display: inline-grid; place-items: center; color: var(--teal-ink); font-style: normal; font-weight: 800; font-size: .8rem; letter-spacing: 0; }
  .links { display: none; list-style: none; gap: 26px; }
  .links a { text-decoration: none; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
  .links a:hover { color: var(--ink); }
  .nav-right { display: flex; align-items: center; gap: 8px; }
  .nav-right .btn { padding: 9px 14px; font-size: .85rem; }
  .icon-btn { width: 36px; height: 36px; display: grid; place-items: center; background: transparent; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 0; }
  .icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #theme-toggle .sun, html.is-dark #theme-toggle .moon { display: none; }
  html.is-dark #theme-toggle .sun { display: block; }
  #menu-toggle .close, nav.open #menu-toggle .burger { display: none; }
  nav.open #menu-toggle .close { display: block; }
  @media (min-width: 860px) { .links { display: flex; } #menu-toggle { display: none; } }
  @media (max-width: 859px) {
    .nav-right .btn { display: none; }
    nav.open .links { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px 16px 12px; }
    nav.open .links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  }

  /* Hero */
  .hero { padding: 88px 0 72px; }
  .hero .wrap { display: grid; gap: 40px; align-items: center; }
  @media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 760px); } }
  .hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
  .hero h1 em { font-style: normal; color: var(--teal); }
  .hero p.lede { font-size: 1.15rem; color: var(--ink-soft); margin-top: 22px; max-width: 540px; }
  .hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .88rem; color: var(--ink-soft); }
  .hero .meta span::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 8px; }
  .quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.25); }
  .quote-card .label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
  .quote-card .big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
  .quote-card .big small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
  .quote-card ul { list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
  .quote-card li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
  .quote-card li span:last-child { color: var(--ink-soft); font-family: var(--mono); font-size: .82rem; }
  .quote-card .note { font-size: .82rem; color: var(--ink-faint); margin-top: 14px; }

  /* Packages */
  .packages { display: grid; gap: 18px; margin-top: 40px; }
  @media (min-width: 860px) { .packages { grid-template-columns: repeat(3, 1fr); } }
  .pkg { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; }
  .pkg.pop { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
  .pop-tag { position: absolute; top: -13px; left: 20px; background: var(--teal); color: var(--teal-ink); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
  .pkg h3 { font-size: 1.3rem; font-weight: 700; }
  .pkg .who { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
  .pkg .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin: 18px 0 14px; }
  .pkg .price small { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
  .pkg ul { list-style: none; flex: 1; }
  .pkg li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; }
  .pkg li small { display: block; color: var(--ink-soft); font-size: .84rem; line-height: 1.45; margin-top: 2px; }
  /* Hover explanations */
  .tip-btn { width: 18px; height: 18px; margin-left: 4px; vertical-align: middle; position: relative; top: -1px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); font: 700 .7rem/1 var(--sans); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
  .tip-btn:hover, .tip-btn[aria-expanded="true"] { border-color: var(--teal); color: var(--teal); }
  .tip-box { display: none; color: var(--ink-soft); font-size: .84rem; line-height: 1.45; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 4px; }
  @media (hover: hover) { .pkg li.tip:hover .tip-box { display: block; } }
  .pkg li.tip.open .tip-box, .tip-btn:focus-visible + .tip-box { display: block; }
  @media (min-width: 860px) {
    .tip-box { position: absolute; left: 26px; right: 0; top: calc(100% - 2px); z-index: 5; margin-top: 0; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
  }
  .pkg li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-soft); }
  .pkg li::after { content: ""; position: absolute; left: 4px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
  .pkg .btn { margin-top: 22px; }

  /* Work */
  .work { display: grid; gap: 18px; margin-top: 40px; }
  @media (min-width: 640px) { .work { grid-template-columns: repeat(2, 1fr); } }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
  .status { align-self: flex-start; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
  .status.live { background: var(--teal-soft); color: var(--teal); }
  .card .label { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
  .card h3 { font-size: 1.2rem; font-weight: 700; }
  .card p { color: var(--ink-soft); font-size: .95rem; }
  .card .site-link { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: .85rem; color: var(--teal); text-decoration: none; }
  .card .site-link:hover { text-decoration: underline; }

  /* Technical */
  .tech { display: grid; gap: 18px; margin-top: 40px; }
  @media (min-width: 640px) { .tech { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1000px) { .tech { grid-template-columns: repeat(4, 1fr); } }
  .tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; }
  .tcard .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
  .tcard .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tcard h3 { font-size: 1.1rem; font-weight: 700; }
  .tcard p { color: var(--ink-soft); font-size: .93rem; margin-top: 8px; }
  .tcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
  .tcard .tags span { font-family: var(--mono); font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
  .tech-note { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--teal); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--ink-soft); }
  .tech-note b { color: var(--ink); }
  .tech-pricing { margin-top: 48px; }
  #tech-pricing .tech-pricing { margin-top: 0; }
  .tech-pricing h3 { font-size: 1.3rem; font-weight: 700; }
  .tech-pricing .extras li span small { display: block; color: var(--ink-soft); font-size: .86rem; }
  .tech-pricing .extras li b { white-space: nowrap; }

  /* How it works */
  .how-head { display: grid; gap: 20px; align-items: end; }
  @media (min-width: 860px) { .how-head { grid-template-columns: 1fr auto; gap: 40px; } }
  #how .steps { margin-top: 32px; display: grid; gap: 4px 32px; }
  @media (min-width: 860px) { #how .steps { grid-template-columns: repeat(5, 1fr); } #how .steps li { grid-template-columns: 1fr; gap: 10px; } }
  .steps a { color: var(--teal); }
  .extras-wrap { max-width: 640px; }

  /* Enquiry form */
  .enquiry { align-self: start; background: color-mix(in srgb, var(--teal-ink) 10%, transparent); border: 1px solid color-mix(in srgb, var(--teal-ink) 25%, transparent); border-radius: 14px; padding: 24px; }
  .enquiry .hp { position: absolute; left: -9999px; }
  .enquiry .field { margin-bottom: 14px; }
  .enquiry label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
  .enquiry label small { font-weight: 400; opacity: .75; }
  .enquiry input, .enquiry select, .enquiry textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--teal-ink) 30%, transparent); background: var(--teal-ink); color: var(--ink); }
  html.is-dark .enquiry input, html.is-dark .enquiry select, html.is-dark .enquiry textarea { color: #eef2f0; }
  .enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
  .enquiry .submit { width: 100%; margin-top: 4px; background: var(--teal-ink); color: var(--teal); border-color: var(--teal-ink); }
  .form-note { font-size: .8rem; opacity: .8; margin-top: 12px; }
  .contact-side { display: grid; gap: 26px; align-content: start; }
  .expect ol { list-style: none; counter-reset: e; }
  .expect li { counter-increment: e; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 6px 0; font-size: .93rem; opacity: .92; }
  .expect li::before { content: counter(e); width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }

  /* Care plans */
  .plans { display: grid; gap: 14px; margin-top: 36px; }
  @media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
  .plan { background: var(--surface-2); border-radius: 12px; padding: 22px; }
  .plan .row { display: flex; justify-content: space-between; align-items: baseline; }
  .plan h3 { font-size: 1.05rem; font-weight: 700; }
  .plan .p { font-weight: 800; font-size: 1.3rem; }
  .plan .p small { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
  .plan p { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }

  /* Extras + how */
  .duo { display: grid; gap: 48px; }
  @media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; gap: 72px; } }
  .extras { list-style: none; margin-top: 24px; }
  .extras li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .extras li b { font-weight: 600; }
  .steps { list-style: none; margin-top: 24px; counter-reset: s; }
  .steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 10px 0; font-size: .95rem; color: var(--ink-soft); }
  .steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
  .steps b { color: var(--ink); font-weight: 600; }

  /* Contact */
  .contact { background: var(--teal); color: var(--teal-ink); }
  .contact .kicker { color: color-mix(in srgb, var(--teal-ink) 75%, transparent); }
  .contact h2 { color: var(--teal-ink); }
  .contact .sub { color: color-mix(in srgb, var(--teal-ink) 80%, transparent); }
  .contact-grid { display: grid; gap: 24px; margin-top: 36px; }
  @media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
  .contact .label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
  .contact .val { font-size: 1.5rem; font-weight: 700; text-decoration: none; }
  .contact .val:hover { text-decoration: underline; }
  .contact .btn { background: var(--teal-ink); color: var(--teal); border-color: var(--teal-ink); margin-top: 28px; }
  .contact-details { display: flex; flex-direction: column; gap: 22px; }
  .whatwedo { list-style: none; display: grid; gap: 12px; }
  .whatwedo li { padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--teal-ink) 10%, transparent); font-size: .95rem; color: color-mix(in srgb, var(--teal-ink) 85%, transparent); }
  .whatwedo li b { display: block; color: var(--teal-ink); font-weight: 700; }

  footer { padding: 28px 0 40px; font-size: .82rem; color: var(--ink-faint); }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
  footer a { color: inherit; }
