/* CertaCase site: the app's warm paper world (see DESIGN.md) at the scale of a page you read, not a tool you work in. */
:root {
  --paper: #f7f5f0;
  --panel: #fcfbf8;
  --desk: #efece4;
  --ink: #252b28;
  --ink-2: #4c5450;
  --ink-3: #6b716b;
  --rule: #e0ddd3;
  --teal: #35675f;
  --teal-deep: #2f5d55;
  --teal-bg: #edf3ee;
  --plum: #756387;
  --plum-bg: #f4f0f7;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --measure: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(53, 103, 95, 0.16); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* masthead */
.mast {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--measure) + 64px);
  margin: 0 auto;
  padding: 16px 32px;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.mast__mark { font: 650 22px var(--serif); letter-spacing: -0.01em; text-decoration: none; }
.mast__nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; }
.mast__nav a { text-decoration: none; color: var(--ink-2); transition: color 0.15s; }
.mast__nav a:hover { color: var(--ink); }
.mast__nav .mast__cta {
  color: var(--teal-deep);
  padding: 7px 14px;
  border: 1px solid #c9d9d1;
  border-radius: 7px;
  background: var(--teal-bg);
}
.mast__nav .mast__cta:hover { border-color: var(--teal); color: var(--teal-deep); }

/* buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--teal-deep);
  color: #fff;
  font: 600 16px var(--sans);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(20, 45, 40, 0.2), 0 6px 16px rgba(20, 45, 40, 0.12);
  transition: background 0.15s, transform 0.2s var(--ease);
}
.btn:hover { background: #244a43; transform: translateY(-1px); }
.btn--big { padding: 15px 28px; font-size: 17px; }
.link {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(53, 103, 95, 0.35);
  text-underline-offset: 4px;
}
.link:hover { text-decoration-color: var(--teal); }

/* the site cites its own figures the way CertaCase cites pages */
.cite {
  display: inline-block;
  font: 600 12px/1.6 var(--sans);
  color: var(--teal);
  background: var(--teal-bg);
  border: 1px solid #d3e3da;
  border-radius: 4px;
  padding: 0 6px;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: 1px;
}
a.cite:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.stamp {
  font: 600 12.5px "SFMono-Regular", Consolas, monospace;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 7px;
  background: #fff;
  color: var(--ink);
}

/* hero: the tagline set like a title page, the Reader beneath it */
.hero {
  max-width: calc(var(--measure) + 64px);
  margin: 0 auto;
  padding: 72px 32px 40px;
}
.hero__text { max-width: 820px; }
.hero__for {
  font: 500 15px var(--sans);
  color: var(--teal);
  margin-bottom: 18px;
}
.hero__tag {
  font: 600 clamp(48px, 8.4vw, 104px)/0.98 var(--serif);
  letter-spacing: -0.03em;
}
.hero__tag span { display: block; }
.hero__tag span:nth-child(2) { color: var(--ink-2); }
.hero__tag span:nth-child(3) { color: var(--teal-deep); font-style: italic; font-weight: 550; }
.hero__lede {
  max-width: 40em;
  margin-top: 30px;
  font: 400 clamp(19px, 1.9vw, 22px)/1.5 var(--serif);
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }

/* figures: the app's screens on a sheet of paper, captioned like an exhibit */
.fig { margin: 0; }
.fig__sheet {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(40, 35, 20, 0.05), 0 24px 60px -12px rgba(40, 35, 20, 0.18);
}
.fig figcaption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 14px;
  font: italic 400 15px/1.45 var(--serif);
  color: var(--ink-3);
}
.fig--hero { margin-top: 64px; }
.fig--hero .fig__sheet { border-radius: 12px; }

