:root {
  --ink: #162521;
  --muted: #64706c;
  --paper: #f5f3ed;
  --card: #fffdf8;
  --line: #d7ddd5;
  --green: #204c3e;
  --green-dark: #16362e;
  --lime: #d9ee73;
  --purple: #674b76;
  --purple-light: #eee7f2;
  --shadow: 0 24px 70px rgba(18, 44, 37, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 3%, rgba(103, 75, 118, 0.13), transparent 29rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 15px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.section,
.trust-strip,
.privacy-callout,
.closing-section,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
}

.brand small {
  margin-top: 5px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header .brand {
  gap: 24px;
}

.site-header .brand-mark {
  width: 84px;
  height: 84px;
}

.site-header .brand strong {
  font-size: 40px;
}

.site-header .brand small {
  margin-top: 10px;
  font-size: 20px;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--purple);
}

.nav-praxik {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding: 72px 0 100px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.hero h1,
.section h2,
.privacy-callout h2,
.closing-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.03;
}

.hero h1 {
  max-width: 650px;
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.hero-lead {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 780;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.copy-button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.button-primary {
  background: var(--green);
  color: white;
}

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

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.7);
}

.product-window {
  overflow: hidden;
  border: 1px solid rgba(22, 54, 46, 0.45);
  border-radius: 28px 28px 28px 8px;
  background: var(--green-dark);
  box-shadow:
    0 30px 80px rgba(16, 45, 37, 0.2),
    18px 18px 0 rgba(103, 75, 118, 0.14);
  color: white;
  transform: rotate(0.5deg);
}

.window-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #102a24;
  color: #abc0b8;
  font-size: 12px;
  font-weight: 700;
}

.window-title::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow:
    16px 0 0 #d7ad6f,
    32px 0 0 var(--purple);
}

.window-title {
  padding-left: 32px;
}

