/* ─── Cura project page — light theme ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --p-bg: #f6f5f2;
  --p-surface: #ffffff;
  --p-text: #14181a;
  --p-muted: #6b6f6d;
  --p-dim: #a5a8a4;
  --p-green-deep: #10261f;
  --p-green: #1f7a5c;
  --p-orange: #f5a623;
  --p-border: rgba(20, 24, 26, 0.1);
  --font: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

body {
  background: var(--p-bg);
  color: var(--p-text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

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

.pcontainer { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.pcontainer--narrow { max-width: 760px; }

/* ─── Reveal ───────────────────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-word {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-word.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ─── Nav ──────────────────────────────────────────────────────────── */
.pnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}
.pnav.scrolled {
  background: rgba(246,245,242,0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--p-border);
}
.pnav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pnav__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--p-muted);
  transition: color 0.2s, gap 0.25s;
}
.pnav__back:hover { color: var(--p-text); gap: 14px; }
.pnav__contact {
  font-size: 14px;
  font-weight: 500;
  color: var(--p-text);
  border: 1px solid var(--p-border);
  padding: 9px 18px;
  border-radius: 100px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.pnav__contact:hover { background: var(--p-green-deep); border-color: var(--p-green-deep); color: #fff; }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.phero { padding: 160px 0 56px; }
.phero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-muted);
  margin-bottom: 32px;
}
.phero__logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: block;
}
.phero__title {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  overflow: hidden;
}
.phero__title-sub {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--p-green);
  margin-top: 12px;
}
.phero__lead {
  font-size: 19px;
  color: var(--p-muted);
  max-width: 620px;
  margin-bottom: 48px;
}
.phero__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--p-border);
  padding-top: 28px;
  font-size: 14px;
  line-height: 1.5;
}
.phero__facts li { display: flex; flex-direction: column; gap: 6px; }
.phero__facts span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-dim);
}

/* ─── Cover ────────────────────────────────────────────────────────── */
.pcover { padding: 24px 0 40px; }
.pcover__img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

