@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-400-800.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --ink: #102f2c;
  --soft-ink: #526b65;
  --paper: #f1f6f2;
  --surface: #ffffff;
  --forest: #0d4d46;
  --accent: #0d665c;
  --mint: #9ed8bd;
  --sun: #f4bb43;
  --line: #b9cbc1;
  --error: #a83b2e;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

footer nav {
  display: flex;
  gap: 1rem;
}

footer button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.consent-panel {
  position: fixed;
  z-index: 10;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 58rem;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: 0 1rem 3rem rgb(13 77 70 / 20%);
}

.consent-panel[hidden] {
  display: none;
}

.consent-panel h2,
.consent-panel p {
  margin: 0 0 0.5rem;
}

.consent-panel p {
  max-width: 42rem;
  color: var(--soft-ink);
  line-height: 1.5;
}

.consent-status:empty {
  display: none;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.75rem;
}

.consent-actions button {
  min-height: 2.75rem;
  border: 1px solid var(--forest);
  border-radius: 0.65rem;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 22%;
}

.eyebrow,
.testflight-cta > p,
.principles article > span {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-link {
  font-weight: 800;
  text-underline-offset: 0.25em;
}

.hero {
  min-height: min(760px, calc(100vh - 5.1rem));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: clamp(3.25rem, 7vw, 6rem) clamp(5rem, 9vw, 8rem);
}

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

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.5rem, 7.5vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.lede {
  max-width: 33rem;
  margin: 1.6rem 0 2rem;
  color: var(--soft-ink);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.testflight-cta {
  display: grid;
  gap: 1rem;
  max-width: 39rem;
  border: 1px solid var(--ink);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  box-shadow: 0.55rem 0.55rem 0 var(--sun);
}

.testflight-cta > p,
.testflight-cta h2 {
  margin: 0;
}

.testflight-cta > p {
  color: var(--accent);
}

.testflight-cta h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.04em;
}

.testflight-cta > a {
  min-height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  border: 1px solid var(--forest);
  padding: 0.9rem 1.25rem;
  color: #ffffff;
  background: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.testflight-cta small {
  color: var(--soft-ink);
  font-size: 0.75rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 36rem;
  margin: 0;
  overflow: hidden;
  border-radius: 2rem 2rem 5.5rem 2rem;
  background: var(--forest);
  isolation: isolate;
}

.hero-visual::before {
  content: 'CATALÀ';
  position: absolute;
  top: 1.4rem;
  right: -0.22em;
  color: rgb(255 255 255 / 9%);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  writing-mode: vertical-rl;
}

.hero-visual img {
  position: absolute;
  z-index: 3;
  right: clamp(1rem, 6vw, 4rem);
  bottom: 4.2rem;
  width: min(55%, 15rem);
  filter: drop-shadow(0 1rem 0.6rem rgb(5 38 34 / 30%));
}

.sun {
  position: absolute;
  top: 4.5rem;
  left: 3rem;
  width: 5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
}

.mountain {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: var(--mint);
  clip-path: polygon(0 55%, 24% 15%, 43% 52%, 67% 4%, 100% 58%, 100% 100%, 0 100%);
}

.mountain-back {
  height: 58%;
  opacity: 0.45;
}

.mountain-front {
  height: 42%;
  clip-path: polygon(0 54%, 15% 30%, 34% 64%, 58% 12%, 79% 50%, 100% 25%, 100% 100%, 0 100%);
}

.hero-visual figcaption {
  position: absolute;
  z-index: 4;
  right: 1.5rem;
  bottom: 1.35rem;
  left: 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
}

.hero-visual figcaption strong {
  font-size: 1.05rem;
}

.hero-visual figcaption span {
  max-width: 19rem;
  color: rgb(255 255 255 / 75%);
  font-size: 0.76rem;
  text-align: right;
}

.product-showcase {
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
}

.showcase-copy {
  max-width: 40rem;
}

.showcase-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.showcase-copy p {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--soft-ink);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

.screenshot-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 0 1rem 2rem;
}

.screenshot-stage figure {
  flex: 0 1 15rem;
  width: min(22vw, 15rem);
  margin: 0;
}

.screenshot-stage figure:nth-child(1),
.screenshot-stage figure:nth-child(3) {
  margin-top: 3.5rem;
}

.screenshot-stage figure:nth-child(2) {
  flex-basis: 17rem;
  width: min(25vw, 17rem);
}

.screenshot-stage img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 2.4rem;
  box-shadow: 0 1.4rem 3rem rgb(13 77 70 / 18%);
}

