diff --git a/Docs/Codex/PublicWebsite.md b/Docs/Codex/PublicWebsite.md new file mode 100644 index 00000000..9370d895 --- /dev/null +++ b/Docs/Codex/PublicWebsite.md @@ -0,0 +1,35 @@ +# Public website + +The public website uses `Views/Shared/_PublicLayout.cshtml` and the scoped `wwwroot/css/public-site.css`. `Views/_ViewStart.cshtml` selects it for Home/Index, Public, Help, Account and Pricing/Index. Application and checkout/result pages retain their existing layout. + +Public pages always use the paper/ink palette, including in installed windows and for signed-in users. They do not load application navigation or apply appearance preferences. Normal-browser authentication uses this same public design. Installed authentication uses `public-auth-theme.js`, the existing display-mode detector, and the application palette: signed-in account preference first, then the last device preference, then the legacy light/dark preference, then warm light. The Word Companion's separate login presentation is preserved. + +`plotdirector.applicationTheme` stores only a non-sensitive theme identifier. The application shell updates it as the author changes theme; no authentication or subscription state is cached there. + +## Browser checks and product images + +From the repository root, after building: + +```sh +dotnet run --no-build --project PlotLine.Tests/PlotLine.Tests.csproj -- --toolbar-browser-host +``` + +In a second terminal: + +```sh +node PlotLine.Tests/Browser/public-site.cjs +node PlotLine.Tests/Browser/public-site-capture.cjs +node PlotLine.Tests/Browser/public-social-image.cjs +``` + +These commands use the existing Playwright dependency in `PlotLine.Tests/Browser`. The host is loopback-only and uses in-memory fixtures. It never connects to a database, starts background analysis, creates real accounts or calls Stripe. Test-only public prices are illustrative; production pricing still comes from the original Pricing controller/model. + +The ten JPEG files in `wwwroot/images/public` are captures of real compiled application Razor views in standalone presentation, using fictional demonstration data. The plot map uses `PublicWebsiteFixtures.PlotMap()`: eight scenes and three populated plot lines. The remaining captures use the existing toolbar/scene fixture host. Do not substitute live manuscript exports or user accounts when refreshing these public assets. The homepage manuscript fragment is an HTML illustration, not a purported screenshot. + +The capture script uses actual application controls and actual focused-editor Razor fragments. It does not redraw UI. The small editor requests are served by the isolated fixture host. Marketing screenshot links open the full-size image for inspection. + +The guided manuscript import currently uses the Microsoft Word Companion. The scene workspace supplies notes, planning and drafting support; marketing must not imply a standalone prose editor or that PlotDirector writes the author's book. + +The social-image script renders the PlotDirector editorial identity into `wwwroot/images/public/plotdirector-social.png` and the legacy `wwwroot/og-image.png` (1200 × 630). The new default URL avoids reusing cached previews of the old branding. It replaces the legacy image whose baked-in text used the incorrect product name. Product branding must always be PlotDirector. + +No development-service or production deployment is part of these commands. diff --git a/PlotLine.Tests/Browser/public-site-capture.cjs b/PlotLine.Tests/Browser/public-site-capture.cjs new file mode 100644 index 00000000..6c1c0e02 --- /dev/null +++ b/PlotLine.Tests/Browser/public-site-capture.cjs @@ -0,0 +1,68 @@ +// Start --toolbar-browser-host first. Captures real compiled views with fictional, database-free data. +// Run from repository root: node PlotLine.Tests/Browser/public-site-capture.cjs +const { chromium } = require('playwright'); +const fs = require('node:fs'); +const path = require('node:path'); +const base = 'http://127.0.0.1:5238'; +const output = path.resolve(__dirname, '../../PlotLine/wwwroot/images/public'); +(async () => { + fs.mkdirSync(output, { recursive: true }); + const browser = await chromium.launch(); + try { + const context = await browser.newContext({ viewport: { width: 1440, height: 960 }, reducedMotion: 'reduce' }); + await context.addInitScript(() => Object.defineProperty(navigator, 'standalone', { value: true })); + await context.addCookies([{ name: "fixture-user", value: "5", domain: "127.0.0.1", path: "/" }]); + const page = await context.newPage(); + await page.route(/\/(Scenes|Warnings)\/Scene\w+Editor\?/, async route => { + const name = new URL(route.request().url()).pathname.split('/').pop(); + const editors = { SceneNotesEditor: 'notes', SceneKnowledgeEditor: 'knowledge', SceneContinuityEditor: 'warnings' }; + const response = await page.request.get(base + '/fixture?page=scene-edit&editor=' + editors[name]); + if (response.status() !== 200) throw new Error('Editor fixture failed: ' + name); + await route.fulfill({ response }); + }); + async function capture(name, url, prepare) { + const response = await page.goto(base + url); + if (response.status() !== 200) throw new Error('Capture failed: ' + url); + await page.evaluate(() => document.fonts.ready); + if (prepare) await prepare(); + await page.screenshot({ path: path.join(output, name + '.jpg'), type: 'jpeg', quality: 88 }); + console.log('Captured real view: ' + name); + } + async function sceneArea(area) { + // Desktop shell moves source controls into its existing ribbon. + const command = page.locator(`[data-scene-area-command="${area}"]:visible`); + if (await command.count()) await command.click(); + else { + const group = page.locator('.pd-context-group[aria-label="Edit Scene"]'); + const details = group.locator('details[data-compact="true"]'); + if (await details.count() && await details.getAttribute('open') === null) await details.locator('summary').click(); + await group.locator('button.pd-context-command').filter({ hasText: new RegExp('^' + area + '$', 'i') }).click(); + } + } + await capture('scene', '/fixture?page=scene-edit'); + await capture('writing', '/fixture?page=scene-edit', async () => { + await sceneArea('writer'); + await page.locator('[data-scene-editor="notes"]:visible').first().click(); + await page.locator('[data-scene-editor-body] textarea').first().waitFor(); + }); + await capture('workspace', '/fixture?page=dashboard'); + await capture('calendar', '/fixture?marketing=true'); + await capture('characters', '/fixture?record=Characters'); + await capture('continuity', '/fixture?page=scene-edit', async () => { await sceneArea('continuity'); }); + await capture('knowledge', '/fixture?page=scene-edit', async () => { + await sceneArea('people'); + await page.locator('[data-scene-editor="knowledge"]:visible').click(); + await page.locator('[data-scene-editor-body] h4').first().waitFor(); + }); + await capture('import', '/fixture?desktop=ManuscriptImport'); + await page.setViewportSize({ width: 1920, height: 900 }); + await capture('plot-lines', '/plot-map-fixture?marketing=true', async () => { + await page.locator('#plot-map-zoom').selectOption('180'); + await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve)))); + }); + await page.setViewportSize({ width: 1440, height: 960 }); + await capture('insights', '/plot-map-fixture?healthDetail=true&marketing=true'); + } finally { + await browser.close(); + } +})().catch(error => { console.error(error); process.exitCode = 1; }); diff --git a/PlotLine.Tests/Browser/public-site.cjs b/PlotLine.Tests/Browser/public-site.cjs new file mode 100644 index 00000000..5441a11c --- /dev/null +++ b/PlotLine.Tests/Browser/public-site.cjs @@ -0,0 +1,120 @@ +// Real public Razor views and auth forms; isolated host, no database or payment requests. +// Start --toolbar-browser-host, then run: node PlotLine.Tests/Browser/public-site.cjs +const { chromium } = require('playwright'); +const assert = require('node:assert/strict'); +const base = 'http://127.0.0.1:5238'; +const themes = ['warm-light', 'warm-dark', 'modern-light', 'modern-dark', 'rose-pink', 'baby-blue']; +(async () => { + const browser = await chromium.launch(); + const errors = []; + try { + for (const standalone of [false, true]) { + const context = await browser.newContext({ viewport: { width: 1440, height: 960 }, reducedMotion: 'reduce' }); + await context.addInitScript(mode => { + Object.defineProperty(navigator, 'standalone', { value: mode }); + localStorage.setItem('plotline.theme', 'dark'); + localStorage.setItem('plotdirector.applicationTheme', 'rose-pink'); + }, standalone); + const page = await context.newPage(); + page.on('pageerror', e => errors.push(e.message)); + for (const theme of themes) { + for (const name of ['home', 'tour', 'pricing']) { + for (const anonymous of [false, true]) { + assert.equal((await page.goto(`${base}/public-fixture/${name}?theme=${theme}&anonymous=${anonymous}`)).status(), 200); + assert.equal(await page.locator('html').getAttribute('data-site-theme'), 'public'); + assert.equal(await page.locator('html').getAttribute('data-app-theme'), null); + assert.equal(await page.locator('html').getAttribute('data-bs-theme'), 'light'); + assert.equal(await page.locator('.public-links a').allTextContents().then(a => a.join('|')), 'Home|Tour|Pricing|Help'); + assert.equal(await page.locator('[data-ribbon-shell]').count(), 0); + assert.equal(await page.locator('body').evaluate(el => getComputedStyle(el).backgroundColor), 'rgb(248, 245, 238)'); + assert.equal(await page.locator('.public-account').innerText().then(s => s.includes('Your workspace')), !anonymous); + } + } + for (const name of ['login', 'register']) { + await page.goto(`${base}/public-fixture/${name}?theme=${theme}`); + assert.equal(await page.locator('html').getAttribute('data-app-theme'), standalone ? theme : null); + assert.equal(await page.locator('html').getAttribute('data-site-theme'), standalone ? null : 'public'); + assert(await page.locator('form input[name="__RequestVerificationToken"]').count()); + } + } + // An expired session can still use the last non-sensitive device preference. + await page.goto(base + '/public-fixture/login?anonymous=true'); + assert.equal(await page.locator('html').getAttribute('data-app-theme'), standalone ? 'rose-pink' : null); + // Client validation and the original login form contract still work. + await page.locator('button[type="submit"]').click(); + assert(await page.locator('[data-valmsg-for="Email"]').innerText()); + assert(await page.locator('[data-valmsg-for="Password"]').innerText()); + assert.match(await page.locator('form').getAttribute('action'), /Account\/Login$/); + await page.locator('[name="Email"]').fill('fictional-author@example.invalid'); + await page.locator('[name="Password"]').fill('Fictional-only-passphrase'); + await page.locator('[name="Password"]').press('Tab'); + await page.waitForFunction(() => !document.querySelector('.field-validation-error')); + await page.route('**/Account/Login', route => route.fulfill({ contentType: 'text/html', body: 'Isolated form contract verified' })); + const posted = page.waitForRequest(request => request.method() === 'POST' && new URL(request.url()).pathname === '/Account/Login'); + await page.locator('button[type="submit"]').click(); + const form = new URLSearchParams((await posted).postData()); + assert.equal(form.get('Email'), 'fictional-author@example.invalid'); + assert(form.get('__RequestVerificationToken')); + // ReturnUrl remains an ordinary server form field, untouched by appearance code. + assert(form.has('ReturnUrl')); + await context.close(); + } + // First installed login defaults safely when there is no saved preference, including blocked storage. + for (const blocked of [false, true]) { + const firstVisit = await browser.newContext(); + await firstVisit.addInitScript(blocked => { + Object.defineProperty(navigator, 'standalone', { value: true }); + if (blocked) Object.defineProperty(window, 'localStorage', { get() { throw new Error('Storage unavailable'); } }); + }, blocked); + const firstPage = await firstVisit.newPage(); + firstPage.on('pageerror', e => errors.push(e.message)); + await firstPage.goto(base + '/public-fixture/login?anonymous=true'); + assert.equal(await firstPage.locator('html').getAttribute('data-app-theme'), 'warm-light'); + await firstVisit.close(); + } + const page = await browser.newPage({ reducedMotion: 'reduce' }); + page.on('pageerror', e => errors.push(e.message)); + for (const width of [320, 390, 768, 1440]) { + await page.setViewportSize({ width, height: 960 }); + for (const name of ['home', 'tour', 'pricing', 'login', 'register']) { + await page.goto(`${base}/public-fixture/${name}?anonymous=true`); + assert(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1), `${name} overflows at ${width}`); + assert(await page.locator('h1').isVisible()); + await page.locator('img').evaluateAll(nodes => Promise.all(nodes.map(async img => { img.loading = 'eager'; await img.decode().catch(() => {}); }))); + const broken = await page.locator('img').evaluateAll(nodes => nodes.filter(img => !img.complete || !img.naturalWidth).map(img => img.src)); + assert.deepEqual(broken, [], `${name} screenshots load`); + const primary = page.locator('main .marketing-btn--primary').first(); + if (await primary.count()) assert(await primary.evaluate(el => getComputedStyle(el).color !== getComputedStyle(el).backgroundColor), 'CTA text readable'); + assert.equal(await page.evaluate(() => getComputedStyle(document.documentElement).scrollBehavior), 'auto'); + } + } + // A compact menu and sticky horizontal tour navigation remain operable on phones. + await page.setViewportSize({ width: 390, height: 844 }); + await page.goto(base + '/public-fixture/tour?anonymous=true'); + await page.locator('.navbar-toggler').click(); + assert(await page.locator('.public-links a').first().isVisible()); + await page.locator('.tour-jump a[href="#plot-lines"]').click(); + assert.equal(new URL(page.url()).hash, '#plot-lines'); + const top = await page.locator('#plot-lines').evaluate(el => el.getBoundingClientRect().top); + assert(top >= 50 && top < 180, 'jump heading clears sticky navigation'); + await page.goto(base + '/public-fixture/pricing'); + assert.equal(await page.locator('a[href*="billingInterval=Annual"]').count(), 3); + assert.equal(await page.locator('a[href*="billingInterval=Monthly"]').count(), 3); + assert.equal(await page.locator('.pricing-card').count(), 4); + for (const url of ['/', '/features', '/about', '/contact', '/privacy', '/terms', '/help', '/help?q=scene']) { + assert.equal((await page.goto(base + url)).status(), 200, url); + assert.equal(await page.locator('html').getAttribute('data-site-theme'), 'public'); + assert(await page.locator('link[rel="canonical"]').count()); + } + await page.goto(base + '/help'); + await page.locator('[data-help-icon] button').first().click(); + const more = page.locator('.popover a.plotline-help-more'); + await more.waitFor(); + const articlePath = new URL(await more.getAttribute('href'), base).pathname; + await more.click(); + await page.waitForURL(url => url.pathname === articlePath); + assert(await page.locator('.help-markdown-body').isVisible()); + assert.deepEqual(errors, []); + console.log('PASS public theme isolation: all six themes, browser/standalone, signed in/out; authentication palette and validation; responsive layouts, assets, navigation, checkout links and public SEO.'); + } finally { await browser.close(); } +})().catch(error => { console.error(error); process.exitCode = 1; }); diff --git a/PlotLine.Tests/Browser/public-social-image.cjs b/PlotLine.Tests/Browser/public-social-image.cjs new file mode 100644 index 00000000..36446eb6 --- /dev/null +++ b/PlotLine.Tests/Browser/public-social-image.cjs @@ -0,0 +1,20 @@ +// Generate the PlotDirector social-sharing asset directly from the public editorial design. +const { chromium } = require('playwright'); +const path = require('node:path'); +const fs = require('node:fs'); +(async () => { + const browser = await chromium.launch(); + try { + const page = await browser.newPage({ viewport: { width: 1200, height: 630 }, deviceScaleFactor: 1 }); + await page.setContent(`
PlotDirector.
A little order. A lot more story.

