/* ============================================================
   Flink Rank — style.css
   Palette: royal blue / spring green / warm grey / lavender grey
   ============================================================ */

:root {
  --blue:        #2e44e8;
  --blue-dark:   #2333b8;
  --green:       #57eda1;
  --green-soft:  #8ff3c0;
  --grey-bg:     #e8e6e3;
  --lavender-bg: #dcdce6;
  --white:       #ffffff;
  --ink:         #12141f;

  --radius-card: 18px;
  --radius-pill: 999px;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

a { text-decoration: none; color: inherit; }

/* ============ Logo ============ */

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 56px;      /* header logo size */
  width: auto;
}

.logo-img-footer {
  height: 90px;      /* footer logo size */
}

/* ============ Header ============ */

.site-header {
  display: flex;
  align-items: center;
  gap: 8vw;
  padding: 26px 5vw 20px;
  background: var(--white);
}

.main-nav {
  display: flex;
  gap: clamp(24px, 5vw, 70px);
}

.main-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--blue); }

/* Header action buttons */

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-signin,
.btn-getstarted {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-signin {
  background: var(--white);
  border: 1px solid rgba(18, 20, 31, 0.2);
  color: var(--ink);
}

.btn-signin:hover,
.btn-signin:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-getstarted {
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-getstarted:hover,
.btn-getstarted:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-getstarted .arrow { font-size: 1.1em; line-height: 1; }

/* Hamburger toggle (mobile only) */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 27px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 5vw 0;
}

.hero-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 10px 34px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 12ch;
}

.hero-tagline {
  font-style: italic;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.2rem;
  max-width: 40ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-bottom: 40px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 14px 44px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn-green {
  background: var(--green);
  color: var(--blue);
}

.btn-green:hover { background: var(--green-soft); }

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

/* Hero visual: photo pinned to bottom of the blue section */

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 0;
}

.hero-photo {
  position: absolute;
  bottom: 0;                 /* bottom of image = bottom of hero section */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  height: 620px;             /* ← ADJUST SIZE HERE — forces scaling up or down */
  width: auto;
  max-width: none;
  object-fit: contain;
}

/* ============ Features (What we do / What you get) ============ */

.features {
  background: var(--grey-bg);
  padding: 80px 5vw;
}

.features-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 90px);
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

/* Blue card */

.what-card {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  box-shadow: 0 14px 34px rgba(46, 68, 232, 0.25);
}

.what-card h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.what-intro {
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.what-list {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.what-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  font-weight: 700;
}

.what-icon-img {
  flex: 0 0 auto;
  width: 38px;       /* ← adjust icon size here */
  height: 38px;
  object-fit: contain;
}

.what-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
}

.what-outro {
  font-weight: 700;
  font-size: 0.98rem;
}

/* What you get pills */

.benefits { padding-top: 20px; }

.benefits-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}

.benefit-list {
  list-style: none;
  display: grid;
  gap: 28px;
}

.benefit-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 12px 26px 12px 12px;
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(18, 20, 31, 0.08);
}

.benefit-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-soft);
  color: #23a862;
  display: grid;
  place-items: center;
}

.benefit-icon svg { width: 28px; height: 28px; }

/* ============ Audience ============ */

.audience {
  background: var(--lavender-bg);
  padding: 70px 5vw 80px;
}

.audience-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 55px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1300px;
  margin: 0 auto;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 0 34px;
}

.audience-item + .audience-item {
  border-left: 1px solid rgba(18, 20, 31, 0.25);
}

.audience-icon {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--green);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.audience-icon svg { width: 46px; height: 46px; }

.audience-copy h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.audience-copy p { font-size: 0.95rem; }

/* ============ Footer ============ */

.site-footer {
  background: var(--white);     /* full-width background */
  padding: 70px 5vw;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  max-width: 1300px;
  margin: 0 auto;
}

.footer-desc {
  font-size: 1.15rem;
  max-width: 44ch;
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  transform: translateY(-3px);
  background: var(--blue);
}

.footer-social svg { width: 26px; height: 26px; }

.footer-copy {
  max-width: 1300px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(18, 20, 31, 0.12);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(18, 20, 31, 0.6);
}

/* ============ How It Works page ============ */

.hiw {
  background: var(--grey-bg);
  padding: 70px 5vw 90px;
}

.hiw-inner {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.hiw-kicker {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hiw-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 22px;
}

.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }

.hiw-sub {
  max-width: 62ch;
  margin: 0 auto 60px;
  font-size: 1.05rem;
}

/* Step cards */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px;
  text-align: center;
  counter-reset: step;
  margin-bottom: 80px;
}

.step-card {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  padding: 34px 20px 28px;
  box-shadow: 0 12px 26px rgba(18, 20, 31, 0.08);
}

/* dotted connector between cards */
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  width: 26px;
  border-top: 5px dotted rgba(46, 68, 232, 0.45);
}

