/* ===== Base ===== */
:root {
  --green: #20be5a;
  --ink: #252525;
  --ink-90: rgba(37, 37, 37, 0.9);
  --ink-80: rgba(37, 37, 37, 0.8);
  --ink-70: rgba(37, 37, 37, 0.7);
  --ink-60: rgba(37, 37, 37, 0.6);
  --ink-40: rgba(37, 37, 37, 0.4);
  --shell: 1200px;
  --nav-h: 74px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: 26px;
  background: rgba(32, 190, 90, 0.14);
  box-shadow: inset 0 0 1px 0 rgba(200, 151, 255, 0.4);
  color: var(--green);
  font-size: 22px;
  font-weight: 600;
}

/* ===== Fixed nav ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: #fff;
  transition: box-shadow 0.25s ease;
}

.nav.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  position: relative;
  height: 100%;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0.5px solid #fff;
  object-fit: cover;
}

.nav-brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
}

.nav-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-80);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--green);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-ghost,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 26px;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-ghost {
  border: 1px solid var(--green);
  border-radius: 80px;
  color: var(--green);
  font-weight: 500;
}

.nav-ghost:hover {
  background: rgba(32, 190, 90, 0.1);
}

.nav-cta {
  border-radius: 50px;
  background: var(--green);
  color: #fff;
}

.nav-cta:hover {
  background: #1aa84e;
}

/* hamburger, mobile only */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Buttons ===== */
.btn-primary,
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border-radius: 70px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  height: 60px;
  padding: 0 32px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

.btn-primary .btn-icon {
  width: 30px;
  height: 30px;
}

.btn-light {
  height: 58px;
  padding: 0 30px;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}

.btn-light .btn-icon {
  width: 20px;
  height: 20px;
}

.btn-primary:hover,
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--nav-h) + 133px);
}

