/* Format's homepage and /pricing only (index.html, pricing.html), on top of site.css: the tabbed hero,
   the problem, formats, examples, Write / Cite / Export, feature bands, tools, plans, topics and the
   comparison table. Kept apart so guide and generator pages do not download it. */
/* ---- The homepage, 2026-11 (index.html, home.js): a two-tone hero over a tabbed product preview,
   the problem, formats, examples, Write / Cite / Export, feature bands, tools, plans and topics. ---- */

/* Two-tone headlines: the main phrase in ink, its continuation dimmer. */
.tone { color: var(--text-faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.narrow { max-width: 860px; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 12px; font-weight: 600; text-decoration: none; }
.more::after { content: ''; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.more:hover { text-decoration: underline; }

/* Tabs: one look for pills; the hero's sit in the window bar. */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 999px; background: none;
  color: var(--text-dim); font: 600 14px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.tab:hover { background: var(--bg-hover); color: var(--text); }
.tab[aria-selected='true'] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.pill-tabs { justify-content: center; margin: 0 auto 32px; padding: 6px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised); }
.tab-panel[hidden], .hero-panel[hidden] { display: none; }

/* Hero: headline left, the words and the button right, the app under both. */
.hero { text-align: left; padding: 64px 0 56px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.04; }
.hero-side .lead { margin-top: 0; }
.hero-side .cta-row { margin-top: 22px; justify-content: flex-start; }
.hero-window { margin-top: 40px; }
.hero-bar { display: flex; height: auto; min-height: 50px; gap: 14px; padding: 6px 12px; overflow-x: auto; scrollbar-width: none; }
.hero-bar::-webkit-scrollbar { display: none; }
.hero-tabs { flex-wrap: nowrap; }
.hero-panel .shot, .hero-panel .shot img { width: 100%; }
.hero-panel picture.shot img { aspect-ratio: 1000 / 737; object-fit: cover; object-position: top; background: var(--bg); }

/* Upload or drop your paper. */
.drop { margin-top: 20px; }
.drop-bar {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--bg-raised); color: var(--text); text-decoration: none; transition: border-color var(--dur), background var(--dur);
}
.drop-bar:hover, .drop.over .drop-bar { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--bg-raised)); }
.drop-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.drop-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drop-text strong { font-size: 16px; }
.drop-sub { font-size: 14px; color: var(--text-dim); }
.drop-btn { flex: none; }
.drop-note { margin-top: 10px; font-size: 14px; color: var(--text-dim); }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 18px; font-size: 14px; }
.also-label { font: 600 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.also a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-dim); text-decoration: none; }
.also a:hover { color: var(--text); text-decoration: underline; }

