/* adding a CSS reset from Eric Meyer per Stack Overflow recommendation. */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1.5;
	color: black;
	background: white;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}

:root {
  --color-primary: #2563eb;
  --color-secondary: #e5e7eb;
  --color-bg: #fafafa;
  --color-text: #1f2933;

  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --text-base: 1rem;
  --line-height-base: 1.6;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;

  --radius: 8px;
  --container-width: 1200px;
}

body {
  background-color: #fafafa;
  color: #1f2933;
  font-family: var(--font-body);
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  line-height: var(--line-height-base);
}

.container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Primary button */
.btn--primary {
  background-color: #2563eb;
  color: white;
}

/* Secondary button */
.btn--secondary {
  background-color: #e5e7eb;
  color: #111827;
}

/* Hover state */
.btn:hover {
  transform: translateY(-1px);
}

/* Disabled state */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav__logo {
  width: 120px;
  height: auto;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fafafa;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
  pointer-events: none;
}

.nav__links.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  pointer-events: auto;
}

.nav__links li {
  border-bottom: 1px solid #e5e7eb;
  padding: var(--space-3);
}

/* Hamburger → X */
.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: var(--space-5) 0;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.hero__text {
  flex: 1;
}

.hero__headline {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.hero__subheadline {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: var(--space-4);
}

.hero__ctas {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* Right column */
.hero__image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero__image img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.features {
  padding: var(--space-5) 0;
  background: #f8fafc;
}

.features__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.features__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.features__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.features__headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.features__copy {
  text-align: left;
  color: #6b7280;
  font-size: 0.95rem;
}

.pricing__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.pricing__card--featured {
  border-color: #2563eb;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}

.pricing__badge {
  position: absolute;
  right: var(--space-4);
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background-color: #2563eb;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  align-self: flex-start;
}

.pricing__tier {
  font-size: 1.25rem;
  font-weight: 700;
}

.pricing__price {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.pricing__period {
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
}

.pricing__description {
  color: #6b7280;
  font-size: 0.9rem;
}

.pricing__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.pricing__features li::before {
  content: "✓ ";
  color: #2563eb;
  font-weight: 700;
}

.pricing__card .btn {
  width: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
}

.fade-in.is-visible {
  animation: fadeInUp 0.5s ease forwards;
}

@media (min-width: 600px) {
  .features__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav__logo {
    width: 150px;
  }

  .nav__toggle {
    display: none;
  }

  .nav__links {
    display: flex;
    position: static;
    flex-direction: row;
    gap: var(--space-4);
    align-items: center;
    background-color: transparent;
    z-index: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .nav__links li {
    border-bottom: none;
    padding: 0;
  }

  .nav__cta {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
  }

  .nav__cta:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
  }

  .hero__inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .hero__headline {
    font-size: 2.75rem;
  }

  .hero__subheadline {
    max-width: 480px;
  }

  .hero__ctas {
    justify-content: flex-start;
  }

  .features__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing__card--featured {
    transform: scale(1.04);
  }

  .pricing__inner {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}