.hero-copy {
  width: min(var(--shell), calc(100% - 80px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 76px;
  font-weight: 600;
  line-height: 1.1;
  color: #000;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  line-height: 38px;
  color: rgba(0, 0, 0, 0.8);
}

.hero-visual {
  margin-top: 40px;
}

.hero-visual img {
  width: 100%;
}

/* ===== Features ===== */
.features {
  width: min(var(--shell), calc(100% - 80px));
  margin: 0 auto;
  padding-top: 100px;
}

.features-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.features-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

/* the middle card sits lower, mirroring the staggered design */
.feature-flip {
  margin-top: 112px;
}

.feature-shot {
  height: 320px;
  border: 1px solid #e6e6e6;
  border-radius: 36px;
  background: #f8f8f8;
  overflow: hidden;
}

.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.feature-copy {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* the flipped card shows its copy above the screenshot */
.feature-flip {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.feature-flip .feature-copy {
  margin: 0 0 20px;
}

.feature-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.feature-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-40);
}

/* ===== CTA band ===== */
.cta {
  width: min(var(--shell), calc(100% - 80px));
  margin: 112px auto 0;
  border-radius: 50px;
  background: #dedede url('./images/pic.webp') center / cover no-repeat;
  overflow: hidden;
}

.cta-inner {
  padding: 101px 89px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.cta-title {
  font-family: 'Playfair Display', 'Hoefler Text', Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.cta-sub {
  max-width: 693px;
  font-family: 'Playfair Display', 'Hoefler Text', Georgia, serif;
  font-size: 24px;
  line-height: 32px;
  color: var(--ink-60);
}

/* ===== Reviews ===== */
.reviews {
  /* the left column carries the page gutter on top of the 493px title block,
     so the title keeps its design width instead of being squeezed by the pad */
  --reviews-pad: max(calc((100vw - var(--shell)) / 2), 40px);
  padding: 120px 0 0;
  display: grid;
  grid-template-columns: calc(var(--reviews-pad) + 493px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.reviews-head {
  padding-left: var(--reviews-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.reviews-title {
  font-size: 46px;
  font-weight: 600;
  line-height: 60px;
  color: var(--ink);
  
}

.reviews-arrows {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.arrow {
  width: 63px;
  height: 44px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 71px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.arrow-next{
  border: 1px solid #21BE5A;
}

.arrow img {
  width: 24px;
  height: 24px;
}

.arrow-prev img {
  transform: rotate(180deg);
}

.arrow-prev:hover {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.04);
}

.arrow-next:hover{
  border-color: var(--green);
  background: rgba(33, 190, 90, 0.30);
}

.arrow:hover img {
  filter: invert(0) sepia(60%) saturate(600%) hue-rotate(85deg) brightness(95%);
}

/* the strip is clipped on the right so the next card peeks in */
.reviews-viewport {
  overflow: hidden;
  padding: 38px 0;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}

.reviews-track {
  --card-gap: 49px;
  /* viewport = 2.5 cards + 2 gaps, so the third card is half visible */
  --card-w: max(
    260px,
    calc((100vw - var(--reviews-pad) - 493px - 36px - 2 * var(--card-gap)) / 2.5)
  );
  display: flex;
  gap: var(--card-gap);
  width: max-content;
  transition: transform 0.45s ease;
}

.reviews-track.is-instant,
.reviews-track.is-instant * {
  transition: none !important;
}

.card {
  width: var(--card-w);
  flex: 0 0 auto;
  padding: 24px;
  border: 1px solid #fff;
  border-radius: 30px;
  background: #f9fbfa;
  box-shadow: 0 6px 24px rgba(37, 37, 37, 0.05);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: #fff;
  object-fit: cover;
}

.card-id {
  display: flex;
  flex-direction: column;
  line-height: 22px;
}

.card-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-90);
}

.card-age {
  font-size: 16px;
  color: var(--ink-60);
}

/* the rule runs behind the star chip, as in the design */
.card-rule {
  position: relative;
  margin: 39px 0 24px;
  height: 34px;
}

.card-rule::before {
  content: '';
  position: absolute;
  inset: 17px 0 auto 0;
  height: 1px;
  background: #c5c5c5;
}

.card-stars {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 34px;
  width: auto;
  padding: 10px 20px;
  border: 1px solid #c5c5c5;
  border-radius: 22px;
  background: #fff;
  box-sizing: border-box;
  object-fit: contain;
}

.card-text {
  font-size: 18px;
  line-height: 22px;
  color: var(--ink-60);
}

/* ===== Footer ===== */
.footer {
  margin-top: 150px;
}

.footer-inner {
  width: min(var(--shell), calc(100% - 80px));
  margin: 0 auto;
  padding-bottom: 60px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 12.5px;
  border: 0.625px solid #fff;
  object-fit: cover;
}

.footer-brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
}

.store {
  position: relative;
  display: inline-block;
  margin-top: 30px;
  width: 225px;
}

.store img {
  width: 100%;
  transition: opacity 0.2s ease;
}

.store-hov {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.store:hover .store-hov {
  opacity: 1;
}

.store:hover .store-nor {
  opacity: 0;
}

.footer-info {
  display: flex;
  gap: 90px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.footer-head {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-90);
}

.footer-link {
  font-size: 18px;
  line-height: 24px;
  color: var(--ink-70);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--green);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.contact-row img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--ink);
  padding: 16px 10px;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--ink-70);
}

/* ===== Responsive ===== */
@media (max-width: 1240px) {
  .hero-title {
    font-size: 58px;
  }

  .reviews {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .reviews-head {
    padding: 0 40px;
  }

  .reviews-viewport {
    padding: 24px 40px;
    border-radius: 0;
  }

  /* single-column layout: the strip spans the full width again */
  .reviews-track {
    --card-w: calc((100vw - 80px - 2 * var(--card-gap)) / 2.5);
  }

  .cta-inner {
    padding: 70px 50px;
  }
}

@media (max-width: 1024px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* drawer: the menu and the buttons drop below the bar */
  .nav.is-open .nav-menu,
  .nav.is-open .nav-actions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open .nav-actions {
    top: calc(100% + 178px);
    gap: 12px;
    padding: 0 24px 20px;
  }

  .nav.is-open .nav-link {
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid #f0f0f0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .feature-flip {
    margin-top: 0;
    display: flex;
    flex-direction: column;
  }

  .feature-flip .feature-copy {
    margin: 20px 0 0;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 60px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-logo {
    width: 34px;
    height: 34px;
  }

  .nav-brand-name {
    font-size: 20px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 48px);
  }

  .hero-copy {
    width: calc(100% - 32px);
    gap: 20px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 16px;
    line-height: 26px;
  }

  .btn-primary {
    height: 50px;
    padding: 0 24px;
    gap: 14px;
    font-size: 18px;
  }

  .btn-primary .btn-icon {
    width: 22px;
    height: 22px;
  }

  .hero-visual {
    margin-top: 24px;
  }

  .features {
    width: calc(100% - 32px);
    padding-top: 60px;
  }

  .section-title {
    font-size: 26px;
    line-height: 34px;
  }

  .pill {
    height: 44px;
    padding: 0 20px;
    font-size: 18px;
  }

  .features-grid {
    margin-top: 32px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-shot {
    height: 260px;
    border-radius: 28px;
  }

  .feature-title {
    font-size: 20px;
  }

  .cta {
    width: calc(100% - 32px);
    margin-top: 60px;
    border-radius: 28px;
  }

  .cta-inner {
    padding: 40px 24px;
    gap: 20px;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-sub {
    font-size: 16px;
    line-height: 24px;
  }

  .btn-light {
    height: 48px;
    font-size: 17px;
  }

  .reviews {
    padding-top: 60px;
    gap: 24px;
  }

  .reviews-head {
    padding: 0 16px;
  }

  .reviews-title {
    font-size: 28px;
    line-height: 38px;
  }

  .reviews-arrows {
    margin-top: 8px;
  }

  .arrow {
    width: 52px;
    height: 40px;
  }

  .arrow img {
    width: 20px;
    height: 20px;
  }

  .reviews-viewport {
    padding: 16px;
  }

  .reviews-track {
    --card-w: 80vw;
    --card-gap: 16px;
  }

  .card {
    padding: 20px;
    border-radius: 24px;
  }

  .card-text {
    font-size: 16px;
  }

  .footer {
    margin-top: 70px;
  }

  .footer-inner {
    width: calc(100% - 32px);
    gap: 36px;
    padding-bottom: 36px;
  }

  .footer-info {
    gap: 36px;
    flex-direction: column;
  }

  .footer-logo {
    width: 42px;
    height: 42px;
  }

  .footer-brand-name {
    font-size: 24px;
  }

  .store {
    margin-top: 20px;
    width: 180px;
  }

  .footer-head {
    font-size: 20px;
  }

  .contact-row {
    font-size: 15px;
  }

  .footer-bottom {
    font-size: 14px;
  }
}
