:root {
  --ff-base: "Poppins", sans-serif;
  --background: rgb(255, 255, 255);
  --foreground: rgb(74, 85, 101);
  --heading: rgb(16, 24, 40);
  --border: rgb(227, 230, 233);

  --primary: rgb(255, 79, 88);
  --secondary: rgb(22, 93, 251);

  --success: rgb(0, 166, 62);
  --error: rgb(245, 73, 0);

  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1440px;
}

@layer reset, base, components, utilities;

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

  a {
    text-decoration: none;
    color: var(--secondary);
  }

  html {
    scroll-behavior: smooth;
    scroll-margin-top: 80px;
    scroll-margin-bottom: 80px;
  }

  body {
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
    font-family: var(--ff-base);
    background-color: var(--background);
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--heading);
    font-weight: 700;
    margin-block: 0;
  }

  ul {
    margin-block: 0;
    padding-inline-start: 0;
  }

  .h1 {
    font-size: 3rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 700;
  }

  h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  p {
    margin-block: 0;
  }

  p {
    color: var(--foreground);
  }

  input,
  button {
    font: inherit;
  }
  button {
    /* all: unset; */
    cursor: pointer;
  }
}

@layer base {
  .section {
    margin-bottom: 96px;
  }
  .container {
    max-width: 1280px;
    margin-inline: auto;
  }
  .btn {
    all: unset;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 6px;
    cursor: pointer;
    gap: 1rem;

    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    transition: all 0.3s ease;
  }
  .btn:focus-visible {
    outline: 2px solid var(--border);
  }

  .btn__primary {
    background-color: var(--primary);
    color: var(--background);
  }

  .btn__primary::before {
    content: "";
    position: absolute;
    background-color: rgba(255, 79, 88, 0.4);
    filter: blur(25px);
    width: 80%;
    height: 80%;
    bottom: 0;
    z-index: -1;
    transition: all 0.3s ease;
  }
  .btn__primary:hover {
    background-color: #f3434c;
  }
  .btn__primary:hover::before {
    bottom: -10px;
  }

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

  .btn__secondary {
    background-color: var(--secondary);
    color: var(--background);
  }

  .btn__outline {
    background-color: transparent;
    color: var(--heading);
    border: 1px solid var(--border);
  }

  .btn__outline:hover {
    background-color: var(--background);
    color: var(--primary);
  }

  .btn__success {
    background-color: var(--success);
    color: var(--background);
  }

  .badge {
    display: inline-flex;
    align-items: center;
    height: fit-content;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;

    font-size: 0.875rem;
    line-height: 1;
    font-weight: 500;
  }

  .badge-round {
    border-radius: 32px;
  }

  .badge__primary {
    background-color: rgba(255, 79, 88, 0.1);
    border: 1px solid rgba(255, 79, 88, 0.2);
    color: var(--primary);
  }

  .badge__secondary {
    background-color: rgba(22, 93, 251, 0.1);
    color: rgba(22, 93, 251, 1);
  }

  .badge__secondary-inverse {
    background-color: var(--secondary);
    color: var(--background);
  }

  .badge__error {
    background-color: var(--error);
    color: var(--background);
  }

  .badge__success {
    background-color: var(--success);
    color: var(--background);
  }

  .h1 {
    font-size: 3rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 700;
  }

  .h5 {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 700;
  }
  .h4 {
    font-size: 1.625rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 700;
  }

  .modal-open {
    overflow: hidden;
    scrollbar-gutter: stable;
  }
}
@layer utilities {
  .w-full {
    width: 100%;
  }
  .w-fit {
    width: fit-content;
  }
  .flex {
    display: flex;
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .size-3 {
    width: 12px;
    height: 12px;
  }
  .gap-2 {
    gap: 6px;
  }
  .shrink-0 {
    flex-shrink: 0;
  }
  .text-primary {
    color: var(--primary);
  }
  .rounded-full {
    border-radius: 50%;
  }
  .text-secondary {
    color: var(--secondary);
  }

  .text-success {
    color: var(--success);
  }

  .text-background {
    color: var(--background);
  }

  .text-foreground {
    color: var(--foreground);
  }

  .text-purple {
    color: #8a38f5;
  }

  .text-error {
    color: var(--error);
  }

  .text-center {
    text-align: center;
  }

  .text-underline {
    text-decoration: underline;
  }

  .text-pretty {
    text-wrap: pretty;
  }

  .bg-primary {
    background-color: var(--primary);
  }

  .bg-secondary {
    background-color: var(--secondary);
  }

  .bg-background {
    background-color: var(--background);
  }

  .h-0 {
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .text-lg {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .text-base {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
  }

  .text-sm {
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 400;
  }

  .text-xs {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .font-normal {
    font-style: normal;
  }

  .font-bold {
    font-weight: 700;
  }
  .font-medium {
    font-weight: 500;
  }
  .font-regular {
    font-weight: 400;
  }
  .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;
  }

  .mx-auto {
    margin-inline: auto;
  }
}

@layer components {
  .shopify-migration-header {
    position: relative;
    padding: 16px 80px;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    margin-bottom: 80px;
  }

  .shopify-migration-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .shopify-migration-footer {
    position: fixed;
    bottom: 0;
    background-color: var(--background);
    width: 100%;
    padding: 16px 80px;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0px 10px 50px 3px #275c8d1a;
    z-index: 1000;
  }

  .shopify-migration-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin-inline: auto;
  }

  .shopify-migration-footer__content {
    display: flex;
    gap: 24px;
    align-items: center;
  }

  .shopify-migration-footer__icon {
    flex-shrink: 0;
  }

  .shopify-migration-footer__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .shopify-migration-footer__content--mobile {
    display: none;
  }

  .shopify-migration-footer__actions {
    display: flex;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding-inline: 24px;
  }

  .shopify-migration-header {
    padding: 16px 24px;
  }

  .shopify-migration-footer {
    padding: 12px 24px;
  }

  .shopify-migration-footer__inner {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .shopify-migration-footer__content {
    justify-content: center;
    gap: 16px;
  }

  .shopify-migration-footer__actions {
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 20px;
  }

  .shopify-migration-header {
    padding: 12px 16px;
  }

  .shopify-migration-footer {
    padding: 12px 16px;
  }

  .shopify-migration-footer__inner {
    flex-direction: column;
    gap: 8px;
  }

  .shopify-migration-footer__inner btn {
    display: none;
  }

  .shopify-migration-footer__content {
    display: none;
  }

  .shopify-migration-footer__content--mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}
