/* KeepNeat: shared product, policy and support styles. System type and slate/cobalt palette. */
:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --surface: #e7eef8;
  --ink: #19283c;
  --muted: #475971;
  --accent: #174fc4;
  --on-accent: #ffffff;
  --focus: #1759d0;
  --line: #c9d5e5;
  --page-width: 80rem;
  --demo-surface: #ffffff;
  --deep: #19283c;
  --paper: #f4f7fb;
  --deep-muted: #475971;
  --hero-bg: #174fc4;
  --hero-ink: #ffffff;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111b29;
    --surface: #1c2b40;
    --ink: #edf3fb;
    --muted: #bdcbdf;
    --accent: #a9c8ff;
    --on-accent: #10213d;
    --focus: #b6d0ff;
    --line: #33465f;
    --demo-surface: #18263a;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
p, ul { margin: 0 0 1rem; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 650; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.625rem, 5.3vw, 4.75rem); }
h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 3.3vw, 3rem); }
h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; letter-spacing: -.02em; }
.wrap { width: min(var(--page-width), calc(100% - 4rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.7rem; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.5rem; font-weight: 700; letter-spacing: -.04em; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
nav a { display: inline-block; color: var(--ink); font-size: 1rem; padding-block: .6rem; }
nav a[aria-current="page"] { text-decoration-thickness: .15em; font-weight: 650; }
.skip-link { position: absolute; top: -6rem; left: 1rem; background: var(--bg); padding: .75rem 1rem; z-index: 1; }
.skip-link:focus { top: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.5rem; background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none; border-radius: .5rem; }
.button:hover { text-decoration: underline; }
.button:active { opacity: .8; }
/* Product story: large readable examples, never screenshots of a customer’s Mac. */
.lede { max-width: 35rem; font-size: 1.25rem; line-height: 1.55; }
.hero-field { --focus: #ffffff; background: var(--hero-bg); color: var(--hero-ink); }
.story-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.75rem 3rem; align-items: center; padding-block: 3rem 2rem; }
.story-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: 1.03; letter-spacing: -.05em; }
.story-hero .lede { margin: 2rem 0; font-size: 1.25rem; max-width: 34rem; line-height: 1.5; }
.hero-requirements { color: var(--hero-ink); font-size: .95rem; margin: 1.5rem 0 0; }
.hero-actions { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.story-hero-copy .button { background: var(--paper); color: var(--deep); }
.hero-pip { margin: 0; flex: 0 0 9.5rem; text-align: center; }
.pip-pair { height: 11.2rem; display: grid; place-items: center; }
.pip-pair img { width: 100%; height: 100%; object-fit: contain; }
.pip-finished { display: none; }
.hero-field[data-demo-complete] .pip-ready { display: none; }
.hero-field[data-demo-complete] .pip-finished { display: block; }
.hero-pip figcaption { margin-top: .5rem; font-size: .8125rem; }
.release-note { grid-column: 1 / -1; margin: 0; padding-top: .5rem; font-size: .95rem; }
.release-note a { color: inherit; }
.update-demo { --focus: #1759d0; --ink: #19283c; --muted: #475971; --accent: #174fc4; --on-accent: #ffffff; --surface: #e7eef8; --line: #c9d5e5; --demo-surface: #ffffff; min-width: 0; padding: 1.5rem; background: var(--demo-surface); color: var(--ink); border: 1px solid var(--line); border-radius: 1.25rem; }
.demo-topline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }
.demo-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.demo-heading h2 { margin: 0; font-size: 1.75rem; }
.demo-heading > span { padding: .25rem .7rem; border-radius: 1rem; background: var(--surface); font-size: .9rem; font-weight: 600; }
.demo-apps { list-style: none; margin: 0; padding: 0; }
.demo-apps li { display: flex; align-items: center; gap: .9rem; padding-block: .75rem; }
.example-icon { flex: 0 0 3rem; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: .8rem; background: var(--surface); color: var(--accent); }
.example-icon svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.demo-app-copy { min-width: 0; display: grid; gap: .15rem; }
.demo-app-copy strong { font-size: 1rem; font-weight: 600; }
.demo-version { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-app-status { margin-left: auto; font-size: .875rem; min-width: 4.5rem; text-align: right; color: var(--muted); }
.demo-apps li[data-complete] .demo-app-status { color: var(--accent); font-weight: 650; }
.demo-progress { height: .3rem; margin-block: .75rem 1.25rem; border-radius: .3rem; background: var(--surface); overflow: hidden; }
.demo-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out); }
.update-demo[data-stage="1"] .demo-progress span { transform: scaleX(.3333); }
.update-demo[data-stage="2"] .demo-progress span { transform: scaleX(.6667); }
.update-demo[data-stage="3"] .demo-progress span { transform: scaleX(1); }
.demo-controls { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.demo-controls .button { border: 0; min-width: 9rem; }
.text-button { border: 0; padding: .7rem .2rem; color: var(--accent); background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.demo-controls [aria-disabled="true"] { opacity: .7; cursor: wait; }
.demo-status { margin: 1.25rem 0 .75rem; font-weight: 600; min-height: 3.2em; font-size: 1rem; }
.demo-disclaimer { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.story-features { padding-block: 4rem 6rem; }
.update-story { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding-block: 1rem 5rem; }
.update-story h2 { max-width: 11ch; }
.update-story > div { max-width: 37rem; }
.story-lead { font-size: 1.25rem; line-height: 1.5; margin-bottom: 1.5rem; }
.cleanup-story { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: center; padding-block: 1rem; }
.story-copy { max-width: 35rem; }
.recovery-demo { min-width: 0; padding: 2rem; background: var(--surface); border-radius: 1rem; }
.illustration-label { font-size: .875rem; color: var(--muted); margin-bottom: 1.5rem; }
.recovery-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.recovery-title h3 { font-size: 1.35rem; margin: 0; }
.recovery-symbol { color: var(--accent); font-size: 2rem; line-height: 1; }
.example-file { display: flex; align-items: center; gap: 1rem; padding-block: 1.75rem; }
.file-symbol { width: 2.5rem; height: 3rem; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.example-file > div { min-width: 0; display: grid; gap: .2rem; overflow-wrap: anywhere; }
.example-file strong { font-size: 1rem; }
.example-file span { font-size: .9rem; color: var(--muted); }
.recovery-options { background: var(--demo-surface); padding: 1rem 1.2rem; border-radius: .75rem; }
summary { cursor: pointer; font-weight: 650; min-height: 1.75rem; }
summary::marker { color: var(--accent); }
.recovery-options p { margin-top: 1rem; font-size: 1rem; }
.recovery-options p:last-child { margin-bottom: 0; }
.recovery-limits { grid-column: 1 / -1; padding: 1.25rem 1.5rem; background: var(--surface); border-radius: .75rem; }
.details-body { margin-top: 1rem; max-width: 60rem; }
.details-body p:last-child { margin-bottom: 0; }
.activity-story { background: var(--deep); color: var(--paper); padding-block: 5rem; }
.activity-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.activity-story h2 { max-width: 13ch; }
.activity-example { background: var(--paper); color: var(--deep); padding: 2rem; border-radius: 1.25rem; }
.activity-example .illustration-label, .activity-example .example-footnote { color: var(--deep-muted); }
.activity-example h3 { font-size: 1.6rem; margin: 0 0 1.5rem; }
.activity-example dl { margin: 0; }
.activity-example dl div { margin-bottom: 1.25rem; }
.activity-example dt { font-size: .9rem; color: var(--deep-muted); margin-bottom: .3rem; }
.activity-example dd { margin: 0; font-size: 1.125rem; }
.example-footnote { font-size: .875rem; margin: 1.5rem 0 0; }
.native-view { grid-column: 1 / -1; min-width: 0; background: var(--surface); border-radius: .75rem; padding: 1.25rem 1.5rem; }
.native-view summary { min-height: 2rem; }
.native-view figure { margin: 0; }
.native-view .view-hint { font-size: .9rem; margin: 1rem 0; }
.native-view-frame { overflow: auto; max-height: 36rem; border-radius: .5rem; }
.native-view-frame:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.native-view img { display: block; width: 100%; min-width: 64rem; height: auto; }
.native-view figcaption { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-top: 1rem; }
.activity-story .native-view { --accent: #174fc4; --focus: #1759d0; background: var(--paper); color: var(--deep); }
.activity-story .native-view a { color: var(--hero-bg); }
.activity-story .native-view figcaption { color: var(--deep-muted); }
.privacy-section { padding-block: 6rem; }
.privacy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.privacy-layout > div { max-width: 38rem; }
.statement { font-size: 1.5rem; line-height: 1.45; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.license-section { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding: 4rem; background: var(--surface); border-radius: 1.25rem; margin-bottom: 5rem; }
.license-intro { max-width: 28rem; }
.license-offer { min-width: 0; }
.price { font-size: clamp(6rem, 12vw, 10rem); font-weight: 650; line-height: .9; letter-spacing: -.065em; font-variant-numeric: tabular-nums; margin: 0 0 1rem; white-space: nowrap; }
.currency { font-size: .4em; vertical-align: top; line-height: 1.3; letter-spacing: -.04em; }
.price-period { font-size: 1.1rem; font-weight: 500; letter-spacing: -.015em; margin-left: .8rem; }
.note { color: var(--muted); font-size: .95rem; }
.license-includes { padding: 0; list-style: none; margin-block: 2rem; }
.license-includes li { margin-bottom: 1rem; }
.availability { margin-block: 1.5rem; }
.support-section { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding-block: 0 4rem; }
.support-section a { overflow-wrap: anywhere; }
.support-section h2 { max-width: 14ch; }
.support-section .button { margin-top: .5rem; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 1rem 2.5rem; }
.site-footer p { flex-basis: 100%; color: var(--muted); font-size: .95rem; }
/* Legal and support pages retain a comfortable reading measure. */
.legal { width: min(46rem, calc(100% - 4rem)); padding-block: 3rem 5rem; }
.legal h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.legal h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.legal p, .legal li { font-size: 1.0625rem; }
.legal ul { padding-left: 1.5rem; }
.legal li { margin-bottom: .4rem; }
.legal .note { font-size: 1rem; margin-bottom: 2rem; }
.legal .lede { margin-top: 0; }
.summary-box, .contact { padding: 1.5rem 1.75rem; background: var(--surface); border-radius: .5rem; margin-block: 1.5rem 2rem; }
.summary-box h2 { margin-top: 0; }
.summary-box ul, .contact p:last-child { margin-bottom: 0; }
.contact .button { max-width: 100%; overflow-wrap: anywhere; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; background: var(--surface); padding: .15em .4em; overflow-wrap: anywhere; }
.faq { background: var(--surface); border-radius: .5rem; padding: 1.25rem 1.5rem; margin-block: .65rem; }
.faq summary { padding-block: .15rem; }
.faq p, .faq ul { margin: 1rem 0 0; }
.facts { margin: 2rem 0 0; }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; margin-bottom: .65rem; }
dt { font-weight: 650; }
dd { margin: 0; }
@media (max-width: 1050px) {
  .story-hero, .update-story, .activity-layout, .privacy-layout { column-gap: 2.5rem; }
  .cleanup-story { gap: 2rem; }
  .license-section { padding: 3rem; gap: 3rem; }
  .demo-apps li { gap: .65rem; }
  .example-icon { flex-basis: 2.5rem; width: 2.5rem; height: 2.5rem; }
}
@media (max-width: 820px) {
  .story-hero { grid-template-columns: 1fr; padding-block: 2.5rem; }
  .story-hero h1 { font-size: clamp(2.5rem, 7.5vw, 4rem); }
  .story-hero-copy { max-width: 40rem; }
  .update-demo { width: 100%; max-width: 40rem; margin-inline: auto; }
  .update-story, .cleanup-story, .activity-layout, .privacy-layout, .license-section, .support-section { grid-template-columns: 1fr; gap: 2rem; }
  .update-story { padding-block: 0 4rem; }
  .update-story h2 { max-width: none; margin: 0; }
  .cleanup-story .story-copy, .activity-story .story-copy { max-width: 40rem; }
  .activity-story .story-copy { grid-row: 1; }
  .recovery-demo, .activity-example { width: 100%; max-width: 40rem; }
  .recovery-limits { grid-column: auto; }
  .privacy-layout h2 br { display: none; }
  .privacy-layout h2 { margin: 0; }
  .license-intro { max-width: 38rem; }
  .price { font-size: clamp(6rem, 20vw, 9rem); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { padding-block: 1.2rem; gap: 1rem; }
  nav { gap: .25rem 1rem; }
  .story-features { padding-block: 2rem 4rem; }
  .activity-story { padding-block: 3rem; }
  .native-view { padding: 1.25rem; }
  .native-view-frame { max-height: 28rem; }
  .privacy-section { padding-block: 4rem; }
  .license-section { padding: 2rem; margin-bottom: 4rem; }
  .legal { width: min(46rem, calc(100% - 2.5rem)); padding-block: 2rem 3rem; }
}
@media (max-width: 500px) {
  .site-header { align-items: flex-start; }
  .brand { font-size: 1.3rem; }
  nav { gap: .25rem .85rem; }
  nav a { font-size: .9rem; padding-block: .35rem; }
  h2 { font-size: 2rem; }
  .story-hero h1 { font-size: clamp(2.25rem, 10.1vw, 2.8rem); }
  .story-hero .lede { font-size: 1.125rem; margin-block: 1.5rem; }
  .story-hero { gap: 2rem; }
  .hero-actions { gap: 1rem; }
  .hero-pip { flex-basis: 6.25rem; }
  .pip-pair { height: 7.4rem; }
  .hero-pip figcaption { font-size: .8125rem; }
  .hero-requirements { font-size: .875rem; }
  .update-demo { padding: 1.25rem; }
  .demo-topline { margin-bottom: 1.5rem; }
  .demo-status { min-height: 4.8em; }
  .demo-apps li { gap: .65rem; }
  .demo-app-copy strong { font-size: .95rem; }
  .demo-app-status { font-size: .8125rem; min-width: 3.4rem; }
  .example-icon { flex-basis: 2.25rem; height: 2.25rem; }
  .example-icon svg { width: 1.7rem; height: 1.7rem; }
  .demo-controls { gap: .75rem; }
  .demo-controls .button { padding-inline: 1rem; min-width: 8rem; }
  .text-button { font-size: .9rem; }
  .release-note { padding: 0; }
  .recovery-limits { padding: 1.25rem; }
  .cleanup-story { padding-block: 0; }
  .recovery-demo { padding: 1.25rem; }
  .recovery-title h3 { font-size: 1.2rem; }
  .recovery-options { padding: 1rem; }
  .activity-example { padding: 1.5rem; }
  .story-lead, .statement { font-size: 1.125rem; }
  .license-section { padding: 1.5rem; }
  .price { font-size: clamp(5.5rem, 24vw, 7rem); }
  .price-period { font-size: 1rem; margin-left: .5rem; }
  .summary-box, .contact, .faq { padding: 1.25rem; }
  .contact .button { padding-inline: .8rem; font-size: 1rem; }
  .facts div { grid-template-columns: 1fr; gap: 0; margin-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-progress span { transition: opacity 150ms var(--ease-out); }
}
.update-demo[data-no-motion] .demo-progress span { transition: none; }
@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
  .faq, .recovery-options, .recovery-limits, .contact, .summary-box { border: 1px solid CanvasText; }
  .demo-progress span { background: Highlight; }
}