/* The problem: a page drawn in HTML that snaps from messy to formatted (home.js adds .messy, then .snap). */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.snap-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.snap-list li { position: relative; padding-left: 30px; }
.snap-list li::before { content: ''; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.snap-list li::after { content: ''; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.snap-again { margin-top: 24px; }
.snap-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.mini-page {
  position: relative; aspect-ratio: 8.5 / 11; padding: 11% 11% 0; overflow: hidden; border-radius: 3px;
  background: #fff; color: #1f1d1a; box-shadow: var(--shadow-sheet); font: 400 clamp(6.5px, .78vw, 9px)/1 'Times New Roman', Times, serif;
  transition: padding .7s var(--ease);
}
.mini-page > span { display: block; transition: transform .7s var(--ease), opacity .5s ease, padding .7s var(--ease), letter-spacing .7s var(--ease), font-size .7s var(--ease), text-indent .7s var(--ease); }
.m-run { position: absolute; right: 11%; top: 5.5%; }
.m-head span { display: block; line-height: 2.1; }
.m-title { text-align: center; line-height: 2.1; }
.m-p { margin-top: .2em; }
.m-p i, .m-entry i { display: block; height: .55em; margin: .78em 0; border-radius: 2px; background: #c9c2b5; transition: margin .7s var(--ease); }
.m-p i:first-child { margin-left: 1.6em; }
.m-p i.short, .m-entry i.short { width: 55%; }
.m-wc { margin-bottom: .2em; }
.m-entry { line-height: 2.1; padding-left: 1.6em; text-indent: -1.6em; }
.m-entry b { font-weight: 400; }
.m-entry i { margin: .6em 0; }
/* The messy page, before the snap: off margins, a heading in the wrong place, no header, single spacing, no hanging indents. */
.messy .mini-page { padding: 5% 4% 0 17%; }
.messy .m-run { opacity: 0; transform: translateY(-6px); }
.messy .m-head { transform: translateX(22%) rotate(-1.5deg); letter-spacing: .06em; font-size: 1.15em; }
.messy .m-head span { line-height: 1.2; }
.messy .m-title { text-align: left; transform: translateX(-8%) rotate(1deg); font-size: 1.4em; }
.messy .m-p i { margin: .3em 0; }
.messy .m-p i:first-child { margin-left: 0; }
.messy .m-entry { padding-left: 0; text-indent: 0; line-height: 1.2; transform: translateX(6%); }
.messy .m-p:nth-of-type(2) { transform: translateX(5%) rotate(.8deg); }
.snap.messy .mini-page { padding: 11% 11% 0; }
.snap.messy .m-run { opacity: 1; transform: none; }
.snap.messy .m-head, .snap.messy .m-title, .snap.messy .m-p, .snap.messy .m-entry, .snap.messy .m-p:nth-of-type(2) { transform: none; letter-spacing: 0; font-size: 1em; }
.snap.messy .m-head span, .snap.messy .m-title, .snap.messy .m-entry { line-height: 2.1; }
.snap.messy .m-title { text-align: center; }
.snap.messy .m-p i { margin: .78em 0; }
.snap.messy .m-p i:first-child { margin-left: 1.6em; }
.snap.messy .m-entry { padding-left: 1.6em; text-indent: -1.6em; }
.snap.messy .m-entry i { margin: .6em 0; }
/* One rule at a time, like checking a paper against the rubric. */
.snap .m-head { transition-delay: .3s; }
.snap .m-title { transition-delay: .6s; }
.snap .m-run { transition-delay: .9s; }
.snap .m-p { transition-delay: 1.2s; }
.snap .m-entry { transition-delay: 1.6s; }
@media (prefers-reduced-motion: reduce) { .mini-page, .mini-page > span, .mini-page i { transition: none !important; } }

/* Formats: one start per tab, its printed page, Use this and the Word file. */
.tpl-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 900px; margin: 0 auto; }
.tpl-page img { width: 100%; border-radius: 3px; background: #fff; box-shadow: var(--shadow-sheet); outline: 1px solid rgba(0, 0, 0, .06); }
.tpl-body h3 { font: 700 26px/1.2 var(--sans); letter-spacing: -.02em; }
.tpl-body p { margin-top: 12px; color: var(--text-dim); font-size: 17px; }
.tpl-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Examples: paper types, each with real starts, samples and guides. */
.type-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.type-card { display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); }
.type-card p { margin-top: 6px; color: var(--text-dim); font-size: 15px; }
.type-card .type-links { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: auto; padding-top: 10px; }
.type-links a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; font-size: 14px; text-decoration: none; }
.type-links a:hover { text-decoration: underline; }

/* Write / Cite / Export: the app in a frame and a small card of the settings that shot shows. */
.act-line { text-align: center; max-width: 40em; margin: 0 auto 28px; color: var(--text-dim); font-size: 17px; }
.act-stage { position: relative; max-width: 860px; margin: 0 auto; padding-right: 120px; }
.act-window .shot, .act-window .shot img { width: 100%; }
.act-stage-paper .act-window { max-width: 520px; margin: 0 auto; background: var(--bg-tint); }
.act-paper { display: block; padding: 28px 40px 0; }
.act-paper img { width: 100%; background: #fff; box-shadow: var(--shadow-sheet); }
.float-card {
  position: absolute; right: 0; bottom: 36px; display: grid; gap: 2px; min-width: 230px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); box-shadow: var(--shadow-sheet); font-size: 13px;
}
.float-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.float-row:last-child { border-bottom: 0; }
.float-row span { color: var(--text-faint); }
.float-row b { font-weight: 600; color: var(--text); text-align: right; }

/* Feature bands: the app large on the left, the words and Learn more on the right. */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: center; }
.feature-pic .shot, .feature-pic .shot img { width: 100%; }
.feature h2 { font-size: 32px; }