You've got a
book to finish.

You write it. PlotDirector remembers it.

A promise to the authorYour book.
Your words.
`); + const image = await page.screenshot({ path: path.resolve(__dirname, '../../PlotLine/wwwroot/og-image.png') }); + fs.writeFileSync(path.resolve(__dirname, '../../PlotLine/wwwroot/images/public/plotdirector-social.png'), image); + console.log('Created PlotDirector social image: 1200 × 630.'); + } finally { await browser.close(); } +})().catch(error => { console.error(error); process.exitCode = 1; }); diff --git a/PlotLine.Tests/PublicWebsiteFixtures.cs b/PlotLine.Tests/PublicWebsiteFixtures.cs new file mode 100644 index 00000000..e5a5f4b7 --- /dev/null +++ b/PlotLine.Tests/PublicWebsiteFixtures.cs @@ -0,0 +1,35 @@ +using PlotLine.Models; +using PlotLine.ViewModels; + +// Fictional, database-free data for reproducible marketing screenshots of the real application views. +internal static class PublicWebsiteFixtures +{ + public static IReadOnlyList CalendarScenes() => + new[] { "Arrival at the harbour", "The letter", "An unexpected ally", "A promise made", "Footsteps on the pier", "The missing page", "A change of plan", "The sender revealed", "Across the water", "The last crossing" } + .Select((title, i) => new StoryCalendarSceneViewModel { SceneID = 101 + i, BookID = 12, ChapterID = 21 + i / 2, + Title = title, StoryDate = new DateOnly(2026, 10, 3 + i * 2), ChapterNumber = i / 2 + 1, SceneNumber = i % 2 + 1, + Pov = i % 2 == 0 ? "Mara" : "Elias", NarrativeOrder = i + 1, TimeLabel = i % 2 == 0 ? "Before dawn" : "Evening" }).ToList(); + + public static PlotLineWorkspaceData PlotMap() + { + var titles = new[] { "Arrival at the harbour", "An unexpected ally", "The missing page", "A promise made", "Footsteps on the pier", "The sender revealed", "Across the water", "The last crossing" }; + var lines = new[] { "The missing letter", "Mara & Elias", "The harbour secret" }; + var colours = new[] { "#5bada0", "#c88d55", "#829ccf" }; + var events = new List(); + for (var scene = 0; scene < titles.Length; scene++) + for (var line = 0; line < lines.Length; line++) + { + if ((scene + line) % 3 == 2) continue; + events.Add(new() { ThreadEventID = 1000 + scene * 10 + line, PlotLineID = line + 1, PlotThreadID = 11 + line, + SceneID = 101 + scene, NarrativeOrder = scene + 1, ChapterNumber = scene / 2 + 1, SceneNumber = scene % 2 + 1, + ChapterTitle = "The crossing", SceneTitle = titles[scene], ThreadTitle = lines[line], + CanonicalTitle = titles[scene], CanonicalRole = scene == 0 ? "Introduced" : scene == 7 ? "Resolved" : "Developed", + PovCharacterName = scene % 2 == 0 ? "Mara" : "Elias", LocationName = "North Pier" }); + } + return new() { + PlotLines = lines.Select((name, i) => new PlotLineWorkspaceLineRow { PlotLineID = i + 1, PlotLineName = name, Colour = colours[i], SortOrder = i + 1, ThreadCount = 1, ContributionSceneCount = events.Where(e => e.PlotLineID == i + 1).Select(e => e.SceneID).Distinct().Count() }).ToList(), + Threads = lines.Select((name, i) => new PlotLineWorkspaceThreadRow { PlotThreadID = 11 + i, PlotLineID = i + 1, ThreadTitle = name, ContributionCount = events.Count(e => e.PlotLineID == i + 1), IntroducedSceneID = 101, PlannedResolutionSceneID = 108 }).ToList(), + Contributions = events + }; + } +} diff --git a/PlotLine.Tests/ToolbarBrowserHost.cs b/PlotLine.Tests/ToolbarBrowserHost.cs index 648ec1a0..d7075148 100644 --- a/PlotLine.Tests/ToolbarBrowserHost.cs +++ b/PlotLine.Tests/ToolbarBrowserHost.cs @@ -47,7 +47,8 @@ internal static class ToolbarBrowserHost SceneCharacters = Enumerable.Range(1, 8).Select(i => new SceneCharacter { CharacterID = i, CharacterName = i == 1 ? "Mara Vale" : $"Harbour character {i}", RoleInSceneTypeName = i == 1 ? "POV" : "Supporting" }).ToList(), ThreadEvents = [new() { EventTitle = "The letter", ThreadTitle = "Missing sender", PlotLineName = "Harbour mystery", EventDescription = "A clue at the water's edge." }], Warnings = Enumerable.Range(1, 6).Select(i => new ContinuityWarning { ContinuityWarningID = i, WarningTypeName = "Location", Message = $"Review location evidence {i}." }).ToList(), - Notes = [new() { NoteTitle = "Atmosphere", NoteText = "Keep the harbour quiet." }], + CharacterKnowledge = [new() { CharacterKnowledgeID = 1, CharacterID = 1, CharacterName = "Mara Vale", AssetName = "The letter", KnowledgeStateName = "Knows", Description = "Mara knows the letter was delivered before dawn. She has not yet discovered who sent it." }], + Notes = [new() { NoteTitle = "Atmosphere", NoteText = "Keep the harbour quiet." }, new() { NoteTitle = "Next draft", NoteText = "Let the letter carry the tension. Hold back the identity of the sender until the next chapter." }], ChecklistItems = [new() { ItemText = "Check the tide", IsCompleted = false }] }; @@ -74,6 +75,7 @@ internal static class ToolbarBrowserHost builder.Services.AddSingleton(); builder.Services.AddScoped(_ => new ApplicationNavigation(null!, null!, null!)); builder.Services.AddSingleton(); + builder.Services.AddSingleton(); builder.Services.AddScoped(services => new ToolbarTestUser(int.Parse(services.GetRequiredService().HttpContext!.User.FindFirstValue(ClaimTypes.NameIdentifier)!))); var app = builder.Build(); app.Urls.Add("http://127.0.0.1:5238"); @@ -90,8 +92,8 @@ internal static class ToolbarBrowserHost app.MapGet("/Projects", () => Results.Redirect("/fixture")); app.MapGet("/plot-map-fixture", async context => { - var data = context.Request.Query["health"] == "true" || context.Request.Query["healthDetail"] == "true" - ? HealthFixture() : PlotLineWorkspaceTests.Fixture(); + var data = context.Request.Query["marketing"] == "true" ? PublicWebsiteFixtures.PlotMap() + : context.Request.Query["health"] == "true" || context.Request.Query["healthDetail"] == "true" ? HealthFixture() : PlotLineWorkspaceTests.Fixture(); var ids = context.Request.Query["focus"] == "true" ? new[] { 1 } : new[] { 1, 2, 3 }; var model = new PlotLineWorkspaceViewModel { Project = new Project { ProjectID = 7 }, @@ -109,9 +111,39 @@ internal static class ToolbarBrowserHost var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()) { Model = model }; await view.View.RenderAsync(new ViewContext(action, view.View, viewData, new TempDataDictionary(context, context.RequestServices.GetRequiredService()), writer, new HtmlHelperOptions())); context.Response.ContentType = "text/html; charset=utf-8"; - if (context.Request.Query["healthDetail"] == "true") { await context.Response.WriteAsync(writer.ToString()); return; } + if (context.Request.Query["healthDetail"] == "true" && context.Request.Query["marketing"] != "true") { await context.Response.WriteAsync(writer.ToString()); return; } await context.Response.WriteAsync("
" + writer + ""); }); + // Public QA renders the real views/layout with isolated models; no account, payment or DB calls. + app.MapGet("/public-fixture/{page}", async context => + { + var page = context.Request.RouteValues["page"]?.ToString() ?? "home"; + var (controller, viewName, viewModel) = page switch + { + "home" => ("Home", "Index", (object?)null), + "tour" => ("Public", "Features", (object?)null), + "login" => ("Account", "Login", (object?)new LoginViewModel { ReturnUrl = "/Projects" }), + "register" => ("Account", "Register", (object?)new RegisterViewModel()), + "pricing" => ("Pricing", "Index", (object?)new PricingViewModel { Plans = Enumerable.Range(0, 4).Select(i => new SubscriptionLevel { + SubscriptionLevelID = i + 1, DisplayName = new[] { "Draft Desk", "Writing Room", "Story Forge", "Author Studio" }[i], + RequiresStripeSubscription = i > 0, MonthlyPricePence = i == 0 ? null : i * 500, AnnualPricePence = i == 0 ? null : i * 5000, + MaxBooks = i + 1, MaxChaptersPerBook = (i + 1) * 50, MaxCharactersPerProject = (i + 1) * 50, MaxScenesPerBook = (i + 1) * 100, MaxStorageMB = (i + 1) * 250, MaxCollaborators = i + }).ToList() }), + _ => throw new InvalidOperationException("Unknown public fixture") + }; + if (context.Request.Query["anonymous"] == "true") context.User = new ClaimsPrincipal(new ClaimsIdentity()); + if (context.Request.Query.TryGetValue("theme", out var theme) && ApplicationAppearance.IsValid(theme.ToString())) + await context.RequestServices.GetRequiredService().SaveThemeAsync(4, theme.ToString()); + var route = new RouteData(); route.Values["controller"] = controller; route.Values["action"] = viewName; + var action = new ActionContext(context, route, new ActionDescriptor()); + var view = context.RequestServices.GetRequiredService().GetView(null, $"/Views/{controller}/{viewName}.cshtml", true); + if (!view.Success) throw new InvalidOperationException(string.Join(",", view.SearchedLocations)); + using var writer = new StringWriter(); + var data = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()) { Model = viewModel }; + await view.View.RenderAsync(new ViewContext(action, view.View, data, new TempDataDictionary(context, context.RequestServices.GetRequiredService()), writer, new HtmlHelperOptions())); + context.Response.ContentType = "text/html; charset=utf-8"; + await context.Response.WriteAsync(writer.ToString()); + }); app.MapGet("/fixture", async context => { var model = new ApplicationNavigationViewModel { ActiveSection = "Calendar", ShowCompanionPresence = true }; @@ -167,6 +199,14 @@ internal static class ToolbarBrowserHost Days = Enumerable.Range(0, 7).Select(day => new StoryCalendarDayViewModel { Date = new DateOnly(2026, 9, 28).AddDays(week * 7 + day), IsInSelectedMonth = week * 7 + day >= 3 }).ToList() }).ToList() }; + if (context.Request.Query["marketing"] == "true") + { + calendar.DatedScenes = PublicWebsiteFixtures.CalendarScenes(); + foreach (var day in calendar.Weeks.SelectMany(w => w.Days)) + day.Scenes = calendar.DatedScenes.Where(scene => scene.StoryDate == day.Date).ToList(); + calendar.EarliestStoryDate = new DateOnly(2026, 10, 3); + calendar.LatestStoryDate = new DateOnly(2026, 10, 24); + } var surface = dashboardPage ? "" : await Render("StoryCalendar/_StoryCalendarSurface", calendar); if (timelinePage) { @@ -216,6 +256,7 @@ internal static class ToolbarBrowserHost if (context.Request.Query["owner"] == "false") project.AccessRole = "Editor"; object pageModel = desktopPage switch { + "ManuscriptImport" => new OnboardingWizardViewModel { CurrentStep = OnboardingSteps.NextPathPreview, WritingSoftware = WritingSoftwareValues.MicrosoftWord, SelectedProjectName = "The Glass Harbour", SelectedBookTitle = "A Distant Shore", ProjectID = 7, BookID = 12 }, "StoryBible" => new StoryBibleViewModel { Project = project, Query = context.Request.Query["q"] }, "Books" => new BookDetailViewModel { Project = project, Book = model.Book! }, "Characters" => new CharacterListViewModel { Project = project, Characters = context.Request.Query["context"] == "objects" ? [new Character { CharacterID = 71, CharacterName = "Context A" }, new Character { CharacterID = 72, CharacterName = "Context B" }] : [] }, @@ -236,8 +277,8 @@ internal static class ToolbarBrowserHost "SchedulePreview" => new WritingSchedulePreviewViewModel(), _ => throw new InvalidOperationException("Unknown desktop fixture") }; - var viewController = desktopPage switch { "ReviewCentre" => "Onboarding", "ProjectEdit" => "Projects", "WritingPlans" or "SchedulePreview" => "Writer", _ => desktopPage }; - var viewAction = desktopPage switch { "ReviewCentre" => "StoryIntelligenceReviewCentre", "ProjectEdit" => "Edit", "WritingPlans" or "SchedulePreview" => desktopPage, "Dynamics" => "Story", "Books" => "Details", _ => "Index" }; + var viewController = desktopPage switch { "ManuscriptImport" or "ReviewCentre" => "Onboarding", "ProjectEdit" => "Projects", "WritingPlans" or "SchedulePreview" => "Writer", _ => desktopPage }; + var viewAction = desktopPage switch { "ManuscriptImport" => "Index", "ReviewCentre" => "StoryIntelligenceReviewCentre", "ProjectEdit" => "Edit", "WritingPlans" or "SchedulePreview" => desktopPage, "Dynamics" => "Story", "Books" => "Details", _ => "Index" }; route.Values["controller"] = viewController; route.Values["action"] = viewAction; model.ActiveSection = desktopPage switch { "StoryBible" => "Story Bible", "PlotLineWorkspace" => "Plot Lines", "PlotThreads" => "Threads", "StoryCalendar" => "Calendar", "StoryPoint" => "At This Point", "ProjectMetrics" => "Metrics", "Analytics" or "Dynamics" => "Health", _ => desktopPage }; diff --git a/PlotLine/Controllers/PublicController.cs b/PlotLine/Controllers/PublicController.cs index 2aec00e2..4e56fc79 100644 --- a/PlotLine/Controllers/PublicController.cs +++ b/PlotLine/Controllers/PublicController.cs @@ -23,14 +23,14 @@ public sealed class PublicController(IConfiguration configuration) : Controller var pricingUrl = PublicSeo.AbsoluteUrl(configuration, "/pricing"); PublicSeo.Apply(ViewData, configuration, new SeoMetadata { - Title = "PlotDirector Features | Novel Planning, Continuity & Story Writing Software", + Title = "PlotDirector Tour | Novel Planning, Continuity & Story Writing Software", Description = FeaturesDescription, Keywords = FeaturesKeywords, CanonicalPath = "/features", - OgTitle = "PlotDirector Features | Plan, Write and Manage Your Story", + OgTitle = "PlotDirector Tour | Plan, Write and Manage Your Story", OgDescription = "Discover the connected story planning tools inside PlotDirector, including timelines, scene management, characters, relationships, continuity tracking, story health, floor plans, exports and Word integration.", OgType = "website", - OgImage = "https://plotdirector.com/images/og/plotdirector-features-og.webp", + OgImage = PublicSeo.AbsoluteUrl(configuration, "/images/public/workspace.jpg"), TwitterCard = "summary_large_image", JsonLd = [ @@ -38,7 +38,7 @@ public sealed class PublicController(IConfiguration configuration) : Controller { ["@context"] = "https://schema.org", ["@type"] = "WebPage", - ["name"] = "PlotDirector Features", + ["name"] = "PlotDirector Tour", ["description"] = FeaturesDescription, ["url"] = featuresUrl, ["isPartOf"] = new Dictionary @@ -65,25 +65,11 @@ public sealed class PublicController(IConfiguration configuration) : Controller }), PublicSeo.BreadcrumbJsonLd( ("Home", homeUrl), - ("Features", featuresUrl)), - PublicSeo.JsonLd(new Dictionary - { - ["@context"] = "https://schema.org", - ["@type"] = "FAQPage", - ["mainEntity"] = new[] - { - Faq("What is PlotDirector?", "PlotDirector is story planning and writing software for authors. It helps writers organise books, chapters, scenes, characters, locations, timelines, plot threads, continuity, writing schedules and story bibles in one connected workspace."), - Faq("Can PlotDirector help with story continuity?", "Yes. PlotDirector includes continuity tools for tracking characters, locations, story assets, knowledge, custody, warnings and story state across scenes."), - Faq("Does PlotDirector work with Microsoft Word?", "PlotDirector includes a Microsoft Word Companion designed to connect your manuscript with your planning data, helping sync chapters, scenes, word counts and story details."), - Faq("Can I use PlotDirector for a series?", "Yes. PlotDirector supports projects, books, chapters and scenes, making it suitable for novels, series, screenplays and larger story worlds."), - Faq("Does PlotDirector include character and relationship tracking?", "Yes. PlotDirector includes character profiles, aliases, appearances, relationship tracking, relationship maps and changes over time."), - Faq("Can PlotDirector create a story bible?", "Yes. PlotDirector can produce story bible exports containing key information about characters, settings, plot threads, timelines and other story details.") - } - }) + ("Tour", featuresUrl)) ] }); - ViewData["SeoTitle"] = "PlotDirector Features | Novel Planning, Continuity & Story Writing Software"; - ViewData["OgTitle"] = "PlotDirector Features | Plan, Write and Manage Your Story"; + ViewData["SeoTitle"] = "PlotDirector Tour | Novel Planning, Continuity & Story Writing Software"; + ViewData["OgTitle"] = "PlotDirector Tour | Plan, Write and Manage Your Story"; return View(); } @@ -156,15 +142,4 @@ public sealed class PublicController(IConfiguration configuration) : Controller SupportEmail = SupportEmail, LastUpdated = PolicyDate }; - - private static Dictionary Faq(string question, string answer) => new() - { - ["@type"] = "Question", - ["name"] = question, - ["acceptedAnswer"] = new Dictionary - { - ["@type"] = "Answer", - ["text"] = answer - } - }; } diff --git a/PlotLine/Services/PublicSeo.cs b/PlotLine/Services/PublicSeo.cs index c757fed2..9b934791 100644 --- a/PlotLine/Services/PublicSeo.cs +++ b/PlotLine/Services/PublicSeo.cs @@ -23,7 +23,7 @@ public static class PublicRouteNames public static partial class PublicSeo { public const string DefaultBaseUrl = "https://plotdirector.com"; - public const string DefaultOgImagePath = "/og-image.png"; + public const string DefaultOgImagePath = "/images/public/plotdirector-social.png"; private const int DescriptionTargetLength = 155; public static string BaseUrl(IConfiguration configuration) diff --git a/PlotLine/Views/Account/Login.cshtml b/PlotLine/Views/Account/Login.cshtml index 0020b1e5..3bd10603 100644 --- a/PlotLine/Views/Account/Login.cshtml +++ b/PlotLine/Views/Account/Login.cshtml @@ -67,7 +67,7 @@ else

Account

-

Login

+

Sign in

Sign in to PlotDirector.

@@ -103,7 +103,7 @@ else diff --git a/PlotLine/Views/Account/Register.cshtml b/PlotLine/Views/Account/Register.cshtml index 47a26543..0e2b4b5f 100644 --- a/PlotLine/Views/Account/Register.cshtml +++ b/PlotLine/Views/Account/Register.cshtml @@ -48,7 +48,7 @@
- + Already have an account?
diff --git a/PlotLine/Views/Home/Index.cshtml b/PlotLine/Views/Home/Index.cshtml index 0d9ec7d6..93432e18 100644 --- a/PlotLine/Views/Home/Index.cshtml +++ b/PlotLine/Views/Home/Index.cshtml @@ -2,258 +2,182 @@ ViewData["Title"] = "Finally finish your novel"; ViewData["ShellClass"] = "marketing-shell"; } - -
-
-
-
-

PlotDirector for novelists

-

Finally finish the novel you've always wanted to write.

-

- PlotDirector gives your characters, chapters, plot threads, notes, timelines and continuity checks one calm place to live, so you can plan, organise, track and finish your book. +

+
+
+
+

A little order. A lot more story.

+

Finally finish
the novel you've
always wanted
to write. +

+

The characters. The loose ends. That thing you mentioned in chapter three. Keep it all together, so you can get back to the words.

+ +

30 days free. No card needed. Your words stay yours.

+
+
+ +
+

A DISTANT SHORE 12 +

+

Chapter one

+

The crossing

+

By the time Mara reached the harbour, the last light in the customs house had gone out.

+

She stopped at the end of the pier. In her coat pocket, the letter felt heavier than it had any right to.

+

Someone had been here before her.

+ + this is where it begins ↗ +
+
Note to self +

Who knows
about the letter?

don't lose this thread. +
+
+
A place for every story detailYou write it.
PlotDirector remembers it.
See how +
+
+ +

Your imagination. A little breathing room.

+
+
+
+
+
+

Sound familiar?

+

Writing is wonderful.
Keeping track of it all? +

+
+

“When did Anna find the letter?”

+

“Has Tom met David yet?”

+

“Didn't this happen on Thursday?”

+

“Where did that storyline go?”

+

“Who the hell is Malcolm?”

+
+
+

You don't need a better memory.
You need somewhere your story can live.

- -
-
-
9
-
story systems brought together
-
-
-
1
-
calm place to plan, draft, and revise
-
-
-
- -
- PlotDirector writing workspace showing manuscript planning, character notes, plot threads and continuity checks.
- -
-
-

Made for real drafting problems

-

Every writer faces these challenges. PlotDirector helps solve them.

-
-
- -
-
-
- -
-

Losing track of story details

-

Your story should feel alive, not scattered across notebooks, documents and half-remembered ideas.

-

You shouldn't have to remember what colour someone's eyes were fifty thousand words ago, or which chapter introduced an important clue. PlotDirector keeps the details connected so you can stay close to the story.

-
-
- -
- -
-

Managing complex plots

-

See how every scene, reveal and promise connects before the story ties itself in knots.

-

When plots, subplots, mysteries, romances and character arcs start pulling in different directions, PlotDirector helps you keep the shape of the book in view.

-
-
- -
-
- PlotDirector manuscript continuity view highlighting story details and possible contradictions. -
-
-

Continuity mistakes

-

Catch contradictions before readers do.

-

Readers notice when characters know things they shouldn't, important objects disappear, or timelines stop making sense. PlotDirector helps you spot those problems before publication.

-
-
- -
- -
-

Knowing what to work on next

-

Open your project and know exactly what scene needs you next.

-

Many novels stall because writers simply don't know what to tackle next. PlotDirector helps you identify the scenes, revisions, and unresolved issues that deserve your attention today.

-
-
- -
- -
-

Drowning in notes and documents

-

Stop opening five files just to remember what happened next.

-

If your story lives across Word documents, notebooks, spreadsheets, and scraps of paper, you're not alone. PlotDirector brings everything together in one organised place.

-
-
- -
-
- PlotDirector character relationship board showing connected characters and relationship details. -
-
-

Tracking character relationships

-

Track the loyalties, secrets and tensions that make your cast feel real.

-

Friendships evolve. Rivalries deepen. Secrets change everything. PlotDirector helps you track how your characters connect and how those relationships change over time.

-
-
- -
-
- Plot threads visualised across scenes in PlotDirector -
-
-

Keeping plot threads organised

-

Never lose a promise you made to the reader.

-

Give each thread a visible lifecycle from introduction to resolution, whether it is a murder clue, family secret, magic rule, rivalry, or slow-burn confession.

-
-
- -
-
- Series dashboard showing books, progress and writing statistics -
-
-

Managing series and multiple books

-

Keep the whole series organised without flattening the life out of it.

-

Long-running mysteries, character journeys, and future revelations become difficult to manage across multiple books. PlotDirector helps you keep the bigger picture in view.

-
-
- -
-
- Story pacing and emotional timeline visualisation in PlotDirector -
-
-

Understanding pacing and emotional flow

-

Feel the rhythm of the novel as a whole.

-

Action without breathing room can exhaust readers. Quiet moments without momentum can slow the story. PlotDirector helps you visualise pacing and emotional balance across your manuscript.

-
-
-
-
- -
-
- +
+
-

Built by an author

-

Created by a novelist who needed the same calm.

-

- PlotDirector was built while writing a real novel, because spreadsheets, scattered notes and half-finished planning documents weren't enough. -

-

- It is not trying to turn writing into admin. It is there to keep the admin from eating the writing. -

+

Meet PlotDirector

+

Your novel has
a lot going on.
We've got room. +

+

Bring chapters, scenes, characters and plot lines into one connected workspace. Find the detail you need without rummaging through five different documents.

+

Start with the basics. Let the rest earn its place in your writing day.

Come inside +
+
+ PlotDirector Scene Inspector showing the story, people and details of an example scene. +
All those details. One place.Scene Inspector · fictional demonstration +
+
+
+
+
+
+ +
+

No blank-slate requirement

+

Already halfway through
your novel? Perfect.
Bring it with you.

+

You don't have to start again. Import your existing manuscript through the Microsoft Word Companion and build your story workspace from there. Review the result, then carry on with the book you've already begun.

A home for the work you've done
- -
- - -@section Scripts { - -} diff --git a/PlotLine/Views/Pricing/Index.cshtml b/PlotLine/Views/Pricing/Index.cshtml index b3d57185..393f67f8 100644 --- a/PlotLine/Views/Pricing/Index.cshtml +++ b/PlotLine/Views/Pricing/Index.cshtml @@ -11,11 +11,11 @@

Pricing

-

Simple pricing for stories of every size.

+

A little room.
Or a whole story world.

Start with a 30-day free trial. No payment details are required until you choose a paid plan.

@@ -50,14 +50,16 @@ var isSuggested = suggestedPlanId == plan.SubscriptionLevelID; var isTrialPlan = !plan.RequiresStripeSubscription;
+
@if (isTrialPlan) {

30-day free trial

} @if (isSuggested) { -

Most Popular

+

Room to grow

} +

@plan.DisplayName

@PlanTagline(plan)

@@ -89,6 +91,7 @@ }
  • @FormatLimit(plan.MaxBooks) books
  • @FormatLimit(plan.MaxCharactersPerProject) characters per project
  • +
  • @FormatLimit(plan.MaxChaptersPerBook) chapters per book
  • @FormatLimit(plan.MaxScenesPerBook) scenes per book
  • @FormatStorageAllowance(plan.MaxStorageMB) storage
  • @FormatLimit(plan.MaxCollaborators) collaborators
  • @@ -97,12 +100,12 @@
    @if (!plan.RequiresStripeSubscription) { - Start Free Trial + Start writing free } else { - @(isCurrent ? "Current Plan" : "Subscribe Now") + @(isCurrent ? "Current plan" : "Choose this plan") @if (plan.AnnualPricePence.HasValue) { @@ -125,19 +128,19 @@
    -

    Planning capacity

    -

    Database-backed limits for books, chapters, scenes, characters, storage, and collaborators scale with the plan you choose.

    +

    Room for your next book

    +

    Choose the capacity that fits your work. Book, scene, character, storage and collaborator allowances are shown above.

    -

    Story organisation

    +

    Keep your story together

    Characters, plot threads, story assets, locations, and the story bible help keep the moving pieces of your manuscript in one place.

    -

    Structure and flow

    +

    See where the story needs you

    Timeline, scene metrics, story health, and analytics views help you understand pacing, pressure, and revision priorities.

    -

    Continuity confidence

    +

    Keep the details straight

    Relationship mapping, continuity warnings, import, export, backups, and restore points support serious drafting and revision work.

    @@ -165,7 +168,11 @@

    What happens to my work if I cancel?

    -

    Your existing story data remains in PlotDirector. Your account may return to the application-managed Draft Desk level after the paid subscription ends.

    +

    Your existing story data remains in PlotDirector. Your account may return to Draft Desk after the paid subscription ends.

    +
    +
    +

    Will PlotDirector write my book for me?

    +

    No. PlotDirector is designed for authors who write their own books. It helps organise, understand and analyse your work. The writing and creative decisions stay with you.

    Is PlotDirector suitable for a series?

    @@ -177,7 +184,7 @@

    What happens when the trial expires?

    -

    Your trial status will show in your dashboard and subscription pages. When the 30 days are over, choose a paid plan to continue with higher paid-plan access.

    +

    Your trial status will show in your dashboard and subscription pages. When the 30 days are over, choose a paid plan to continue with the capacity your story needs.

    @@ -185,11 +192,11 @@
    -

    Begin with clarity

    -

    Ready to take control of your story?

    +

    Make room for your story

    +

    Enough about pricing.
    You've got a book to write.

    Try PlotDirector free for 30 days with no payment details, or choose the paid plan that fits the novel you are building.

    @@ -231,8 +238,12 @@ return $"{symbol}{pence.Value / 100m:0.00}"; } - private static string PlanTagline(SubscriptionLevel plan) => - string.IsNullOrWhiteSpace(plan.Description) - ? plan.RequiresStripeSubscription ? "For authors ready to build with confidence." : "A calm place to begin." - : plan.Description; + private static string PlanTagline(SubscriptionLevel plan) => plan.DisplayName switch + { + "Draft Desk" => "For finding your feet and trying your first story workspace.", + "Writing Room" => "For the novelist settling into a regular writing rhythm.", + "Story Forge" => "For a growing cast, a bigger book and more moving parts.", + "Author Studio" => "For authors with several books and a whole world to organise.", + _ => "For authors who need a little more room for their stories." + }; } diff --git a/PlotLine/Views/Public/Features.cshtml b/PlotLine/Views/Public/Features.cshtml index ed79f5b0..cfb60588 100644 --- a/PlotLine/Views/Public/Features.cshtml +++ b/PlotLine/Views/Public/Features.cshtml @@ -1,315 +1,206 @@ @{ - ViewData["Title"] = "Features"; + ViewData["Title"] = "Tour"; ViewData["ShellClass"] = "marketing-shell"; - const string Placeholder = "/images/features/feature-placeholder.webp"; } - -
    -
    -
    -
    -

    PlotDirector features

    -

    All the tools.
    One connected story.

    -

    - PlotDirector brings every part of your story together - plans, characters, places, objects, timelines, secrets and continuity - so you can focus on the bit that matters most: writing something unforgettable. -

    - -
    -
    - Everything connected - Changes ripple through your story automatically. -
    -
    - Stay consistent - Spot continuity problems before your readers do. -
    -
    - Write with confidence - Know what happens when, where, and why. -
    -
    +
    +
    +
    +

    A look around PlotDirector

    +

    Come inside.
    Bring your story. +

    +
    +

    A place for the words, the people and the wonderfully tangled thing you're making. Start with what you need. There's plenty to grow into.

    Start writing free ↗
    -
    - PlotDirector timeline overview with scenes, plot threads and story warnings. -
    Timeline overview with scenes, plot threads and story warnings.
    -
    - -
    - -@section Scripts { - -} - diff --git a/PlotLine/Views/Shared/_PublicLayout.cshtml b/PlotLine/Views/Shared/_PublicLayout.cshtml new file mode 100644 index 00000000..a2129b99 --- /dev/null +++ b/PlotLine/Views/Shared/_PublicLayout.cshtml @@ -0,0 +1,134 @@ +@using System.Security.Claims +@inject IConfiguration Configuration +@inject PlotLine.Data.IAppearanceRepository AppearancePreferences +@{ + var isAuthentication = string.Equals(ViewContext.RouteData.Values["controller"]?.ToString(), "Account", StringComparison.OrdinalIgnoreCase); + string? accountTheme = null; + if (isAuthentication && User.Identity?.IsAuthenticated == true && int.TryParse(User.FindFirstValue(ClaimTypes.NameIdentifier), out var accountUserId)) + { + accountTheme = (await AppearancePreferences.GetAsync(accountUserId)).ThemeKey; + } + var seoMetadata = ViewData["Seo"] as SeoMetadata; + var defaultTitle = PublicSeo.DisplayTitle(ViewData["Title"] as string); + var seoTitle = ViewData["SeoTitle"] is string seoTitleValue ? seoTitleValue : defaultTitle; + var hasSeoMetadata = seoMetadata is not null || ViewData["SeoDescription"] is string || ViewData["CanonicalUrl"] is string; + var seoDescription = ViewData["SeoDescription"] as string; + var canonicalUrl = ViewData["CanonicalUrl"] as string; + var seoKeywords = ViewData["SeoKeywords"] as string; + var structuredData = ViewData["StructuredData"] is IEnumerable structuredDataValues ? structuredDataValues : Array.Empty(); + var ogTitle = ViewData["OgTitle"] as string ?? seoTitle; + var ogDescription = ViewData["OgDescription"] as string ?? seoDescription; + var ogType = ViewData["OgType"] as string ?? "website"; + var ogImageUrl = ViewData["OgImage"] as string ?? PublicSeo.AbsoluteUrl(Configuration, PublicSeo.DefaultOgImagePath); + var twitterCard = ViewData["TwitterCard"] as string ?? "summary_large_image"; +} + + + + + + @seoTitle + @if (hasSeoMetadata) + { + @if (!string.IsNullOrWhiteSpace(seoDescription)) + { + + } + @if (!string.IsNullOrWhiteSpace(seoKeywords)) + { + + } + + + + @if (!string.IsNullOrWhiteSpace(ogDescription)) + { + + } + + @if (!string.IsNullOrWhiteSpace(canonicalUrl)) + { + + } + + + + @if (!string.IsNullOrWhiteSpace(ogDescription)) + { + + } + + } + @foreach (var jsonLd in structuredData) + { + @Html.Raw("") + } + @if (!string.IsNullOrWhiteSpace(canonicalUrl)) + { + + } + + + + + + + @if (isAuthentication) + { + + + + + + + } + + + Skip to content +
    + +
    +
    + @RenderBody() +
    + + + + + @await RenderSectionAsync("Scripts", required: false) + + diff --git a/PlotLine/Views/_ViewStart.cshtml b/PlotLine/Views/_ViewStart.cshtml index a5f10045..551e77b6 100644 --- a/PlotLine/Views/_ViewStart.cshtml +++ b/PlotLine/Views/_ViewStart.cshtml @@ -1,3 +1,8 @@ -@{ - Layout = "_Layout"; +@{ + var controller = ViewContext.RouteData.Values["controller"]?.ToString(); + var action = ViewContext.RouteData.Values["action"]?.ToString(); + var publicPage = controller is "Public" or "Help" or "Account" + || (controller == "Home" && action == "Index") + || (controller == "Pricing" && action == "Index"); + Layout = publicPage ? "_PublicLayout" : "_Layout"; } diff --git a/PlotLine/wwwroot/css/public-site.css b/PlotLine/wwwroot/css/public-site.css new file mode 100644 index 00000000..3a72dbf0 --- /dev/null +++ b/PlotLine/wwwroot/css/public-site.css @@ -0,0 +1,395 @@ +/* A dedicated public palette. No application preference participates in this scope. */ +html[data-site-theme="public"] { + --paper: #f8f5ee; --paper-deep: #eee9de; --ink: #292c27; --muted: #65665b; --gold: #e3b85e; --gold-dark: #876127; --sage: #e6eade; --line: #d9d8cb; + --marketing-navy: var(--ink); --marketing-ink: var(--ink); --marketing-gold: var(--gold); --marketing-cream: var(--paper); --marketing-offwhite: #fffdf7; --marketing-muted: var(--muted); --marketing-line: var(--line); + scroll-behavior: smooth; scroll-padding-top: 110px; + body.public-site { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.7; } + .public-site *, .public-site *::before, .public-site *::after { box-sizing: border-box; } + .public-site { h1,h2,h3,h4 { color: var(--ink); } h1,h2,h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.08; } h1 { font-size: clamp(3.6rem,6vw,6.4rem); } h2 { font-size: clamp(2.6rem,4.1vw,4.4rem); } h3 { font-size: clamp(2rem,3vw,3rem); } h1 em,h2 em { font-weight: 400; color: #6b7655; } :where(p) { margin: 0 0 1.2rem; } :where(a) { color: inherit; } img { max-width: 100%; } :focus-visible { outline: 3px solid #916122; outline-offset: 5px; } } + .marketing-container { width: min(1280px, calc(100% - 112px)); max-width: 1280px; margin-inline: auto; padding: 0; } + .marketing-shell { width: 100%; max-width: none; padding: 0; margin: 0; } + .marketing-shell main { padding: 0; } + .public-skip { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 10px 20px; color: var(--paper); background: var(--ink); } + .public-skip:focus { top: 10px; } + .public-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; } + .public-nav { min-height: 100px; padding: 16px 0; } + .public-nav > .marketing-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; } + .public-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 27px/1 Georgia,serif; letter-spacing: -1px; text-decoration: none; white-space: nowrap; } + .public-logo-mark { width: 35px; height: 37px; display: inline-block; font-size: 38px; line-height: .8; border-bottom: 2px solid var(--gold-dark); } + .public-logo-mark span,.gold-dot { color: var(--gold-dark); } + #publicMenu { justify-content: space-between; margin-left: 65px; gap: 20px; } + .public-links,.public-account { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; } + .public-links a,.public-account > a:not(.marketing-btn) { text-decoration: none; padding-block: 8px; border-bottom: 1px solid transparent; } + .public-links a:hover,.public-account > a:not(.marketing-btn):hover { border-color: var(--gold-dark); } + .marketing-btn { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 52px; border: 1px solid transparent; border-radius: 4px; padding: 13px 24px; font: 600 14px/1.5 "Segoe UI",system-ui,sans-serif; letter-spacing: 0; text-decoration: none; box-shadow: none; transition: background .2s,transform .2s; white-space: normal; } + .public-site a.marketing-btn--primary, .marketing-btn--primary { background: var(--ink); border-color: var(--ink); color: #fffdf7; } + .marketing-btn--primary:hover { background: #444a39; color: #fffdf7; border-color: #444a39; transform: translateY(-2px); } + .marketing-btn--secondary { background: transparent; border-color: #a3a595; color: var(--ink); } + .marketing-btn--secondary:hover { background: var(--paper-deep); color: var(--ink); } + .marketing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 28px; } + .marketing-eyebrow { color: var(--muted); font: 600 11px/1.5 "Segoe UI",system-ui,sans-serif; letter-spacing: .17em; text-transform: uppercase; margin: 0 0 22px; } + .eyebrow-line { display: inline-block; width: 30px; height: 1px; background: var(--gold-dark); vertical-align: middle; margin-right: 10px; } + .marketing-lead { font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 530px; } + .editorial-link { display: inline-block; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #aeb19d; padding-bottom: 3px; } + .editorial-link:hover { color: #6b7655; border-color: #6b7655; } + .cta-note { font-size: 12px; color: var(--muted); margin-top: 18px; } + .writer-hero { position: relative; overflow: clip; padding: 78px 0 85px; background: radial-gradient(ellipse at 85% 50%,#e9e7d9 0,transparent 57%); } + .writer-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 45px; } + .writer-hero h1 { margin-bottom: 26px; font-size: clamp(3.8rem,5.9vw,6.3rem); } + .writer-hero h1 em { position: relative; } + .writer-hero h1 em::after { content: ''; position: absolute; height: 5px; bottom: -3px; left: -3%; width: 110%; background: var(--gold); border-radius: 50%; transform: rotate(-4deg); } + .writer-hero .marketing-lead { max-width: 430px; font-size: 16px; } + .writer-hero .marketing-actions { gap: 22px; } + .writing-desk { height: 645px; position: relative; margin-right: -24px; } + .desk-rule { position: absolute; top: -8px; left: 55px; font-size: 9px; letter-spacing: .25em; color: #858677; transform: rotate(-5deg); } + .manuscript-sheet { position: absolute; inset: 26px 60px 60px 25px; padding: 36px 40px; background: #fffef9; box-shadow: 1px 3px 6px #33321c0b, 7px 16px 35px #33321c18; transform: rotate(-5deg); border: 1px solid #e7e3d6; font: 16px/1.9 Georgia,serif; } + .manuscript-sheet::before { content: ''; position: absolute; inset: 6px -8px -7px 8px; background: #fbf9f2; border: 1px solid #e1ded3; z-index: -1; transform: rotate(2deg); } + .manuscript-running { display: flex; justify-content: space-between; font: 8px/1.5 "Segoe UI",sans-serif; letter-spacing: .2em; color: #8a8a7f; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 35px !important; } + .manuscript-chapter { text-align: center; font-variant: small-caps; font-size: 14px; margin: 0 0 8px !important; } + .manuscript-sheet h2 { text-align: center; font-size: 31px; margin-bottom: 27px; } + .manuscript-sheet > p:not(.manuscript-running,.manuscript-chapter) { text-indent: 18px; margin-bottom: 9px; } + .editorial-underline { text-decoration: underline; text-decoration-color: #c49845; text-underline-offset: 5px; text-decoration-thickness: 2px; } + .manuscript-fade { opacity: .35; } + .hand-note { font: italic 19px/1.4 "Segoe Print","Bradley Hand",cursive; color: #6a704f; letter-spacing: -.5px; } + .manuscript-sheet > .hand-note { position: absolute; bottom: 28px; left: 32px; transform: rotate(-2deg); } + .desk-note { position: absolute; top: 135px; right: -8px; width: 189px; padding: 29px 22px 23px; background: #f1d88d; transform: rotate(8deg); box-shadow: 3px 9px 15px #3c351319; } + .desk-note small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #76602e; } + .desk-note p { font: 24px/1.25 Georgia,serif; margin-block: 12px 20px; } + .desk-note .hand-note { font-size: 15px; color: #665935; } + .note-pin { position: absolute; top: -9px; left: 55px; width: 70px; height: 22px; background: #e2dcc8a3; transform: rotate(-12deg); } + .desk-answer { position: absolute; bottom: 12px; left: 90px; right: 20px; display: flex; gap: 16px; padding: 22px 26px; background: #fdfdf6; border: 1px solid #d3d9c7; border-left: 4px solid #788766; box-shadow: 3px 9px 25px #3d422819; transform: rotate(2deg); } + .answer-tick { color: #667750; font-size: 21px; } + .desk-answer small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 5px; } + .desk-answer strong { display: block; font: 24px/1.2 Georgia,serif; } + .desk-answer a { display: inline-block; margin-top: 8px; font-size: 11px; text-decoration: none; border-bottom: 1px solid var(--line); } + .desk-pencil { position: absolute; height: 285px; width: 8px; background: linear-gradient(90deg,#b97e2c,#eac16d 45%,#c99b4d); bottom: 85px; left: 25px; transform: rotate(18deg); border-top: 12px solid #c3b294; border-bottom: 14px solid #37352d; box-shadow: 4px 2px 4px #0002; } + .desk-caption { position: absolute; bottom: -36px; right: 38px; font: italic 15px Georgia,serif; color: #878777; } + .writer-problems { padding: 90px 0 65px; text-align: center; border-top: 1px solid var(--line); background: #f1efe6; } + .writer-problems h2 { font-size: clamp(2.5rem,3.8vw,4rem); } + .question-scatter { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 25px; padding: 40px 40px 28px; max-width: 1100px; margin: auto; } + .question-scatter p { padding: 12px 21px; background: #fffdf7; font: 19px/1.5 Georgia,serif; box-shadow: 0 3px 8px #24291408; margin: 0; transform: rotate(-2deg); } + .question-scatter p:nth-child(2n) { transform: rotate(2deg); background: #e8eadf; } + .question-scatter p:last-child { background: #f3dfa5; } + .problem-answer { margin-top: 16px; color: var(--muted); font-size: 15px; } + .problem-answer > span { font: 32px Georgia,serif; color: #7e865e; } + .problem-answer strong { color: var(--ink); font-weight: 500; } + .editorial-section { padding: 115px 0; } + .editorial-split { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 85px; } + .editorial-split > div > p:not(.marketing-eyebrow) { max-width: 470px; color: var(--muted); } + .editorial-split h2 { margin-bottom: 28px; } + .product-print { margin: 0; min-width: 0; padding: 9px; background: #fffef9; border: 1px solid #d8d8cc; box-shadow: 0 14px 35px #272e1910; border-radius: 5px; } + .product-preview { display: block; cursor: zoom-in; border-radius: 2px; } + .product-print img { display: block; width: 100%; height: auto; border: 1px solid #e6e5da; border-radius: 2px; } + .product-print figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 8px 3px; font-size: 10px; color: var(--muted); } + .product-print--tilt { transform: rotate(1.5deg); } + .bring-manuscript { background: var(--sage); padding: 75px 0; border-block: 1px solid #d7dccb; } + .import-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 100px; } + .import-grid h2 { font-size: clamp(2.4rem,3.6vw,3.8rem); margin-bottom: 24px; } + .import-grid > div > p:not(.marketing-eyebrow) { max-width: 540px; color: #5f6756; } + .import-pages { height: 290px; display: grid; place-items: center; position: relative; } + .import-pages > div { position: relative; width: 205px; background: #fffdf7; padding: 30px; transform: rotate(-7deg); box-shadow: 4px 8px 20px #353f2712; border: 1px solid #d5d8c8; } + .import-pages > div::before { content: ''; position: absolute; inset: 8px -10px -10px 10px; background: #f8f7ed; border: 1px solid #d5d8c8; transform: rotate(4deg); z-index: -1; } + .import-pages span:not(.import-arrow) { font-size: 8px; letter-spacing: .15em; } + .import-pages p { font: 21px/1.9 Georgia,serif; margin-top: 20px; margin-bottom: 0; } + .import-pages i { font-size: 13px; color: var(--muted); } + .import-arrow { position: absolute; right: -20px; bottom: 15px; font: 100px Georgia,serif; color: #7a875f; transform: rotate(16deg); } + .writing-heading { max-width: 720px; margin: 0 auto 50px; text-align: center; } + .writing-heading h2 { margin-bottom: 26px; } + .writing-heading p:not(.marketing-eyebrow) { max-width: 540px; margin-inline: auto; color: var(--muted); } + .writing-product { max-width: 1050px; margin: auto; } + .story-problems { background: #f0ede4; padding-top: 85px; } + .section-intro { margin-bottom: 60px; } + .problem-demonstration { display: grid; grid-template-columns: 1.2fr .8fr; gap: 75px; align-items: center; margin-top: 70px; } + .problem-demonstration > div > p { color: var(--muted); } + .problem-demonstration h3 { margin: 12px 0 22px; } + .problem-demonstration--reverse { grid-template-columns: .8fr 1.2fr; } + .problem-demonstration--reverse > figure { order: 2; } + .section-number { display: block; color: #777b66; font: 600 10px/1.5 "Segoe UI",sans-serif; letter-spacing: .16em; margin-bottom: 20px; } + .small-problems { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 85px; border-top: 1px solid #d1d2c5; padding-top: 45px; } + .small-problems > a { text-decoration: none; padding-right: 30px; } + .small-problems h3 { font-size: 30px; margin-bottom: 20px; } + .small-problems p { color: var(--muted); font-size: 15px; } + .application-reveal .editorial-split { grid-template-columns: 1.1fr .9fr; } + .large-product { margin-top: 50px; } + .power-copy { max-width: 730px; text-align: center; margin: 80px auto 0; } + .power-copy h2 { font-size: clamp(2.5rem,3.8vw,4rem); } + .power-copy > p:not(.marketing-eyebrow,.serif-statement) { max-width: 560px; margin: 0 auto 24px; color: var(--muted); } + .serif-statement { font: italic clamp(1.7rem,2.8vw,2.7rem)/1.3 Georgia,serif; color: #6b7655; margin-block: 22px; } + .writer-philosophy { text-align: center; background: #e7e9df; border-block: 1px solid #d7dbcb; padding: 85px 0; } + .writer-philosophy h2 { font-size: clamp(3.5rem,6vw,6rem); margin-bottom: 28px; } + .writer-philosophy p:not(.marketing-eyebrow) { max-width: 560px; margin: 0 auto 20px; } + .editorial-asterisk { font-size: 45px; line-height: 1; color: #8e9a72; display: block; margin-bottom: 30px; } + .philosophy-signoff { font: italic 20px Georgia,serif; color: #6b7655; } + .final-cta { background: var(--paper); color: var(--ink); padding: 90px 0; text-align: center; border: 0; } + .final-cta::before,.final-cta::after { display: none; } + .final-cta__inner { background: transparent; border: 0; padding: 0; box-shadow: none; border-radius: 0; max-width: none; } + .final-cta h2 { color: var(--ink); font-size: clamp(2.8rem,4.5vw,4.8rem); margin-bottom: 18px; } + .final-cta p { color: var(--muted); } + .final-cta .marketing-actions { justify-content: center; } + .final-cta .marketing-eyebrow { color: var(--muted); } + .public-footer { background: #eeece2; border-top: 1px solid var(--line); padding: 48px 0 28px; } + .public-footer-top { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; } + .public-footer-top > p { font: italic 20px/1.5 Georgia,serif; color: var(--muted); } + .public-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px 26px; font-size: 12px; margin-top: 20px; } + .public-footer__nav a { text-decoration: none; } + .public-footer__nav a:hover { text-decoration: underline; } + .public-colophon { margin: 28px 0 0 !important; padding-top: 18px; border-top: 1px solid #d6d5c9; font-size: 10px; color: var(--muted); } + /* Tour: a single editorial journey, with compact sticky wayfinding. */ + .tour-hero { padding: 80px 0 60px; } + .tour-hero h1 { margin-bottom: 35px; } + .tour-hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 45px; } + .tour-hero-bottom .marketing-lead { max-width: 650px; margin: 0; } + .tour-jump { background: #f8f5eef5; backdrop-filter: blur(12px); border-block: 1px solid var(--line); position: sticky; top: 0; z-index: 15; } + .tour-jump > div { display: flex; gap: 22px; overflow-x: auto; align-items: center; padding-block: 18px; scrollbar-width: thin; } + .tour-jump a { flex-shrink: 0; font-size: 12px; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; padding-block: 5px; } + .tour-jump a:hover { border-color: var(--gold-dark); } + .tour-jump span { font-size: 9px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; margin-right: 8px; } + .tour-stop { padding: 100px 0; scroll-margin-top: 10px; } + .tour-stop--soft { background: #f0ede4; } + .tour-stop--sage { background: var(--sage); } + .tour-stop-heading { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 75px; align-items: center; margin-bottom: 40px; } + .tour-stop-heading > .section-number { grid-column: 1/-1; } + .tour-stop-heading > p { color: var(--muted); max-width: 440px; } + .tour-capabilities { list-style: none; padding: 24px 0 0; margin: 0; display: flex; justify-content: space-between; gap: 30px; font-size: 13px; color: var(--muted); } + .tour-capabilities li::before { content: '✓'; color: #6b7655; margin-right: 10px; } + .editorial-list { padding-left: 0; list-style: none; color: var(--muted); font-size: 14px; margin-top: 25px; } + .editorial-list li { border-top: 1px solid var(--line); padding: 12px 0; } + .editorial-list li::before { content: '↗'; color: #788465; margin-right: 12px; } + .editorial-split--reverse { grid-template-columns: 1.18fr .82fr; } + .editorial-split--reverse > div { order: 2; } + .tour-aside { font: italic 17px/1.5 Georgia,serif; } + .writer-philosophy--compact h2 { font-size: clamp(2.7rem,4.5vw,4.5rem); } + /* Pricing keeps the server-rendered plans, limits and checkout links intact. */ + .marketing-home { --marketing-navy: var(--ink); --marketing-gold: var(--gold); --marketing-cream: var(--paper); --marketing-offwhite: #fffdf7; --marketing-ink: var(--ink); --marketing-muted: var(--muted); --marketing-line: var(--line); background: var(--paper); color: var(--ink); } + .pricing-hero,.public-hero { background: var(--paper); color: var(--ink); padding: 75px 0 60px; border: 0; } + .pricing-hero::before,.pricing-hero::after,.public-hero::before,.public-hero::after { display: none; } + .pricing-hero__inner,.public-hero__inner { max-width: 1280px; text-align: left; } + .pricing-hero h1,.public-hero h1 { color: var(--ink); max-width: 950px; font-size: clamp(3rem,5.5vw,5.4rem); font-weight: 400; } + .pricing-hero .marketing-eyebrow,.pricing-hero .marketing-lead,.public-hero .marketing-eyebrow,.public-hero .marketing-lead { color: var(--muted); } + .pricing-hero .marketing-lead { max-width: 650px; margin: 24px 0; } + .pricing-hero .marketing-actions { justify-content: flex-start; } + .pricing-plans { background: var(--paper); padding: 30px 0 70px; } + .section-heading { text-align: left; max-width: none; margin-bottom: 35px; } + .section-heading h2 { font-size: clamp(2.3rem,3.5vw,3.4rem); } + .pricing-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; align-items: stretch; } + .pricing-card { display: flex; flex-direction: column; position: relative; border: 1px solid var(--line); border-radius: 5px; background: #fffdf7; color: var(--ink); box-shadow: none; padding: 30px 24px; } + .pricing-card--featured { border: 2px solid #778366; background: #eff1e7; transform: none; padding: 29px 23px; box-shadow: none; } + .pricing-card--trial { background: #f3eddf; } + .pricing-badge { align-self: flex-start; position: static; display: inline-block; background: #dfe5d3; color: #445239; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border: 0; border-radius: 2px; margin: 0 0 20px; } + .pricing-badge--trial { background: #ebd6a6; color: #5b4926; } + .pricing-card__badges { min-height: 45px; } + .pricing-card__heading h3 { font-size: 28px; margin-bottom: 10px; } + .pricing-card__heading p { font-size: 13px; color: var(--muted); min-height: 65px; } + .pricing-price { min-height: 130px; padding: 18px 0; margin: 0; border-block: 1px solid var(--line); } + .pricing-price strong { color: var(--ink); display: block; font: 36px/1.3 Georgia,serif; } + .pricing-price__value { font: inherit; } + .pricing-price > span,.pricing-price > small { font-size: 11px; display: block; color: var(--muted); line-height: 1.7; } + .pricing-price strong small { font: 10px "Segoe UI",sans-serif; } + .pricing-feature-list { list-style: none; padding: 22px 0; margin: 0; font-size: 12px; color: var(--muted); } + .pricing-feature-list li { padding: 6px 0; } + .pricing-feature-list li::before { content: '✓'; color: #76805e; margin-right: 7px; } + .pricing-card__actions { margin-top: auto; padding-top: 15px; } + .pricing-card__actions .marketing-btn { width: 100%; padding-inline: 10px; font-size: 12px; } + .pricing-link { font-size: 11px; display: block; text-align: center; margin-top: 12px; color: var(--muted); } + .pricing-compare { background: var(--sage); padding: 70px 0; } + .comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 60px; } + .comparison-grid article { border: 0; border-top: 1px solid #cbd2be; background: transparent; padding: 22px 0 0; border-radius: 0; box-shadow: none; } + .comparison-grid h3 { font-size: 25px; margin-bottom: 14px; } + .comparison-grid p { font-size: 14px; color: #5f6756; } + .pricing-faq { background: var(--paper); padding: 70px 0; } + .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 65px; } + .faq-grid article { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; border-radius: 0; box-shadow: none; background: transparent; } + .faq-grid h3 { font: 400 23px/1.25 Georgia,serif; letter-spacing: -.02em; margin-bottom: 14px; } + .faq-grid p { color: var(--muted); font-size: 14px; } + .pricing-message { border: 1px solid var(--line); background: #fffdf7; color: var(--ink); padding: 16px 20px; margin-block: 20px; } + /* Shared primitives for public help, legal content and authentication. */ + .eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; } + .lead-text,.muted { color: var(--muted); } + .page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; } + .page-heading h1 { font-size: clamp(2.7rem,5vw,4.5rem); margin-bottom: 20px; } + .button-row,.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; } + .plain-card,.edit-panel { border: 1px solid var(--line); border-radius: 5px; padding: 28px; margin-bottom: 24px; } + .plain-card h2,.list-section h2 { font-size: 32px; margin-bottom: 20px; } + .plain-card h3 { font-size: 25px; margin-bottom: 16px; } + .asset-card-grid,.help-category-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 22px; } + .asset-card-grid .plain-card { margin: 0; } + .list-section { padding-block: 25px; } + .breadcrumb-trail { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); padding-block: 10px; } + .breadcrumb-trail > * + *::before { content: '/'; margin-right: 10px; color: #929584; } + .status-pill { display: inline-block; font-size: 11px; padding: 3px 10px; background: var(--sage); border-radius: 3px; } + .help-markdown-body { max-width: 850px; margin-inline: auto; } + .help-markdown-body h2 { margin-top: 35px; font-size: 32px; } + .help-markdown-body h3 { margin-top: 25px; font-size: 25px; } + .help-markdown-body img { max-width: 100%; } + .help-markdown-body pre,.help-markdown-body table { max-width: 100%; overflow-x: auto; display: block; } + .help-markdown-body a,.public-policy a { overflow-wrap: anywhere; } + .plotline-help-icon { display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fffdf7; color: var(--muted); font: 11px/1 system-ui,sans-serif; width: 20px; height: 20px; vertical-align: middle; } + .auth-field-stack { display: grid; gap: 20px; } + .auth-actions { margin-top: 24px; } + .auth-help { margin-top: 20px; font-size: 13px; } + .form-check { display: flex; align-items: center; gap: 8px; } + .form-check-input { float: none; margin-top: 0; } + .public-auth-main .trial-status-panel { padding: 24px; margin-bottom: 28px; background: var(--sage); border: 1px solid #d4dbc6; border-radius: 5px; } + .public-auth-main .trial-status-panel h2 { font-size: 28px; margin-bottom: 14px; } + .public-auth-main .trial-status-panel p { font-size: 14px; color: var(--muted); } + /* Existing informational pages inherit the public typography and paper. */ + .public-mission { background: var(--sage); padding: 65px 0; } + .public-mission h2 { font-size: clamp(2.2rem,3.8vw,3.8rem); max-width: 900px; } + .public-card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 40px; } + .public-card { border-top: 1px solid var(--line); padding-top: 24px; } + .public-policy { max-width: 850px; } + .public-policy section { margin-bottom: 40px; } + .public-policy h2 { margin-bottom: 22px; } + .public-updated { font-size: 12px; color: var(--muted); } + .public-content-section--soft { background: #f0ede4; } + .public-content-section { background: var(--paper); padding-block: 45px; } + .public-info-page .public-hero h1 { margin-bottom: 20px; } + .public-narrative { max-width: 850px; font-size: 17px; } + .public-content-section h2 { font-size: 36px; } + .public-content-section h3 { font-size: 26px; } + .public-info-page .plain-card,.public-info-page .public-card { background: #fffdf7; border-color: var(--line); color: var(--ink); box-shadow: none; } + main.marketing-shell > :not(article) { max-width: 1168px; margin-inline: auto; } + main.marketing-shell > .page-heading { padding: 60px 0 20px; } + main.marketing-shell > .breadcrumb-trail { margin-top: 25px; } + .plain-card,.edit-panel { background: #fffdf7; border-color: var(--line); box-shadow: none; } + .btn-primary { background: var(--ink); border-color: var(--ink); color: #fffdf7; } + .btn-primary:hover { background: #444a39; border-color: #444a39; } + .btn-outline-primary,.btn-outline-secondary { color: var(--ink); border-color: #a6aa99; } + .btn-outline-primary:hover,.btn-outline-secondary:hover { background: #e5e9db; border-color: #808b6b; color: var(--ink); } + .form-control,.form-select { background-color: #fffefb; color: var(--ink); border-color: #c5c8b8; } + .form-control:focus,.form-select:focus { border-color: #858e6c; box-shadow: 0 0 0 .2rem #85936830; } + .public-auth-main { width: min(640px,calc(100% - 48px)); min-height: 60vh; margin: 65px auto 85px; } + .public-auth-main h1 { font-size: 54px; font-weight: 400; } + .public-auth-main .page-heading { margin-bottom: 30px; } + .public-auth-main .auth-card { padding: 32px; border: 1px solid var(--line); border-radius: 5px; background: #fffdf7; } + .auth-page-heading,.auth-card { max-width: none; } + .auth-actions { gap: 12px; } + .auth-field-stack { gap: 20px; } + .validation-summary-valid { display: none; } + @media (min-width:1600px) { .writer-hero-grid { gap: 80px; } } + @media (max-width:1100px) { + .marketing-container { width: calc(100% - 64px); } + #publicMenu { margin-left: 35px; } + .public-links,.public-account { gap: 18px; } + .public-account .marketing-btn { padding-inline: 16px; } + .writer-hero-grid { gap: 25px; grid-template-columns: 1fr 1fr; } + .writer-hero h1 { font-size: 5.9vw; } + .writing-desk { height: 570px; margin-right: -10px; } + .manuscript-sheet { inset: 25px 35px 65px 5px; padding: 25px; font-size: 14px; } + .manuscript-running { margin-bottom: 25px !important; } + .desk-note { top: 170px; right: -15px; width: 155px; padding: 24px 18px; } + .desk-note p { font-size: 21px; } + .desk-answer { left: 40px; right: 0; bottom: 0; } + .desk-pencil { left: 0; } + .editorial-split,.problem-demonstration { gap: 45px; } + .import-grid { gap: 60px; } + .pricing-card-grid { grid-template-columns: 1fr 1fr; gap: 22px; } + .pricing-card__heading p { min-height: 0; } + main.marketing-shell > :not(article) { max-width: calc(100% - 64px); } + } + @media (max-width:767px) { + .marketing-container { width: calc(100% - 40px); } + .public-nav { min-height: 78px; padding: 14px 0; } + .public-wordmark { font-size: 25px; } + #publicMenu { margin-left: 0; flex-basis: 100%; } + .public-links { flex-direction: column; align-items: stretch; gap: 0; padding-top: 20px; } + .public-links a { padding: 10px 0; border-bottom: 1px solid var(--line); } + .public-account { justify-content: space-between; margin-block: 18px 8px; } + .writer-hero { padding: 45px 0 55px; } + .writer-hero-grid { grid-template-columns: 1fr; gap: 45px; } + .writer-hero h1 { font-size: clamp(3.55rem,10.9vw,5.2rem); } + .writer-hero h1 br:nth-of-type(2) { display: none; } + .writer-hero .marketing-lead { max-width: 500px; } + .writer-hero .marketing-actions { gap: 20px; } + .writing-desk { max-width: 490px; width: calc(100% - 10px); height: 565px; margin: 0 auto 25px; } + .manuscript-sheet { inset: 25px 40px 60px 20px; padding: 28px; font-size: 15px; } + .desk-note { right: -4px; top: 155px; width: 150px; } + .desk-answer { bottom: 0; left: 45px; right: 4px; padding: 20px; } + .desk-answer strong { font-size: 23px; } + .desk-pencil { left: 13px; } + .desk-caption { right: 20px; bottom: -38px; font-size: 13px; } + .desk-rule { left: 40px; } + .writer-problems { padding: 60px 0 40px; } + .question-scatter { padding: 25px 0; gap: 12px; } + .question-scatter p { font-size: 16px; padding: 10px 14px; } + .editorial-section,.tour-stop { padding: 65px 0; } + .editorial-split,.editorial-split--reverse,.problem-demonstration,.problem-demonstration--reverse,.import-grid,.application-reveal .editorial-split { grid-template-columns: 1fr; gap: 35px; } + .editorial-split--reverse > div,.problem-demonstration--reverse > figure { order: initial; } + .editorial-split h2 { margin-bottom: 22px; } + .product-print { padding: 5px; } + .product-print figcaption { padding: 8px 4px 4px; font-size: 9px; } + .product-print figcaption .hand-note { font-size: 15px; } + .product-print--tilt { transform: rotate(.6deg); } + .bring-manuscript { padding: 55px 0; } + .import-grid { gap: 40px; } + .import-pages { height: 235px; } + .import-pages > div { padding: 20px 30px; width: 190px; } + .import-arrow { right: 20px; font-size: 75px; } + .writing-heading { margin-bottom: 30px; text-align: left; } + .writing-heading > p:not(.marketing-eyebrow) { margin-left: 0; } + .problem-demonstration { margin-top: 40px; } + .problem-demonstration > figure { order: 2; } + .small-problems { grid-template-columns: 1fr; gap: 35px; margin-top: 50px; } + .small-problems > a { padding-right: 0; } + .small-problems h3 { font-size: 28px; } + .power-copy { margin-top: 50px; } + .large-product { margin-top: 25px; } + .writer-philosophy { padding: 60px 0; } + .writer-philosophy h2 { font-size: 4rem; } + .final-cta { padding: 65px 0; } + .public-footer { padding-top: 35px; } + .public-footer-top { flex-direction: column; gap: 25px; } + .public-footer-top p { font-size: 18px; } + .public-footer__nav { gap: 15px 23px; } + .tour-hero { padding: 45px 0; } + .tour-hero h1 { font-size: clamp(3.6rem,11vw,5rem); } + .tour-hero-bottom { flex-direction: column; gap: 20px; align-items: flex-start; } + .tour-jump > div { width: 100%; padding-inline: 20px; gap: 24px; } + .tour-jump span { display: none; } + .tour-stop-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 25px; } + .tour-stop-heading > .section-number { margin-bottom: 0; } + .tour-stop-heading > p { margin: 0; } + .tour-capabilities { flex-direction: column; gap: 12px; padding-top: 20px; } + .writer-philosophy--compact h2 { font-size: 3rem; } + .pricing-hero,.public-hero { padding: 45px 0; } + .pricing-hero h1,.public-hero h1 { font-size: clamp(2.9rem,9vw,4.2rem); } + .pricing-plans { padding-top: 10px; } + .comparison-grid,.faq-grid { grid-template-columns: 1fr; gap: 20px; } + .pricing-compare,.pricing-faq { padding: 50px 0; } + main.marketing-shell > :not(article) { max-width: calc(100% - 40px); } + .public-auth-main { margin-block: 40px 60px; } + .public-auth-main .auth-card { padding: 24px; } + .public-auth-main h1 { font-size: 44px; } + .public-auth-main .auth-actions { flex-direction: column; align-items: stretch; } + .page-heading { flex-direction: column; } + .plain-card,.edit-panel { padding: 22px; } + } + @media (max-width:480px) { + .pricing-card-grid { grid-template-columns: 1fr; } + .writer-hero .marketing-actions { align-items: flex-start; flex-direction: column; gap: 16px; } + .manuscript-sheet { padding: 24px; font-size: 13px; } + .manuscript-running { font-size: 7px; } + .manuscript-sheet h2 { font-size: 26px; } + .writing-desk { height: 520px; } + .desk-note { top: 166px; width: 133px; padding: 20px 14px; } + .desk-note p { font-size: 19px; } + .desk-note .hand-note { font-size: 12px; } + .desk-answer { left: 32px; padding: 17px 14px; gap: 10px; } + .desk-answer strong { font-size: 21px; } + .manuscript-sheet > .hand-note { font-size: 15px; bottom: 24px; left: 24px; } + } + @media (prefers-reduced-motion: reduce) { + scroll-behavior: auto; + *,*::before,*::after { animation: none !important; transition: none !important; } + } +} +/* Standalone authentication uses the application's semantic palette, without an application shell. */ +html[data-app-theme] .public-auth { background: var(--pd-workspace); color: var(--pd-text); } +html[data-app-theme] .public-auth .public-header { background: var(--pd-chrome); padding: 20px; border-bottom: 1px solid var(--pd-border); } +html[data-app-theme] .public-auth .public-nav > div { width: 100%; display: flex; justify-content: space-between; } +html[data-app-theme] .public-auth .public-wordmark { color: var(--pd-heading); font: bold 26px Georgia,serif; text-decoration: none; } +html[data-app-theme] .public-auth .public-logo-mark,html[data-app-theme] .public-auth .public-links,html[data-app-theme] .public-auth .public-account,html[data-app-theme] .public-auth .navbar-toggler,html[data-app-theme] .public-auth .public-footer { display: none; } +html[data-app-theme] .public-auth .public-auth-main { width: min(640px,calc(100% - 40px)); margin: 55px auto; } +html[data-app-theme] .public-auth .auth-card { background: var(--pd-surface); border: 1px solid var(--pd-border); padding: 28px; } +html[data-app-theme] .public-auth .public-skip { position: absolute; left: -9999px; } +html[data-app-theme] .public-auth .public-skip:focus { left: 20px; } diff --git a/PlotLine/wwwroot/images/public/calendar.jpg b/PlotLine/wwwroot/images/public/calendar.jpg new file mode 100644 index 00000000..91193cc2 Binary files /dev/null and b/PlotLine/wwwroot/images/public/calendar.jpg differ diff --git a/PlotLine/wwwroot/images/public/characters.jpg b/PlotLine/wwwroot/images/public/characters.jpg new file mode 100644 index 00000000..7112fc8b Binary files /dev/null and b/PlotLine/wwwroot/images/public/characters.jpg differ diff --git a/PlotLine/wwwroot/images/public/continuity.jpg b/PlotLine/wwwroot/images/public/continuity.jpg new file mode 100644 index 00000000..8c4c2469 Binary files /dev/null and b/PlotLine/wwwroot/images/public/continuity.jpg differ diff --git a/PlotLine/wwwroot/images/public/import.jpg b/PlotLine/wwwroot/images/public/import.jpg new file mode 100644 index 00000000..0f04852c Binary files /dev/null and b/PlotLine/wwwroot/images/public/import.jpg differ diff --git a/PlotLine/wwwroot/images/public/insights.jpg b/PlotLine/wwwroot/images/public/insights.jpg new file mode 100644 index 00000000..7ffe1f8b Binary files /dev/null and b/PlotLine/wwwroot/images/public/insights.jpg differ diff --git a/PlotLine/wwwroot/images/public/knowledge.jpg b/PlotLine/wwwroot/images/public/knowledge.jpg new file mode 100644 index 00000000..7bfc8115 Binary files /dev/null and b/PlotLine/wwwroot/images/public/knowledge.jpg differ diff --git a/PlotLine/wwwroot/images/public/plot-lines.jpg b/PlotLine/wwwroot/images/public/plot-lines.jpg new file mode 100644 index 00000000..3eefcae4 Binary files /dev/null and b/PlotLine/wwwroot/images/public/plot-lines.jpg differ diff --git a/PlotLine/wwwroot/images/public/plotdirector-social.png b/PlotLine/wwwroot/images/public/plotdirector-social.png new file mode 100644 index 00000000..894fdb44 Binary files /dev/null and b/PlotLine/wwwroot/images/public/plotdirector-social.png differ diff --git a/PlotLine/wwwroot/images/public/scene.jpg b/PlotLine/wwwroot/images/public/scene.jpg new file mode 100644 index 00000000..933f9e4a Binary files /dev/null and b/PlotLine/wwwroot/images/public/scene.jpg differ diff --git a/PlotLine/wwwroot/images/public/workspace.jpg b/PlotLine/wwwroot/images/public/workspace.jpg new file mode 100644 index 00000000..e25990d3 Binary files /dev/null and b/PlotLine/wwwroot/images/public/workspace.jpg differ diff --git a/PlotLine/wwwroot/images/public/writing.jpg b/PlotLine/wwwroot/images/public/writing.jpg new file mode 100644 index 00000000..1c662fef Binary files /dev/null and b/PlotLine/wwwroot/images/public/writing.jpg differ diff --git a/PlotLine/wwwroot/js/application-shell.js b/PlotLine/wwwroot/js/application-shell.js index 9d54a40d..caaeeaf6 100644 --- a/PlotLine/wwwroot/js/application-shell.js +++ b/PlotLine/wwwroot/js/application-shell.js @@ -11,6 +11,8 @@ let theme = appearance.theme, busy = false; function applyTheme(value) { theme = value; + // Non-sensitive device preference keeps installed reauthentication visually continuous. + try { localStorage.setItem("plotdirector.applicationTheme", value); } catch { } document.documentElement.dataset.appTheme = value; document.documentElement.dataset.theme = value.endsWith('-dark') ? 'dark' : 'light'; document.documentElement.dataset.bsTheme = document.documentElement.dataset.theme; diff --git a/PlotLine/wwwroot/js/public-auth-theme.js b/PlotLine/wwwroot/js/public-auth-theme.js new file mode 100644 index 00000000..d63377ee --- /dev/null +++ b/PlotLine/wwwroot/js/public-auth-theme.js @@ -0,0 +1,29 @@ +// Only authentication may adopt the application palette, and only in an installed window. +(() => { + const root = document.documentElement; + const themes = ['warm-light', 'warm-dark', 'modern-light', 'modern-dark', 'rose-pink', 'baby-blue']; + const apply = () => { + const legacyStyles = document.getElementById("public-auth-base"); + if (legacyStyles) legacyStyles.media = window.PlotDirectorPwa?.standalone ? "all" : "not all"; + if (!window.PlotDirectorPwa?.standalone) { + delete root.dataset.appTheme; + root.dataset.siteTheme = 'public'; + root.dataset.theme = root.dataset.bsTheme = 'light'; + } else { + let cached = null, legacy = null; + try { + cached = localStorage.getItem('plotdirector.applicationTheme'); + legacy = localStorage.getItem('plotline.theme'); + } catch { } + const preferred = window.plotdirectorAuthTheme || cached; + const theme = themes.includes(preferred) ? preferred : legacy === 'dark' ? 'warm-dark' : 'warm-light'; + delete root.dataset.siteTheme; + root.dataset.appTheme = theme; + root.dataset.theme = root.dataset.bsTheme = theme.endsWith('-dark') ? 'dark' : 'light'; + } + document.querySelector('meta[name="theme-color"]')?.setAttribute('content', root.dataset.theme === 'dark' ? '#231e19' : '#f8f5ee'); + }; + apply(); + window.addEventListener('plotdirector:pwa-mode-changed', apply); + window.addEventListener('pageshow', apply); +})(); diff --git a/PlotLine/wwwroot/js/site.js b/PlotLine/wwwroot/js/site.js index 91abb356..b4cc4734 100644 --- a/PlotLine/wwwroot/js/site.js +++ b/PlotLine/wwwroot/js/site.js @@ -1,4 +1,4 @@ -(() => {if(document.documentElement.dataset.appTheme)return; +(() => {if(document.documentElement.dataset.appTheme || document.documentElement.dataset.siteTheme)return; const storageKey = "plotline.theme"; const choices = document.querySelectorAll("[data-theme-choice]"); @@ -295,6 +295,8 @@ moreLink.textContent = "More..."; moreLink.className = "plotline-help-more"; moreLink.addEventListener("click", (event) => { + // Public pages use full help articles rather than the application drawer. + if (!window.PlotLineHelpDrawer && icon.dataset.helpUrl) return; event.preventDefault(); hideActivePopover(); hideAllHelpTooltips(); diff --git a/PlotLine/wwwroot/og-image.png b/PlotLine/wwwroot/og-image.png index 82493a6b..894fdb44 100644 Binary files a/PlotLine/wwwroot/og-image.png and b/PlotLine/wwwroot/og-image.png differ