/* ============================================================
   OPENSANDBOX.CA — STYLESHEET
   Design tokens and component patterns per DESIGN.md
   ============================================================ */

/* ── 1. CSS Custom Properties ── */
:root {
  --color-bg:             #FFFFFF;
  --color-surface:        #F0F9FF;
  --color-border:         #E0F2FE;
  --color-primary:        #0284C7;
  --color-accent:         #06B6D4;
  --color-accent-light:   #CFFAFE;
  --color-text:           #0F172A;
  --color-text-muted:     #64748B;
  --color-text-on-accent: #FFFFFF;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --container-max: 1120px;
  --content-max:   720px;

  --radius-card:  12px;
  --radius-btn:   8px;
  --radius-input: 8px;
  --radius-pill:  100px;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── 2. Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; }

/* ── 3. Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ── Small Nav CTA (smaller than full btn) ── */
.btn-nav {
  padding: 9px 20px;
  font-size: 14px;
}

/* ── Required field marker ── */
.req {
  color: var(--color-accent);
}

/* ── 3b. App Announcement Bar ── */
.app-announcement-bar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-text-on-accent);
  padding-block: var(--space-3);
}

.app-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  text-align: center;
}

.app-announcement-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.app-announcement-text strong {
  font-family: var(--font-heading);
}

.app-announcement-text a {
  color: var(--color-text-on-accent);
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .app-announcement-text {
    font-size: 0.85rem;
  }
}

/* ── 4. Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  padding-top: 16px;
  padding-bottom: 14px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  height: 99px;
  width: auto;
  max-width: 100%;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 150ms;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 200ms;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 150ms;
}

.nav-mobile a:last-of-type {
  border-bottom: none;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--color-primary);
}

.nav-mobile .btn {
  margin-top: var(--space-4);
}

/* ── 5. Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  border: none;
  transition: background-color 200ms, color 200ms, border-color 200ms;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}

.btn:focus-visible,
.chip:focus-visible,
summary:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #fed766;
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary);
  color: var(--color-text-on-accent);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-surface);
}

.btn-full {
  width: 100%;
  display: block;
}

/* ── 6. Section Heading Pattern ── */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  display: block;
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-subheading {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ── 7. Hero (Home) ── */
.hero {
  padding: var(--space-16) 0;
  position: relative;
  background:
    radial-gradient(ellipse 900px 480px at 15% -10%, rgba(2, 132, 199, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(6, 182, 212, 0.10), transparent 55%),
    var(--color-bg);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.hero-grid {
  align-items: center;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  text-wrap: balance;
}

.hero-subheadline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-support-line {
  margin-top: var(--space-6);
  font-size: 16px;
  color: #1d4f87;
  font-weight: 500;
}

/* ── Hero credibility strip: real, verifiable facts only ── */
.hero-credibility {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.hero-credibility-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--color-text-muted);
}

.hero-credibility-item strong {
  color: var(--color-text);
  font-weight: 500;
}

.hero-credibility-item a {
  color: var(--color-primary);
  font-weight: 500;
  transition: color 150ms;
}

.hero-credibility-item a:hover {
  color: var(--color-accent);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  flex-shrink: 0;
  display: inline-block;
}

.brand-statement {
  margin-top: var(--space-4);
  text-align: center;
  font-weight: 500;
  color: #1d4f87;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img,
.hero-visual svg {
  width: 100%;
  max-width: 560px;
  height: auto;
}

/* ── 8. Page Hero (inner pages) ── */
.page-hero {
  padding: var(--space-16) 0 var(--space-12);
  background: var(--color-bg);
}

.page-hero-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.page-hero-subheadline {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ── 9. About Section ── */
.about-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16) 0;
}

.about-inner {
  max-width: var(--content-max);
}

.about-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.about-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-primary);
}

/* ── 10. Services Preview (home) ── */
.services-preview {
  padding: var(--space-16) 0;
}

