/* JACE homepage, rebuilt to Marck's supplied mock (DIRECTION.md, direction 8, picked 2026-10-05).
   Layout and shapes follow the mock exactly; palette, type and logo come from brand kit 1.1:
   teal where the mock had terracotta, warm white and mint tints where it had cream and peach.
   Used by index.html only; other pages keep styles.css until the rollout. */

@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/SpaceGrotesk-Variable.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/DMSans-Variable.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --teal: #115e59;
  --teal-hover: #0d4844;
  --warm: #faf9f6;
  --white: #ffffff;
  --mint: #a7f3d0;
  --mint-soft: #e2f6ec;
  --charcoal: #202927;
  --muted: #52615c;
  --rule: #cbd3cc;
  --card-shadow: 0 18px 40px rgba(32, 41, 39, .12);
  --radius-card: 16px;
  --radius-button: 10px;
  --grotesk: 'Space Grotesk', Arial, sans-serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--charcoal); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
@media (min-width: 900px) { .container { padding-inline: 48px; } }

a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }

.skip { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header: white, logo left, nav + pill button right */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid #eceee9; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; flex-wrap: wrap; }
.brand img { width: 165px; height: auto; display: block; }
.menu-toggle { display: none; font-family: var(--sans); font-size: 14px; font-weight: 600; background: var(--white); color: var(--charcoal); border: 1.5px solid var(--charcoal); border-radius: var(--radius-button); padding: 10px 16px; min-height: 44px; cursor: pointer; }
.site-nav { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--charcoal); text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav a.button { color: #fff; }
.site-nav a.button:hover { color: #fff; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: #fff; background: var(--teal);
  border: none; border-radius: var(--radius-button);
  padding: 13px 22px; min-height: 48px; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--teal-hover); }
.button:disabled, .button:disabled:hover, .button[aria-busy="true"], .button[aria-busy="true"]:hover {
  background: var(--rule); color: var(--charcoal); box-shadow: none; cursor: not-allowed;
}
.button svg { width: 14px; height: 14px; }
.button.secondary { color: var(--charcoal); background: rgba(255, 255, 255, .75); border: 1px solid var(--rule); box-shadow: none; }
.button.secondary:hover { background: var(--white); }
.button.on-teal { color: var(--teal); background: var(--warm); box-shadow: none; }
.button.on-teal:hover { background: var(--white); }

/* Hero band: warm ground with soft mint and teal tints in the corners */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(640px 420px at 88% 8%, rgba(167, 243, 208, .55), transparent 68%),
    radial-gradient(560px 480px at 4% 78%, rgba(17, 94, 89, .12), transparent 70%),
    linear-gradient(180deg, var(--warm), #f1f4f0);
}
.hero .container { padding-block: 56px 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--grotesk); font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  color: var(--charcoal); background: rgba(255, 255, 255, .6);
  border: 1px solid var(--rule); border-radius: 999px; padding: 9px 18px; margin: 0 0 26px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero h1 {
  font-family: var(--grotesk); font-weight: 500;
  font-size: clamp(30px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 20px; text-wrap: balance;
}
.hero h1 .accent { color: var(--teal); display: block; }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 36em; margin: 0 auto 6px; }
.hero .sub + .sub { margin-bottom: 30px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .hint { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }

/* Three tilted cards */
.cards { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 52px; flex-wrap: wrap; }
.card {
  background: var(--white); border-radius: var(--radius-card); box-shadow: var(--card-shadow);
  padding: 22px 24px; width: 240px; text-align: left;
}
.card .lab { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.card .lab svg { width: 16px; height: 16px; }
.card h2 { font-family: var(--grotesk); font-weight: 500; font-size: 20px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.card.left { transform: rotate(-4deg); }
.card.right { transform: rotate(3deg); }
.card.center {
  transform: none; width: 268px; padding: 26px 28px;
  background: var(--teal); color: #fff;
}
.card.center .lab { color: var(--mint); }
.card.center h2 { font-size: 23px; color: #fff; }
.card.center p { color: #cfe4df; }
.card .tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 0; }
.card .tags span { font-size: 13px; font-weight: 500; color: var(--charcoal); background: #eef2ee; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }

/* The one authored moment: the three cards settle into place on arrival, from a visible start */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .card.left { animation: settle-left .9s cubic-bezier(.16, 1, .3, 1) .12s both; }
  .card.center { animation: settle-up .8s cubic-bezier(.16, 1, .3, 1) both; }
  .card.right { animation: settle-right .9s cubic-bezier(.16, 1, .3, 1) .2s both; }
}
@keyframes settle-left { from { transform: translateY(16px) rotate(0deg); } to { transform: rotate(-4deg); } }
@keyframes settle-right { from { transform: translateY(16px) rotate(0deg); } to { transform: rotate(3deg); } }
@keyframes settle-up { from { transform: translateY(10px); } to { transform: none; } }

/* Checkmark strip */
.trust-strip { border-bottom: 1px solid #eceee9; background: var(--white); padding: 22px 0; }
.trust-strip .container { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-strip span { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--charcoal); }
.trust-strip svg { width: 15px; height: 15px; color: var(--teal); }

/* How we help */
.kicker { font-family: var(--grotesk); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 16px; }
.help .container { padding-block: 72px 76px; }
.help .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; flex-wrap: wrap; margin-bottom: 40px; }
.help h2 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -.015em; margin: 0; max-width: 14em; }
.help .head p { margin: 0; font-size: 16px; color: var(--muted); max-width: 24em; }
.help-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.help-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #f4f5f1; border-radius: var(--radius-card); padding: 30px 30px 26px;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, background-color .25s ease;
}
@media (hover: hover) {
  .help-card:hover { transform: translateY(-3px); background: var(--white); box-shadow: 0 16px 34px rgba(32, 41, 39, .09); }
}
.help-card > svg {
  box-sizing: content-box; width: 22px; height: 22px; padding: 11px; margin-bottom: 18px;
  color: var(--teal); background: var(--white); border-radius: 12px;
}
.help-card h3 { font-family: var(--grotesk); font-weight: 500; font-size: 22px; margin: 0 0 10px; letter-spacing: -.01em; }
.help-card p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.help-card a { margin-top: auto; }
.help-card a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--charcoal); text-decoration: none; }
.help-card a:hover { color: var(--teal); }
.help-card a svg { width: 13px; height: 13px; margin: 0; color: currentColor; }

/* The JACE difference */
.difference { background: #f1f4f0; padding: 72px 24px; }
.difference .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; max-width: 1104px; padding-left: 0; padding-right: 0; }
@media (min-width: 900px) { .difference { padding: 72px 48px; } }
.difference h2 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 18px; max-width: 14em; }
.difference .blurb p { margin: 0 0 14px; font-size: 16px; color: #39433d; max-width: 34em; }
.difference .blurb .button { margin-top: 10px; }
.difference .steps { list-style: none; margin: 0; padding: 0; }
.difference .steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; padding: 16px 0; align-items: start; }
.difference .steps li + li { border-top: 1px solid #dde2dc; }
.difference .steps .no {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--white);
  display: grid; place-items: center;
  font-family: var(--grotesk); font-size: 13px; font-weight: 600; color: var(--teal);
}
.difference .steps h3 { font-family: var(--grotesk); font-weight: 500; font-size: 19px; margin: 2px 0 4px; letter-spacing: -.01em; }
.difference .steps p { margin: 0; font-size: 16px; color: var(--muted); }

