/* bkmks.app — design tokens transcribed from the app
   (Apps/Bkmks/Resources/Assets.xcassets + design handoff §Design Tokens).
   Two families only: Literata is the reading voice, the system face is chrome.
   Indigo is never decoration — it marks real actions. */

@font-face {
  font-family: "Literata";
  src: url("fonts/Literata.ttf") format("truetype-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("fonts/Literata-Italic.ttf") format("truetype-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #F8F6F1;
  --card: #FFFFFF;
  --ink: #1B1A22;
  --ink-secondary: #56545F;
  --ink-tertiary: #8B8895;
  --hairline: #E4E0D8;
  --indigo: #55568A;
  --on-indigo: #FFFFFF;
  --indigo-tint: #EAE9F2;
  --indigo-tint-border: #DCDAEA;
  --insight-fill: #F3F2F8;
  --insight-border: #B9B8D0;
  --insight-ink: #26253A;
  --verified: #4E7A5C;
  --shadow-hero: 0 12px 30px -14px rgba(27, 26, 34, .18);
  --shadow-cover: 0 6px 14px -6px rgba(27, 26, 34, .5);
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --chrome: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark is not an inversion — warmer ink-on-slate; cards one step above ground. */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101017;
    --card: #1E1E28;
    --ink: #EDEAE3;
    --ink-secondary: #A9A6B3;
    --ink-tertiary: #8B8899;
    --hairline: #2C2C38;
    --indigo: #A2A3D4;
    --on-indigo: #191922;
    --indigo-tint: #262637;
    --indigo-tint-border: #34344A;
    --insight-fill: #232330;
    --insight-border: #4A4A66;
    --insight-ink: #D9D7E8;
    --verified: #6FA382;
    --shadow-hero: 0 12px 30px -14px rgba(0, 0, 0, .5);
    --shadow-cover: 0 6px 14px -6px rgba(0, 0, 0, .7);
  }
}

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

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

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--chrome);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

/* width/height attrs reserve layout space; this keeps the rendered
   height proportional once CSS constrains the width */
img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.readable { max-width: 680px; margin: 0 auto; padding: 0 22px; }

/* ---- header ---- */

header.site {
  padding: 26px 0 10px;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark svg { display: block; color: var(--indigo); }
nav.site {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
nav.site a { color: var(--ink-secondary); }

/* ---- hero ---- */

.hero { padding: 54px 0 30px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
@media (min-width: 820px) {
  .hero { padding: 72px 0 40px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero p.lede {
  font-size: 18px;
  color: var(--ink-secondary);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero .platforms {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* ---- shared bits ---- */

.section-label {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-tertiary);
  margin-bottom: 14px;
}
.btn {
  display: inline-block;
  background: var(--indigo);
  color: var(--on-indigo);
  font-family: var(--chrome);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 16px;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn-quiet {
  display: inline-block;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 16px;
}
.btn-quiet:hover { text-decoration: none; }

.phone {
  display: block;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  box-shadow: var(--shadow-hero);
}
@media (prefers-color-scheme: dark) {
  /* The renders are light-mode; keep them reading as a lit page on slate. */
  .phone { border-color: #33334A; }
}

/* ---- feature rows ---- */

.feature {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}
.feature .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 820px) {
  .feature { padding: 88px 0; }
  .feature .wrap { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .feature-copy { order: 2; }
  .feature.flip .feature-art { order: 1; }
}
.feature h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.feature p { color: var(--ink-secondary); margin-bottom: 14px; max-width: 34em; }
.feature p:last-child { margin-bottom: 0; }

.passage-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-hero);
  max-width: 30em;
}
.passage-card .markbar {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--indigo);
  margin-bottom: 14px;
}
.passage-card blockquote {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.003em;
}
.passage-card cite {
  display: block;
  margin-top: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--indigo);
  font-style: normal;
  font-size: 13px;
  color: var(--ink-tertiary);
}
.passage-card cite b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

/* ---- privacy strip ---- */

.privacy-strip {
  border-top: 1px solid var(--hairline);
  padding: 88px 0;
  text-align: center;
}
.privacy-strip h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.privacy-strip > .wrap > p {
  color: var(--ink-secondary);
  max-width: 38em;
  margin: 0 auto 34px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  list-style: none;
  font-size: 15px;
  color: var(--ink-secondary);
}
.checks li::before {
  content: "✓";
  font-weight: 700;
  color: var(--verified);
  margin-right: 9px;
}

/* ---- shelf divider (the seven spine colors) ---- */

.shelf {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  padding: 0 22px;
}
.shelf span {
  display: block;
  width: 34px;
  border-radius: 3px 5px 5px 3px;
  box-shadow: var(--shadow-cover);
  /* spine shading down the hinge edge */
  background-image: linear-gradient(to right, rgba(0,0,0,.42), rgba(0,0,0,.08) 7px, rgba(0,0,0,0) 7px);
}

/* ---- pricing ---- */

.pricing {
  border-top: 1px solid var(--hairline);
  padding: 88px 0;
}
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 34px auto 0;
}
@media (min-width: 680px) {
  .pricing-cards { grid-template-columns: 1fr 1fr; }
}
.price-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 28px;
}
.price-card.unlock {
  background: var(--insight-fill);
  border: 1px dashed var(--insight-border);
}
.price-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}
.price-card .price {
  font-size: 14px;
  color: var(--ink-tertiary);
  margin-bottom: 18px;
}
.price-card ul {
  list-style: none;
  font-size: 15px;
  color: var(--ink-secondary);
  display: grid;
  gap: 9px;
}
.price-card ul li::before {
  content: "✓";
  font-weight: 700;
  color: var(--verified);
  margin-right: 9px;
}
.pricing h2, .closing h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 10px;
}
.pricing > .wrap > p {
  text-align: center;
  color: var(--ink-secondary);
  max-width: 38em;
  margin: 0 auto;
}

/* ---- closing ---- */

.closing {
  border-top: 1px solid var(--hairline);
  padding: 88px 0;
  text-align: center;
}
.closing p { color: var(--ink-secondary); margin-bottom: 28px; }

/* ---- footer ---- */

footer.site {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 44px;
  font-size: 13px;
  color: var(--ink-tertiary);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
}
footer.site a { color: var(--ink-secondary); }
footer.site .fine { flex-basis: 100%; margin-top: 8px; }

/* ---- article pages (privacy / support) ---- */

article.page { padding: 34px 0 80px; }
article.page h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 8px;
}
article.page .updated {
  font-size: 13px;
  color: var(--ink-tertiary);
  margin-bottom: 34px;
}
article.page h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 34px 0 10px;
}
article.page p, article.page li {
  color: var(--ink-secondary);
  margin-bottom: 12px;
}
article.page ul { padding-left: 22px; }
article.page .contact-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 34px;
}
article.page .contact-card p { margin-bottom: 4px; }

/* ---- 404 ---- */

.lost {
  text-align: center;
  padding: 110px 22px;
}
.lost h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 10px;
}
.lost p { color: var(--ink-secondary); margin-bottom: 26px; }
