/* The header: the logo, the sections, the other language and «Log in» to the app, top right. */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 239, 0.9);
  border-bottom: 1px solid var(--color-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.landing-header__inner,
.landing-hero__inner,
.landing-section__inner,
.landing-final__inner,
.landing-footer__inner {
  width: min(var(--content-width), 100% - var(--page-gutter));
  margin: 0 auto;
}

/* With a larger font (the browser's setting), what doesn't fit goes to a second row. */
.landing-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
  min-height: var(--header-height);
  padding-block: 6px;
}

.landing-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--color-ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.landing-logo__mark {
  flex: none;
  margin-right: 10px;
  border-radius: 7px;
}

.landing-logo__accent {
  color: var(--color-blue);
}

.landing-nav {
  display: flex;
  gap: 4px;
}

.landing-nav a,
.landing-language {
  padding: 8px 12px;
  border-radius: var(--radius-small);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-nav a:hover,
.landing-language:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.landing-header__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* The other language by its name; on phones, by its code (EN, ES). */
.landing-language__code {
  display: none;
  text-transform: uppercase;
}

/* The first screen, like a report's cover: the headline in the serif, its second sentence in italics, one
   line and, right below it, the free scan's address field. Then the week's sheet, cut by the hero's edge. */
.landing-hero {
  padding-top: clamp(48px, 7vw, 104px);
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: var(--header-height);
}

.landing-hero__inner,
.landing-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-hero__copy {
  width: 100%;
}

/* On phones, as large as its longest sentence («Connect your site.», about 8 em) fits on one line. */
.landing-hero__title {
  max-width: 11em;
  font-size: clamp(2.125rem, min(12.3vw - 0.3rem, 1.4rem + 6vw), 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* «Forget about SEO.»: its own line, in italics and the accent. */
.landing-hero__title-emphasis {
  display: block;
  color: var(--color-blue);
  font-style: italic;
}

/* Two sentences, each on its own line: what we do on the site, then the rivals. */
.landing-hero__subtitle {
  max-width: 700px;
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: balance;
}

.landing-hero__subtitle-line {
  display: block;
}

.landing-hero__scan {
  width: 100%;
  max-width: 560px;
  margin-top: 36px;
  text-align: left;
}

/* Where the header hides its links (phones and tablets), a short link under the form leads to the plans. */
.landing-hero__plans {
  display: none;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* What a week of handsoffseo looks like: a white sheet on the paper, its improvements ready to approve. */
.landing-week {
  width: 100%;
  max-width: 880px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 28px 36px 0;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: left;
}

.landing-week__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-ink);
}

.landing-week__title {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Said once for the whole week, in small capitals. Every line of the week and the status start with a check
   in a green circle. */
.landing-week__status {
  --landing-week-check-top: -1px;
  color: var(--color-success);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-week__status,
.landing-week__item {
  position: relative;
  padding-left: 30px;
}

.landing-week__status::before,
.landing-week__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--landing-week-check-top);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-success-soft);
  box-shadow: inset 0 0 0 1px rgba(21, 115, 71, 0.3);
}

.landing-week__status::after,
.landing-week__item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(var(--landing-week-check-top) + 5px);
  width: 8px;
  height: 4px;
  border-left: 1.6px solid var(--color-success);
  border-bottom: 1.6px solid var(--color-success);
  transform: rotate(-45deg);
}

.landing-week__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-week__item {
  --landing-week-check-top: 19px;
  padding-block: 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
}

/* What comes by email, not in the pull request: a row of its own across the sheet, after the improvements,
   with an envelope instead of their check. */
.landing-week__inbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
}

.landing-week__inbox-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-week__footer {
  padding: 16px 0 22px;
  color: var(--color-text-muted);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 500;
}

/* On phones, and on low screens (a phone on its side), the line would push the field out of the first
   screen: the headline goes straight to the field. */
@media (max-width: 32.5em), (max-height: 30em) {
  .landing-hero__subtitle {
    display: none;
  }

  .landing-hero__scan {
    margin-top: 24px;
  }
}

/* A low screen: a smaller headline on one line where it fits, closer to the field. */
@media (max-height: 30em) {
  .landing-hero {
    padding-top: 20px;
  }

  .landing-hero__title {
    max-width: none;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    line-height: 1.05;
  }

  .landing-hero__title-emphasis {
    display: inline;
  }

  .landing-hero__scan {
    margin-top: 14px;
  }
}

