/* SmartWorks Labs site stylesheet. PRD 01 owns every value here.
   Colors come only from the tokens in :root. */

/* ---------- Fonts (PRD 01, Section 8.5) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter-Regular.woff2?v=20261110") 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: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/Inter-Medium.woff2?v=20261110") 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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Inter-SemiBold.woff2?v=20261110") 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: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Inter-Bold.woff2?v=20261110") 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: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/Inter-ExtraBold.woff2?v=20261110") 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;
}

/* ---------- Tokens (PRD 01, Section 3) ---------- */

:root {
  /* 3.1 Color */
  --color-ocean-blue: #0080FF;
  --color-caribbean-blue: #0099E6;
  --color-deep-turquoise: #00B8A6;
  --color-deep-navy: #1A365D;
  --color-slate-gray: #64748B;
  --color-cool-gray: #94A3B8;
  --color-silver: #CBD5E1;
  --color-cloud-white: #F8FAFC;
  --color-pure-white: #FFFFFF;
  --color-deep-palm: #22C55E;
  --color-sunset-orange: #FF8C42;
  --color-rich-coral: #E63946;
  --surface-hover: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --accent-hover: #0066CC;
  --accent-subtle: rgba(0, 128, 255, 0.08);
  /* Footer values named in PRD 01, Section 5.4 */
  --focus-on-dark: #38BDF8;
  --rule-on-dark: rgba(255, 255, 255, 0.12);
  /* Home band values named in PRD 02, Sections 6.1 and 6.3 */
  --band-mid: #0073E6;
  --navy-pressed: #0F2544;
  /* Card and panel values named in PRD 03, Sections 5 and 6.2 */
  --live-subtle: rgba(34, 197, 94, 0.10);
  --scrim: rgba(26, 54, 93, 0.48);

  /* 3.3 Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --type-display: 48px;
  --type-h1: 36px;
  --type-h2: 28px;
  --type-h3: 22px;
  --type-h4: 18px;
  --type-body-large: 18px;
  --type-body: 16px;
  --type-body-small: 14px;
  --type-caption: 12px;
  --type-button: 14px;
  --type-overline: 11px;

  /* 3.4 Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-gap: var(--space-9);

  /* 3.5 Radius and elevation */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* 3.6 Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 150ms;
  --duration-panel: 250ms;

  /* 4.1 Grid */
  --content-width: 1200px;
  --gutter: 24px;
  --side-margin: 48px;
  --columns: 12;
  --header-height: 64px;
}

@media (max-width: 1279px) {
  :root { --side-margin: 32px; }
}

@media (max-width: 1023px) {
  :root { --side-margin: 24px; --columns: 8; }
}

@media (max-width: 767px) {
  :root {
    --side-margin: 16px;
    --columns: 4;
    --type-display: 36px;
    --type-h1: 30px;
    --type-h2: 24px;
    --type-h3: 20px;
    --type-body-large: 17px;
    --section-gap: var(--space-8);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 88 px: the fixed header plus 24 px, so an anchored heading clears the header (PRD 07, Section 4.4). */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--color-cloud-white);
  color: var(--color-slate-gray);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-deep-navy);
}

h1 {
  font-size: var(--type-h1);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}