.window-status {
  color: var(--lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.window-body {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
}

.editor-pane,
.result-pane {
  padding: 30px;
}

.editor-pane {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.pane-label {
  color: #8ea69e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.code-lines {
  margin: 56px 0 0;
  padding-left: 44px;
  color: #6e8b81;
  font: 15px/2.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-lines code {
  padding-left: 16px;
  color: #edf3ef;
}

.code-lines b {
  color: var(--lime);
  font-weight: 650;
}

.code-lines .comment code {
  color: #708e83;
}

.result-pane {
  background: rgba(255, 255, 255, 0.035);
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.solved-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(217, 238, 115, 0.14);
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-pane dl {
  margin: 58px 0 0;
}

.result-pane dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.result-pane dt {
  color: #a9bbb5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.result-pane dd {
  margin: 0;
  color: var(--lime);
  font: 600 26px/1 Georgia, "Times New Roman", serif;
}

.result-pane p {
  margin: 25px 0 0;
  color: #809990;
  font-size: 11px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(103, 75, 118, 0.35);
  border-radius: 20px;
  background: rgba(103, 75, 118, 0.08);
}

.trust-strip a {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  transition: background 160ms ease;
}

.trust-strip a:hover {
  background: rgba(103, 75, 118, 0.1);
}

.trust-strip a + a {
  border-left: 1px solid rgba(103, 75, 118, 0.25);
}

.trust-strip strong {
  color: var(--purple);
  font-size: 18px;
}

.trust-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: 125px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 65px;
  margin-bottom: 55px;
}

.section h2,
.privacy-callout h2,
.closing-section h2 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 65px);
}

.feature-section .section-heading h2 {
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.3vw, 39px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.process-section .section-heading h2,
.syntax-intro h2,
.examples-section .section-heading h2 {
  color: var(--purple);
  font-size: clamp(26px, 3.3vw, 39px);
  font-weight: 600;
}

.privacy-callout h2,
.closing-section h2 {
  font-size: clamp(26px, 3.3vw, 39px);
}

.section-heading > p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.feature-card {
  min-height: 335px;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 27px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 30px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.feature-card p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.equation-flow {
  display: grid;
  grid-template-columns: max-content 48px max-content;
  align-items: center;
  justify-content: start;
  gap: 8px;
  margin-top: auto;
  padding-top: 30px;
}

.equation-stack {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}

.equation-stack code,
.equation-solution strong,
.feature-code {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--purple-light);
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.equation-arrow {
  width: 48px;
  height: 24px;
  position: relative;
  display: block;
  align-self: center;
  color: var(--purple);
}

.equation-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  left: 5px;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.equation-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.equation-solution {
  display: grid;
  place-items: center;
  align-self: center;
}

.equation-solution strong {
  background: var(--purple);
  color: white;
  font-weight: 700;
}

.equation-solution-system strong {
  min-width: 76px;
  text-align: center;
  line-height: 1.65;
}

.feature-code {
  align-self: flex-start;
  margin-top: auto;
}

.variable-controls {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.variable-control {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.variable-control > strong {
  color: var(--purple);
  font: 750 15px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.variable-control > strong small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.variable-control dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.variable-control dl div {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfaf5;
}

.variable-control dt {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.variable-control dd {
  margin: 2px 0 0;
  color: var(--purple);
  font: 750 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.process-section {
  width: 100%;
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  background: #e8eadf;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  list-style: none;
}

.steps li {
  min-height: 275px;
  padding: 31px;
  background: var(--card);
}

.steps li > span {
  color: var(--purple);
  font: 500 32px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.steps h3 {
  margin: 26px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78em;
}

.syntax-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(450px, 1.15fr);
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
}

.syntax-intro > p:last-child {
  max-width: 510px;
  color: var(--muted);
  font-size: 17px;
}

.syntax-card {
  padding: 20px 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

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

.syntax-card li {
  display: grid;
  grid-template-columns: minmax(175px, 0.52fr) 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.syntax-card li:first-child {
  border-top: 0;
}

.syntax-card code {
  color: var(--purple);
  font-weight: 750;
}

.syntax-card span {
  color: var(--muted);
}

.examples-section {
  width: 100%;
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  background: var(--purple-light);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.example-card {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 29px;
  border: 1px solid rgba(103, 75, 118, 0.18);
  border-radius: 23px;
  background: var(--card);
}

.example-kicker {
  color: var(--purple);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.example-card h3 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.example-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.code-example {
  position: relative;
  margin-top: 28px;
}

.example-card pre {
  margin: 0;
  padding: 55px 20px 20px;
  overflow-x: auto;
  border-radius: 14px;
  background: var(--green-dark);
  color: #eff5c9;
  font-size: 13px;
  line-height: 1.75;
}

.copy-button {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #b7cbc3;
  border-radius: 9px;
  background: var(--card);
  box-shadow: 0 3px 10px rgba(7, 31, 25, 0.24);
  color: var(--green-dark);
  cursor: pointer;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.copy-button:hover,
.copy-button[data-state="copied"] {
  border-color: var(--lime);
  background: var(--lime);
  transform: translateY(-1px);
}

.copy-glyph {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.copy-glyph::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: var(--card);
}

.copy-button[data-state="copied"]::after {
  content: "Copied";
  position: absolute;
  top: 50%;
  right: 43px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  transform: translateY(-50%);
}

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

.privacy-callout {
  min-height: 410px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  margin-top: 105px;
  padding: clamp(48px, 7vw, 82px);
  border-radius: 36px 36px 36px 10px;
  background: var(--green);
  color: white;
}

.privacy-callout .eyebrow {
  color: var(--lime);
}

.privacy-callout h2 {
  max-width: 750px;
}

.privacy-callout p:last-child {
  max-width: 700px;
  margin: 25px 0 0;
  color: #c9d9d2;
  font-size: 17px;
}

.button-light {
  background: var(--lime);
  color: var(--green-dark);
}

.button-light:hover {
  background: white;
}

.closing-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(50px, 9vw, 120px);
  align-items: start;
  padding: 135px 0;
}

.closing-copy {
  padding-top: 35px;
}

.closing-copy > p {
  max-width: 500px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
}

footer {
  min-height: 155px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-company {
  color: var(--purple);
}

.footer-nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 1040px) {
  nav {
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .product-window {
    max-width: 760px;
  }
}

@media (max-width: 900px) {
  .syntax-section,
  .privacy-callout,
  .closing-section {
    grid-template-columns: 1fr;
  }

  .closing-copy {
    padding-top: 0;
  }

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

  .example-grid {
    grid-template-columns: 1fr;
  }

  .example-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .section,
  .trust-strip,
  .privacy-callout,
  .closing-section,
  footer {
    width: min(100% - 30px, 1180px);
  }

  .site-header {
    min-height: 0;
    gap: 12px;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .site-header .brand {
    gap: 15px;
  }

  .site-header .brand-mark {
    width: 58px;
    height: 58px;
  }

  .site-header .brand strong {
    font-size: 29px;
  }

  .site-header .brand small {
    margin-top: 7px;
    font-size: 13px;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-end;
  }

  nav a:not(:last-child):not([href="/support/"]) {
    display: none;
  }

  .hero {
    padding: 42px 0 75px;
  }

  .hero h1 {
    font-size: clamp(22px, 4.4vw, 30px);
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .editor-pane {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .code-lines {
    margin-top: 32px;
  }

  .result-pane dl {
    margin-top: 30px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip a + a {
    border-top: 1px solid rgba(103, 75, 118, 0.25);
    border-left: 0;
  }

  .section {
    padding: 88px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card {
    min-height: 310px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: 210px;
  }

  .syntax-card {
    padding: 12px 25px;
  }

  .syntax-card li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .privacy-callout {
    width: calc(100% - 30px);
    min-height: 0;
    margin-top: 75px;
    padding: 45px 25px;
    border-radius: 27px;
  }

  .closing-section {
    padding: 95px 0;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 40px 0;
    text-align: center;
  }

  .footer-brand,
  .footer-nav {
    justify-self: center;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .hero-actions .button,
  .privacy-callout .button,
  .closing-copy .button {
    width: 100%;
  }

  .product-window {
    box-shadow:
      0 22px 60px rgba(16, 45, 37, 0.18),
      8px 8px 0 rgba(103, 75, 118, 0.14);
  }

  .window-title {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .editor-pane,
  .result-pane {
    padding: 23px;
  }

  .code-lines {
    padding-left: 32px;
    font-size: 13px;
  }

  .feature-card {
    padding: 30px 25px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .equation-flow {
    grid-template-columns: max-content 32px max-content;
    gap: 2px;
  }

  .equation-arrow {
    width: 32px;
    height: 20px;
  }

  .equation-stack code,
  .equation-solution strong {
    padding: 7px 8px;
    font-size: 10px;
  }
}

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

  * {
    transition: none !important;
  }
}