/* ─── Phone mockups ────────────────────────────────────────────────── */
.pmocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.pmock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pmock__phone {
  position: relative;
  width: 100%;
  max-width: 240px;
  background: var(--p-green-deep);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 24px 48px -20px rgba(16, 38, 31, 0.4);
}
.pmock__notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 16px;
  background: var(--p-green-deep);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.pmock__screen {
  background: #f8f9f8;
  border-radius: 24px;
  padding: 28px 12px 14px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.pmock__header { display: flex; align-items: center; gap: 8px; }
.pmock__applogo { width: 24px; height: 24px; border-radius: 6px; }
.pmock__search {
  flex: 1;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 100px;
  padding: 7px 12px;
  font-size: 10px;
  color: var(--p-muted);
  white-space: nowrap;
  overflow: hidden;
}
.pmock__chips { display: flex; gap: 5px; flex-wrap: wrap; }
.pmock__chip {
  font-size: 9px;
  padding: 4px 9px;
  border-radius: 100px;
  border: 1px solid var(--p-border);
  color: var(--p-muted);
  background: #fff;
}
.pmock__chip--active { background: var(--p-green); border-color: var(--p-green); color: #fff; }
.pmock__doc {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 9px 10px;
}
.pmock__avatar {
  width: 30px; height: 30px;
  background: #e8f0ec;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.pmock__avatar--lg { width: 52px; height: 52px; font-size: 24px; }
.pmock__doc-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pmock__doc-info strong { font-size: 10.5px; font-weight: 600; }
.pmock__doc-info span { font-size: 8.5px; color: var(--p-muted); }
.pmock__rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 10px;
  font-weight: 700;
  color: var(--p-green);
}
.pmock__rating em {
  font-style: normal;
  font-size: 7px;
  font-weight: 400;
  color: var(--p-orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pmock__profile-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 8px 0 4px;
}
.pmock__profile-top strong { font-size: 13px; }
.pmock__spec { font-size: 9px; color: var(--p-muted); }
.pmock__stars { font-size: 9px; color: var(--p-green); font-weight: 600; }
.pmock__review {
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pmock__review strong { font-size: 10px; }
.pmock__review span { font-size: 8.5px; color: var(--p-muted); line-height: 1.5; }
.pmock__cta {
  margin-top: auto;
  background: var(--p-green);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  padding: 10px;
}
.pmock__book-title { font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.pmock__book-title span { font-size: 8.5px; font-weight: 400; color: var(--p-muted); }
.pmock__days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pmock__day {
  text-align: center;
  font-size: 8.5px;
  line-height: 1.5;
  padding: 6px 0;
  border-radius: 10px;
  border: 1px solid var(--p-border);
  background: #fff;
  color: var(--p-muted);
}
.pmock__day--active { background: var(--p-green-deep); border-color: var(--p-green-deep); color: #fff; }
.pmock__slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pmock__slot {
  text-align: center;
  font-size: 8.5px;
  padding: 6px 0;
  border-radius: 100px;
  border: 1px solid var(--p-border);
  background: #fff;
  color: var(--p-muted);
}
.pmock__slot--active { background: var(--p-orange); border-color: var(--p-orange); color: #fff; font-weight: 700; }
.pmock__summary {
  background: #e8f0ec;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pmock__summary span { font-size: 8.5px; color: var(--p-muted); }
.pmock__summary strong { font-size: 10.5px; color: var(--p-green-deep); }
.pmock__caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--p-dim);
  text-align: center;
  max-width: 240px;
}

/* ─── Body sections ────────────────────────────────────────────────── */
.pbody { padding: 56px 0 80px; }
.psection { margin-bottom: 88px; }
.plabel {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--p-green);
  margin-bottom: 14px;
}
.psection h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.psection p { color: var(--p-muted); margin-bottom: 16px; }
.psection strong { color: var(--p-text); font-weight: 600; }

blockquote {
  margin: 32px 0 8px;
  padding: 28px 32px;
  background: var(--p-surface);
  border-left: 3px solid var(--p-green);
  border-radius: 0 12px 12px 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
blockquote span {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--p-dim);
}

/* stats */
.pstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.pstat {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 24px;
}
.pstat strong {
  display: block;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--p-green);
  margin-bottom: 6px;
}
.pstat span { font-size: 13px; color: var(--p-muted); line-height: 1.5; }

/* swatches */
.pswatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.pswatch {
  background: var(--c);
  border-radius: 14px;
  aspect-ratio: 1/1.1;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.pswatch span {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.pswatch--light { border: 1px solid var(--p-border); }
.pswatch--light span { color: var(--p-muted); }

/* case study figures */
.pfigure { margin: 32px 0 8px; }
.pfigure img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--p-border);
}
.pfigure figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--p-dim);
  margin-top: 12px;
  text-align: center;
}

/* lo-fi wireframes */
.pwires {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.pwire { margin: 0; }
.pwire img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--p-border);
  background: #fff;
}
.pwire figcaption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--p-dim);
  margin-top: 12px;
  text-align: center;
}

/* footer nav */
.pfooter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--p-border);
  padding-top: 40px;
}
.pfooter-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--p-muted);
  transition: color 0.2s, gap 0.25s;
}
.pfooter-nav__back:hover { color: var(--p-text); gap: 14px; }
.pfooter-nav__cta {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--p-green-deep);
  padding: 14px 26px;
  border-radius: 100px;
  transition: background 0.25s, transform 0.25s;
}
.pfooter-nav__cta:hover { background: var(--p-green); transform: translateY(-2px); }

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pcontainer, .pnav__inner { padding: 0 20px; }
  .phero { padding: 130px 0 40px; }
  .phero__facts { grid-template-columns: 1fr 1fr; }
  .pcover__img { border-radius: 14px; }
  .pmocks { grid-template-columns: 1fr; gap: 40px; }
  .pstats { grid-template-columns: 1fr; }
  .pwires { grid-template-columns: 1fr; gap: 32px; }
  .pwire img { max-width: 300px; margin: 0 auto; }
  .pswatches { grid-template-columns: 1fr 1fr; }
  .psection { margin-bottom: 64px; }
  .pfooter-nav { flex-direction: column; align-items: flex-start; }
  .pnav__back span { display: none; }
}