h2 {
  font-size: var(--type-h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

h3 {
  font-size: var(--type-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.25px;
}

h4 {
  font-size: var(--type-h4);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

.type-display {
  font-size: var(--type-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.type-body-large {
  font-size: var(--type-body-large);
  line-height: 1.6;
}

.type-body-small {
  font-size: var(--type-body-small);
  line-height: 1.5;
}

.type-caption {
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.25px;
}

.type-overline {
  font-size: var(--type-overline);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.statement {
  color: var(--color-deep-navy);
  font-size: var(--type-body-large);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-ocean-blue);
  outline-offset: 2px;
}

/* ---------- Layout (PRD 01, Section 4) ---------- */

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--side-margin));
  margin-inline: auto;
  padding-inline: var(--side-margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  column-gap: var(--gutter);
}

main {
  display: block;
  padding-bottom: var(--section-gap);
}

/* The skip link focuses main (tabindex -1); main itself is not a control. */
main:focus {
  outline: none;
}

.section {
  padding-top: var(--section-gap);
}

/* Sections are 96 px apart (64 px on mobile) with the hairline rule centered in the gap. */
.section + .section {
  padding-top: calc(var(--section-gap) / 2);
}

.section + .section > .container::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: calc(var(--section-gap) / 2);
  background: var(--border);
}

.reading {
  max-width: 720px;
}

/* ---------- Links and buttons (Sections 4.4, 4.5) ---------- */

a {
  color: var(--accent-hover);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--duration-fast) var(--ease-standard);
}

a:hover {
  text-decoration-thickness: 2px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-decoration: none;
}

.action-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.action-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 120px;
  height: 40px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--type-button);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.25px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}

.button:active {
  transform: scale(0.98);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.button--primary {
  background: var(--color-ocean-blue);
  color: var(--color-pure-white);
}

.button--primary:hover {
  background: var(--accent-hover);
}

.button--secondary {
  background: transparent;
  color: var(--color-ocean-blue);
  border: 1.5px solid var(--color-ocean-blue);
}

.button--secondary:hover {
  background: var(--accent-subtle);
}

/* ---------- Skip link (Section 5.5) ---------- */

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Header (Section 5.1) ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-pure-white);
  border-bottom: 1px solid var(--border);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-height) - 1px);
}

.site-header__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.site-header__logo img {
  width: 160px;
  height: auto;
}

.site-nav__list {
  display: flex;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  color: var(--color-deep-navy);
  font-size: 15px;
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--duration-fast) var(--ease-standard);
}

.site-nav__link:hover {
  text-decoration-color: var(--border-strong);
}

