:root,
html[data-theme="light"] {
  color-scheme: light;
  --primary: #0b8ece;
  --primary-hover: #027abd;
  --accent-soft: #eef8ff;
  --page-bg: #e2f2f7;
  --page-top: #cde9f3;
  --header-bg: #ffffff;
  --header-text: #262626;
  --header-muted: #525252;
  --card-bg: rgba(255, 255, 255, 0.96);
  --subtle-bg: #f2fbfe;
  --download-bg: #072840;
  --download-muted: #cceafb;
  --footer-bg: #d7edf3;
  --footer-text: #262626;
  --footer-muted: #525252;
  --text: #262626;
  --heading: #072840;
  --muted: #5d6d78;
  --border: #c9e7f7;
  --control-border: #0e4684;
  --control-bg: #ffffff;
  --choice-border: #dce8ee;
  --switch-off: #a9bac3;
  --danger: #b91c1c;
  --success: #15803d;
  --progress: #0e4684;
  --shadow: 0 10px 15px -3px rgba(7, 40, 64, 0.1), 0 4px 6px -4px rgba(7, 40, 64, 0.1);
  --font-primary: "Meta Pro", ui-sans-serif, system-ui, sans-serif;
  --font-code: "SourceCode Pro", ui-monospace, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #27a9e8;
  --primary-hover: #55bff1;
  --accent-soft: #11384a;
  --page-bg: #061721;
  --page-top: #0a2633;
  --header-bg: #03121b;
  --header-text: #eef9ff;
  --header-muted: #9fd8f2;
  --card-bg: rgba(11, 37, 50, 0.97);
  --subtle-bg: #102f40;
  --download-bg: #031821;
  --download-muted: #b2d8e9;
  --footer-bg: #08212e;
  --footer-text: #e3f0f5;
  --footer-muted: #a5bdc8;
  --text: #e3f0f5;
  --heading: #f1faff;
  --muted: #a5bdc8;
  --border: #1d4a5e;
  --control-border: #37667a;
  --control-bg: #071e2a;
  --choice-border: #2a5265;
  --switch-off: #58717c;
  --danger: #fca5a5;
  --success: #86efac;
  --progress: #7dd3fc;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  background: var(--page-bg);
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--page-top), var(--page-bg) 35rem);
  color: var(--text);
  font-family: var(--font-primary);
  line-height: 1.5;
  transition: background-color 0.2s, color 0.2s;
}

#fish-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100% - 1120px) / 2));
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 1px 3px rgba(7, 40, 64, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  color: var(--header-text);
  text-decoration: none;
}

.brand-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-logo-contrast {
  filter: none;
}

html[data-theme="dark"] .brand-logo-contrast {
  filter: invert(1) hue-rotate(180deg);
}

html[data-theme="dark"] .brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/grisp-logo.png") center / contain no-repeat;
  mix-blend-mode: lighten;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-label {
  color: var(--header-muted);
  font-size: 0.9rem;
}

.theme-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--subtle-bg);
}

.theme-switcher button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  padding: 5px;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--header-muted);
  cursor: pointer;
}

.theme-switcher svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switcher button[aria-pressed="true"] {
  background: var(--primary);
  color: #ffffff;
}

.theme-switcher button:focus-visible,
.download-card button:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.65);
  outline-offset: 2px;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 72px 0 80px;
  text-align: left;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-hover);
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-code);
  letter-spacing: 0.15em;
}

.intro h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro-description {
  max-width: 560px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.card {
  margin: 0 0 20px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card-bg);
  box-shadow: 0 4px 20px rgba(7, 40, 64, 0.035);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.section-heading h2,
.download-card h2 {
  margin: 0;
  color: var(--heading);
  font-size: 1.3rem;
}

.section-heading p,
.download-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.step {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-hover);
  font-weight: 800;
  font-family: var(--font-code);
}

.language-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.language-option {
  --language-color: var(--primary);
  --language-soft: var(--accent-soft);
  cursor: pointer;
}

.language-erlang {
  --language-color: #a90533;
  --language-soft: rgba(169, 5, 51, 0.09);
}