.landing-section {
  padding: var(--space-section) 0;
}

.landing-section + .landing-section {
  border-top: 1px solid var(--color-border);
}

/* Each section's label above its title: small capitals after a short rule, as in a report. */
.landing-section__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-section__eyebrow::before {
  content: "";
  width: 28px;
  border-top: 1px solid currentColor;
}

.landing-section__title {
  max-width: 760px;
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.landing-section__subtitle {
  max-width: 620px;
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 1.1875rem;
  text-wrap: balance;
}

/* The three steps: three sheets, each with its number in the serif. */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.landing-steps__item {
  padding: 28px 32px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.landing-steps__number {
  display: block;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.landing-steps__item h3,
.landing-features__item h3 {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.landing-steps__item p,
.landing-features__item p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* What you get: one sheet, its six parts divided by thin rules. */
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  overflow: hidden;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.landing-features__item {
  padding: 32px;
  background: var(--color-surface);
}

.landing-features__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  color: var(--color-ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The prices: Starter, Growth, the one-off and «Agencies», in that order, four cards in one row on a desktop,
   each as wide as its content asks. Their rows line up across the cards (a shared grid, subgrid): the name,
   the price, the websites, the line «For…», the button right under them and then what the plan includes.
   Three in a row and «Agencies» across them on a laptop, two a row on a tablet and one on a phone.
   «Agencies»' column is never narrower than its longest line: each of its two lines stays whole. */
.landing-pricing {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.08fr) minmax(max-content, 0.92fr);
  column-gap: 16px;
  margin-top: 56px;
}

.landing-pricing__plan {
  position: relative;
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 24px 20px 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.landing-pricing__name {
  grid-row: 1;
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-pricing__price {
  grid-row: 2;
  margin-top: 12px;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 2.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* The unit starts with its own separator ("/mes", ", pago único"), so the price reads and copies whole. */
.landing-pricing__price span {
  margin-left: 4px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0;
}

/* A unit that starts with a comma sits right after the price, as the comma would in a sentence. */
.landing-pricing__price .landing-pricing__joined-unit {
  margin-left: 0;
}

/* How many websites the plan covers, right under its price. */
.landing-pricing__sites {
  grid-row: 3;
  margin-top: 10px;
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.landing-pricing__text {
  grid-row: 4;
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Right under the price: its text takes two lines when it needs them (a larger font), never more than the card. */
.landing-pricing__plan .button {
  grid-row: 5;
  align-self: start;
  width: 100%;
  margin-top: 20px;
  padding: 10px 12px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.landing-pricing__features {
  grid-row: 6;
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--color-border);
  list-style: none;
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.45;
}

.landing-pricing__features li {
  position: relative;
  padding-left: 22px;
}

/* In em, so the mark grows with the text. */
.landing-pricing__features li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.42em;
  width: 0.6em;
  height: 0.32em;
  border-left: 0.12em solid var(--color-ink);
  border-bottom: 0.12em solid var(--color-ink);
  transform: rotate(-45deg);
}

/* The scores, what matters most of each plan. */
.landing-pricing__features strong {
  color: var(--color-ink);
  font-weight: 650;
}

/* The one-off, a different kind of purchase: the only card with the accent's border, its tag on it. */
.landing-pricing__plan--featured {
  padding: 23px 19px 25px;
  border: 2px solid var(--color-blue);
}

/* Sits on the card's top border, so the card's name lines up with the other cards' names. */
.landing-pricing__tag {
  position: absolute;
  top: 0;
  left: 17px;
  transform: translateY(-50%);
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--color-blue);
  color: var(--color-on-ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* «Agencies», with no price, the last and quietest card: on the paper, its name, its two lines and its
   button in line with the other cards' (where they have a price, it has nothing). */
.landing-pricing__plan--contact {
  background: transparent;
}

/* One sober line under the plans: more websites come from multiplying the subscription. */
.landing-pricing__more {
  margin-top: 28px;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* The closing call: a navy panel with the scan's form, the hero's. */
.landing-final {
  padding: 0 0 var(--space-section);
}

.landing-final__inner {
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius);
  color: var(--color-on-ink);
  background: var(--color-ink);
  text-align: center;
}

.landing-final__title {
  color: var(--color-on-ink);
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.landing-final__text {
  max-width: 560px;
  margin: 18px auto 36px;
  color: var(--color-on-ink-muted);
  font-size: 1.125rem;
  text-wrap: balance;
}

.landing-final__form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.landing-footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.landing-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.landing-footer .landing-logo {
  font-size: 1rem;
}

.landing-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}

.landing-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Narrower desktops: the four cards a little tighter, so they keep their content on fewer lines. */
@media (max-width: 87.5em) {
  .landing-pricing {
    column-gap: 12px;
  }

  .landing-pricing__plan {
    padding: 24px 16px;
  }

  .landing-pricing__plan--featured {
    padding: 23px 15px;
  }

  .landing-pricing__tag {
    left: 13px;
  }

  .landing-pricing__name {
    letter-spacing: 0.06em;
  }

  .landing-pricing__price {
    font-size: 2.5rem;
  }
}

/* Laptops and tablets in landscape: the three plans in a row, «Agencies» across them below, its name and
   lines on one side and its button on the other. */
@media (max-width: 74.99em) {
  .landing-pricing {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 60.01em) and (max-width: 74.99em) {
  .landing-pricing__plan--contact {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-rows: auto auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 32px;
    margin-top: 20px;
  }

  .landing-pricing__plan--contact .landing-pricing__text {
    grid-row: 2;
    margin-top: 6px;
  }

  .landing-pricing__plan--contact .button {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    width: auto;
    min-width: 200px;
    margin-top: 0;
  }
}

/* Tablets: two cards a row, the two cards of a row still sharing their rows: «Agencies» next to the one-off. */
@media (max-width: 60em) {
  .landing-nav {
    display: none;
  }

  .landing-hero__plans {
    display: block;
  }

  .landing-week__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-steps__item {
    padding: 24px;
  }

  .landing-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  /* The space between rows of cards: a margin, as a gap would also open between the rows they share. */
  .landing-pricing__plan:nth-child(n + 3) {
    margin-top: 24px;
  }
}

@media (max-width: 43.75em) {
  .landing-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phones: the hero reads from the left, and every list takes one column. */
@media (max-width: 40em) {
  .landing-hero__inner,
  .landing-hero__copy {
    align-items: stretch;
    text-align: left;
  }

  .landing-week {
    margin-top: 40px;
    padding: 20px 20px 0;
  }

  .landing-week__item {
    --landing-week-check-top: 15px;
    padding-block: 14px;
  }

  .landing-week__inbox {
    padding-block: 14px;
  }

  .landing-features,
  .landing-pricing {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-steps__item,
  .landing-features__item {
    padding: 24px;
  }

  .landing-steps__number {
    font-size: 2.75rem;
  }

  .landing-steps,
  .landing-features,
  .landing-pricing {
    margin-top: 40px;
  }

  .landing-pricing__price {
    font-size: 2.5rem;
  }

  /* One card a row: each on its own, one under the other. «Agencies»: its name, its lines and its button,
     one under the other. */
  .landing-pricing {
    row-gap: 20px;
  }

  .landing-pricing__plan,
  .landing-pricing__plan--contact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-row: auto;
  }

  .landing-pricing__plan:nth-child(n + 3) {
    margin-top: 0;
  }

  /* The closing call's panel goes from edge to edge, so its form is as wide as the hero's and its field and
     button share a row as they do there. */
  .landing-final__inner {
    width: 100%;
    padding-inline: calc(var(--page-gutter) / 2);
    border-radius: 0;
  }

  .landing-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Phones: the logo, the other language and «Log in» share the header's row. */
@media (max-width: 30em) {
  .landing-header__inner {
    gap: 12px;
  }

  .landing-header__actions {
    gap: 4px;
  }

  .landing-language {
    padding: 8px;
    font-size: 0.875rem;
    font-weight: 600;
  }

  .landing-language__name {
    display: none;
  }

  .landing-language__code {
    display: inline;
  }

  .landing-login {
    padding: 0 14px;
  }

  .landing-logo {
    font-size: 1.0625rem;
  }

  .landing-logo__mark {
    margin-right: 8px;
  }
}

/* The narrowest phones: a smaller logo and «Log in», so the language still fits next to them. */
@media (max-width: 21.25em) {
  .landing-header__inner {
    gap: 4px 8px;
  }

  .landing-logo {
    font-size: 1rem;
  }

  .landing-logo__mark {
    width: 24px;
    height: 24px;
    margin-right: 6px;
  }

  .landing-header .landing-login {
    padding: 0 10px;
    font-size: 0.8125rem;
  }
}
