/* korakoala.app landing page (/ and /es): hero on Kora's hill, how it works, the four parts,
   guilt-free rules, Kora Pro, privacy in plain words and the FAQ. */

/* ---------- Hero: a sky that fades into warm paper, with Kora's hill at the bottom ---------- */

/* The header floats over the hero so the sky runs behind both without a seam. */
.site-header--overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
}

.sky {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 95% -10%, var(--sun), transparent 62%),
    linear-gradient(180deg, var(--sky) 0%, var(--page) 92%);
}

.hero {
  padding-top: 76px;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 36px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: 10px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

.soon__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px var(--mint-soft);
}

/* Kora talks first, in chat bubbles, the way the app greets you. */
.chat {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 24px;
}

.chat__who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.chat__who img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.bubble {
  max-width: 34rem;
  padding: 14px 20px;
  border-radius: 8px 26px 26px 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.bubble--big {
  padding: 18px 24px 20px;
  font-size: clamp(2.125rem, 5vw + 0.9rem, 3.75rem);
  line-height: 1.05;
}

.accent {
  color: var(--mint-ink);
}

.hero__about {
  max-width: 36rem;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9375rem;
  font-weight: 800;
}

.chips .leaf {
  width: 13px;
  height: 13px;
}

.hero .actions {
  margin-top: 26px;
}

/* The phone sinks into Kora's hill, the way Kora sits on one in the app: the far hill is behind
   it, the near hill in front of it, and a curve of page colour leads into the next section. */
.hero__visual {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(72vw, 290px);
  margin: 0 0 -60px;
}

.hill {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

.hill--far {
  right: -40%;
  left: 20%;
  z-index: 0;
  height: 190px;
  background: var(--hill-far);
}

.hill--near {
  right: -30%;
  left: -30%;
  z-index: 2;
  height: 110px;
  background: var(--hill-near);
}

.hill--ground {
  right: -45%;
  left: -45%;
  z-index: 3;
  height: 46px;
  background: var(--page);
}

.phone {
  padding: 9px;
  border-radius: 42px;
  background: #1d2421;
  box-shadow:
    0 0 0 1px var(--phone-rim),
    0 30px 60px -26px rgb(16 38 28 / 0.5),
    0 12px 24px -14px rgb(16 38 28 / 0.35);
}

.phone img {
  width: 100%;
  border-radius: 33px;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
  }

  .hero__copy {
    padding-block: 36px 112px;
  }

  .hero__visual {
    align-self: end;
    width: min(100%, 330px);
    margin-bottom: -70px;
  }

  .hill--far {
    right: -22%;
    left: 42%;
    height: 300px;
  }

  .hill--near {
    right: -12%;
    left: 38%;
    height: 150px;
  }

  .hill--ground {
    right: -10%;
    left: -10%;
    height: 64px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section--alt {
  background: var(--page-alt);
}

.section-head {
  max-width: 44rem;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.875rem, 3vw + 1rem, 3rem);
}

.section-head p:not(.pill) {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.card {
  padding: 26px 24px;
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 18px;
  font-size: 1.375rem;
}

.shot {
  justify-self: center;
  width: min(68vw, 270px);
  margin: 0;
}

.shot figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- How it works ---------- */

.how {
  display: grid;
  gap: 44px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow);
}

.step__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--mint-soft);
  color: var(--mint-ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  margin-top: 4px;
  color: var(--ink-soft);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 52rem;
  margin-top: 22px;
  font-weight: 700;
}

.note .leaf {
  margin-top: 0.3em;
}

@media (min-width: 900px) {
  .how {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 64px;
  }
}

/* ---------- The four parts, each in its tab's colour ---------- */

.parts {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.part {
  --soft: var(--mint-soft);
  --tint: var(--mint-ink);
  padding: 22px 22px 24px;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--soft), var(--card) 130px);
  box-shadow: var(--shadow);
}

.part--lift {
  --soft: var(--lift-soft);
  --tint: var(--lift-ink);
}

.part--fuel {
  --soft: var(--fuel-soft);
  --tint: var(--fuel-ink);
}

.part--spend {
  --soft: var(--spend-soft);
  --tint: var(--spend-ink);
}

.part--habits {
  --soft: var(--habits-soft);
  --tint: var(--habits-ink);
}

.part h3 {
  font-size: 1.625rem;
}

.part__sub {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--tint);
  font-size: 0.875rem;
  font-weight: 800;
}

.part__text {
  margin-top: 14px;
  color: var(--ink-soft);
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 580px;
  margin: 44px auto 0;
}

.shots .shot {
  width: 100%;
}

.shots .phone {
  padding: 6px;
  border-radius: 30px;
}

.shots .phone img {
  border-radius: 24px;
}

@media (min-width: 680px) {
  .parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shots .phone {
    padding: 9px;
    border-radius: 42px;
  }

  .shots .phone img {
    border-radius: 33px;
  }
}

@media (min-width: 1100px) {
  .parts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Guilt-free and honest ---------- */

.pair {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 880px) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Kora Pro ---------- */

.pro {
  padding: 30px 22px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, var(--spend-soft) 0%, var(--card) 48%, var(--mint-soft) 100%);
  box-shadow: var(--shadow);
}

.pill--gold {
  background: var(--card);
  color: var(--spend-ink);
}

.pro h2 {
  margin-top: 14px;
  font-size: clamp(1.875rem, 3vw + 1rem, 3rem);
}

.pro__trial {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  /* One line on wide screens; on phones, two even lines rather than a stray last word. */
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 4px 0 var(--button-edge);
  transform: rotate(-2.5deg);
}

.pro__list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pro__list li {
  padding: 18px 20px;
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--line);
}

.pro__list h3 {
  font-size: 1.25rem;
}

.pro__list p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.pro__fine {
  max-width: 52rem;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 880px) {
  .pro {
    padding: 44px 44px 36px;
  }

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

/* ---------- Privacy in plain words ---------- */

.tiles {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tiles li {
  position: relative;
  padding: 16px 18px 16px 50px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow);
}

.tiles li::before {
  content: "";
  position: absolute;
  top: 1.35em;
  left: 19px;
  width: 17px;
  height: 17px;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, var(--leaf-light), var(--leaf));
}

.privacy__site {
  margin-top: 22px;
  font-weight: 700;
}

.privacy .actions {
  margin-top: 22px;
}

@media (min-width: 760px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* A long tile takes a whole row. The tiles between wide ones come in pairs (the tests check), so the grid has no holes. */
  .tiles__wide {
    grid-column: 1 / -1;
  }
}

/* ---------- FAQ: native disclosure, no script ---------- */

.faq__list {
  display: grid;
  gap: 12px;
  max-width: 52rem;
  margin-top: 30px;
}

.faq__item {
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 20px;
  border-radius: var(--radius-l);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  content: "+" / "";
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint-ink);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 20px 20px;
  color: var(--ink-soft);
}