.language-elixir {
  --language-color: #65438a;
  --language-soft: rgba(101, 67, 138, 0.1);
}

.language-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.language-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--choice-border);
  border-radius: 0.75rem;
  background: var(--card-bg);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.language-logo-frame {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--language-color) 22%, transparent);
  border-radius: 14px;
  background: #ffffff;
}

.language-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.language-copy {
  display: flex;
  flex-direction: column;
}

.language-picker input:checked + .language-card {
  border-color: var(--language-color);
  background: var(--language-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--language-color) 14%, transparent);
}

.language-picker input:focus-visible + .language-card {
  outline: 3px solid color-mix(in srgb, var(--language-color) 35%, transparent);
  outline-offset: 2px;
}

.language-option b {
  color: var(--language-color);
  font-size: 1.08rem;
}

.language-picker small,
label small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}

.fields {
  display: grid;
  gap: 18px;
}

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

.field-wide {
  grid-column: 1 / -1;
}

.field-wide code {
  font-family: var(--font-code);
  font-size: 0.85em;
}

label {
  display: block;
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid var(--control-border);
  border-radius: 0.25rem;
  background: var(--control-bg);
  color: var(--text);
  font: inherit;
  line-height: 1.25;
  outline: none;
}

select {
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 142, 206, 0.18);
}

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  cursor: pointer;
}

.toggle > input {
  position: absolute;
  width: auto;
  opacity: 0;
}

.toggle > span:nth-child(2) {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: 20px;
  background: var(--switch-off);
  transition: 0.15s;
}

.toggle > span:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: 0.15s;
}

.toggle > input:checked + span {
  background: var(--primary);
}

.toggle > input:checked + span::after {
  transform: translateX(18px);
}

.toggle > input:focus-visible + span {
  outline: 3px solid rgba(11, 142, 206, 0.35);
  outline-offset: 2px;
}

.toggle b {
  display: block;
}

.nested {
  margin-top: 0;
}

.dependent {
  margin: 16px 0 0 54px;
  padding: 18px;
  border-radius: 0.75rem;
  background: var(--subtle-bg);
}

.field-notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.86rem;
}

.service-notice {
  margin: 10px 0 0 54px;
  color: var(--muted);
  font-size: 0.86rem;
}

.service-notice a {
  color: var(--primary-hover);
  font-weight: 700;
}

a,
button {
  font-family: var(--font-code);
}

.metadata {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 12px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--download-bg);
  color: #ffffff;
}

.download-card h2 {
  color: #ffffff;
}

.download-card p {
  max-width: 590px;
  color: var(--download-muted);
}

.download-card button {
  flex: 0 0 auto;
  min-width: 210px;
  padding: 14px 20px;
  border: 0;
  border-radius: 0.25rem;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-code);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

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

.download-card button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

#status {
  min-height: 48px;
  padding: 10px 4px;
  color: var(--danger);
  text-align: center;
  font-weight: 650;
}

#status[data-state="progress"] {
  color: var(--progress);
}

#status[data-state="success"] {
  color: var(--success);
}

#status[data-state="error"] {
  color: var(--danger);
}

.next-steps {
  scroll-margin-top: 24px;
  margin-top: 20px;
}

.next-steps:focus {
  outline: none;
}

.next-steps__list {
  margin: 0;
  padding-left: 1.4rem;
  color: var(--text);
}

.next-steps__list li {
  padding-left: 0.35rem;
  margin-bottom: 1rem;
}

.next-steps pre {
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--subtle-bg);
  color: var(--heading);
}

.next-steps code {
  font-family: var(--font-code);
  font-size: 0.95rem;
}

.next-steps__note {
  margin: 0.25rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.next-steps__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.next-steps__links a {
  color: var(--primary-hover);
  font-family: var(--font-code);
  font-size: 0.88rem;
  font-weight: 600;
}

.ct-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--font-primary, "Meta Pro");
  transition: background-color 0.2s, color 0.2s;
}

.ct-footer__container {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 2rem 1rem 1rem;
}

.ct-footer__content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.ct-footer__sections {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2.5rem;
}

