/* pithia.io. Tokens and rules follow site/content/DIRECTION.md (locked 2026-11-08). */

/* Fonts */
@font-face {
  font-family: "Cardo";
  src: url("/fonts/cardo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched stand-in so the swap to Cardo does not move the layout.
   Measured with CoreText: Cardo Bold is 0.900x the width of Georgia Bold; Cardo's
   ascent 0.990 and descent 0.364 are divided by the size-adjust. */
@font-face {
  font-family: "Cardo Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold");
  font-weight: 700;
  font-style: normal;
  size-adjust: 90%;
  ascent-override: 110%;
  descent-override: 40.4%;
  line-gap-override: 0%;
}

/* Tokens */
:root {
  color-scheme: light;

  --canvas: #F4F6F8;
  --ink: #1A222C;
  --slate: #526070;
  --rule: #D5DAE1;
  --paper: #FFFFFF;
  --bronze: #C99550;
  --bronze-deep: #B07F3C;
  --steel: #A9B2BD;

  --font-display: "Cardo", "Cardo Fallback", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --fs-h1: clamp(2.75rem, 6.5vw, 5.75rem);
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --fs-h3: 1.5rem;
  --fs-body: 1.125rem;
  --fs-caption: 0.9375rem;
  --fs-button: 1.0625rem;
  --fs-code: 0.8125rem;

  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;
  --sp-128: 128px;

  --max: 1120px;
  --measure: 64ch;
  --gutter: var(--sp-24);
  --section-gap: 72px;
  --radius-frame: 10px;
  --radius-button: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: var(--sp-48);
    --section-gap: var(--sp-96);
  }
}

@media (min-width: 960px) {
  :root {
    --section-gap: var(--sp-128);
  }
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
p,
dl,
dd,
ol,
figure,
pre {
  margin: 0;
}

picture {
  display: block;
}

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

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

/* Base */
.page {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

.main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section {
  padding-block: calc(var(--section-gap) / 2);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-8);
  z-index: 30;
  padding: var(--sp-8) var(--sp-16);
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--sp-16);
}

/* Type */
.h1,
.h2,
.h3,
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
}

.h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h2 {
  max-width: 18em;
  font-size: var(--fs-h2);
  line-height: 1.08;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
}

.measure {
  max-width: var(--measure);
}

.caption {
  color: var(--slate);
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.hash {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.section__title {
  margin-bottom: var(--sp-32);
}

@media (min-width: 768px) {
  .section__title {
    margin-bottom: var(--sp-48);
  }
}

/* Header */
.site-header {
  padding-top: var(--sp-24);
}

.wordmark {
  display: inline-block;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}

.mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: -8px;
  margin-right: 10px;
}

/* Call to action */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-button);
  background: var(--bronze);
  color: var(--ink);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms linear;
}

.cta:hover,
.cta:active {
  background: var(--bronze-deep);
}

/* Screenshot frame and placeholder */
/* A real window capture already has its own rounded, transparent corners, so the frame adds only a
   shadow that follows that outline (drop-shadow, not a rectangular box-shadow). */
.shot {
  filter: drop-shadow(0 10px 28px rgba(14, 27, 43, 0.16));
}

.shot img {
  width: 100%;
}

.shot--placeholder {
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: var(--radius-frame);
  background: var(--paper);
  display: flex;
  align-items: flex-start;
  aspect-ratio: 1440 / 900;
  padding: var(--sp-24);
}

.shot__note {
  color: var(--slate);
  font-size: var(--fs-caption);
  line-height: 1.5;
}

/* Hero */
.hero__grid {
  display: grid;
  gap: var(--sp-32);
}

.hero__lede {
  margin-top: var(--sp-24);
  max-width: var(--measure);
}

.hero__cta {
  margin-top: var(--sp-32);
}

.hero__micro {
  margin-top: var(--sp-16);
}

.hero__trust {
  margin-top: var(--sp-8);
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--sp-48);
    align-items: center;
  }
}