.site-nav__link[aria-current="page"] {
  text-decoration-color: var(--color-ocean-blue);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-2);
  border: 0;
  background: transparent;
  color: var(--color-deep-navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.menu-button svg {
  width: 24px;
  height: 24px;
}

.menu-button__close,
.menu-button[aria-expanded="true"] .menu-button__open {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-button__close {
  display: inline;
}

/* ---------- Mobile menu (Section 5.2) ---------- */

.mobile-menu {
  display: none;
}

.mobile-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__list li + li {
  border-top: 1px solid var(--border);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 var(--space-4);
  color: var(--color-deep-navy);
  font-size: var(--type-h4);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.mobile-menu__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-ocean-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (max-width: 1023px) {
  .site-nav {
    display: none;
  }

  .js .menu-button {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
    background: var(--color-pure-white);
    border-top: 1px solid var(--border);
  }

  .js .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--border);
    visibility: hidden;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform var(--duration-panel) var(--ease-exit), opacity var(--duration-panel) var(--ease-exit), visibility 0s linear var(--duration-panel);
  }

  .js .mobile-menu.is-open {
    visibility: visible;
    transform: none;
    opacity: 1;
    transition: transform var(--duration-panel) var(--ease-enter), opacity var(--duration-panel) var(--ease-enter), visibility 0s;
  }

  /* No script: the links show inline below the header, and the header scrolls with the page. */
  .no-js .site-header {
    position: static;
  }

  .no-js body {
    padding-top: 0;
  }
}

@media (max-width: 359px) {
  .site-header__logo img {
    width: auto;
    height: 28px;
  }
}

/* ---------- Footer (Section 5.4) ---------- */

.site-footer {
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  background: var(--color-deep-navy);
  color: var(--surface-hover);
}

.site-footer__logo {
  width: 180px;
  height: auto;
  margin-bottom: var(--space-7);
}

.site-footer__columns {
  row-gap: var(--space-6);
}

.site-footer__column {
  grid-column: span 4;
}

@media (min-width: 768px) {
  .site-footer__column {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .site-footer__column {
    grid-column: span 3;
  }
}

.site-footer__heading {
  margin-bottom: var(--space-3);
  color: var(--color-cool-gray);
  font-size: var(--type-overline);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li + li {
  margin-top: var(--space-2);
}

.site-footer a {
  color: var(--surface-hover);
  font-size: var(--type-body);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-footer :focus-visible {
  outline-color: var(--focus-on-dark);
}

/* Touch targets of 44 px for nav and footer links (PRD 01, Section 11). */
@media (pointer: coarse) {
  .site-nav__link,
  .site-footer__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .site-footer__list li + li {
    margin-top: 0;
  }
}

.site-footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-on-dark);
  color: var(--color-cool-gray);
  font-size: var(--type-body-small);
  line-height: 1.5;
}

/* ---------- Page header for inner pages (PRD 04 Section 4, PRD 05 Section 2.1) ---------- */

.page-header {
  padding-top: var(--space-8);
}

.page-header .statement {
  margin-top: var(--space-4);
}

/* Sections after a page header keep the standard rhythm (PRD 04, Section 7). */
.page-header + .section {
  padding-top: calc(var(--section-gap) / 2);
}

.page-header + .section > .container::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: calc(var(--section-gap) / 2);
  background: var(--border);
}

/* ---------- Home hero (PRD 02, Section 4) ---------- */

/* One centered column with no illustration. 100 px above the content. Below the buttons, the
   padding plus the half section gap the next section puts above its hairline gives 80 px to the
   rule (32 + 48). On mobile it is 60 px above and 48 px below (16 + 32), and the type follows the
   mobile scale. */
.hero {
  padding-top: 100px;
  padding-bottom: var(--space-6);
}

.hero__content {
  text-align: center;
}

.hero__content h1 {
  max-width: 800px;
  margin-inline: auto;
  font-size: clamp(40px, 3vw, 44px);
  line-height: 1.15;
  text-wrap: balance;
}

/* Each H1 sentence is a span. From 880 px the second sentence (813 px measured at 40 px, 882 px at
   43.2 px) fits on one line, so each span takes its own line. Below that they run inline and the
   H1 wraps balanced. */
@media (min-width: 880px) {
  .hero__content h1 {
    max-width: 1100px;
  }

  .hero__line {
    display: block;
  }
}

.hero__text {
  max-width: 650px;
  margin: var(--space-5) auto 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (max-width: 767px) {
  .hero {
    padding-top: 60px;
    padding-bottom: var(--space-4);
  }

  .hero__content h1 {
    font-size: var(--type-h1);
  }

  .hero__actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero__actions .button {
    width: 100%;
  }
}

/* A section that follows a band or pointer gets the gap with no hairline (PRD 02, Section 8). */
.section + .section--no-rule {
  padding-top: var(--section-gap);
}

.section + .section--no-rule > .container::before {
  display: none;
}

/* ---------- How we build band (PRD 02, Section 6) ---------- */

.band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-5);
  align-items: center;
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-ocean-blue) 0%, var(--band-mid) 70%, var(--color-deep-turquoise) 100%);
  color: var(--color-pure-white);
}

.band__text {
  grid-column: 1 / span 8;
}

.band h2 {
  color: var(--color-pure-white);
}

.band p {
  max-width: 62ch;
  margin-top: var(--space-4);
  color: var(--color-pure-white);
  font-size: var(--type-body-large);
  font-weight: 600;
}

.band__action {
  grid-column: 10 / span 3;
  justify-self: end;
}

