/* =========================================================
   Studio Procrast — shared stylesheet
   Typography: Montserrat (Google Fonts), weights 300/400/700
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  --font: 'Montserrat', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --navy: #12105d;
  --blue: #485ab1;
  --hero-sub: #3f3d7c;
  --ink: #000000;
  --muted: #595959;
  --meta: #8a8378;

  --grey-100: #f5f5f5;
  --grey-200: #e9e9e9;
  --grey-300: #e5e5e5;
  --line: #ececec;

  --page: 1240px;   /* main content container */
  --nav: 700px;     /* narrow centred header group */
  --header-h: 76px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 24px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.site-header__inner {
  max-width: var(--nav);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 46px; height: auto; }

.nav { display: flex; align-items: center; gap: 44px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, opacity 0.18s ease;
  cursor: pointer;
}
/* Hover underline only where a real pointer exists — on touch devices the
   hover state sticks after a tap and leaves a stray rule under the item. */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { border-bottom-color: var(--navy); }
}
/* thin chevron drawn in CSS (matches the original hairline caret) */
.nav__link .caret {
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.nav__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(18, 16, 93, 0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
/* Hover-to-open is desktop-only. Scoping it to a min-width query matters:
   media queries add no specificity, so an unscoped `.nav__item:hover .nav__menu`
   would out-specify the mobile `.nav__menu` reset below and keep the
   translate(-50%) applied — which pushes the open submenu off-screen on a
   phone the moment tapping the parent link gives it :focus-within. */
@media (min-width: 901px) {
  .nav__item:hover .nav__menu,
  .nav__item:focus-within .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .nav__item:hover .caret,
  .nav__item:focus-within .caret { transform: translateY(1px) rotate(225deg); }
}

.nav__menu a {
  display: block;
  font-size: 11px;
  color: var(--navy);
  padding: 9px 12px;
  border-radius: 8px;
}
.nav__menu a:hover { background: #f3f4fb; }

.btn-contact {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 16, 93, 0.28);
}

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.nav-toggle span + span { margin-top: 4px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 17px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: #000; color: #fff; }
.btn--dark:hover { background: #1c1c1c; }
.btn--ghost { background: transparent; color: #000; border-color: #000; }
.btn--ghost:hover { background: #000; color: #fff; }

/* =========================================================
   HOMEPAGE — hero
   ========================================================= */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 110px;
  text-align: center;
  background: linear-gradient(
    45deg,
    #76a0eb 0%,
    #9dbcf1 14%,
    #c5d6f4 30%,
    #eef4fb 45%,
    #fafcfd 55%,
    #d6e5f7 74%,
    #a9c6ec 90%,
    #9abce8 100%
  );
}
.hero__inner { width: 100%; max-width: 720px; }

.hero__title {
  margin: 0;
  text-align: right;
  letter-spacing: -0.01em;
}
.hero__l1,
.hero__l2,
.hero__l3 { display: block; }
.hero__l1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  padding-right: 1.7em;   /* matches the offset in the original composition */
}
.hero__l2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
}
.hero__l3 {
  font-size: 56px;
  font-weight: 300;
  color: var(--blue);
  line-height: 1.15;
  margin-top: 2px;
}
.hero__sub {
  max-width: 560px;
  margin: 46px auto 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--hero-sub);
}

/* =========================================================
   HOMEPAGE — stats
   ========================================================= */
.stats { padding: 40px 0 120px; }
.stats__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.stats__visual img { width: 100%; height: auto; }

.stats__eyebrow {
  margin: 0 0 54px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.stats__numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px 46px;
}
.stat__value {
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}
.stat__rule {
  margin: 14px 0 16px;
  height: 1px;
  background: #c9c9c9;
  position: relative;
}
.stat__rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 22%;
  height: 3px;
  background: #000;
  border-radius: 2px;
}
.stat__label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* =========================================================
   HAPPY FEW — product hero
   ========================================================= */
.product-hero {
  background: linear-gradient(180deg, #fbfbfb 0%, #ffffff 45%);
  padding: 150px 0 150px;
}
.product-hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.product-hero__title {
  margin: 0;
  font-size: 58px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.product-hero__text {
  max-width: 470px;
  margin: 34px 0 42px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
}
.product-hero__visual img { width: 100%; }

/* =========================================================
   HAPPY FEW — bento grid
   ========================================================= */
.bento { padding: 20px 0 90px; }
.bento__grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  grid-auto-rows: minmax(340px, auto);
  gap: 34px;
}
.bento__card {
  border-radius: 28px;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bento__card:hover { transform: translateY(-4px); }
.bento__card h3 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.bento__card p { margin: 12px 0 0; font-size: 17px; font-weight: 400; color: var(--muted); }
.bento__card img { margin: auto; width: 62%; max-width: 300px; }

.bento__card--white { background: #fff; border: 1px solid #ededed; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.03); }
.bento__card--dark {
  background: #000;
  color: #fff;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.bento__card--dark h3 { font-size: 28px; }
.bento__card--dark p { color: #fff; font-weight: 700; font-size: 16px; margin-top: 14px; }
.bento__card--grey {
  background: var(--grey-200);
  border-radius: 32px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.bento__card--grey h3 { font-size: 28px; }
.bento__card--grey p { font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 14px; }
.bento__card--seamless { background: #fff; border: 1px solid #ededed; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.03); }
.bento__card--seamless img { width: 46%; margin: 14px auto 0; }

/* =========================================================
   HAPPY FEW — download banner
   ========================================================= */
.download { padding: 40px 0 110px; }
.download__inner {
  background: var(--grey-300);
  border-radius: 34px;
  padding: 96px 78px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 50px;
  align-items: center;
}
.download__title {
  margin: 0;
  font-size: 62px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.download__text {
  max-width: 660px;
  margin: 28px 0 40px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}
.download__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.download__visual img { width: 74%; margin: 0 0 0 auto; }
.arrow { font-size: 15px; }

/* =========================================================
   PAGE HERO (Team / Our Mission)
   ========================================================= */
.page-hero { padding: 96px 0 84px; text-align: center; }
.page-hero--team { background: linear-gradient(180deg, #f3f5fa 0%, #ffffff 60%); }
.page-hero--mission { background: linear-gradient(180deg, #eff2fd 0%, #f7f9fe 55%, #ffffff 100%); }

.page-hero__title {
  margin: 0;
  font-size: 56px;
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.page-hero__sub {
  max-width: 720px;
  margin: 30px auto 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

/* =========================================================
   TEAM
   ========================================================= */
.team { padding: 20px 0 120px; background: #fff; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.member {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  padding: 42px 26px 34px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.09);
}
.member__avatar {
  width: 74%;
  max-width: 190px;
  aspect-ratio: 1;
  margin: 0 auto 34px;
  border-radius: 50%;
}
/* Layered radial blends recreate the soft multi-colour orbs from the original */
.member__avatar--1 {
  background:
    radial-gradient(circle at 78% 22%, #c2661a 0%, rgba(194, 102, 26, 0) 62%),
    radial-gradient(circle at 20% 18%, #d9a37e 0%, rgba(217, 163, 126, 0) 55%),
    radial-gradient(circle at 22% 74%, #6f8fd6 0%, rgba(111, 143, 214, 0) 58%),
    radial-gradient(circle at 84% 86%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(145deg, #b8874f 0%, #d78435 45%, #f3efe9 100%);
}
.member__avatar--2 {
  background:
    radial-gradient(circle at 22% 16%, #f4d84c 0%, rgba(244, 216, 76, 0) 58%),
    radial-gradient(circle at 84% 26%, #ee4a45 0%, rgba(238, 74, 69, 0) 56%),
    radial-gradient(circle at 26% 78%, #ef5a4a 0%, rgba(239, 90, 74, 0) 58%),
    radial-gradient(circle at 84% 86%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(145deg, #f6c93f 0%, #f0603f 55%, #fdf0ec 100%);
}
.member__avatar--3 {
  background:
    radial-gradient(circle at 18% 22%, #2f9a3a 0%, rgba(47, 154, 58, 0) 60%),
    radial-gradient(circle at 24% 74%, #2c8a4a 0%, rgba(44, 138, 74, 0) 58%),
    radial-gradient(circle at 82% 30%, #3d84d8 0%, rgba(61, 132, 216, 0) 58%),
    radial-gradient(circle at 86% 84%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(145deg, #37953e 0%, #3a86d4 60%, #eef4fb 100%);
}
.member__avatar--4 {
  background:
    radial-gradient(circle at 24% 18%, #4159d6 0%, rgba(65, 89, 214, 0) 58%),
    radial-gradient(circle at 34% 76%, #8c62dd 0%, rgba(140, 98, 221, 0) 58%),
    radial-gradient(circle at 84% 30%, #6f8ce0 0%, rgba(111, 140, 224, 0) 55%),
    radial-gradient(circle at 88% 80%, #c9ecd4 0%, rgba(201, 236, 212, 0) 60%),
    linear-gradient(145deg, #4a63da 0%, #9370de 55%, #e9f6ee 100%);
}

.member__name { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.member__role {
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3d3d3d;
}
.member__mail {
  display: inline-block;
  margin-top: 16px;
  font-size: 8px;
  font-weight: 400;
  color: var(--meta);
  word-break: break-all;
}
.member__mail:hover { color: var(--navy); }

/* =========================================================
   MISSION
   ========================================================= */
.mission {
  padding: 30px 0 120px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
}
.mission__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  align-items: stretch;   /* both cards share the taller height, as in the original */
}
.mission__card {
  background: #fff;
  border: 1px solid #f1f2f7;
  border-radius: 26px;
  box-shadow: 0 4px 26px rgba(20, 24, 60, 0.05);
  padding: 66px 56px 62px;
}
.mission__card h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.mission__quote {
  margin: 34px 0 42px;
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: #4a4a4a;
}
.mission__item + .mission__item { margin-top: 32px; }
.mission__item h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.mission__item p { margin: 6px 0 0; font-size: 18px; font-weight: 400; color: #2f2f2f; }

/* =========================================================
   LEGAL / PRIVACY POLICY
   ========================================================= */
.page-hero--legal { background: linear-gradient(180deg, #f3f5fa 0%, #ffffff 70%); }
.page-hero--legal .page-hero__title { letter-spacing: 0.06em; }

.legal { padding: 10px 0 120px; }
.legal__inner { max-width: 760px; margin: 0 auto; }

.legal__meta {
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}
.legal__meta strong { color: var(--ink); font-weight: 700; }

.legal__lede {
  margin: 0;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.7;
  color: #3a3a3a;
}
.legal__lede + h2 { margin-top: 46px; }

.legal h2 {
  margin: 62px 0 18px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.legal h3 {
  margin: 34px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.legal p { margin: 0 0 18px; font-size: 16px; line-height: 1.75; color: #2f2f2f; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin: 10px 0; font-size: 16px; line-height: 1.7; color: #2f2f2f; }
.legal strong { font-weight: 700; color: var(--ink); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--navy); }

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 30px;
  font-size: 15px;
}
.legal__table th,
.legal__table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}
.legal__table th { font-weight: 700; color: var(--ink); }
.legal__table td { color: #2f2f2f; }
.legal__table tr:first-child th { border-bottom-color: #cfcfcf; }

.legal__note {
  margin: 60px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 66px 5% 30px;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 40px;
}
.site-footer a,
.site-footer p { font-size: 13px; font-weight: 400; }
.footer__col p { margin: 0 0 20px; color: var(--ink); }
.footer__col a { display: block; margin-bottom: 20px; color: var(--ink); }
.footer__col a:hover { text-decoration: underline; }
.footer__label { margin: 0 0 14px; }
.footer__social { display: inline-flex; }
.footer__social svg { width: 26px; height: 26px; }

.site-footer__legal {
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px 5% 46px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .download__inner { padding: 70px 48px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: block; }
  .site-header__inner { max-width: 100%; padding: 0 20px; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.07);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { display: flex; }
  .nav__link { font-size: 14px; padding: 14px 0; justify-content: space-between; }

  /* Accordion, not dropdown: static flow, no offset transform, hidden until
     the parent .nav__item gets .is-open from nav.js. */
  .nav__item .nav__menu {
    position: static;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 14px;
    min-width: 0;
    display: none;
  }
  .nav__item.is-open .nav__menu { display: block; }
  .nav__item .caret { transform: translateY(-2px) rotate(45deg); }
  .nav__item.is-open .caret { transform: translateY(1px) rotate(225deg); }
  .nav__menu a { font-size: 13px; padding: 8px 0; }
  .btn-contact { padding: 10px 20px; }

  .hero { min-height: 0; padding: 76px 24px 90px; }
  .hero__title { text-align: center; }
  .hero__l1 { padding-right: 0; }
  .hero__l1, .hero__l2 { font-size: 32px; }
  .hero__l3 { font-size: 40px; }
  .hero__sub { font-size: 16px; margin-top: 32px; }

  .stats__grid { grid-template-columns: 1fr; gap: 44px; }
  .stats__visual { order: -1; }
  .stats__numbers { grid-template-columns: 1fr; gap: 36px; }
  .stats__eyebrow { margin-bottom: 34px; }

  .product-hero { padding: 64px 0 72px; }
  .product-hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .product-hero__title { font-size: 40px; }
  .product-hero__text { font-size: 17px; margin: 24px 0 30px; }

  .bento__grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 22px; }
  .bento__card { padding: 34px 30px; min-height: 280px; }

  .download__inner { grid-template-columns: 1fr; padding: 54px 32px; text-align: left; }
  .download__title { font-size: 42px; }
  .download__visual img { width: 46%; margin: 8px 0 0; }

  .page-hero { padding: 62px 0 52px; }
  .page-hero__title { font-size: 36px; }
  .page-hero__sub { font-size: 17px; }

  .team__grid { grid-template-columns: 1fr; gap: 24px; }
  .member__avatar { max-width: 210px; }

  .mission__grid { grid-template-columns: 1fr; gap: 24px; }
  .mission__card { padding: 44px 30px; }
  .mission__card h2 { font-size: 26px; }
  .mission__quote { font-size: 19px; margin: 24px 0 32px; }
  .mission__item p { font-size: 16px; }

  .legal { padding: 0 0 72px; }
  .legal h2 { margin: 44px 0 14px; padding-top: 26px; font-size: 20px; }
  .legal p, .legal li { font-size: 15px; }
  .legal__lede { font-size: 17px; }
  .legal__table { font-size: 14px; }
  .legal__table th, .legal__table td { padding: 11px 8px; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; padding: 48px 24px 20px; }
  .site-footer__legal { padding: 18px 24px 40px; }
}