.screenshot-stage figcaption {
  margin-top: 1rem;
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.principles {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  border-block: 1px solid var(--line);
}

.principles-intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  gap: 2rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.principles-intro .eyebrow {
  margin: 0;
}

.principles-intro h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.principles article {
  min-height: 15rem;
  border-top: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.principles article + article {
  border-left: 1px solid var(--line);
}

.principles article > span {
  color: var(--accent);
}

.principles h3 {
  margin: 1rem 0 0.65rem;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  letter-spacing: -0.04em;
}

.principles p {
  max-width: 31rem;
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.9rem;
  line-height: 1.65;
}

.principle-main {
  background: var(--forest);
}

.principle-main > span,
.principle-main h3 {
  color: #ffffff;
}

.principle-main p {
  color: rgb(255 255 255 / 72%);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  color: var(--soft-ink);
  font-size: 0.78rem;
}

.policy {
  max-width: 48rem;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.policy h1 {
  max-width: none;
  font-size: clamp(3.2rem, 9vw, 6rem);
}

.policy-date {
  margin: 1rem 0 2.5rem;
  color: var(--soft-ink);
}

.policy article {
  border-top: 1px solid var(--line);
}

.policy section {
  border-bottom: 1px solid var(--line);
  padding-block: 1.4rem;
}

.policy h2 {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}

.policy p,
.policy li {
  color: var(--soft-ink);
  line-height: 1.7;
}

.policy p {
  margin: 0.5rem 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7f2ec;
    --soft-ink: #a7beb4;
    --paper: #0c211f;
    --surface: #17332f;
    --forest: #24786e;
    --accent: #78d6c2;
    --mint: #8fc9ad;
    --sun: #f3bd50;
    --line: #36534d;
    --error: #ff9a8b;
  }

  .testflight-cta {
    border-color: var(--line);
  }

  .hero-visual,
  .principle-main {
    background: #0d4d46;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-visual {
    animation: enter 450ms both;
  }

  .testflight-cta > a {
    transition: transform 150ms ease;
  }

  .testflight-cta > a:active {
    transform: scale(0.98);
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(0.8rem);
    }
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .testflight-cta > a:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 30rem;
  }

  .screenshot-stage {
    justify-content: flex-start;
    gap: 1.25rem;
    margin-inline: calc(50% - 50vw);
    padding: 0 max(1.25rem, calc((100vw - 1180px) / 2)) 2rem;
    overflow-x: auto;
    scroll-padding-inline: 1.25rem;
    scroll-snap-type: x mandatory;
  }

  .screenshot-stage figure,
  .screenshot-stage figure:nth-child(1),
  .screenshot-stage figure:nth-child(2),
  .screenshot-stage figure:nth-child(3) {
    flex: 0 0 min(16rem, 76vw);
    width: auto;
    margin-top: 0;
    scroll-snap-align: center;
  }

  .principles {
    grid-template-columns: 1fr 1fr;
  }

  .principles-intro,
  .principle-main {
    grid-column: 1 / -1;
  }

  .principles article + article {
    border-left: 0;
  }

  .principles article:nth-of-type(3) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 1.5rem, 1180px);
  }

  .hero {
    gap: 3.5rem;
    padding-top: 2.5rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .product-showcase {
    padding-block: 5rem;
  }

  .screenshot-stage {
    margin-top: 2.5rem;
  }

  .principles-intro,
  .principles {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 26rem;
    border-radius: 1.5rem 1.5rem 4rem 1.5rem;
  }

  .hero-visual figcaption {
    display: block;
  }

  .hero-visual figcaption span {
    display: block;
    margin-top: 0.25rem;
    text-align: left;
  }

  .principles article + article,
  .principles article:nth-of-type(3) {
    border-left: 0;
  }

  footer,
  footer nav,
  .consent-panel,
  .consent-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