.band__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-deep-navy);
  color: var(--color-pure-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.band__link:hover,
.band__link:focus-visible {
  background: var(--navy-pressed);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.band__link:focus-visible {
  outline-color: var(--color-pure-white);
}

.band__link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1023px) {
  .band {
    display: block;
  }

  .band__action {
    margin-top: var(--space-5);
  }
}

@media (max-width: 767px) {
  .band {
    padding: var(--space-6);
  }
}

@media (max-width: 359px) {
  .band {
    padding: var(--space-5);
  }

  .band__link {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

.closing-link {
  margin-top: var(--space-4);
}

.pointer p {
  margin-top: var(--space-4);
}

.pointer .action-link {
  margin-top: var(--space-5);
}

/* ---------- Product groups and cards (PRD 03, Sections 3 to 5) ---------- */

.product-group__intro {
  margin-top: var(--space-3);
  font-size: var(--type-body-large);
}

.product-group__intro--line {
  max-width: 60ch;
}

.product-group__intro--paragraph {
  max-width: 68ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: var(--space-6);
}

@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-1);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

@media (hover: hover) {
  .product-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-2);
  }
}

.product-card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.product-card__titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
}

.product-card__name {
  font-size: var(--type-h3);
}

.product-card__tagline,
.details-panel__tagline {
  color: var(--color-slate-gray);
  font-size: var(--type-body-small);
  font-weight: 500;
  line-height: 1.5;
}

.product-tile {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.product-tile img {
  position: relative;
  width: 56px;
  height: 56px;
}

.product-tile--normal img {
  width: 40px;
  height: 40px;
}

.product-tile__initials {
  display: none;
  position: absolute;
  color: var(--color-deep-navy);
  font-size: var(--type-h4);
  font-weight: 600;
  line-height: 1.4;
}

.product-tile.is-broken img {
  display: none;
}

.product-tile.is-broken .product-tile__initials {
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  color: var(--color-deep-navy);
  font-size: var(--type-caption);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.25px;
  white-space: nowrap;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.badge--live {
  background: var(--live-subtle);
}

.badge--live .badge__dot {
  background: var(--color-deep-palm);
}

.badge--development {
  background: var(--surface-hover);
}

.badge--development .badge__dot {
  background: var(--color-slate-gray);
}

.product-card .badge {
  margin-top: var(--space-3);
}

.product-card__text {
  margin-top: var(--space-3);
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
}

.product-card__details,
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-decoration: none;
  cursor: pointer;
}

.product-card__details:hover,
.product-card__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.product-card__link {
  margin-left: auto;
}

.product-card__details svg,
.product-card__link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Details panel (PRD 03, Section 6) ---------- */

.details {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.details__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
  transition: opacity var(--duration-panel) var(--ease-exit);
}

.details-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-panel) var(--ease-exit), transform var(--duration-panel) var(--ease-exit);
}

.details.is-open .details__scrim {
  opacity: 1;
  transition-timing-function: var(--ease-enter);
}

.details.is-open .details-panel {
  opacity: 1;
  transform: none;
  transition-timing-function: var(--ease-enter);
}

.details-panel__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) 0;
}

.details-panel__header .product-tile,
.details-panel__header .product-tile img {
  width: 48px;
  height: 48px;
}

.details-panel__header .product-tile--normal img {
  width: 34px;
  height: 34px;
}

.details-panel__titles {
  flex: 1;
  min-width: 0;
}

.details-panel__close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-deep-navy);
  cursor: pointer;
}

.details-panel__close:hover {
  background: var(--surface-hover);
}

.details-panel__close svg {
  width: 20px;
  height: 20px;
}

.details-panel__body {
  overflow-y: auto;
  padding: var(--space-3) var(--space-6) var(--space-6);
}

.details-part {
  margin-top: var(--space-5);
}

