/* CalmPDF landing styles */

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("fonts/FrankRuhlLibre_400Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("fonts/FrankRuhlLibre_700Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik_400Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik_700Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --paper: #FDFBF7;
  --ink: #1A1A1A;
  --olive: #4A533C;
  --hairline: #E6E2DA;
  --muted: #6b6659;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 40px; }

a { color: var(--olive); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* masthead */
.masthead {
  border-bottom: 1px solid var(--hairline);
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 22px;
}
.wordmark {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark em { font-style: normal; color: var(--olive); }
.wordmark .mark { width: 22px; height: 22px; vertical-align: -4px; margin-right: 9px; }
.masthead nav { display: flex; gap: 28px; font-size: 13.5px; }
.masthead nav a { color: var(--ink); }
.masthead nav a.go { color: var(--olive); font-weight: 700; }

/* hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 60% 40%;
  padding-top: 96px;
  padding-bottom: 104px;
}
.kicker {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1.compact {
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.2;
}
.hero .dek {
  max-width: 52ch;
  margin-top: 34px;
  color: var(--muted);
  font-size: 16.5px;
}
.cta {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.cta .go {
  display: inline-block;
  background: var(--olive);
  color: var(--paper);
  padding: 14px 30px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border-radius: 2px;
}
.cta .go:hover { text-decoration: none; filter: brightness(1.12); }
.cta .quiet { font-size: 14px; }
.hero .terms {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero .terms b { color: var(--ink); font-weight: 700; }

/* sections */
section { border-top: 1px solid var(--hairline); }

.statement .wrap { padding-top: 90px; padding-bottom: 96px; }
.statement h2 {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.statement h2.long { max-width: 26ch; font-size: clamp(34px, 4.2vw, 54px); }
.statement .after {
  margin-top: 30px;
  max-width: 58ch;
  color: var(--muted);
}
.statement .after b, .meta dd b { color: var(--ink); }
.statement.pull-right h2, .statement.pull-right .after { margin-left: auto; text-align: left; }
.statement.pull-right .wrap { display: flex; flex-direction: column; align-items: flex-end; }

/* two-column lists */
.meta .wrap { padding-top: 66px; padding-bottom: 78px; }
.meta h3 {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 38px;
}
.meta dl {
  columns: 2;
  column-gap: 64px;
}
.meta .row {
  break-inside: avoid;
  border-top: 1px solid var(--hairline);
  padding: 14px 0 16px;
}
.meta dt { font-weight: 700; font-size: 14.5px; }
.meta dd { margin-top: 3px; color: var(--muted); font-size: 13.5px; }

/* pricing */
.pricing .wrap {
  display: grid;
  grid-template-columns: 40% 60%;
  padding-top: 84px;
  padding-bottom: 92px;
  align-items: start;
}
.price {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  font-size: clamp(84px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.price small {
  display: block;
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 16px;
}
.pricing .terms-col p { max-width: 54ch; color: var(--muted); margin-bottom: 16px; }
.pricing .terms-col p:first-child { color: var(--ink); font-size: 16.5px; }
.go-inline {
  display: inline-block;
  background: var(--olive);
  color: var(--paper) !important;
  padding: 13px 26px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border-radius: 2px;
}
.go-inline:hover { text-decoration: none; filter: brightness(1.12); }

/* faq */
.faq .wrap { padding-top: 66px; padding-bottom: 86px; }
.faq h3 {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
}
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--olive); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; max-width: 66ch; color: var(--muted); }

/* footer */
.colophon { border-top: 1px solid var(--hairline); }
.colophon .wrap { padding-top: 40px; padding-bottom: 56px; }
.colophon p { color: var(--muted); font-size: 13px; max-width: 78ch; }
.colophon p + p { margin-top: 8px; }
.colophon .fine { font-size: 11.5px; margin-top: 18px; }

@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  .hero .wrap, .pricing .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .meta dl { columns: 1; }
  .statement.pull-right .wrap { align-items: flex-start; }
  .masthead .wrap { flex-wrap: wrap; row-gap: 6px; }
  .masthead nav { flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; }
}