/* Our work: the office board with the technician's tablet in front, drawn with made-up names */
.showcase { background: var(--charcoal); color: var(--warm); padding: 88px 0; overflow: hidden; }
.showcase .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.showcase .kicker { color: var(--mint); }
.showcase h2 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.16; letter-spacing: -.015em; margin: 0 0 18px; color: #fff; text-wrap: balance; }
.showcase-text > p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.65; color: #cfdcd7; max-width: 34em; }
.showcase .text-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--mint); }
.showcase .text-link:hover { color: var(--mint); }
.showcase .text-link svg { width: 14px; height: 14px; }
.showcase .caption { margin: 22px 0 0; font-size: 13.5px; color: #a9bab4; }
.scene-wrap { margin: 0; }
.scene-wrap figcaption { margin-top: 14px; font-size: 13.5px; color: #a9bab4; }
.scene { position: relative; padding: 0 0 84px; font-family: var(--sans); color: var(--charcoal); }
.scene-board { background: var(--white); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.sb-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e3e8e3; }
.sb-top b { font-family: var(--grotesk); font-weight: 600; font-size: 16px; }
.sb-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; }
.sb-date { margin-left: auto; font-size: 13px; color: var(--muted); }
.sb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 22px; background: #f4f6f3; }
.sb-colh { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sb-card { position: relative; background: var(--white); border: 1px solid #e3e8e3; border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
.sb-card b { display: block; font-weight: 600; padding-right: 30px; }
.sb-card span { display: block; color: var(--muted); }
.sb-card em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); background: #f1f4f0; border-radius: 5px; padding: 1px 7px; }
.sb-card em.live { color: var(--teal); background: var(--mint-soft); }
.sb-card em.done { color: var(--teal); background: var(--mint-soft); }
.sb-card i { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--teal); background: var(--mint-soft); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.scene-tablet {
  position: absolute; right: -14px; bottom: 0; width: 270px;
  background: var(--white); border: 9px solid #141c1a; border-radius: 20px; overflow: hidden;
  box-shadow: 0 28px 56px rgba(0, 0, 0, .45);
}
.st-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; background: var(--teal); color: #fff; font-size: 13px; }
.st-bar b { font-weight: 600; }
.st-bar span { font-size: 13px; font-weight: 600; color: #805100; background: var(--warm); border-radius: 6px; padding: 2px 8px; }
.st-body { padding: 12px 14px 14px; font-size: 13px; }
.st-body p { margin: 0; }
.st-t { font-family: var(--grotesk); font-weight: 600; font-size: 15px; }
.st-sub { color: var(--muted); margin-bottom: 6px !important; }
.st-body ul { list-style: none; margin: 0; padding: 0; }
.st-body li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef2ef; }
.st-body li em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--teal); background: var(--mint-soft); border-radius: 5px; padding: 1px 8px; }
.st-saved { margin-top: 10px !important; text-align: center; font-weight: 600; color: var(--teal); background: var(--mint-soft); border-radius: 8px; padding: 7px; }