.details-part h3 {
  color: var(--color-slate-gray);
  font-size: var(--type-overline);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.details-part p {
  margin-top: var(--space-1);
  color: var(--color-deep-navy);
}

.details-part__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

/* ---------- Reading pages (PRD 05, Section 2) ---------- */

.reading-page {
  padding-top: var(--space-8);
}

.reading-section {
  margin-top: var(--space-7);
}

.reading-section p {
  margin-top: var(--space-4);
}

.reading-page p {
  color: var(--color-deep-navy);
  font-size: var(--type-body-large);
}

.reading-page .action-link {
  margin-top: var(--space-4);
}

.reading-page h1 + .reading-section--first {
  margin-top: var(--space-6);
}

@media (max-width: 767px) {
  .reading-section {
    margin-top: var(--space-6);
  }

  .reading-page p {
    font-size: var(--type-body);
  }

  .reading-page .page-intro {
    font-size: var(--type-body-large);
  }
}

/* ---------- Contact (PRD 06, Sections 3 to 5) ---------- */

.contact__intro {
  grid-column: 1 / span 5;
}

.contact__intro .statement {
  max-width: 56ch;
}

.contact__form-wrap {
  grid-column: 7 / span 6;
}

@media (max-width: 1023px) {
  .contact__intro {
    grid-column: 1 / span 3;
  }

  .contact__form-wrap {
    grid-column: 4 / span 5;
  }
}

@media (max-width: 767px) {
  .contact__intro,
  .contact__form-wrap {
    grid-column: 1 / -1;
  }

  .contact__form-wrap {
    margin-top: var(--space-6);
  }
}

.contact-form,
.contact-success {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-pure-white);
  box-shadow: var(--shadow-1);
}

@media (max-width: 767px) {
  .contact-form,
  .contact-success {
    padding: 20px;
  }
}

.field + .field,
.field-row + .field {
  margin-top: var(--space-5);
}

.field-row > .field + .field {
  margin-top: 0;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
}

@media (max-width: 767px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field__label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-deep-navy);
  font-size: var(--type-body-small);
  font-weight: 500;
  line-height: 1.5;
}

.field__input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--color-pure-white);
  color: var(--color-deep-navy);
  font-family: inherit;
  font-size: var(--type-body);
  line-height: 1.2;
}

.field__input:focus-visible {
  outline: 2px solid var(--color-ocean-blue);
  outline-offset: 2px;
}

.field__input:disabled {
  opacity: 0.5;
}

.field__input.is-invalid {
  border-color: var(--color-rich-coral);
}

.field__textarea {
  height: auto;
  min-height: 150px;
  line-height: 1.6;
  resize: vertical;
}

.field__select {
  position: relative;
}

.field__select select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
}

.field__select svg {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 16px;
  height: 16px;
  color: var(--color-slate-gray);
  pointer-events: none;
}

.field__count {
  margin-top: var(--space-1);
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}

.field__count.is-warning {
  color: var(--color-rich-coral);
}

.field__error,
.form__error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--color-rich-coral);
  font-size: var(--type-body-small);
  line-height: 1.5;
}

.field__error svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.form__error {
  margin: var(--space-5) 0 0;
}

.field__note {
  margin-top: 6px;
  font-size: var(--type-body-small);
}

.recaptcha {
  max-width: 100%;
  min-height: 78px;
  overflow-x: auto;
}

.contact-form__submit {
  min-width: 160px;
  margin-top: var(--space-5);
}

@media (max-width: 767px) {
  .contact-form__submit {
    width: 100%;
  }
}

.contact-success svg {
  width: 24px;
  height: 24px;
  color: var(--color-deep-palm);
}