/* Page-load sequence: the only animation on the page */
.rise {
  animation: rise 600ms var(--ease) both;
  --rise-distance: 12px;
}

.rise--visual {
  animation-duration: 800ms;
  animation-delay: 120ms;
  --rise-distance: 20px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise-distance));
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Benefits */
.pairs {
  display: grid;
  gap: var(--sp-48);
}

.pair__body {
  margin-top: var(--sp-12);
  max-width: var(--measure);
}

@media (min-width: 768px) {
  .pairs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sp-64);
  }
}

/* Product proof */
.proof__grid {
  display: grid;
  gap: var(--sp-48);
}

.proof__frame {
  position: relative;
}

.callout {
  position: absolute;
  left: var(--callout-x, var(--sp-16));
  bottom: var(--callout-y, var(--sp-16));
  max-width: calc(100% - 2 * var(--sp-16));
  padding: var(--sp-8) var(--sp-12);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 600;
  line-height: 1.3;
}

.proof__caption {
  margin-top: var(--sp-16);
  max-width: var(--measure);
}

.code {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius-frame);
  background: var(--paper);
}

.code__pre {
  padding: var(--sp-24) var(--sp-16);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-code);
  line-height: 1.6;
  tab-size: 2;
}

@media (min-width: 960px) {
  .proof__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--sp-48);
    align-items: start;
  }
}

/* How it works */
.steps {
  display: grid;
  gap: var(--sp-32);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step__num {
  display: block;
  margin-bottom: var(--sp-12);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.step__text {
  max-width: var(--measure);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-48);
  }
}

/* Definition lists: Fair questions and FAQ */
.qa__item {
  padding-block: var(--sp-32);
}

.qa__item:first-child {
  padding-top: 0;
}

.qa__item:last-child {
  padding-bottom: 0;
}

.qa__item + .qa__item {
  border-top: 1px solid var(--rule);
}

.qa dt {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
}

.qa dd {
  margin-top: var(--sp-12);
  max-width: var(--measure);
}

@media (min-width: 960px) {
  .qa__item {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--sp-48);
  }

  .qa dd {
    margin-top: 0;
  }
}

/* Final call to action */
.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final__title {
  margin-bottom: var(--sp-32);
}

.final__risk {
  margin-top: var(--sp-16);
}

/* Footer */
.site-footer {
  padding-block: var(--sp-24) calc(var(--sp-48) + env(safe-area-inset-bottom));
  color: var(--slate);
  font-size: var(--fs-caption);
  line-height: 1.5;
}

/* Privacy page */
.doc {
  display: grid;
  gap: var(--sp-48);
  max-width: var(--measure);
}

.doc__body {
  margin-top: var(--sp-12);
}

.doc__lede {
  margin-top: var(--sp-24);
}

/* Sticky download bar: small screens only */
.sticky {
  display: none;
}

@media (max-width: 767.98px) {
  .sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    padding: var(--sp-12) max(var(--gutter), env(safe-area-inset-right)) calc(var(--sp-12) + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    border-top: 1px solid var(--rule);
    background: var(--paper);
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 250ms var(--ease), visibility 0s linear 250ms;
  }

  .sticky.is-visible {
    visibility: visible;
    transform: none;
    transition: transform 250ms var(--ease), visibility 0s;
  }

  .sticky__cta {
    flex: 1;
  }

  .sticky__dismiss {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--slate);
    font-family: var(--font-body);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
  }

  .has-sticky .site-footer {
    padding-bottom: calc(var(--sp-96) + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }

  .sticky {
    transform: none;
    opacity: 0;
    transition: opacity 250ms linear, visibility 0s linear 250ms;
  }

  .sticky.is-visible {
    opacity: 1;
    transition: opacity 250ms linear, visibility 0s;
  }
}

@media print {
  .sticky,
  .skip-link {
    display: none;
  }

  .shot {
    filter: none;
  }
}