.services-preview-header {
  margin-bottom: var(--space-12);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Solid variant: reserved for the Featured Projects spotlight cards only,
   per DESIGN.md's three named, bounded gradient uses. */
.service-icon.is-solid {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.service-icon.is-solid svg {
  stroke: #ffffff;
}

.services-cta {
  margin-top: var(--space-10, 40px);
}

/* ── 11. Card ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  transition: box-shadow 200ms;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(2, 132, 199, 0.08);
}

.card-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.card-body {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── 12. Service Detail (services page) ── */
.services-page {
  padding-bottom: var(--space-24);
}

.service-detail {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.service-detail-body {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 680px;
}

.service-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.service-list-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 16px;
  color: var(--color-text);
}

.service-list.not-included li {
  color: var(--color-text-muted);
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  stroke: var(--color-text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── 13. Project Grid ── */
.projects-section {
  padding: var(--space-4) 0 var(--space-16);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 200ms;
}

.project-card:hover {
  box-shadow: 0 4px 24px rgba(2, 132, 199, 0.08);
}

.project-placeholder {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-placeholder svg {
  width: 100%;
  height: 100%;
}

.project-info {
  padding: var(--space-6);
}

.project-tag {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.chip {
  border: 1px solid #b9dffb;
  background: #eef8ff;
  color: #0f4e89;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 14px;
}

.chip.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ── Featured Projects spotlight: the two named, live products get an
   asymmetric, larger treatment; the anonymized-client rows stay in the
   standard grid below. Real hierarchy, not a uniform 6-card row. ── */
.feature-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.feature-card.is-spotlight {
  background: linear-gradient(155deg, #ffffff 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.08);
}

.feature-card.is-spotlight .card-heading {
  font-size: 24px;
}

.spotlight-live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: var(--space-6);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.08);
}

.feature-card.is-hidden {
  display: none;
}

.feature-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.status-chip {
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  background: #dcfce7;
  color: #166534;
}

.status-dev {
  background: #fef9c3;
  color: #854d0e;
}

.status-maintained {
  background: #e0f2fe;
  color: #0c4a6e;
}

.status-concept {
  background: #f1f5f9;
  color: #475569;
  margin-left: 8px;
  vertical-align: middle;
}

.tech-line {
  font-size: 14px;
  margin-top: var(--space-3);
  color: var(--color-text-muted);
}

.feature-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn-ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: #ffffff;
}

.btn-ghost:hover {
  background: var(--color-surface);
}

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

.category-item {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--color-text);
}

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

/* ── Capabilities + Stack (homepage) ──
   Deliberately not a card grid: a hairline-divided list paired with one
   grouped tag panel, so this section reads differently from the
   feature-card grid above it and the case-item list below it. */
.capabilities-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.capabilities-list {
  display: flex;
  flex-direction: column;
}

.capabilities-list li {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.capabilities-list li:first-child {
  padding-top: 0;
}

.capabilities-list li:last-child {
  border-bottom: none;
}

.capabilities-list .service-icon {
  margin-bottom: 0;
}

.capabilities-list-copy h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.capabilities-list-copy p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.stack-panel {
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-8);
}

.stack-panel-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-6);
}

.stack-group {
  margin-bottom: var(--space-6);
}

.stack-group:last-child {
  margin-bottom: 0;
}

.stack-group-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.stack-tags span {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 13px;
  color: var(--color-text);
}

/* Visual Engine — VisualJourney pattern (see .agents/skills/visual-engine/references/layout-composer-patterns.md) */
.process-journey {
  position: relative;
  margin-top: var(--space-8);
}

.process-journey-path {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* Mobile: a straight connecting line down the stack instead of the desktop route illustration —
   same "path connects the stages" idea, recomposed for a narrow viewport instead of rotated. */
.process-journey-stage {
  position: relative;
  padding-left: var(--space-12);
}

.process-journey-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.5rem;
  bottom: calc(var(--space-6) * -1);
  width: 2px;
  background: var(--color-border);
}

.process-journey-marker {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-on-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-3);
  position: absolute;
  left: 0;
  top: 0;
}

.process-journey-stage h3 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.process-journey-stage p {
  color: var(--color-text-muted);
}

/* Route illustration: desktop/tablet only (see @media min-width:768px below) */
.process-journey-route {
  display: none;
}

.process-journey-route path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 900ms ease-out;
}

.revealed .process-journey-route path {
  stroke-dashoffset: 0;
}