.contact-success__title {
  margin-top: var(--space-3);
  font-size: var(--type-h4);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.contact-success p {
  margin-top: var(--space-2);
}

/* ---------- Legal pages (PRD 07, Section 4) ---------- */

.legal__aside {
  grid-column: 1 / span 3;
}

.legal__doc {
  grid-column: 4 / span 8;
  min-width: 0;
}

.section-list {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.section-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-list li + li {
  margin-top: var(--space-2);
}

.section-list a {
  display: block;
  padding-left: var(--space-3);
  border-left: 2px solid transparent;
  color: var(--color-slate-gray);
  font-size: var(--type-body-small);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.section-list a:hover {
  text-decoration: underline;
}

.section-list a[aria-current="location"] {
  border-left-color: var(--color-ocean-blue);
  color: var(--color-deep-navy);
}

.section-list-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .legal__aside {
    display: none;
  }

  .legal__doc {
    grid-column: 1 / -1;
  }

  .section-list-mobile {
    display: block;
    margin-top: var(--space-5);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .section-list-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    color: var(--color-deep-navy);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
  }

  .section-list-mobile summary::-webkit-details-marker {
    display: none;
  }

  .section-list-mobile summary svg {
    width: 16px;
    height: 16px;
    transition: transform var(--duration-fast) var(--ease-standard);
  }

  .section-list-mobile[open] summary svg {
    transform: rotate(180deg);
  }

  .section-list-mobile .section-list {
    position: static;
    max-height: none;
    padding-bottom: var(--space-4);
  }

  .section-list-mobile .section-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

.legal__dates {
  margin-top: var(--space-3);
  font-size: var(--type-body-small);
  line-height: 1.5;
}

.legal__scope {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.legal__body {
  max-width: 72ch;
  color: var(--color-deep-navy);
  line-height: 1.7;
}

/* The 88 px anchor offset comes from scroll-padding-top on html; a heading scroll-margin would add to it. */
.legal__body h2 {
  margin: var(--space-7) 0 var(--space-4);
}

.legal__body h3 {
  margin: var(--space-5) 0 var(--space-3);
}

.legal__body h2:focus,
.legal__body h3:focus {
  outline: none;
}

.legal__body p + p,
.legal__body ul + p,
.legal__body p + ul {
  margin-top: var(--space-4);
}

.legal__body ul {
  margin: 0;
  padding-left: 24px;
}

.legal__body li + li {
  margin-top: var(--space-2);
}

.legal__body li::marker {
  color: var(--color-slate-gray);
}

.legal__body strong {
  font-weight: 600;
}

.legal__body hr {
  height: 1px;
  margin: var(--space-7) 0 var(--space-5);
  border: 0;
  background: var(--border);
}

.legal__body h4 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--type-body);
  font-weight: 600;
}

.legal__table-wrap {
  margin-top: var(--space-3);
  overflow-x: auto;
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-body-small);
  line-height: 1.5;
}

.legal__table th,
.legal__table td {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal__table th {
  background: var(--surface-hover);
  font-weight: 600;
}

.legal__table-wrap + p {
  margin-top: var(--space-4);
}

/* ---------- App pages (e.g. /jellydrift/) ---------- */

.app-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-5);
}

.app-hero:focus {
  outline: none;
}

.app-hero__tile.product-tile {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-lg);
}

.app-hero__tile.product-tile img {
  width: 112px;
  height: 112px;
}

.app-hero__titles {
  flex: 1 1 280px;
  min-width: 0;
}

.app-hero__tagline {
  margin-top: var(--space-3);
  color: var(--color-slate-gray);
}

.app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.app-hero__intro {
  margin-top: var(--space-6);
}

/* ---------- 404 page (PRD 01, Section 9.4) ---------- */

.not-found__mark {
  width: auto;
  height: 64px;
  margin-bottom: var(--space-6);
}

.not-found p {
  margin-top: var(--space-4);
}

.not-found .not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

/* ---------- Reduced motion (Section 3.6) ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print (Section 12.6) ---------- */

@media print {
  .site-header,
  .mobile-menu,
  .menu-button,
  .skip-link,
  .product-card__details,
  .details,
  .contact__form-wrap,
  .legal__aside,
  .section-list-mobile,
  .site-footer__logo,
  .site-footer__columns {
    display: none !important;
  }

  body {
    padding-top: 0;
    background: var(--color-pure-white);
  }

  .site-footer {
    padding: 0;
    background: var(--color-pure-white);
    color: var(--color-deep-navy);
  }

  .site-footer__bottom {
    margin: 0;
    border: 0;
    color: var(--color-deep-navy);
  }

  .legal__doc {
    grid-column: 1 / -1;
  }

  .legal__body li {
    break-inside: avoid;
  }

  main a[href^="http"]::after {
    content: " (" attr(href) ")";
  }

  main a[href^="/"]::after {
    content: " (https://smartworkslabs.com" attr(href) ")";
  }
}
