/*
  Button 02 — Directional CTA — standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy index.html and
  this file into any project as-is. `--button-accent` is a plain custom
  property — override it wherever this button is used to change the
  focus-visible color.
*/

:root {
  --button-accent: #39ff14;
  --button-foreground: #0f172a;
  --button-foreground-hover: #262f3d;
  --button-border: #d4d4d8;
  --button-border-hover: #a1a1aa;
}

.dcta {
  display: inline-flex;
  align-items: center;
  border-radius: 1rem;
  padding: 0.375rem;
  padding-left: 1.5rem;
  border: 1px solid transparent;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.dcta:active {
  transform: scale(0.98);
}

.dcta__label {
  padding-right: 1.25rem;
}

.dcta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  transition: width 200ms ease;
}

.dcta__icon svg {
  width: 1rem;
  height: 1rem;
  transition: transform 200ms ease;
}

.dcta:hover .dcta__icon {
  width: 2.75rem;
}

.dcta:hover .dcta__icon svg {
  transform: translateX(2px);
}

.dcta--primary {
  background-color: var(--button-foreground);
  color: #ffffff;
}

.dcta--primary:hover {
  background-color: var(--button-foreground-hover);
}

.dcta--primary .dcta__icon {
  background-color: rgba(255, 255, 255, 0.15);
}

.dcta--secondary {
  background-color: transparent;
  border-color: var(--button-border);
  color: var(--button-foreground);
}

.dcta--secondary:hover {
  border-color: var(--button-border-hover);
}

.dcta--secondary .dcta__icon {
  background-color: rgba(0, 0, 0, 0.05);
}

.dcta--secondary:hover .dcta__icon {
  background-color: rgba(0, 0, 0, 0.08);
}

.dcta:focus-visible {
  outline: 2px solid var(--button-accent);
  outline-offset: 2px;
}

.dcta:disabled,
.dcta[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .dcta,
  .dcta__icon,
  .dcta__icon svg {
    transition: none;
  }

  .dcta:active {
    transform: none;
  }
}

/*
  Page layout — the canvas this resource is presented on. Adjust or drop it
  when placing the resource inside your own layout.
*/

body {
  margin: 0;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
.button02-layout {
  display: flex;
  min-height: 20rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.button02-layout__panel {
  display: flex;
  width: 100%;
  max-width: 42rem;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -16px rgba(0, 0, 0, 0.14);
}
.button02-layout__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .button02-layout__panel {
    padding: 3rem;
  }
}