.step-num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step-icon {
  width: auto;        /* natural image size — no scaling, no blur */
  height: auto;
  max-width: 100%;
  margin: 0 auto 18px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-card p { font-size: 0.9rem; }

/* CTA banner */

.cta-banner {
  display: grid;
  grid-template-columns: auto 1fr 1.1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  max-width: 1300px;
  margin: 0 auto;
  background: var(--blue);
  color: var(--white);
  border-radius: 32px;
  padding: 44px clamp(30px, 4vw, 70px);
  box-shadow: 0 16px 36px rgba(46, 68, 232, 0.3);
}

.cta-icon {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
}

.cta-right {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding-left: clamp(24px, 3vw, 50px);
}

.cta-right p {
  font-size: 1.05rem;
  margin-bottom: 22px;
}

/* Built on science */

.science {
  background: var(--lavender-bg);
  overflow: hidden;
}

.science-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  max-width: 1300px;
  margin: 0 auto;
  padding: 70px 5vw;
}

.science-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.science-copy p {
  font-size: 1.15rem;
  max-width: 52ch;
}

.science-visual {
  display: flex;
  justify-content: center;
}

.science-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  zoom: 0.6;         /* 40% smaller than natural size — adjust here */
}

/* ============ Contact page ============ */

.contact-hero {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 110px 5vw 130px;
  overflow: hidden;
  position: relative;
}

.contact-hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;             /* top and bottom flush with the section */
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  z-index: 0;
}

.contact-hero-content {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
}

.contact-hero p {
  max-width: 62ch;
  margin: 0 auto 44px;
  font-size: 1.25rem;
}

.btn-demo-outline {
  border: 2px solid var(--green-soft);
  font-size: 1.1rem;
  padding: 12px 48px;
}

/* Contact form + info */

.contact-main {
  background: var(--grey-bg);
  padding: 90px 5vw 0;   /* no bottom padding — photo sits flush with section bottom */
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 100px);
  max-width: 1300px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-card {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 22px;
  padding: 40px 44px 50px;
  margin-bottom: 90px;   /* preserves space under the form card */
  align-self: start;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.contact-form label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid rgba(18, 20, 31, 0.35);
  border-radius: 8px;
  margin-bottom: 24px;
  background: var(--white);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.btn-submit {
  display: block;
  width: 80%;
  margin: 10px auto 0;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background: var(--green-soft);
  transform: translateY(-2px);
}

/* Addresses + photo */

.contact-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.address h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.address p { font-size: 1rem; }

.address a { text-decoration: underline; }
.address a:hover { color: var(--blue); }

.contact-visual {
  position: relative;
  text-align: center;
  margin-top: auto;      /* pushes photo down so its bottom = section bottom */
}

.contact-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  vertical-align: bottom;
}

/* ============ Bookings page ============ */

.booking-hero {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 70px 5vw 80px;
}

.booking-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.booking-hero p {
  max-width: 58ch;
  margin: 0 auto;
  font-size: 1.2rem;
}

.booking-main {
  background: var(--grey-bg);
  padding: 90px 5vw;
}

.booking-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 100px);
  max-width: 1150px;
  margin: 0 auto;
  align-items: start;
}

.booking-card { margin-bottom: 0; }

.booking-datetime {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* What to expect */

.booking-aside h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 28px;
}

.booking-points {
  list-style: none;
  display: grid;
  gap: 22px;
  margin-bottom: 34px;
}

.booking-points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
}

.point-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.point-icon svg { width: 18px; height: 18px; }

.booking-note {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  box-shadow: 0 6px 18px rgba(18, 20, 31, 0.08);
}

.booking-note a {
  color: var(--blue);
  text-decoration: underline;
}

/* ============ Responsive ============ */

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .site-header { flex-wrap: wrap; gap: 0; }

  .main-nav,
  .header-actions { display: none; }

  .nav-open .main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 18px;
    padding-top: 24px;
    text-align: center;
  }

  .nav-open .header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 4;
    margin: 20px 0 6px;
    gap: 12px;
  }

  .nav-open .btn-signin,
  .nav-open .btn-getstarted {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-visual { min-height: 380px; margin-top: 10px; }
  .hero-photo { height: 380px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-card:not(:last-child)::after { display: none; }

  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .cta-icon { margin: 0 auto; }
  .cta-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-left: 0;
    padding-top: 24px;
  }

  .science-inner { grid-template-columns: 1fr; text-align: center; }
  .science-copy p { margin: 0 auto; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-addresses { text-align: center; }

  .booking-inner { grid-template-columns: 1fr; }

  .features-inner { grid-template-columns: 1fr; }

  .audience-grid { grid-template-columns: 1fr; gap: 40px; }
  .audience-item + .audience-item {
    border-left: none;
    border-top: 1px solid rgba(18, 20, 31, 0.25);
    padding-top: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-actions { padding-bottom: 50px; }
  .benefit-pill { font-size: 1.1rem; }
  .audience-item { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .footer-social a { transition: none; }
}
