/*
 * Adapted from Sandoche Adittane's Mobile App Landing Page Template.
 * Original source: https://github.com/sandoche/Mobile-app-landingpage-template
 * Pinned revision: 114cfed9dd1dd666aba4fd68a92d01efb14b429e
 * MIT License; see ../LICENSE.
 */

:root {
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --ink: #17181c;
  --muted: #64636b;
  --line: #d8d3c8;
  --coral: #f15b45;
  --coral-dark: #d94431;
  --cobalt: #3454d1;
  --cobalt-dark: #213aa4;
  --yellow: #ffd45c;
  --mint: #b8e7ce;
  --lilac: #d8c7fa;
  --white: #ffffff;
  --container: 1080px;
  --wide-container: 1160px;
  --side-padding: 28px;
  --shadow: 0 20px 55px rgba(28, 25, 20, 0.12);
  --hard-shadow: 8px 8px 0 var(--ink);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

figure {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

h1,
h2,
h3 {
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 6.5vw, 5.7rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.7vw, 4rem);
}

h3 {
  margin-bottom: 13px;
  font-size: 1.5rem;
}

.container,
.container-wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--side-padding);
}

.container {
  max-width: calc(var(--container) + (var(--side-padding) * 2));
}

.container-wide {
  max-width: calc(var(--wide-container) + (var(--side-padding) * 2));
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #48474d;
  font-size: 0.91rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--coral-dark);
}

.app-header {
  position: relative;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 78px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 126px;
}

.app-header::after {
  position: absolute;
  top: 68px;
  right: 2%;
  z-index: -1;
  width: 240px;
  height: 240px;
  border: 1px solid #e6b7ae;
  border-radius: 50%;
  content: "";
}

.app-logo-stage {
  position: relative;
  width: 235px;
  height: 235px;
}

.logo-shadow {
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--ink);
  border-radius: 54px;
  background: var(--cobalt);
}

.app-logo {
  position: relative;
  width: 235px;
  height: 235px;
  border: 2px solid var(--ink);
  border-radius: 54px;
  box-shadow: var(--shadow);
}

.app-infos h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.4vw, 5rem);
}

.app-description {
  max-width: 660px;
  margin-bottom: 30px;
  color: #4d4c52;
  font-size: clamp(1.14rem, 2.1vw, 1.42rem);
  line-height: 1.5;
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button-primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary:hover {
  background: var(--coral-dark);
  box-shadow: 7px 7px 0 var(--ink);
}

.button-secondary {
  background: transparent;
}

.button-secondary:hover {
  background: var(--white);
}

.app-section {
  padding-block: 112px;
}

.screenshots-section {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 8px;
  color: var(--muted);
}

.section-heading.compact {
  display: block;
  margin-bottom: 50px;
}

.screenshots-wrapper {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--coral) #e8e2d6;
  scrollbar-width: thin;
}

.screenshots-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(236px, 1fr));
  gap: 24px;
  padding-bottom: 30px;
}

.screenshot-item {
  min-width: 0;
  margin-bottom: 0;
}

