/* Favabeans: ReadThis page (/readthis/, /ar/readthis/). Loaded after home.css. */
:root {
  --t-ext: #E9E8F8;
  --t-reader: #E4EEF9;
  --t-studio: #FDEBDC;
  --mark: #FBEBA9;
  --mark-ink: #1D1D1F;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --t-ext: #212030;
    --t-reader: #1B2330;
    --t-studio: #2B221A;
    --mark: rgb(246 214 120 / .26);
    --mark-ink: #F2F2F4;
  }
}
:root:where([data-theme="dark"]) {
  --t-ext: #212030;
  --t-reader: #1B2330;
  --t-studio: #2B221A;
  --mark: rgb(246 214 120 / .26);
  --mark-ink: #F2F2F4;
}

/* Small line icons for the three forms */
.g { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 1 · Hero */
.rt-hero { padding-bottom: 0; }
.rt-hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.25rem); max-width: 13.5em; margin-inline: auto; }
.rt-name { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; color: var(--ink); }
.rt-name img { width: 40px; height: 40px; border-radius: 10px; }
.rt-head { display: block; }
.rt-hero .lede { max-width: 31em; }
.jump-label { margin-top: 36px; font-size: var(--fs-small); color: var(--ink-2); }
.jump { list-style: none; margin: 14px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.jump a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px;
  border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 500; font-size: var(--fs-small);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.jump a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.jump .g { color: var(--accent); }
.jump .arr { color: var(--ink-2); font-size: 1.05em; }

/* The sentence-highlight sample under the hero */
.demo {
  max-width: 640px; margin: clamp(48px, 6vw, 72px) auto 0; padding: 22px 26px 24px; text-align: start;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
}
.demo-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.demo-play { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); }
.demo-play::before, .demo-play::after { content: ""; position: absolute; top: 11px; width: 3.5px; height: 12px; border-radius: 2px; background: var(--accent-ink); }
.demo-play::before { left: 12px; } .demo-play::after { left: 18.5px; }
.demo-track { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.demo-track i { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--accent); }
.demo-speed { font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.demo p { font-family: var(--serif); font-size: clamp(1.1875rem, 1.9vw, 1.375rem); line-height: 1.6; color: var(--ink-2); }
.demo .s { border-radius: 6px; padding: 2px 3px; margin-inline: -3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.demo .s:first-child { background: var(--mark); color: var(--mark-ink); }
@media (prefers-reduced-motion: no-preference) {
  .demo .s { animation: mark 12s var(--ease) infinite; }
  .demo .s:nth-child(2) { animation-delay: 4s; }
  .demo .s:nth-child(3) { animation-delay: 8s; }
  .demo .s:first-child { background: none; color: inherit; }
  .demo-track i { animation: track 12s linear infinite; transform-origin: 0 50%; }
}
@keyframes mark {
  0%, 31% { background-color: var(--mark); color: var(--mark-ink); }
  36%, 100% { background-color: transparent; color: var(--ink-2); }
}
@keyframes track { from { transform: scaleX(.12); } to { transform: scaleX(2.6); } }

/* 2 · The three forms */
.form { padding-top: clamp(88px, 10vw, 136px); scroll-margin-top: 24px; }
.form + .form { padding-top: clamp(28px, 3vw, 40px); }
.form-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden;
  background: var(--surface); border-radius: 32px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.form-panel.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.form-panel.flip .form-text { order: 2; }
.form-text { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(32px, 4.4vw, 60px); }
.kicker { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.kicker .num { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.kicker .num::after { content: ""; display: inline-block; width: 18px; height: 1px; margin-inline-start: 10px; vertical-align: middle; background: currentColor; opacity: .5; }
.form h2 { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: clamp(2rem, 3.4vw, 2.875rem); letter-spacing: -0.04em; }
.form h2 .g { align-self: flex-start; margin-top: .1em; width: 30px; height: 30px; stroke-width: 1.6; color: var(--accent); }
.for { margin-top: 14px; font-size: var(--fs-lede); color: var(--ink-2); line-height: 1.45; max-width: 24em; }
.benefits { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 12px; }
.benefits li { position: relative; padding-inline-start: 22px; line-height: 1.45; }
.benefits li::before { /* the bean bullet, as on the home page */
  content: ""; position: absolute; inset-inline-start: 1px; top: .42em; width: 9px; height: 12px; border-radius: 50%; background: var(--bean);
  transform: rotate(-24deg); box-shadow: inset -1px -1px 0 var(--bean-edge);
}
.form-text .btn { margin-top: auto; }
.btn .g { width: 18px; height: 18px; }
.form-note { margin-top: 14px; font-size: .875rem; color: var(--ink-2); }

.form-art { position: relative; background: var(--tint); padding: clamp(28px, 4vw, 52px); display: flex; align-items: center; min-height: 380px; }

/* Browser frame */
.frame {
  position: relative; width: 100%; overflow: hidden; background: var(--surface);
  border-radius: 14px; box-shadow: 0 30px 60px -30px rgb(30 30 60 / .45), 0 0 0 1px var(--line);
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); direction: ltr; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.frame-bar span { margin-inline: auto; font-size: .6875rem; color: var(--ink-2); background: var(--surface); padding: 2px 14px; border-radius: 99px; }
.frame-shot { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1108; object-fit: cover; }
.with-phone .frame { width: 88%; }
.with-phone .phone { position: absolute; inset-inline-end: clamp(18px, 3vw, 40px); bottom: clamp(18px, 2.6vw, 34px); width: 23%; max-width: 168px; padding: 2.4%; border-radius: 17% / 8%; }
.with-phone .screen { border-radius: 14% / 6.5%; }

/* Chrome extension: a sketch of the browser toolbar, with ReadThis pinned */
.tb { display: flex; align-items: center; gap: 10px; height: 46px; padding-inline: 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tb-nav { display: flex; gap: 8px; }
.tb-nav i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 24%, transparent); }
.tb-url { flex: 1; display: flex; align-items: center; gap: 8px; height: 28px; padding-inline: 12px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tb-url b { width: 8px; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.tb-url i { width: 46%; height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.tb-ext { width: 18px; height: 18px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.tb-rt { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 2px var(--accent), 0 6px 14px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.tb-rt img { width: 24px; height: 24px; border-radius: 6px; }
.tb-pop {
  position: absolute; z-index: 2; top: 92px; inset-inline-end: 14px; width: min(56%, 230px); padding: 14px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
}
.tb-pop::before { content: ""; position: absolute; top: -6px; inset-inline-end: 16px; width: 12px; height: 12px; rotate: 45deg; background: var(--surface); box-shadow: -1px -1px 0 var(--line); }
.tb-pop-head { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.tb-pop-head img { width: 20px; height: 20px; border-radius: 5px; }
.tb-pop-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.tb-pop .demo-play { width: 30px; height: 30px; }
.tb-pop .demo-play::before, .tb-pop .demo-play::after { top: 9px; }
.tb-pop .demo-play::before { left: 10px; } .tb-pop .demo-play::after { left: 16.5px; }
.tb-pop-row .demo-track { height: 4px; }
.tb-page { position: relative; padding: 26px 28px 34px; display: flex; flex-direction: column; gap: 11px; min-height: 260px; }
.tb-page i { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.tb-page i.h { width: 58%; height: 14px; margin-bottom: 8px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.tb-page i.m { background: var(--mark); box-shadow: 0 0 0 4px var(--mark); }
.tb-page i:nth-child(3) { width: 52%; } .tb-page i:nth-child(4) { width: 46%; } .tb-page i:nth-child(5) { width: 50%; } .tb-page i:nth-child(6) { width: 92%; } .tb-page i:nth-child(8) { width: 64%; } .tb-page i:nth-child(9) { width: 84%; }

/* 3 · Which one */
.which { padding-top: var(--sec); }
.which .sec-head { margin-inline: auto; text-align: center; }
.which .sec-head p { margin-inline: auto; }
.which .sec-head .serif { color: var(--accent); }
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.col {
  display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 0; align-content: start;
  background: var(--surface); border-radius: var(--r-card); padding: 28px 26px 24px;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); border-top: 0;
  background-image: linear-gradient(var(--tint), var(--tint)); background-size: 100% 6px; background-repeat: no-repeat;
}
.col h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-h3); letter-spacing: -0.025em; }
.col h3 .g { color: var(--accent); }
.col dl { display: contents; }
.col dl > div { padding-block: 16px; border-top: 1px solid var(--line); }
.col dl > div:first-child { margin-top: 18px; }
.col dt { font-size: .8125rem; font-weight: 500; color: var(--ink-2); letter-spacing: .01em; }
.col dd { margin: 4px 0 0; line-height: 1.45; }
.col .text-link { align-self: end; padding-top: 10px; font-size: var(--fs-small); }

/* 4 · Privacy */
.rt-privacy { padding-top: var(--sec); margin-bottom: 40px; }
.priv {
  display: flex; gap: 22px; align-items: flex-start; max-width: 860px; margin-inline: auto;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); border-radius: 28px;
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
.priv-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--t-ext); color: var(--accent); }
.priv-icon .g { width: 26px; height: 26px; }
.priv h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.035em; line-height: 1.15; }
.priv p { margin-top: 10px; color: var(--ink-2); }
.priv-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: var(--fs-small); }

/* Responsive */
@media (max-width: 1000px) {
  .form-panel, .form-panel.flip { grid-template-columns: 1fr; }
  .form-panel.flip .form-text { order: 0; }
  .form-art { min-height: 0; }
  .compare { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .col { grid-row: auto; grid-template-rows: none; }
}
@media (max-width: 640px) {
  .rt-hero { padding-top: 72px; }
  .rt-name { margin-bottom: 18px; }
  .jump { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .jump a { justify-content: flex-start; }
  .jump .arr { margin-inline-start: auto; }
  .demo { padding: 18px 18px 20px; border-radius: 18px; }
  .form-panel { border-radius: 26px; }
  .form-text { padding: 28px 22px 30px; }
  .form-text .btn { align-self: stretch; justify-content: center; }
  .form-art { padding: 22px 16px 26px; }
  .with-phone .frame { width: 100%; }
  .with-phone .phone { width: 30%; inset-inline-end: 10px; bottom: 12px; }
  .with-phone { padding-bottom: 64px; }
  .tb { gap: 8px; padding-inline: 10px; }
  .tb-ext:nth-of-type(2) { display: none; }
  .tb-page { padding: 20px 18px 26px; min-height: 220px; }
  .tb-pop { top: 86px; inset-inline-end: 8px; width: 62%; }
  .priv { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .jump a:hover { transform: none; }
}

/* Arabic (RTL). home.css sets the Arabic fonts, spacing and accent font; these cover this page's own parts. */
:root[dir="rtl"] {
  --sans: "Geist", "IBM Plex Sans Arabic", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
  --serif: "Newsreader", "Amiri", "Noto Naskh Arabic", serif;
}
:root[dir="rtl"] body * { letter-spacing: normal; }
:root[dir="rtl"] .rt-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.75rem); line-height: 1.3; }
:root[dir="rtl"] .rt-name { font-family: "Geist", var(--sans); }
:root[dir="rtl"] .demo p { line-height: 1.9; }
:root[dir="rtl"] .for, :root[dir="rtl"] .benefits li, :root[dir="rtl"] .col dd, :root[dir="rtl"] .priv p { line-height: 1.65; }
:root[dir="rtl"] .jump .arr { display: inline-block; }
:root[dir="rtl"] .demo-track i { transform-origin: 100% 50%; }
:root[dir="rtl"] .demo-play::before { left: auto; right: 12px; }
:root[dir="rtl"] .demo-play::after { left: auto; right: 18.5px; }
:root[dir="rtl"] .tb-pop .demo-play::before { right: 10px; }
:root[dir="rtl"] .tb-pop .demo-play::after { right: 16.5px; }
:root[dir="rtl"] .benefits li::before { transform: rotate(24deg); top: .62em; }
:root[dir="rtl"] .text-link:hover span { transform: translateX(-3px); }