/* the three promises, set as a rule-separated line */
.promise {
  max-width: calc(var(--measure) + 64px);
  margin: 56px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.promise p {
  padding: 26px 28px 26px 0;
  border-top: 1px solid var(--ink);
  font: 400 17px/1.5 var(--serif);
  color: var(--ink-2);
}
.promise p + p { padding-left: 28px; border-left: 1px solid var(--rule); }
.promise b { display: block; margin-bottom: 4px; font-weight: 650; font-size: 20px; color: var(--ink); }

/* the three acts of the tagline */
.act {
  max-width: calc(var(--measure) + 64px);
  margin: 0 auto;
  padding: 120px 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.act--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.act--flip .act__text { order: 2; }
.act__text { position: sticky; top: 110px; }
.act h2 {
  font: 600 clamp(40px, 5vw, 60px)/1 var(--serif);
  letter-spacing: -0.025em;
}
#opinion-h { color: var(--teal-deep); font-style: italic; }
.act__lede {
  margin-top: 16px;
  font: 400 21px/1.45 var(--serif);
  color: var(--ink-2);
}
.points { list-style: none; margin-top: 28px; display: grid; gap: 20px; }
.points li {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink-2);
}
.points b { display: block; font: 600 18px/1.35 var(--serif); color: var(--ink); margin-bottom: 3px; }
.figs { display: grid; gap: 40px; }

/* Claude and you: two voices, two colours */
.voices {
  max-width: calc(var(--measure) + 64px);
  margin: 140px auto 0;
  padding: 72px 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.voices h2 { font: 600 clamp(36px, 4.4vw, 54px)/1.05 var(--serif); letter-spacing: -0.02em; max-width: 14em; }
.voices__lede { margin-top: 14px; max-width: 36em; font: 400 20px/1.5 var(--serif); color: var(--ink-2); }
.voices__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.v { padding: 22px 24px; border-radius: 10px; border: 1px solid var(--rule); background: var(--panel); }
.v--claude { background: var(--plum-bg); border-color: #e3d9ea; }
.v__who { font: 600 15px var(--sans); }
.v--claude .v__who { color: var(--plum); }
.v--you .v__who { color: var(--teal); }
.v__words { margin-top: 10px; font: 400 21px/1.45 var(--serif); }
.v--claude .v__words { color: #4f4459; }
.v__acts { display: flex; align-items: center; gap: 16px; margin-top: 16px; font: 600 14px var(--sans); color: var(--plum); }
.v__btn { color: #fff; background: var(--plum); border-radius: 6px; padding: 5px 14px; }
.voices__note { margin-top: 16px; font: italic 400 14px var(--serif); color: var(--ink-3); }

/* privacy */
.private {
  max-width: calc(var(--measure) + 64px);
  margin: 0 auto;
  padding: 120px 32px 0;
}
.private h2 { font: 600 clamp(34px, 4vw, 48px)/1.08 var(--serif); letter-spacing: -0.02em; }
.private__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 22px; max-width: 980px; }
.private__cols p { font: 400 19px/1.55 var(--serif); color: var(--ink-2); }

/* early access */
.access {
  max-width: 860px;
  margin: 140px auto 0;
  padding: 0 32px;
  text-align: center;
}
.access h2 { font: 600 clamp(34px, 4.4vw, 52px)/1.08 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.access > p { margin-top: 18px; font: 400 20px/1.55 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.access .access__acts { margin-top: 32px; }
.access .access__note { margin-top: 18px; font: 400 15px var(--sans); color: var(--ink-3); }

.foot {
  max-width: calc(var(--measure) + 64px);
  margin: 140px auto 0;
  padding: 28px 32px 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 14px;
  color: var(--ink-3);
}
.foot p:first-child { margin-right: auto; }
.foot__mark { font: 650 16px var(--serif); color: var(--ink); margin-right: 10px; }

/* narrower screens: one column, the figures after the words */
@media (max-width: 900px) {
  .mast { padding: 12px 16px; }
  .mast__nav a:not(.mast__cta) { display: none; }
  .hero { padding: 40px 16px 24px; }
  .fig--hero { margin-top: 40px; }
  .promise { grid-template-columns: 1fr; padding: 0 16px; }
  .promise p, .promise p + p { padding: 20px 0; border-left: 0; }
  .promise p + p { border-top: 1px solid var(--rule); }
  .act, .act--flip { grid-template-columns: 1fr; gap: 32px; padding: 80px 16px 0; }
  .act--flip .act__text { order: 0; }
  .act__text { position: static; }
  .voices { margin-top: 90px; padding: 48px 16px; }
  .voices__pair, .private__cols { grid-template-columns: 1fr; }
  .private { padding: 80px 16px 0; }
  .access { margin-top: 90px; padding: 0 16px; }
  .foot { margin-top: 90px; padding: 24px 16px 40px; }
}