/* Solutions page: the example screen stays beside the text it illustrates */
@media (min-width: 900px) {
  .detail .example { position: sticky; top: 112px; }
}

/* Contact page: the question spans the page, then the notes and the form side by side */
.contact-page { background: #f1f4f0; }
.contact-page .enquiry { border-color: #e3e8e3; }
.contact-grid h1 { font-size: clamp(28px, 6vw, 76px); line-height: 1.04; letter-spacing: -.018em; max-width: 16em; }
@media (min-width: 900px) {
  .contact-grid { grid-template-areas: "intro intro" "asides form"; }
  .contact-intro { margin-bottom: 40px; }
  .contact-intro .lead { max-width: 40em; }
}

/* Browser surfaces carry the design too */
::selection { background: var(--mint); color: var(--charcoal); }
html { accent-color: var(--teal); caret-color: var(--teal); scrollbar-color: #b7c4be transparent; scroll-padding-top: 96px; }
a { text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* CTA band */
.cta-wrap { padding: 26px 24px 64px; }
.cta {
  max-width: 1200px; margin: 0 auto;
  background: linear-gradient(135deg, var(--teal), var(--teal-hover));
  color: #fff; border-radius: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 44px 48px;
}
.cta h2 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -.015em; margin: 0 0 8px; }
.cta p { margin: 0; font-size: 15.5px; color: #cfe4df; }

/* Footer */
.site-footer { border-top: 1px solid #eceee9; background: var(--white); }
.site-footer .container { padding-block: 40px 28px; }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.site-footer .top > div, .site-footer .top > nav { flex: 1 1 220px; min-width: 200px; }
.site-footer .mark { width: 52px; }
.site-footer .wordmark { font-family: var(--grotesk); font-weight: 600; font-size: 19px; display: block; margin: 8px 0 6px; }
.site-footer h2 { font-family: var(--grotesk); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--charcoal); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.site-footer p { margin: 0 0 8px; font-size: 15px; color: var(--muted); max-width: 26em; }
.site-footer .bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; border-top: 1px solid #eceee9; margin-top: 28px; padding-top: 18px; }
.site-footer .bottom p { font-size: 13px; color: var(--muted); margin: 0; }

/* Inner pages: the shell carried over. These pages load styles.css first for their
   own components (demos, forms, prose), then this sheet wins the shared shell. */
.hero-simple {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(640px 420px at 88% 8%, rgba(167, 243, 208, .5), transparent 68%),
    radial-gradient(560px 480px at 4% 78%, rgba(17, 94, 89, .11), transparent 70%),
    linear-gradient(180deg, var(--warm), #f1f4f0);
}
.hero-simple .container { padding-block: 48px 56px; }
.hero-simple h1 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(28px, 6vw, 76px); line-height: 1.04; letter-spacing: -.018em; margin: 0 auto 14px; max-width: 18em; text-wrap: balance; }
.hero-simple h1 .accent { color: var(--teal); }
.hero-simple .lead { font-size: 17.5px; color: var(--muted); max-width: 42em; margin: 0 auto; }
.container > .cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-hover));
  color: #fff; border-radius: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 44px 48px; margin-block: 26px 64px;
}
.container > .cta h2 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -.015em; margin: 0 0 8px; color: #fff; }
.container > .cta p { margin: 0; font-size: 15.5px; color: #cfe4df; }
.contact-intro .eyebrow, .hero-simple .eyebrow { margin-bottom: 20px; }
.fill-dark a, .fill-dark .text-link { color: #fff; }
.fill-dark a:hover, .fill-dark .text-link:hover { color: var(--mint); }
.demo-toggle { padding: 8px 14px; }

@media (max-width: 860px) {
  .showcase { padding: 64px 0; }
  .showcase .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .scene { padding-bottom: 120px; }
  .scene-tablet { right: 0; width: min(270px, 70%); }
  .difference .container { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .help-cards { grid-template-columns: minmax(0, 1fr); }
  .card.left, .card.right { transform: none; }
  .card, .card.center { width: 100%; max-width: 380px; }
}
@media (max-width: 600px) {
  .sb-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-col:nth-child(3) { display: none; }
}
@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 8px 14px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 2px; }
  .hero .container { padding-block: 40px 52px; }
  .trust-strip .container { gap: 18px; justify-content: flex-start; }
  .cta { padding: 32px 26px; }
}