.case-list {
  display: grid;
  gap: var(--space-6);
}

.case-item {
  border-radius: 12px;
  padding: var(--space-6);
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.case-item h3 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
}

.case-item p {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

.experiment-list {
  display: grid;
  gap: var(--space-4);
}

.experiment-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-4) var(--space-6);
}

.experiment-item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text);
}

.experiment-item p {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.project-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.project-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.project-domain {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 500;
}

.work-cta {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.work-cta-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

/* ── 14. Pricing ── */
.pricing-page {
  padding-bottom: var(--space-24);
}

.pricing-section-block {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border);
}

.pricing-section-block:last-of-type {
  border-bottom: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10, 40px);
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-8);
  position: relative;
  transition: box-shadow 200ms;
}

.pricing-card:hover {
  box-shadow: 0 4px 24px rgba(2, 132, 199, 0.08);
}

.pricing-card.featured {
  border: 2px solid var(--color-accent);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.pricing-period {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 16px;
  color: var(--color-text);
}

.pricing-features .check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.pricing-note {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  line-height: 1.6;
}

.pricing-cta {
  margin-top: var(--space-8);
}

/* ── 15. Contact ── */
.contact-section {
  padding-bottom: var(--space-24);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.contact-detail {
  margin-bottom: var(--space-8);
}

.contact-detail-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.contact-detail-value {
  font-size: 20px;
  color: var(--color-text);
  font-weight: 500;
  font-family: var(--font-heading);
}

.contact-detail-note {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  outline: none;
  transition: border-color 150ms;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 44px;
  cursor: pointer;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 14px;
  margin-bottom: var(--space-4);
  min-height: 1em;
}

.form-status-success {
  color: #16A34A;
}

.form-status-error {
  color: #DC2626;
}

/* ── 16. Footer ── */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-primary);
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 150ms;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-contact-item {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.footer-copyright {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── 17. Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .process-journey-route path {
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ── 18. Responsive Upgrades ── */
@media (min-width: 640px) {
  .page-hero-headline {
    font-size: 40px;
  }
  .section-heading {
    font-size: 32px;
  }
  .service-detail-heading {
    font-size: 32px;
  }
  .work-cta-headline {
    font-size: 32px;
  }
  .service-lists {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav-inner {
    min-height: 133px;
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .nav-links {
    display: flex;
  }
  .nav-hamburger {
    display: none;
  }

  .hero {
    padding: var(--space-24) 0;
  }
  .hero-inner {
    flex-direction: row;
    gap: var(--space-16);
    align-items: center;
  }
  .hero-visual {
    flex: 0 0 420px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-spotlight {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid,
  .tech-columns,
  .case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capabilities-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
  }

  /* VisualJourney tablet recomposition: group into a 3x2 grid, drop the
     linear connector (a straight line stops making sense across a grid) —
     not just a narrower version of the mobile stack. */
  .process-journey-stage {
    padding-left: 0;
  }

  .process-journey-stage::after {
    display: none;
  }

  .process-journey-marker {
    position: static;
    margin-bottom: var(--space-3);
  }

  .process-journey-path {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--space-8);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-16);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }

  .footer-contact-col {
    text-align: right;
  }
}

/* VisualJourney desktop recomposition: single-row route illustration.
   A distinct third composition from the tablet 3x2 grid above, not just a
   wider version of it — see .agents/skills/visual-engine/references/responsive-composition.md */
@media (min-width: 1024px) {
  .process-journey-path {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 0;
    column-gap: var(--space-4);
  }

  .process-journey-route {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: calc(var(--space-6) * -1);
    position: relative;
    z-index: 0;
  }
}

/* OpenSandbox studio redesign, September 2026. Shared tokens and scoped layouts. */
:root {
  --color-bg: #fbfcfd;
  --color-surface: #edf4f8;
  --color-border: #cfdae3;
  --color-primary: #076ea6;
  --color-accent: #076ea6;
  --color-accent-light: #e0f1fa;
  --color-text: #172c3b;
  --color-text-muted: #526472;
  --color-text-on-accent: #fbfcfd;
  --container-max: 1280px;
  --radius-card: 12px;
}
html { scroll-behavior: auto; scroll-padding-top: 96px; }
h1,h2,h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 3px solid #076ea6; outline-offset: 5px; }
.btn { min-height: 48px; border-radius: 6px; gap: 20px; font-weight: 500; transition: none; }
.btn-primary,.nav-links .btn-primary,.nav-links .btn-primary.active { background: var(--color-primary); color: var(--color-text-on-accent); border-color: var(--color-primary); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { transform: none; }
.btn:disabled { opacity: .65; cursor: wait; }
.nav { background: var(--color-bg); }
.nav-inner { min-height: 80px; height: 80px; padding-block: 0; }
.nav-logo img { width: 190px; height: 78px; object-fit: contain; }
.nav-links { gap: 28px; }
.nav-links a { color: var(--color-text); white-space: nowrap; }
.nav-links a:not(.btn) { padding-block: 14px; }
.nav-hamburger { min-width: 44px; min-height: 44px; }
.nav-mobile a { min-height: 48px; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 20px; z-index: 30; background: var(--color-bg); color: var(--color-text); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.studio-announcement { background: #e8f2f8; font-size: 12px; }
.studio-announcement a { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 36px; color: #375569; }
.studio-announcement a:hover { text-decoration: underline; }
.studio-hero { padding: 56px 0 72px; overflow: hidden; }
.studio-hero > .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; }
.studio-hero-copy { position: relative; z-index: 1; }
.studio-kicker { font-size: 14px; color: var(--color-text-muted); margin-bottom: 24px; }
.studio-hero h1 { font: 700 clamp(3.2rem,5.5vw,5rem)/1.06 var(--font-heading); letter-spacing: -.04em; margin: 0 0 28px; }
.studio-hero h1 span { color: var(--color-primary); }
.studio-intro { font-size: 19px; line-height: 1.55; max-width: 450px; margin-bottom: 32px; }
.studio-actions { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.studio-text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-weight: 500; color: var(--color-text); text-decoration: underline; text-decoration-color: #a8bdcb; text-underline-offset: 6px; }
.studio-text-link:hover { color: var(--color-primary); }
.studio-hero-art { margin-right: -74px; }
.studio-hero-art img { width: 100%; height: 480px; object-fit: cover; border-radius: 12px; }
.studio-introduction { padding: 56px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.studio-introduction > .container { display: grid; grid-template-columns: 1fr 1.35fr; gap: 96px; }
.studio-introduction h2 { font: 500 36px/1.15 var(--font-heading); letter-spacing: -.025em; }
.studio-introduction p { font-size: 19px; max-width: 65ch; margin-bottom: 16px; }
.studio-small,.studio-introduction .studio-small { font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }
.studio-work,.studio-services,.studio-process,.studio-faq { padding: 96px 0; }
.studio-section-heading { max-width: 750px; margin-bottom: 48px; }
.studio-section-heading h2,.studio-faq h2 { font: 500 clamp(2.2rem,3.6vw,3.25rem)/1.13 var(--font-heading); letter-spacing: -.035em; margin-bottom: 20px; }
.studio-section-heading p { font-size: 18px; color: var(--color-text-muted); max-width: 54ch; }
.studio-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: center; }
.studio-project-image { display: block; padding: 28px; background: #e3edf3; border-radius: 12px; overflow: hidden; }
.studio-project-image img { width: 100%; height: auto; border: 1px solid #d2dce4; border-radius: 4px; }
.studio-category { color: var(--color-text-muted); font-size: 13px; margin-bottom: 20px; }
.studio-project-copy h3,.studio-project-list h3 { font: 500 34px/1.15 var(--font-heading); letter-spacing: -.025em; margin-bottom: 20px; }
.studio-project-copy > p:not(.studio-category),.studio-project-list article > p:not(.studio-category) { color: var(--color-text-muted); max-width: 54ch; margin-bottom: 24px; }
.studio-project-list { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; }
.studio-project-list article { border-top: 1px solid var(--color-border); padding-top: 28px; }
.studio-privacy { margin-top: 32px; }
.studio-services { background: var(--color-surface); }
.studio-service-rows > a { display: grid; grid-template-columns: 40px 1fr 160px 24px; gap: 24px; align-items: start; border-top: 1px solid #c7d8e3; padding: 32px 0; }
.studio-service-rows h3 { font: 500 27px/1.25 var(--font-heading); margin-bottom: 12px; }
.studio-service-rows p { max-width: 58ch; color: var(--color-text-muted); }
.studio-service-number,.studio-service-type { font-size: 13px; color: var(--color-text-muted); padding-top: 7px; }
.studio-service-rows a:hover h3 { color: var(--color-primary); }
.studio-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 56px; counter-reset: process; }
.studio-steps li { counter-increment: process; }
.studio-steps li::before { content: counter(process,decimal-leading-zero); display: block; color: var(--color-primary); font: 500 40px var(--font-heading); margin-bottom: 24px; }
.studio-steps h3 { font: 500 22px var(--font-heading); margin-bottom: 12px; }
.studio-steps p { color: var(--color-text-muted); }
.studio-insights { background: #e7f2f8; padding: 64px 0; }
.studio-insights > .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.studio-insights h2 { font: 500 38px/1.15 var(--font-heading); letter-spacing: -.025em; }
.studio-insights h3 { font: 500 22px var(--font-heading); margin-bottom: 16px; }
.studio-insights p { margin-bottom: 16px; }
.studio-faq > .container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.studio-faq-list details { border-bottom: 1px solid var(--color-border); }
.studio-faq-list summary { padding: 22px 32px 22px 0; font-size: 17px; cursor: pointer; position: relative; list-style: none; }
.studio-faq-list summary::-webkit-details-marker { display: none; }
.studio-faq-list summary::after { content: '+'; position: absolute; right: 0; color: var(--color-primary); }
.studio-faq-list details[open] summary::after { content: '−'; }
.studio-faq-list details p { padding: 0 32px 24px 0; color: var(--color-text-muted); }
.studio-contact { margin: 0 24px 72px; border-radius: 12px; background: #e1eef6; padding: 72px 0; }
.studio-contact h2 { font: 500 clamp(3rem,5vw,4.75rem)/1.08 var(--font-heading); letter-spacing: -.04em; margin-bottom: 36px; }
footer { background: var(--color-bg); border-top: 1px solid var(--color-border); }
.footer-name { color: var(--color-text); }
.footer-nav { flex-wrap: wrap; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.studio-inner .page-hero { background: var(--color-surface); padding: 64px 0; }
.studio-inner .page-hero-headline { font-size: clamp(2.5rem,4.5vw,4rem); letter-spacing: -.035em; }
.studio-inner .page-hero-sub { max-width: 58ch; }
.studio-inner .eyebrow { color: var(--color-primary); }
.studio-inner .project-card { background: var(--color-bg); border: 1px solid var(--color-border); box-shadow: none; }
.studio-inner .project-desc { color: var(--color-text-muted); }
.studio-inner .form-input,.studio-inner .form-select,.studio-inner .form-textarea { background: var(--color-bg); border-color: #94a7b6; color: var(--color-text); min-height: 48px; }
.form-input::placeholder,.form-textarea::placeholder { color: #586d7c; opacity: 1; }
.form-input:focus,.form-select:focus,.form-textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.field-error { color: #a02626; font-size: 14px; margin-top: 8px; }
[aria-invalid="true"] { border-color: #a02626 !important; }
.reveal { opacity: 1; transform: none; transition: none; }
@media (max-width: 1100px) {
 .nav-links { gap: 18px; }
 .studio-hero h1 { font-size: 64px; }
 .studio-hero-art { margin-right: 0; }
 .studio-hero-art img { height: 410px; }
 .studio-feature { gap: 40px; }
 .studio-introduction > .container { gap: 56px; }
}
@media (max-width: 900px) {
 .nav-links { display: none; }
 .nav-hamburger { display: flex; }
 .studio-hero h1 { font-size: 52px; }
 .studio-hero-art img { height: 370px; }
 .studio-service-rows > a { grid-template-columns: 30px 1fr 24px; }
 .studio-service-type { display: none; }
 .studio-steps { gap: 28px; }
 .studio-faq > .container { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
 .container { padding-inline: 24px; }
 .nav-inner { height: 72px; min-height: 72px; }
 .nav-logo img { width: 166px; height: 70px; }
 .studio-announcement a { justify-content: space-between; gap: 8px; font-size: 11px; }
 .studio-announcement a > span:not(:last-child) { display: none; }
 .studio-hero { padding: 32px 0 40px; }
 .studio-hero > .container { grid-template-columns: 1fr; gap: 32px; }
 .studio-kicker { font-size: 12px; margin-bottom: 20px; }
 .studio-hero h1 { font-size: clamp(2.6rem,11vw,3.5rem); margin-bottom: 20px; }
 .studio-intro { font-size: 17px; margin-bottom: 24px; }
 .studio-actions { gap: 16px; }
 .studio-actions .btn { padding-inline: 18px; font-size: 14px; }
 .studio-actions .studio-text-link { font-size: 14px; }
 .studio-hero-art img { height: auto; aspect-ratio: 3/2; }
 .studio-introduction > .container,.studio-feature,.studio-project-list,.studio-insights > .container { grid-template-columns: 1fr; gap: 28px; }
 .studio-introduction { padding: 40px 0; }
 .studio-introduction h2 { font-size: 30px; }
 .studio-introduction p { font-size: 17px; }
 .studio-work,.studio-services,.studio-process,.studio-faq { padding: 56px 0; }
 .studio-section-heading { margin-bottom: 32px; }
 .studio-section-heading h2,.studio-faq h2 { font-size: 34px; }
 .studio-section-heading p { font-size: 16px; }
 .studio-project-image { padding: 16px; }
 .studio-project-copy h3,.studio-project-list h3 { font-size: 28px; }
 .studio-project-list { margin-top: 36px; gap: 32px; }
 .studio-category { margin-bottom: 12px; }
 .studio-service-rows > a { grid-template-columns: 22px 1fr 14px; gap: 12px; padding-block: 24px; }
 .studio-service-rows h3 { font-size: 23px; }
 .studio-service-rows p { font-size: 15px; }
 .studio-steps { grid-template-columns: 1fr; gap: 32px; }
 .studio-steps li::before { font-size: 28px; margin-bottom: 8px; }
 .studio-insights { padding: 40px 0; }
 .studio-insights h2 { font-size: 32px; }
 .studio-faq-list summary { font-size: 16px; }
 .studio-contact { margin: 0 12px 40px; padding: 40px 0; }
 .studio-contact h2 { font-size: 42px; }
 .studio-contact .container { padding-inline: 20px; }
 .studio-inner .page-hero { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } .btn:active { transform: none; } }
.studio-inner .projects-grid { gap: 40px; }
.studio-inner .project-card { border: 0; border-top: 1px solid var(--color-border); border-radius: 0; }
.studio-inner .project-info { padding: 28px 0; }
.studio-inner .project-name { font-size: 28px; }
.studio-inner .project-tag { background: none; padding: 0; color: var(--color-text-muted); }
.studio-inner .studio-owned-project { background: var(--color-surface); border-radius: 12px; border: 0; padding: 24px; }
.studio-inner .studio-owned-project .project-info { padding: 24px 0 0; }
.studio-owned-image { width: 100%; height: auto; border-radius: 4px; }
/* Final polish: quiet controls and a compact footer. */
.btn,.btn:hover,.btn-primary,.btn-primary:hover { box-shadow: none; }
.footer-nav { flex-direction: row; gap: 20px; }
@media (max-width: 640px) { .footer-nav { gap: 8px 20px; } }
.studio-inner .contact-section { padding-top: 56px; }
@media (min-width: 641px) and (max-width: 900px) {
 .studio-hero h1 { font-size: clamp(2.2rem,5vw,2.8rem); }
 .studio-hero .studio-actions { gap: 12px; }
 .studio-hero .studio-actions .btn { padding-inline: 16px; }
 .studio-hero .studio-text-link { font-size: 14px; }
}
@media (min-width: 901px) { .studio-home .nav-mobile.open,.studio-inner .nav-mobile.open { display: none; } }