.screenshot-item img {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 34px;
  box-shadow: 0 16px 38px rgba(26, 25, 22, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.screenshot-item:nth-child(even) {
  padding-top: 34px;
}

.screenshot-item:hover img {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(26, 25, 22, 0.17);
}

.screenshot-item figcaption {
  display: flex;
  margin-top: 18px;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 700;
}

.screenshot-item figcaption span {
  color: var(--coral-dark);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.lifecycle-section {
  padding-top: 120px;
  padding-bottom: 130px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}

.step {
  position: relative;
  padding: 34px 30px 5px 0;
}

.step:not(:last-child) {
  margin-right: 30px;
  border-right: 1px solid var(--line);
}

.step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin-bottom: 54px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 0.8rem;
  font-weight: 800;
}

.step:nth-child(2) .step-number {
  color: var(--white);
  background: var(--coral);
}

.step:nth-child(3) .step-number {
  background: var(--mint);
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.group-section {
  color: var(--white);
  background: var(--cobalt);
}

.group-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 90px;
  align-items: center;
}

.group-copy h2 {
  max-width: 650px;
  font-size: clamp(3rem, 5.8vw, 5rem);
}

.group-copy > p:last-child {
  max-width: 610px;
  margin-bottom: 0;
  color: #e4e9ff;
  font-size: 1.08rem;
}

.circle-card {
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--hard-shadow);
}

.circle-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avatar-stack {
  display: flex;
}

.avatar {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-right: -9px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
}

.avatar.coral {
  color: var(--white);
  background: var(--coral);
}

.avatar.yellow {
  background: var(--yellow);
}

.avatar.mint {
  background: var(--mint);
}

.avatar.lilac {
  background: var(--lilac);
}

.member-count {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.circle-card h3 {
  margin-top: 38px;
  margin-bottom: 25px;
  font-size: 2.25rem;
}

.circle-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 20px;
  border-block: 1px solid var(--line);
}

.circle-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.circle-stats strong {
  font-size: 1.2rem;
}

.circle-stats span {
  color: var(--muted);
  font-size: 0.66rem;
}

.recent-plan {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 15px;
  border: 1px solid #e8b8af;
  border-radius: 11px;
  background: #fff0ec;
}

.recent-plan div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.recent-plan strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-plan small {
  color: var(--muted);
  font-size: 0.68rem;
}

.plan-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 9px;
  color: var(--white);
  background: var(--coral);
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
  gap: 100px;
  align-items: center;
}

.privacy-copy > p {
  max-width: 600px;
  color: var(--muted);
}

.privacy-list {
  border-top: 2px solid var(--ink);
}

.privacy-list > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.privacy-list > div > span {
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.privacy-list p {
  display: flex;
  margin-bottom: 0;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.88rem;
}

.privacy-list strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 1rem;
}

.coming-soon-section {
  display: flex;
  min-height: 290px;
  margin-bottom: 90px;
  padding: 56px 64px;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  color: var(--white);
  background: var(--coral);
  box-shadow: var(--hard-shadow);
}

.coming-soon-section h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.4vw, 4.7rem);
}

.coming-soon-section > p {
  max-width: 260px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 650;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-container {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer-brand {
  font-size: 0.92rem;
}

.footer-copyright {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 900px) {
  :root {
    --side-padding: 22px;
  }

  .app-header {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 50px;
    padding-top: 90px;
    padding-bottom: 100px;
  }

  .app-logo-stage,
  .app-logo {
    width: 180px;
    height: 180px;
  }

  .logo-shadow {
    border-radius: 44px;
  }

  .app-logo {
    border-radius: 44px;
  }

  .screenshots-list {
    width: max-content;
    max-width: none;
    grid-template-columns: repeat(4, 242px);
    padding-right: 22px;
  }

  .section-heading,
  .privacy-section {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .group-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    min-height: 72px;
  }

  .nav-links {
    display: none;
  }

  .app-header {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 62px;
    padding-bottom: 78px;
  }

  .app-header::after {
    top: 30px;
    right: -40px;
    width: 160px;
    height: 160px;
  }

  .app-logo-stage,
  .app-logo {
    width: 128px;
    height: 128px;
  }

  .app-logo,
  .logo-shadow {
    border-radius: 30px;
  }

  .app-infos h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .app-description {
    font-size: 1.08rem;
  }

  .app-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .app-section {
    padding-block: 78px;
  }

  .section-heading,
  .privacy-section,
  .group-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading > p {
    margin-bottom: 0;
  }

  .screenshots-list {
    grid-template-columns: repeat(4, 218px);
    gap: 16px;
  }

  .screenshot-item:nth-child(even) {
    padding-top: 20px;
  }

  .lifecycle-section {
    padding-block: 82px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 16px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
  }

  .step:not(:last-child) {
    margin-right: 0;
    border-right: 0;
  }

  .step-number {
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .step h3 {
    margin-bottom: 7px;
  }

  .group-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .circle-card {
    padding: 23px;
  }

  .privacy-section {
    gap: 54px;
  }

  .coming-soon-section {
    width: auto;
    min-height: 340px;
    margin: 0 22px 70px;
    padding: 38px 30px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
  }

  .footer-container {
    padding-block: 30px;
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
