/* sagelibrary.ai. Colors follow the Sage Library app icon and the Sage
   /library page this site was adapted from. */

@font-face {
  font-family: "Crimson Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/crimsontext-aac0df38a2b74406.woff2) format("woff2");
}
@font-face {
  font-family: "Crimson Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/crimsontext-381a244e30f7b325.woff2) format("woff2");
}
@font-face {
  font-family: "Crimson Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/crimsontext-94af206059c44519.woff2) format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --linen: #f6eddf;
  --parchment: #f5f0e6;
  --forest: #12302a;
  --green: #234832;
  --green-soft: #dfe8c9;
  --ink: #4f584c;
  --ink-soft: #6c7468;
  --gold: #c99a45;
  --gold-soft: #e2c47e;
  --wood: #2d2721;
  --line: rgba(35, 72, 50, 0.14);
  --serif: "Crimson Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: #315d43; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--green); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
cite { font-style: italic; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and footer */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(251, 247, 239, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font: 400 1.4rem/1 var(--serif); }
.brand img { border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-size: 0.95rem; }
.site-header nav a { text-decoration: none; color: var(--green); }
.header-cta { padding: 8px 16px; border-radius: 999px; background: var(--green); color: var(--paper) !important; }
.header-cta:hover { background: #315d43; }

.site-footer { background: var(--forest); color: #cfd8c4; padding: 40px 0 48px; font-size: 0.9rem; }
.footer-row { display: grid; gap: 18px; grid-template-columns: 1fr auto; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 1.25rem var(--serif); color: var(--gold-soft); }
.footer-brand img { border-radius: 7px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: #f3e6c4; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.fine { grid-column: 1 / -1; color: #9fb09c; font-size: 0.8rem; border-top: 1px solid rgba(226, 196, 126, 0.18); padding-top: 18px; }

/* Buttons and badges */
.badge { display: inline-block; border-radius: 10px; transition: transform 0.2s; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 56px; width: auto; }
.button { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--green); color: var(--paper); text-decoration: none; font-weight: 500; }
.button:hover { background: #315d43; color: var(--paper); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  background: radial-gradient(ellipse 70% 60% at 70% 80%, rgba(214, 132, 56, 0.14), transparent 70%), var(--paper);
}
.hero-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 700 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.laurel { width: 16px; height: 24px; object-fit: cover; object-position: left; }
.laurel-right { object-position: right; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.01em; }
.lede { margin-top: 22px; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; max-width: 34em; }
.hero .badge { margin-top: 34px; }
.price-line { margin-top: 14px; font: 1.08rem var(--serif); color: var(--ink); }

.device {
  border-radius: clamp(20px, 3vw, 38px);
  background: #1d1c1a;
  padding: clamp(8px, 1.4vw, 18px);
  box-shadow: 0 40px 80px -30px rgba(60, 38, 16, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.device-screen { position: relative; overflow: hidden; border-radius: clamp(12px, 2vw, 22px); background: #342519; aspect-ratio: 944 / 656; }
.device-screen video { width: 100%; height: 100%; object-fit: cover; }

/* Play button shared by every video */
[data-player] { position: relative; }
.play {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(242, 211, 142, 0.6);
  background: rgba(32, 57, 42, 0.92); color: #fff4da;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.play:hover { background: #315d43; }
.play svg { width: 16px; height: 16px; fill: currentColor; }
.play .i-pause, .is-playing .play .i-play { display: none; }
.is-playing .play .i-pause { display: inline; }

/* Reading room band */
.room { background: var(--paper); padding: 0 var(--gutter) clamp(56px, 8vw, 96px); }
.room img {
  width: 100%; max-width: 1400px; margin: 0 auto;
  border-radius: clamp(14px, 2vw, 28px);
  box-shadow: 0 30px 70px -40px rgba(51, 33, 16, 0.6);
  aspect-ratio: 2400 / 1263; object-fit: cover;
}

/* Features */
.features { background: var(--linen); padding: clamp(64px, 9vw, 120px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 7vw, 88px); }
.section-head h2, .family h2, .faq h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.12; }
.section-head p { margin-top: 18px; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.mark { display: block; width: 44px; height: 2px; margin: 0 auto 22px; border-radius: 2px; background: var(--gold); }
.feature { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.feature + .feature { margin-top: clamp(64px, 9vw, 104px); }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.feature.flip > figure { order: 2; }
.feature-copy { max-width: 28rem; }
.feature-copy h3 { font-size: clamp(1.65rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.15; }
.feature-copy h3::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 16px; border-radius: 2px; background: var(--gold-soft); }
.feature-copy p { margin-top: 18px; font-size: 1.05rem; }
.clip { margin: 0; border-radius: 14px; border: 1px solid #6b5640; background: var(--wood); padding: 7px; box-shadow: 0 18px 40px -22px rgba(51, 33, 16, 0.6); }
.clip video { width: 100%; border-radius: 9px; aspect-ratio: 1036 / 720; object-fit: cover; background: #342519; }
.clip .play { right: 18px; bottom: 18px; }
.clip figcaption { color: #f3e6c4; font: 1rem var(--serif); padding: 2px 6px 8px; }
.clip-stack { display: grid; gap: 20px; }

/* Family */
.family { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper); }
.family-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.family-lede { margin-top: 20px; font-size: 1.1rem; max-width: 34em; }
.points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 24px; }
.points li { display: flex; gap: 16px; }
.point-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.point-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.points h3 { font-size: 1.3rem; line-height: 1.25; }
.points p { margin-top: 4px; font-size: 0.98rem; }
.price-card {
  justify-self: center; width: 100%; max-width: 420px; text-align: center;
  padding: 40px 32px; border-radius: 20px;
  background: var(--parchment); border: 1px solid rgba(154, 171, 148, 0.45);
  box-shadow: 0 4px 24px rgba(42, 37, 24, 0.07);
}
.price-title { font: 1.3rem var(--serif); color: var(--green); }
.price { margin-top: 10px; display: inline-flex; align-items: flex-start; color: var(--green); font-family: var(--serif); line-height: 1; }
.currency { font-size: 2.2rem; margin-top: 0.4rem; margin-right: 0.08em; }
.amount { font-size: clamp(4rem, 3rem + 4vw, 5.4rem); font-variant-numeric: lining-nums; }
.per { margin-top: 8px; font-family: var(--serif); font-size: 1.1rem; }
.rule { display: block; width: 64px; height: 1px; margin: 26px auto; background: #c5d4be; }
.trial { font: 1.1rem var(--serif); color: var(--green); }
.price-card .badge { margin-top: 22px; }
.cancel { margin-top: 18px; font-size: 0.88rem; color: var(--ink-soft); }

/* FAQ */
.faq { background: var(--parchment); padding: clamp(64px, 9vw, 112px) 0; }
.faq h2 { text-align: center; margin-bottom: clamp(32px, 5vw, 52px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 44px 22px 0; font: 1.3rem/1.3 var(--serif); color: var(--green);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold); transform: rotate(45deg); transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.answer { padding: 0 0 24px; max-width: 42em; }

/* Closing */
.closing {
  position: relative; isolation: isolate; text-align: center; color: var(--green-soft);
  padding: clamp(80px, 11vw, 128px) 0;
  background: linear-gradient(to bottom, rgba(27, 61, 47, 0.72), rgba(27, 61, 47, 0.88) 55%, #1b3d2f), url(/media/library-shelves.webp?v=fcdaa009c3) center / cover, #1b3d2f;
}
.closing h2 { color: var(--paper); font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem); line-height: 1.1; }
.closing p { margin-top: 18px; font-size: 1.15rem; }
.closing .badge { margin-top: 34px; }

/* Inner pages */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(var(--linen), var(--paper)); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 1.7rem + 2.4vw, 3.6rem); line-height: 1.08; }
.page-head .lede { margin-top: 14px; }
.page-head .button { margin-top: 28px; }
.updated { margin-top: 10px; color: var(--ink-soft); font: 1rem var(--serif); }
.lost { border: 0; min-height: 50vh; }

.support { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.help-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help-grid article { background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.help-grid h2 { font-size: 1.45rem; margin-bottom: 8px; }
.help-grid p { font-size: 0.98rem; }
.contact-card { margin: 28px 0 clamp(48px, 7vw, 72px); padding: 32px; border-radius: 18px; background: var(--forest); color: #dfe8c9; text-align: center; }
.contact-card h2 { color: var(--paper); font-size: 1.8rem; }
.contact-card p { margin-top: 8px; font-size: 1.1rem; }
.contact-card a { color: var(--gold-soft); }
.faq-title { font-size: 2rem; margin-bottom: 20px; }

.legal { padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); font-family: var(--serif); font-size: 1.15rem; line-height: 1.65; }
.legal h2 { font-size: 1.75rem; line-height: 1.2; margin: 2.4em 0 0.7em; padding-bottom: 0.35em; border-bottom: 1px solid var(--line); }
.legal h3 { font-size: 1.3rem; margin: 1.6em 0 0.5em; }
.legal p, .legal ul, .legal address { margin: 0 0 1em; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: 0.35em 0; }
.legal strong { color: var(--green); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1em 0 1.6em; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 9em; }
.legal th { font-weight: 600; color: var(--green); background: var(--linen); }

/* Narrow screens */
@media (max-width: 900px) {
  .hero-grid, .family-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip > figure { order: 0; }
  .feature-copy { max-width: none; }
  .help-grid { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand span { font-size: 1.2rem; }
  .site-header nav a:not(.header-cta) { display: none; }
  .badge img { height: 50px; }
  .faq-list summary { font-size: 1.18rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge, .faq-list summary::after { transition: none; }
  .badge:hover { transform: none; }
}
