/* Orulas Technologies. One stylesheet, no build step.
 *
 * The rules behind these styles are in docs/design.md.
 *
 *   1. Tokens          5. Hero            9. Diagram
 *   2. Base            6. Sections       10. Process
 *   3. Header          7. Compare        11. Specs, work
 *   4. Buttons         8. Cards          12. Inner pages
 *  13. Forms, booking                    14. Footer, motion
 */

/* ---------- 1. Tokens ---------- */

:root {
  color-scheme: dark;

  --bg: #0b0c10;
  --bg-raise: #0f1116;
  --card: #13151c;
  --line: #22242c;
  --line-strong: #353844;
  --ink: #f2f0eb;
  --muted: #a1a4b1;
  --dim: #6e7181;
  --accent: #8ea6ff;
  --accent-bright: #b6c4ff;
  --accent-ink: #0b0c10;
  --glow: rgba(142, 166, 255, 0.14);
  --ok: #4cc38a;
  --no: #e0796c;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 72rem;
  --gutter: 1.5rem;
  --header-h: 4.25rem;
  --radius: 1rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

/* The hidden attribute always wins, whatever display a class sets. */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* A measure for running text inside a container, aligned with its left edge. */
.measure {
  max-width: 46rem;
}

.cta .measure {
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

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

/* ---------- 3. Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

/* Glass once the page has scrolled, or while the mobile menu is open. */
.site-header[data-scrolled],
.site-header[data-open] {
  background: rgba(11, 12, 16, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-mark {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  transition: transform 0.6s var(--ease);
}

.wordmark:hover .wordmark-mark {
  transform: scale(1.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a:not(.button) {
  position: relative;
  padding-block: 0.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:not(.button)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:not(.button):hover,
.site-nav a[aria-current] {
  color: var(--ink);
}

.site-nav a:not(.button):hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before {
  display: block;
  width: 1.4rem;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.menu-icon {
  transform: translateY(-4px);
}

.menu-icon::before {
  content: "";
  transform: translateY(8px);
}

[data-open] .menu-icon {
  transform: rotate(45deg);
}

[data-open] .menu-icon::before {
  transform: rotate(-90deg);
}

@media (max-width: 52rem) {
  .menu-button {
    display: block;
  }

  /* The menu drops below the bar and fills the screen. Absolute, not fixed:
     the header's backdrop-filter would make it the containing block anyway. */
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--bg);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
  }

  [data-open] .site-nav {
    visibility: visible;
    opacity: 1;
  }

  .site-nav a:not(.button) {
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .site-nav a:not(.button)::after {
    display: none;
  }

  .site-nav .button {
    margin-top: 2rem;
    padding: 0.95rem 1.35rem;
    justify-content: center;
    font-size: 1rem;
  }
}

/* ---------- 4. Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.3s;
}

.button:hover {
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--glow), 0 10px 32px -10px rgba(142, 166, 255, 0.6);
}

button.button {
  font-family: inherit;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.button-block {
  width: 100%;
  justify-content: center;
  padding-block: 0.95rem;
}

.button span {
  transition: transform 0.3s var(--ease);
}

.button:hover span {
  transform: translateX(3px);
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--accent);
  background: rgba(142, 166, 255, 0.07);
  box-shadow: none;
}

.button-small {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.text-link {
  color: var(--accent);
  font: 0.8125rem/1.4 var(--mono);
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-bright);
}

.more-link {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 2.25rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.more-link span {
  transition: transform 0.3s var(--ease);
}

.more-link:hover {
  color: var(--accent-bright);
}

.more-link:hover span {
  transform: translateX(3px);
}

/* ---------- 5. Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

/* Keeps the copy readable over the spiral, and melts the hero into the page. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg), transparent 28%),
    linear-gradient(to right, var(--bg) 24%, rgba(11, 12, 16, 0.86) 46%, transparent 74%);
  pointer-events: none;
}

.hero-copy {
  max-width: 41rem;
  padding-block: 4rem 5rem;
}

.hero-copy > * {
  animation: rise 1s var(--ease) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  color: var(--accent);
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.5rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.lede {
  max-width: 35rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.5rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 3.25rem;
  color: var(--dim);
  font: 0.8125rem/1.4 var(--mono);
}

.hero-facts li::before {
  content: "+ ";
  color: var(--accent);
}

@media (max-width: 52rem) {
  .hero {
    align-items: end;
  }

  .hero::before {
    background: linear-gradient(to top, var(--bg) 30%, rgba(11, 12, 16, 0.55) 62%, transparent);
  }

  .hero-copy {
    padding-block: 42svh 3.5rem;
  }
}

/* ---------- 6. Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(5rem, 11vw, 9.5rem);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  color: var(--dim);
  font: 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker span {
  color: var(--accent);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.section-lede {
  max-width: 38rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  text-wrap: pretty;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

@media (max-width: 52rem) {
  .split {
    grid-template-columns: 1fr;
  }
}

.marks {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
  color: var(--muted);
}

.marks li {
  position: relative;
  padding-left: 1.75rem;
}

.marks li::before {
  position: absolute;
  left: 0;
  font-family: var(--mono);
}

.marks-plus li::before {
  content: "+";
  color: var(--accent);
}

.marks-minus li::before {
  content: "\2013";
  color: var(--dim);
}

.marks-yes li::before {
  content: "\2713";
  color: var(--accent);
}

.marks-no li::before {
  content: "\2715";
  color: var(--no);
}

/* ---------- 7. Compare ---------- */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.compare-col {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--bg-raise);
}

.compare-col h3 {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  letter-spacing: -0.022em;
}

/* The usual way, drawn: separate tools that do not line up. */
.patchwork,
.unified {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0.5rem;
  min-height: 7rem;
  margin-top: 1.75rem;
}

.patchwork span {
  padding: 0.45rem 0.75rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0.4rem;
  color: var(--dim);
  font: 0.75rem/1.2 var(--mono);
}

.patchwork span:nth-child(odd) {
  transform: rotate(-2.5deg);
}

.patchwork span:nth-child(even) {
  transform: rotate(2deg) translateY(4px);
}

.patchwork span:nth-child(3) {
  transform: rotate(3.5deg) translateY(-2px);
}

/* The Orulas way, drawn: the same jobs inside one system. */
.unified {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(142, 166, 255, 0.5);
  border-radius: 0.75rem;
  background: rgba(142, 166, 255, 0.07);
  box-shadow: 0 0 44px -14px rgba(142, 166, 255, 0.55);
}

.unified strong {
  flex-basis: 100%;
  font-size: 0.9375rem;
}

.unified span {
  padding: 0.35rem 0.7rem;
  border-radius: 0.4rem;
  background: rgba(142, 166, 255, 0.14);
  color: var(--accent-bright);
  font: 0.75rem/1.2 var(--mono);
}

.compare-col-ours {
  background:
    radial-gradient(28rem 18rem at 100% 0%, var(--glow), transparent 70%),
    var(--card);
}

.compare-col-ours .label {
  color: var(--accent);
}

.compare-col-ours h3,
.compare-col-ours .marks {
  color: var(--ink);
}

@media (max-width: 44rem) {
  .compare {
    grid-template-columns: 1fr;
  }
}

/* ---------- 8. Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s;
}

/* A soft light that follows the pointer (site.js sets --mx and --my). */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover {
  border-color: var(--line-strong);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 2.75rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

/* ---------- 9. Diagram ---------- */

.diagram {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 1.5rem 1.5rem,
    var(--bg-raise);
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-links path {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.25;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset 1.4s var(--ease) 0.3s;
}

[data-visible] .diagram-links path,
html:not(.js) .diagram-links path {
  stroke-dashoffset: 0;
}

.diagram-pulses circle {
  fill: var(--accent);
}

.diagram-node rect {
  fill: var(--card);
  stroke: var(--line-strong);
}

.diagram-node text {
  fill: var(--muted);
  font: 500 13px var(--font);
  text-anchor: middle;
}

.diagram-core rect {
  fill: var(--accent);
  stroke: none;
  filter: drop-shadow(0 0 22px rgba(142, 166, 255, 0.45));
}

.diagram-core text {
  fill: var(--accent-ink);
  font-size: 15px;
  font-weight: 650;
}

/* ---------- 10. Process ---------- */

/* A line runs across the steps and fills as the section scrolls through the
   screen (home.js sets --progress, 0 to 1, and marks the steps it has passed). */
.process {
  --progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-top: 2.5rem;
}

.process::before,
.process::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line-strong);
}

.process::after {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: scaleX(var(--progress));
  transform-origin: left;
}

.step {
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: calc(-2.5rem - 4px);
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.step[data-active]::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

.step-number {
  display: block;
  margin-bottom: 1rem;
  color: var(--dim);
  font: 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  transition: color 0.4s;
}

.step[data-active] .step-number {
  color: var(--accent);
}

.step p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

@media (max-width: 52rem) {
  .process {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 0 0 2.25rem;
  }

  .process::before,
  .process::after {
    inset: 0 auto 0 4px;
    width: 1px;
    height: auto;
  }

  .process::after {
    transform: scaleY(var(--progress));
    transform-origin: top;
  }

  .step::before {
    top: 0.1rem;
    left: -2.25rem;
  }
}

/* ---------- 11. Specs, work ---------- */

.specs {
  border-top: 1px solid var(--line);
}

.specs > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.5rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.specs dt {
  color: var(--ink);
  font-weight: 600;
}

.specs dd {
  color: var(--muted);
}

@media (max-width: 30rem) {
  .specs > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 44rem) {
  .work {
    grid-template-columns: 1fr;
  }
}

.work-item h3 {
  margin-top: 1.5rem;
  font-size: 1.375rem;
}

.work-item p {
  margin-block: 0.6rem 1rem;
  color: var(--muted);
}

/* A drawn stand-in for a product screen, until real screenshots replace it. */
.screen {
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.6s var(--ease);
}

.work-item:hover .screen {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.screen-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.screen-bar i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.screen-body {
  padding: 7%;
}

.screen-body span {
  display: block;
  border-radius: 0.4rem;
  background: var(--line);
}

.screen-body .on {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(142, 166, 255, 0.4);
}

/* The design stages: the same page as a sketch, a draft, and finished. */
.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 44rem) {
  .stages {
    grid-template-columns: 1fr;
  }
}

.stage h3 {
  margin-top: 1.4rem;
}

.stage p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

.stage:hover .screen {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.screen-layout .screen-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 2fr;
  gap: 8%;
}

.screen-layout .screen-body span:first-child {
  grid-column: 1 / -1;
}

.screen-sketch .screen-body span {
  border: 1px dashed var(--line-strong);
  background: transparent;
}

.screen-final {
  border-color: rgba(142, 166, 255, 0.4);
}

.screen-final .screen-body span:not(.on) {
  background: var(--line-strong);
}

.screen-calendar .screen-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5%;
}

.screen-chat .screen-body {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 7%;
}

.screen-chat aside,
.screen-chat .screen-body > div {
  display: grid;
  gap: 10%;
}

.screen-chat .screen-body > div span:nth-child(odd) {
  width: 62%;
}

.screen-chat .screen-body > div span:nth-child(even) {
  width: 48%;
  margin-left: auto;
}

/* The closing call to action is the one centered block on the page. */
.cta {
  background: radial-gradient(60rem 26rem at 50% 120%, var(--glow), transparent 70%);
  text-align: center;
}

.cta .section-lede {
  margin-inline: auto;
}

.cta .hero-actions {
  justify-content: center;
}

/* ---------- 12. Inner pages ---------- */

/* The top of every page but the home page. */
.page-hero {
  padding-block: calc(var(--header-h) + clamp(4rem, 9vw, 7.5rem)) clamp(3rem, 7vw, 5.5rem);
  background: radial-gradient(52rem 24rem at 88% -12%, var(--glow), transparent 70%);
}

.page-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.page-hero .lede {
  max-width: 38rem;
}

.page-hero .container > *,
.page-hero .split > div > * {
  animation: rise 1s var(--ease) both;
}

.label {
  color: var(--dim);
  font: 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tags li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.prose p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.prose p + p {
  margin-top: 1.25rem;
}

.card .label {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

/* A row per service or case study: what it is on one side, the detail on the other. */
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.row:first-child {
  padding-top: 0;
  border-top: 0;
}

.row:last-child {
  padding-bottom: 0;
}

.row h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.row .card-icon {
  margin-bottom: 1.5rem;
}

.row .label + h2 {
  margin-top: 0.9rem;
}

.row-lede {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.row .marks {
  margin-top: 1.25rem;
}

.row .label:not(:first-child) {
  margin-top: 2.25rem;
}

.row .text-link {
  display: inline-block;
  margin-top: 1.5rem;
}

@media (max-width: 52rem) {
  .row {
    grid-template-columns: 1fr;
  }
}

/* Questions and answers, one under another. */
.split-top {
  align-items: start;
}

.faq > div {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.faq > div:first-child {
  padding-top: 0;
}

.faq p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.plan-featured {
  border-color: rgba(142, 166, 255, 0.45);
  background:
    radial-gradient(24rem 14rem at 100% 0%, var(--glow), transparent 70%),
    var(--card);
}

.plan h3 {
  margin-top: 0.9rem;
  font-size: 1.5rem;
}

.plan > p:not([class]) {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

.price {
  margin-top: 1.75rem;
  font-size: 2.5rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price small {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--dim);
  font: 0.6875rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.plan .marks {
  margin-block: 1.75rem 2rem;
  font-size: 0.9375rem;
}

.plan .button {
  margin-top: auto;
  justify-content: center;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -40px rgba(142, 166, 255, 0.35);
}

.portrait figcaption {
  margin-top: 0.9rem;
  color: var(--dim);
  font: 0.8125rem/1.5 var(--mono);
}

/* Privacy and terms: one readable column of headed paragraphs. */
.legal {
  max-width: 44rem;
  margin-left: max(var(--gutter), (100% - var(--container)) / 2);
}

.legal h2 {
  margin-top: 3rem;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.legal p,
.legal ul {
  margin-top: 1rem;
  color: var(--muted);
}

.legal ul {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li::marker {
  color: var(--accent);
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
}

.effective {
  margin-top: 0;
  color: var(--dim);
  font: 0.75rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 13. Forms, booking ---------- */

.field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.field + .field,
.field + .field-row,
.field-row + .field {
  margin-top: 1.25rem;
}

/* Two short fields side by side. */
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

@media (max-width: 30rem) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.field label,
.field legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.optional {
  color: var(--dim);
  font-weight: 400;
}

.input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--dim);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

textarea.input {
  min-height: 7.5rem;
  resize: vertical;
}

/* Two or more options as side-by-side tiles (radio buttons underneath). */
.choice {
  display: flex;
  gap: 0.5rem;
}

.choice label {
  position: relative;
  flex: 1;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: block;
  padding: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.choice input:checked + span {
  border-color: var(--accent);
  background: rgba(142, 166, 255, 0.08);
  color: var(--ink);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form-error {
  margin-bottom: 1rem;
  color: #ff9b8a;
  font-size: 0.875rem;
}

/* Two panels of equal height. Whichever has less in it lets its last line
   (the time zone note, the submit button) settle at the bottom. */
/* What pressing the button agrees to. Kept readable on purpose: an
   agreement only counts if the notice beside the button can be seen. */
.consent {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1rem;
}

.booking > .panel {
  display: flex;
  flex-direction: column;
}

.booking .timezone,
.form-actions {
  margin-top: auto;
}

.booking .timezone {
  padding-top: 1.25rem;
}

.form-actions {
  padding-top: 1.75rem;
}

@media (max-width: 56rem) {
  .booking {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.panel-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.panel-title span {
  color: var(--accent);
  font: 0.75rem/1 var(--mono);
  letter-spacing: 0.14em;
}

/* Steps: done, current, still to come (book.js sets data-state). */
.panel-title,
.panel-title span {
  transition: color 0.4s;
}

.panel-title[data-state="todo"] {
  color: var(--dim);
}

.panel-title[data-state="todo"] span {
  color: var(--dim);
}

.panel-title[data-state="done"] span::after {
  content: " \2713";
}

/* Until a time is picked the details panel sits back. It still works: touch
   any field and it comes forward. */
.booking-form {
  transition: opacity 0.5s var(--ease), border-color 0.5s;
}

.booking[data-step="time"] .booking-form:not(:focus-within) {
  opacity: 0.45;
}

.booking[data-step="details"] .booking-form {
  border-color: rgba(142, 166, 255, 0.4);
}

.panel-title:not(:first-child) {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-month {
  font-weight: 600;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
}

.icon-button:hover:not(:disabled) {
  border-color: var(--accent);
}

.icon-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  text-align: center;
}

.calendar-grid .dow {
  padding-block: 0.5rem;
  color: var(--dim);
  font: 0.6875rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.day {
  height: 2.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.day:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--bg);
}

.day:disabled {
  color: #3c3f4a;
  cursor: default;
}

.day[aria-pressed="true"],
.slot[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  box-shadow: 0 0 22px rgba(142, 166, 255, 0.4);
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
  gap: 0.5rem;
}

.slot {
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s;
}

.slot:hover {
  border-color: var(--accent);
}

.slots-empty {
  color: var(--dim);
  font-size: 0.9375rem;
}

.timezone {
  margin-top: 1.25rem;
  color: var(--dim);
  font: 0.75rem/1.5 var(--mono);
}

/* What has been picked so far, above the form. */
.summary {
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line-strong);
  border-radius: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.0625rem;
}

.summary[data-ready] {
  border-style: solid;
  border-color: rgba(142, 166, 255, 0.55);
  background: rgba(142, 166, 255, 0.06);
}

.confirmation {
  max-width: 36rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

/* The mark on "You're booked": a ring draws itself and fades, a pulse
   spreads outward, the check draws in, and then the coin keeps turning
   between the check and an envelope. With motion switched off, the check
   is simply there on its soft circle. */
.confirmation-mark {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  background: rgba(76, 195, 138, 0.1);
  perspective: 20rem;
  animation: mark-glow 1.6s 0.8s ease-out both;
}

.confirmation-mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The ring is an entrance only: it draws once around, then fades away. */
.mark-ring {
  transform: rotate(-90deg);
  stroke: var(--ok);
  stroke-width: 2;
  stroke-dasharray: 183;
  opacity: 0;
  animation: mark-ring 1.5s var(--ease) both;
}

.mark-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: mark-flip 6s 2s ease-in-out infinite;
}

.confirmation-mark .mark-face {
  inset: 27%;
  width: 46%;
  height: 46%;
  stroke-width: 2;
  backface-visibility: hidden;
}

.mark-check {
  stroke: var(--ok);
  stroke-dasharray: 21;
  animation: mark-draw-check 0.4s 0.6s var(--ease) both;
}

.mark-mail {
  stroke: var(--accent);
  transform: rotateY(180deg);
}

@keyframes mark-ring {
  0% {
    stroke-dashoffset: 183;
    opacity: 1;
  }

  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes mark-draw-check {
  from {
    stroke-dashoffset: 21;
  }
}

@keyframes mark-glow {
  from {
    box-shadow: 0 0 0 0 rgba(76, 195, 138, 0.35);
  }

  to {
    box-shadow: 0 0 0 1.4rem rgba(76, 195, 138, 0);
  }
}

/* Half a turn to the envelope, a pause, half a turn back to the check. */
@keyframes mark-flip {
  0%,
  8% {
    transform: rotateY(0);
  }

  22%,
  58% {
    transform: rotateY(180deg);
  }

  72%,
  100% {
    transform: rotateY(360deg);
  }
}

.confirmation h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
}

.confirmation p {
  margin-top: 1rem;
  color: var(--muted);
}

.confirmation .button {
  margin-top: 2rem;
}

/* Same space below the button as above it. */
.confirmation .preview-note {
  margin-top: 2rem;
  color: var(--dim);
  font: 0.75rem/1.5 var(--mono);
}

/* ---------- 14. Footer, motion ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

.footer-brand p {
  max-width: 20rem;
  margin-top: 0.9rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.6rem 2.5rem;
  align-content: start;
}

.footer-nav a,
.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--ink);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  margin-right: auto;
}

.footer-legal a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--ink);
}

/* Shown by site.js when the API answers. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
}

.status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.18);
}

@media (max-width: 44rem) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Sections settle in as they are reached (site.js adds data-visible). Hidden
   only when scripts run, so the page is whole without them. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal][data-visible] {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .diagram-links path {
    stroke-dashoffset: 0;
  }

  .diagram-pulses {
    display: none;
  }
}
