/* Omgevingen / Environments feature page.
   Console screenshots sit in the same dark product frame as the
   Browserview capture; everything else follows the shared feature tokens. */

.environments-page {
  --env-frame-bg: #171613;
  --env-frame-line: #a84f26;
  --env-frame-shadow: 0 0 0 1px rgb(255 129 67 / 10%), 0 26px 80px rgb(0 0 0 / 34%), 0 0 70px rgb(165 66 21 / 16%);
  --env-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Shared icon chip, same language as the Browser page controls. */
.env-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}

/* Dark frame around a console screenshot. */
.env-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--env-frame-line);
  border-radius: 20px;
  background: var(--env-frame-bg);
  box-shadow: var(--env-frame-shadow);
}
.env-shot img { width: 100%; height: auto; display: block; }
/* Long, empty terminal areas fade into the frame instead of ending in a hard crop. */
.env-shot--fade img {
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}

/* Hero: the desktop terminal with the phone in front of it. */
.env-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); }
.env-hero h1 { max-width: 13ch; font-size: clamp(42px, 4.6vw, 66px); }
.env-hero-visual {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}
.env-hero-visual .env-shot { grid-column: 1 / 12; grid-row: 1; }
.env-phone {
  grid-column: 10 / 13;
  grid-row: 1;
  z-index: 1;
  width: 100%;
  max-width: 190px;
  justify-self: end;
  margin-top: clamp(84px, 10vw, 150px);
  padding: 6px;
  border: 1px solid rgb(245 238 231 / 16%);
  border-radius: 34px;
  background: #0d0c0b;
  box-shadow: 0 30px 70px rgb(0 0 0 / 45%), 0 0 0 1px rgb(0 0 0 / 50%);
}
.env-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}
/* The three proof points sit next to each other on one row; on phones they stack. */
@media (min-width: 561px) {
  .env-hero .feature-proof-points { width: max-content; flex-wrap: nowrap; gap: 8px clamp(12px, 1.4vw, 18px); }
  .env-hero .feature-proof-points li { white-space: nowrap; }
}

/* One workspace: three ways in, joined by one folder. */
.env-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.env-way {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--color-divider);
  border-radius: 24px;
  background: color-mix(in srgb, var(--color-neutral-100) 62%, transparent);
}
.env-way .env-icon { margin-bottom: 6px; }
.env-way h3 { margin: 0; font-family: var(--font-body); font-size: 20px; font-weight: 780; }
.env-way p { margin: 0; color: var(--feature-ink-soft); }
.env-way a {
  margin-top: auto;
  padding-top: 14px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.env-way a:hover { text-decoration: underline; text-underline-offset: 3px; }
.env-way::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -27px;
  width: 2px;
  height: 26px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--color-accent) 50%, transparent);
}
.env-workspace-bar {
  margin: 26px 0 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgb(245 238 231 / 10%);
  border-radius: 18px;
  color: #f5eee7;
  background: #1b1b19;
  box-shadow: var(--shadow-md);
  font-size: 15px;
}
.env-workspace-bar .env-icon { color: #fb8951; background: rgb(251 137 81 / 14%); }
.env-workspace-bar code {
  color: #fb8951;
  font-family: var(--env-mono);
  font-size: 16px;
  font-weight: 700;
}
.env-workspace-bar span:last-child { color: #cfc2b3; }

/* Terminal: screenshot next to the controls it explains. */
.env-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.env-points { margin: 0; padding: 0; display: grid; gap: 18px; list-style: none; }
.env-points li { display: flex; align-items: flex-start; gap: 14px; color: var(--feature-ink-soft); font-size: 15px; }
.env-points li strong { display: block; color: var(--color-text); font-size: 17px; }
@media (min-width: 901px) {
  .env-split--reverse { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .env-split--reverse .env-shot { order: 2; }
}

/* Mobile: the real key bar, large enough to read. */
.env-mobile-panel {
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border: 1px solid var(--color-divider);
  border-radius: 34px;
  background: color-mix(in srgb, var(--color-neutral-100) 62%, transparent);
}
.env-mobile-copy h2 { margin-bottom: 14px; font-size: clamp(34px, 3.6vw, 50px); }
.env-mobile-copy h2 span { color: var(--color-accent); }
.env-mobile-copy p { margin: 0; color: var(--feature-ink-soft); font-size: 17px; }
.env-keys {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--env-frame-line);
  border-radius: 22px;
  background: var(--env-frame-bg);
  box-shadow: var(--env-frame-shadow);
}
.env-keys img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .env-hero { grid-template-columns: 1fr; }
  .env-ways,
  .env-split,
  .env-mobile-panel { grid-template-columns: 1fr; }
  .env-way::after { display: none; }
}
@media (max-width: 560px) {
  .env-hero h1 { font-size: 42px; }
  .env-phone { max-width: 150px; padding: 4px; border-radius: 24px; }
  .env-phone img { border-radius: 20px; }
  .env-shot { border-radius: 16px; }
  .env-workspace-bar { flex-wrap: wrap; gap: 10px 14px; }
  .env-hero .feature-proof-points { flex-direction: column; gap: 8px; }
}