.ct-footer__logo {
  width: 100%;
  max-width: 16rem;
  margin-inline: auto;
}

.ct-footer__logo .st0 { fill: #a11e5c; }
.ct-footer__logo .st1 { fill: url("#linear-gradient"); }
.ct-footer__logo .st2 { fill: #0b8ece; }
.ct-footer__logo .st3 { fill: #1d1d1b; }
.ct-footer__logo .st4 { fill: #ffffff; }
.ct-footer__logo .st5 { fill: #e5332b; }
.ct-footer__logo .st6 {
  fill: none;
  stroke: #1d1d1b;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}
.ct-footer__logo .st7 { opacity: 0.6; }
.ct-footer__logo .st8 { opacity: 0.5; }
.ct-footer__logo .st9 { fill: #d51c53; }
.ct-footer__logo .st10 { fill: #088ccd; }
.ct-footer__logo .st11 { fill: #098ece; }
.ct-footer__logo .st12 { fill: url("#linear-gradient1"); }
.ct-footer__logo .st13 { fill: url("#linear-gradient2"); }
.ct-footer__logo .st12,
.ct-footer__logo .st13 {
  isolation: isolate;
  opacity: 0.9;
}

.ct-footer__logo .st3,
.ct-footer__logo .st6 {
  transition: fill 0.2s, stroke 0.2s;
}

html[data-theme="dark"] .ct-footer__logo .st3 {
  fill: var(--footer-text);
}

html[data-theme="dark"] .ct-footer__logo .st6 {
  stroke: var(--footer-text);
}

.ct-footer__section,
.ct-footer__social {
  text-align: center;
}

.ct-footer__section-title,
.ct-footer__social-title {
  margin: 0 0 0.5rem;
  color: var(--footer-text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5rem;
}

.ct-footer__section-details {
  margin: 0;
  color: var(--footer-text);
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.ct-footer__section-actions {
  margin-block: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

.ct-link {
  cursor: pointer;
  color: var(--footer-text);
  font-family: var(--font-code, "SourceCode Pro");
  text-decoration: none;
}

.ct-link--sm {
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.ct-link:hover,
.ct-link:focus-visible {
  color: var(--footer-muted);
}

.ct-footer__social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.ct-footer__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--footer-muted);
  transition: color 0.5s;
}

.ct-footer__social-links a:hover,
.ct-footer__social-links a:focus-visible {
  color: var(--footer-text);
  transition-duration: 0.25s;
}

.ct-footer__copyright {
  display: block;
}

.ct-footer__copyright-text {
  margin: 0;
  color: var(--footer-text);
  text-align: center;
  font-size: 0.625rem;
  line-height: 1rem;
}

.external-link::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-top: -1px;
  margin-left: 4px;
  flex-shrink: 0;
  background: currentColor;
  color: var(--footer-muted);
  --external-icon: url("data:image/svg+xml,%20%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%20%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--external-icon);
  mask-image: var(--external-icon);
}

@media (min-width: 768px) {
  .ct-footer__sections {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ct-footer__logo {
    margin-inline: 0;
  }

  .ct-footer__section,
  .ct-footer__social {
    text-align: left;
  }

  .ct-footer__social-links {
    justify-content: flex-start;
  }
}

@media (min-width: 48rem) and (max-width: 79.999rem) {
  .ct-footer__sections {
    gap: 1.5rem;
  }

  .ct-footer__section-actions .ct-link--sm {
    white-space: nowrap;
  }

  .ct-footer__social-links {
    gap: 0.5rem;
  }

  .ct-footer__social-links a {
    width: 1.5rem;
    height: 1.5rem;
  }

  .ct-footer__social-links svg {
    width: 1rem;
    height: 1rem;
  }
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 18px;
  }

  .header-tools {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .header-label {
    display: none;
  }

}

@media (max-width: 680px) {
  .site-header {
    gap: 10px;
    padding-inline: 10px;
  }

  .brand-logo {
    width: 112px;
  }

  .theme-switcher button {
    width: 32px;
  }

  .intro {
    padding-top: 44px;
  }

  .card {
    padding: 22px;
  }

  .two-columns,
  .language-picker {
    grid-template-columns: 1fr;
  }

  .download-card {
    align-items: stretch;
    flex-direction: column;
  }

  .download-card button {
    width: 100%;
  }

  .dependent {
    margin-left: 0;
  }

  .service-notice {
    margin-left: 0;
  }
}

/* Ocean illustrations and the GRiSP.io onboarding invitation. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--card-bg);
  color: var(--heading);
}

.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 5px;
}

#project-form, #grisp-io-section { scroll-margin-top: 28px; }

/* Safari outlines the whole form when an in-page link focuses this target. */
#project-form:focus { outline: none; }

.header-account {
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  padding-block: 6px;
}

.header-account:hover, .text-link:hover { color: var(--primary-hover); }
.intro h1 span { color: var(--primary-hover); }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.intro-note { margin: 20px 0 0; color: var(--muted); font-size: 0.83rem; }
.text-link { color: var(--heading); font-size: 0.88rem; text-underline-offset: 5px; }

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.action-link--primary { background: #087cb6; color: #fff; }
.action-link--primary:hover { background: #065c8b; box-shadow: 0 4px 14px #087cb633; }
.action-link--secondary {
  cursor: pointer;
  border: 1px solid var(--primary);
  background: var(--card-bg);
  color: var(--primary-hover);
}
.action-link--secondary:hover { background: var(--accent-soft); }

.ocean-scene { position: relative; height: 410px; pointer-events: none; }
.ocean-orbit {
  position: absolute;
  inset: 28px 10px 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #0b8ece13, transparent 70%);
}
.ocean-orbit::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px dashed var(--border);
  border-radius: 50%;
}
.ocean-scene img { position: absolute; object-fit: contain; }
.ocean-jellyfish { width: 78%; height: 88%; top: 0; left: 6%; transform: rotate(-12deg); }
.ocean-algae { width: 24%; height: 55%; bottom: 10px; right: 0; transform: rotate(9deg); }
.ocean-coral { width: 24%; height: 25%; bottom: 8px; left: 6%; }
.ocean-label {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--heading);
  font-family: var(--font-code);
  font-size: 0.72rem;
  box-shadow: 0 6px 20px #07284008;
}
.ocean-label--top { top: 36px; right: 0; transform: rotate(4deg); }
.ocean-label--bottom { bottom: 46px; left: 30%; transform: rotate(-3deg); }
.connection-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #1b9b80; }

.board-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: 42px;
  margin: 0 0 64px;
  padding: 28px 36px 28px 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-bg) 88%, var(--primary) 12%);
  box-shadow: 0 16px 36px rgba(7, 40, 64, 0.08);
}

.board-showcase:focus { outline: none; }

.board-visual {
  position: relative;
  margin: 0;
}

.board-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 16px rgba(7, 40, 64, 0.18));
}

.board-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 7px 11px;
  border-radius: 4px;
  background: rgba(7, 40, 64, 0.9);
  color: #ffffff;
  font-family: var(--font-code);
  font-size: 0.74rem;
  font-weight: 600;
}

.board-visual figcaption span { color: #7dd3fc; }
.board-copy h2 { margin: 0; color: var(--heading); font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.12; letter-spacing: -0.03em; }
.board-description { margin: 18px 0 0; color: var(--muted); }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.board-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.board-link--primary { background: var(--primary); color: #ffffff; }
.board-link--primary:hover { border-color: var(--primary-hover); background: var(--primary-hover); }
.board-link--secondary { background: var(--card-bg); color: var(--primary-hover); }
.board-link--secondary:hover { background: var(--accent-soft); }

.builder-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 0 24px; }
.builder-heading h2 { margin: 0; color: var(--heading); font-size: 1.65rem; letter-spacing: -0.025em; }
.builder-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 0.92rem; }

.cloud-card {
  position: relative;
  overflow: hidden;
  border-color: var(--primary);
  background: var(--card-bg);
  padding: 36px;
}
.cloud-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0b8ece, #50c9d0);
}
.cloud-card .section-heading { margin-bottom: 30px; }
.cloud-card .section-heading .eyebrow { color: var(--primary-hover); font-size: 0.72rem; margin: 0 0 8px; }
.cloud-card .section-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; }
.cloud-card .section-heading .step { background: var(--primary); color: #fff; }
.cloud-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0 0 30px; }
.cloud-benefits img { display: block; margin-bottom: 14px; }
.cloud-card h3, .cloud-invitation h3 { margin: 0 0 6px; color: var(--heading); font-size: 1.08rem; }
.cloud-benefits p, .cloud-invitation p, .cloud-linking p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.cloud-choice { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--subtle-bg); }
.cloud-choice .toggle { margin: 0; }
.cloud-choice b { font-size: 1.08rem; }
.cloud-choice small { margin-top: 4px; }
.choice-status { flex-shrink: 0; color: var(--muted); font-size: 0.8rem; }
.is-enabled .cloud-choice { border-color: var(--primary); background: var(--accent-soft); }
.is-enabled .choice-status { color: var(--success); }
.cloud-invitation { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 28px; }
.cloud-invitation > div { max-width: 460px; }
.cloud-invitation .action-link { flex-shrink: 0; }
.cloud-linking { margin: 24px 0 0; padding: 24px; }
.cloud-linking a, .cloud-footnote a { color: var(--primary-hover); text-underline-offset: 3px; }
.cloud-linking .toggle { margin-top: 18px; }
#token-field { margin-top: 20px; }
#token-help { margin-top: 8px; }
.cloud-footnote { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }
.cloud-footnote a { display: inline-block; margin-left: 6px; font-family: inherit; }
.next-steps .cloud-invitation { border-top: 1px solid var(--border); padding-top: 24px; }
html[data-theme="dark"] .language-erlang { --language-color: #fa88aa; }
html[data-theme="dark"] .language-elixir { --language-color: #c3a4e8; }

@media (max-width: 900px) {
  .header-label { display: none; }
  .intro { gap: 12px; }
  .ocean-scene { height: 340px; }
  .ocean-label { font-size: 0.62rem; padding: 8px; }
  .board-showcase { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .builder-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cloud-invitation { align-items: flex-start; flex-direction: column; gap: 18px; }
  .cloud-invitation > div { max-width: none; }
  .cloud-choice { align-items: flex-start; flex-direction: column; gap: 12px; }
  .choice-status { margin-left: 54px; }
}

@media (max-width: 680px) {
  .site-header { align-items: center; padding: 14px 20px; }
  .header-tools { gap: 10px; }
  .header-account { font-size: 0.7rem; }
  .intro { grid-template-columns: 1fr; padding: 42px 0 36px; gap: 12px; }
  .intro h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .intro-description { margin: 20px 0; font-size: 1rem; }
  .intro-note { font-size: 0.77rem; }
  .ocean-scene { height: 240px; width: min(360px, 100%); margin-inline: auto; }
  .ocean-jellyfish { width: 68%; left: 12%; }
  .ocean-label--top { top: 12px; }
  .ocean-label--bottom { bottom: 20px; }
  .board-showcase { margin: 0 0 42px; padding: 18px; }
  .board-copy h2 { font-size: 1.55rem; }
  .board-description { margin-top: 12px; font-size: 0.92rem; }
  .board-actions { margin-top: 18px; }
  .board-link { flex: 1 1 130px; }
  .builder-heading h2 { font-size: 1.4rem; }
  .card, .cloud-card { padding: 24px 20px; }
  .section-heading { gap: 12px; }
  .cloud-benefits { grid-template-columns: 1fr; gap: 22px; }
  .cloud-benefits > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
  .cloud-benefits img { grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; }
  .cloud-benefits p { grid-column: 2; }
  .cloud-choice, .cloud-linking { padding: 18px; }
  .cloud-choice b { font-size: 1rem; }
  .cloud-invitation .action-link { width: 100%; font-size: 0.79rem; padding-inline: 12px; gap: 10px; }
  .cloud-footnote a { margin: 8px 0 0; }
}

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