/* Free tools. */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-raised); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color var(--dur), color var(--dur); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Plans: a guarantee, Choose your plan, then Pro and Free; the radios switch the period with no script. */
.price-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.guarantee { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised); color: var(--text); font-size: 14px; text-decoration: none; }
.guarantee:hover { border-color: var(--accent); }
.guarantee-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.guarantee-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guarantee-line { color: var(--text-dim); }
.billing .plans { max-width: none; }
.bill-toggle { position: relative; display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 20px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised); }
.bill-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bill-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bill-toggle label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; color: var(--text-dim); font-weight: 600; font-size: 14px; cursor: pointer; }
.bill-toggle input:checked + label { background: var(--accent); color: var(--accent-ink); }
.bill-toggle input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.bill-save { font: 600 11px/1 var(--mono); letter-spacing: .04em; padding: 4px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.bill-toggle input:checked + label .bill-save { background: color-mix(in srgb, var(--accent-ink) 22%, transparent); color: inherit; }
.iv { display: none; }
.iv-year { display: inline; }
a.iv-year { display: inline-flex; }
.billing:has(#bill-semester:checked) .iv-year, .billing:has(#bill-month:checked) .iv-year { display: none; }
.billing:has(#bill-semester:checked) .iv-semester, .billing:has(#bill-month:checked) .iv-month { display: inline; }
.billing:has(#bill-semester:checked) a.iv-semester, .billing:has(#bill-month:checked) a.iv-month { display: inline-flex; }

/* FAQ: topics on the left, their questions on the right. */
.faq-grid { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.side-tabs { flex-direction: column; align-items: stretch; margin-top: 24px; }
.side-tabs .tab { justify-content: flex-start; text-align: left; border-radius: var(--r-md); min-height: 44px; font-size: 15px; }
.faq-panels .faq { max-width: none; margin: 0; }

/* Approved words only (scripts/seo/home-data.json): one big quote, stats, the wall. */
.big-quote { text-align: center; }
.big-quote blockquote { margin: 0; font: 600 28px/1.35 var(--sans); letter-spacing: -.015em; text-wrap: balance; }
.big-quote figcaption { margin-top: 16px; color: var(--text-dim); }
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); }
.stat-value { font: 700 40px/1 var(--sans); letter-spacing: -.03em; }
.stat-label { color: var(--text-dim); }
.wall { list-style: none; padding: 0; columns: 3 280px; column-gap: 16px; }
.wall-card { break-inside: avoid; margin-bottom: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); }
.wall-card blockquote { margin: 0; }
.wall-who { margin-top: 10px; font-size: 14px; color: var(--text-faint); }

/* /pricing: the hero, the comparison table and billing questions. */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--text-faint); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.pricing-hero { text-align: center; padding: 64px 0 40px; }
.pricing-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.pricing-hero .crumbs ol { justify-content: center; }
.pricing-hero h1 { font-size: clamp(34px, 4vw, 52px); }
.pricing-hero .lead { margin: 18px auto 0; text-align: center; }
.pricing-hero .guarantee { margin: 24px 0 0; }
.pricing-plans { padding-top: 0; }
.pricing-plans .billing { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pricing-plans .plans { width: 100%; }
.cmp-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp td { width: 26%; color: var(--text-dim); }
.cmp thead th { font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.cmp tbody th { font-weight: 500; }
.cmp tbody th a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.cmp tbody th a:hover { text-decoration-color: var(--accent); }
.cmp .cmp-group th { padding-top: 22px; font: 700 15px/1.3 var(--sans); color: var(--accent); background: var(--bg-tint); }
.cmp-yes { color: var(--accent); font-weight: 700; }
.cmp-no { color: var(--text-faint); }
.cmp tbody:last-child tr:last-child th, .cmp tbody:last-child tr:last-child td { border-bottom: 0; }

@media (max-width: 960px) {
  .hero-top { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .hero-text { align-items: flex-start; }
  .problem-grid, .feature-grid, .price-grid, .faq-grid { grid-template-columns: 1fr; gap: var(--head-gap); }
  .feature-text { order: -1; }
  .tpl-card { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; }
  .side-tabs { flex-direction: row; flex-wrap: wrap; }
  .side-tabs .tab { border-radius: 999px; }
}
@media (max-width: 720px) {
  .hero { padding: 40px 0 44px; text-align: left; }
  .hero h1 { font-size: 36px; }
  .hero .cta-row { justify-content: flex-start; }
  .hero-window { margin-top: 28px; max-width: none; }
  .hero-bar .dots { display: none; }
  .tab { min-height: 44px; padding: 0 12px; }
  .drop-bar { flex-wrap: wrap; }
  .drop-btn { width: 100%; }
  .tpl-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tpl-page { width: min(260px, 70vw); }
  .tpl-btns { justify-content: center; }
  .pill-tabs { border-radius: var(--r-lg); justify-content: flex-start; }
  .act-stage { padding-right: 0; }
  .float-card { position: static; margin: -24px 12px 0; }
  .feature h2 { font-size: 26px; }
  .nav-wide { display: none; }
  .big-quote blockquote { font-size: 22px; }
  .cmp th, .cmp td { padding: 10px 12px; }
}
@media (max-width: 520px) {
  .hero .cta-row .btn { width: 100%; }
}
.chips-head { margin: 32px 0 14px; text-align: center; font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.snap-again[hidden] { display: none; }
@media (max-width: 600px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .type-card { padding: 14px; } .type-card h3 { font-size: 16px; } .type-card p { font-size: 14px; } .type-links { gap: 0 12px; } }

/* The hero film's poster, by cut and theme: its first frame, shown until the film's own first frame paints (they match). */
.window video.demo { background: center / 100% 100% no-repeat var(--bg); }
.window video.demo { background-image: url("/video/demo-desk-light-start.webp?v=d040d8f42c"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .window video.demo { background-image: url("/video/demo-desk-dark-start.webp?v=d040d8f42c"); } }
:root[data-theme='dark'] .window video.demo { background-image: url("/video/demo-desk-dark-start.webp?v=d040d8f42c"); }
@media (max-width: 720px) {
  .window video.demo { background-image: url("/video/demo-phone-light-start.webp?v=d040d8f42c"); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .window video.demo { background-image: url("/video/demo-phone-dark-start.webp?v=d040d8f42c"); } }
  :root[data-theme='dark'] .window video.demo { background-image: url("/video/demo-phone-dark-start.webp?v=d040d8f42c"); }
}
/* With reduced motion the film does not play on its own: its frames stay hidden behind the poster, here the last frame
   (the finished paper), until someone presses play (film.js adds .played). */
@media (prefers-reduced-motion: reduce) {
  .window video.demo:not(.played) { object-position: -100000px 0; }
  .window video.demo { background-image: url("/video/demo-desk-light.webp?v=d040d8f42c"); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .window video.demo { background-image: url("/video/demo-desk-dark.webp?v=d040d8f42c"); } }
  :root[data-theme='dark'] .window video.demo { background-image: url("/video/demo-desk-dark.webp?v=d040d8f42c"); }
  @media (max-width: 720px) {
    .window video.demo { background-image: url("/video/demo-phone-light.webp?v=d040d8f42c"); }
    @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .window video.demo { background-image: url("/video/demo-phone-dark.webp?v=d040d8f42c"); } }
    :root[data-theme='dark'] .window video.demo { background-image: url("/video/demo-phone-dark.webp?v=d040d8f42c"); }
  }
}
