/* Fitora website: house style (dark green, light green, black, white). */
:root {
  --green: #2f641d;
  --light: #d5e8b8;
  --black: #000000;
  --white: #ffffff;
  --muted: #5b6b52; /* same as textMuted in the app */
  --line: rgba(0, 0, 0, 0.12);
  --radius: 28px;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(213, 232, 184, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav .logo img {
  height: 34px;
  width: auto;
}

.nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--green);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.pill.ghost {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--light);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(44px, 5.4vw, 76px);
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
}

h3 {
  font-size: 24px;
  line-height: 1.2;
}

.lead {
  max-width: 520px;
  margin: 24px 0 36px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Phones ---------- */
.phone {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 488 / 850;
  border-radius: 44px;
  border: 10px solid var(--black);
  overflow: hidden;
  background: var(--white);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero .phones {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero .phones .back {
  position: absolute;
  max-width: 250px;
  transform: translate(-58%, 34px) rotate(-6deg);
  opacity: 0.95;
}

.hero .phones .front {
  position: relative;
  transform: translateX(18%);
}

/* ---------- Sections ---------- */
section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.feature + .feature {
  margin-top: clamp(72px, 10vw, 128px);
}

.feature.flip .feature-media {
  order: 2;
}

.feature-media {
  display: flex;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--light);
}

.feature-text .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.feature-text h3 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
}

.feature-text p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

/* ---------- Green band ---------- */
.band {
  background: var(--green);
  color: var(--white);
}

.band .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.band .note {
  margin-top: 40px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '\2013';
}

.faq details p {
  margin: 0 0 26px;
  color: var(--muted);
}

/* ---------- Brands ---------- */
.brands {
  background: var(--black);
  color: var(--white);
}

.brands .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brands p {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 19px;
}

.brands .pill {
  background: var(--light);
  color: var(--black);
}

/* ---------- Footer ---------- */
footer {
  padding: 64px 0 40px;
  background: var(--light);
  font-size: 15px;
}

footer .top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

footer .logo img {
  height: 40px;
  width: auto;
}

footer ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

footer a {
  text-decoration: none;
}

footer .legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Text pages (About, Privacy, Terms) ---------- */
.page-head {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  background: var(--light);
}

.page-head p {
  margin: 16px 0 0;
  color: var(--muted);
}

.prose {
  max-width: 760px;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(72px, 10vw, 112px);
}

.prose h3 {
  margin: 44px 0 12px;
}

.prose p {
  margin: 0 0 16px;
  color: var(--black);
}

/* ---------- Phones and small screens ---------- */
@media (max-width: 860px) {
  .nav ul {
    display: none;
  }

  .hero .wrap,
  .feature,
  .band .grid {
    grid-template-columns: 1fr;
  }

  .hero .phones .back {
    display: none;
  }

  .hero .phones .front {
    transform: none;
  }

  .feature.flip .feature-media {
    order: 0;
  }

  .brands .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
