/* === Gentle Sort public site ===
   Quiet small-business look: white page, one sober serif for headings, a plain sans for text,
   hairline rules between sections, left-aligned text, square-ish buttons, no decoration.
   Loaded after landing.css; everything new is under .s-* so the app pages are untouched. */
body.landing {
  --s-ink: #1E2621;
  --s-text: #2C342F;
  --s-muted: #5E6862;
  --s-line: #E2E4DF;
  --s-soft: #F5F5F1;
  --s-green: #2F5A47;
  --s-green-dark: #234536;
  --s-head: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --s-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--s-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--s-text);
  background: #fff;
}
body.landing h1, body.landing h2, body.landing h3, body.landing h4 {
  font-family: var(--s-head); font-weight: 600; color: var(--s-ink); letter-spacing: -0.005em;
  text-wrap: balance; margin: 0;
}
body.landing p { margin: 0; }
body.landing a { color: var(--s-green); }
body.landing a:focus-visible { outline: 2px solid var(--s-green); outline-offset: 3px; }

/* Nav: white bar, plain wordmark */
body.landing .landing-nav { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--s-line); padding: 0.7rem 0; }
body.landing .landing-nav.scrolled { box-shadow: none; }
body.landing .landing-nav .container { max-width: 1080px; padding: 0 24px; }
body.landing .landing-brand .brand-icon { width: 34px; height: 34px; }
body.landing .landing-brand .brand-icon svg { width: 34px; height: 34px; }
body.landing .brand-divider, body.landing .landing-brand .app-brand-tagline { display: none; }
body.landing .landing-brand .app-brand-name { font: 600 1.2rem var(--s-head); letter-spacing: 0; text-transform: none; color: var(--s-ink); }
body.landing .landing-brand .brand-accent { color: inherit; }
body.landing .nav-links { gap: 0.2rem; }
body.landing .nav-links a { font-family: var(--s-body); font-size: 0.95rem; border-radius: 4px; padding: 0.45rem 0.8rem; color: var(--s-text); }
body.landing .nav-link-text:hover { background: var(--s-soft); color: var(--s-ink); }
body.landing .nav-link-primary { background: var(--s-green); color: #fff !important; margin-left: 0.4rem; }
body.landing .nav-link-primary:hover { background: var(--s-green-dark); transform: none; box-shadow: none; }
body.landing .nav-dropdown-menu { border-radius: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); border-color: var(--s-line); }
body.landing .nav-dropdown-menu a { border-radius: 0; }
body.landing .nav-dropdown-menu a i { display: none; }

/* Footer */
body.landing .landing-footer { background: #fff; border-top: 1px solid var(--s-line); text-align: left; padding: 2rem 0 2.5rem; }
.s-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-size: 0.92rem; color: var(--s-muted); }
.s-foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
body.landing .landing-footer .s-foot a { margin: 0; color: var(--s-text); font-size: 0.92rem; }
body.landing .landing-footer .s-foot a:hover { color: var(--s-green); }

/* Layout */
.s-wrap { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
.s-narrow { max-width: 42rem; }
.s-sec { padding-block: 4.5rem; border-top: 1px solid var(--s-line); }
.s-soft { background: var(--s-soft); border-top-color: transparent; }
.s-sec h2 { font-size: clamp(1.6rem, 3vw, 2.05rem); line-height: 1.2; margin-bottom: 1rem; }
.s-sec h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 0.35rem; }
.s-sec p + p { margin-top: 1rem; }
.s-intro { max-width: 42rem; margin-bottom: 2.5rem; }
.s-muted { color: var(--s-muted); }
.s-small { font-size: 0.92rem; }

/* Buttons and links */
.s-btn { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 4px; background: var(--s-green); color: #fff !important; font-weight: 600; text-decoration: none; line-height: 1.3; }
.s-btn:hover { background: var(--s-green-dark); }
.s-btn-line { background: #fff; color: var(--s-green) !important; box-shadow: inset 0 0 0 1px var(--s-green); }
.s-btn-line:hover { background: var(--s-soft); }
.s-more { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; margin-top: 1.8rem; }

/* Hero */
.s-hero { padding: 8.5rem 0 4.5rem; }
.s-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 3.5rem; align-items: start; }
.s-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.3rem); line-height: 1.1; }
.s-lede { font-size: 1.2rem; line-height: 1.55; margin-top: 1.3rem !important; max-width: 32em; }
.s-hero .s-note { margin-top: 1rem !important; font-size: 0.92rem; color: var(--s-muted); }

/* Sample list (a plain table-like list) */
.s-sample { margin: 0; border: 1px solid var(--s-line); border-radius: 6px; background: #fff; }
.s-sample-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 1rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--s-line); }
.s-sample-head b { font: 600 1.05rem var(--s-head); color: var(--s-ink); }
.s-sample-head span { font-size: 0.85rem; color: var(--s-muted); }
.s-sample ul { list-style: none; margin: 0; padding: 0; }
.s-sample li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 0.85rem; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid var(--s-line); }
.s-sample img { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; display: block; }
.s-sample-item { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.s-sample-item b { font-weight: 600; color: var(--s-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-sample-item small { font-size: 0.82rem; color: var(--s-muted); font-variant-numeric: tabular-nums; }
.s-who { font-size: 0.88rem; color: var(--s-ink); white-space: nowrap; }
.s-who.s-two { font-weight: 600; color: #7A4A22; }
.s-who.s-none { color: var(--s-muted); font-style: italic; }
.s-sample figcaption { padding: 0.75rem 1rem; font-size: 0.88rem; color: var(--s-muted); }

/* Two-column text + picture */
.s-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3.5rem; align-items: center; }
.s-split.s-flip > :first-child { order: 2; }
.s-split.s-wide-pic { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.s-pic { margin: 0; }
.s-pic img { display: block; width: 100%; height: auto; border-radius: 4px; }
.s-pic figcaption { font-size: 0.85rem; color: var(--s-muted); margin-top: 0.5rem; }
.s-shot img { border: 1px solid var(--s-line); }
.s-phone { max-width: 280px; justify-self: center; }
.s-doc img { border: 1px solid var(--s-line); box-shadow: 0 1px 0 var(--s-line); -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }

/* Plain lists */
.s-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 3rem; }
.s-points.s-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-points li { border-top: 1px solid var(--s-ink); padding-top: 0.9rem; }
.s-points p { color: var(--s-text); }
.s-bullets { margin: 1.2rem 0 0; padding-left: 1.2rem; }
.s-bullets li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.s-bullets li::marker { color: var(--s-muted); }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; counter-reset: s; }
.s-steps li { counter-increment: s; }
.s-steps h3::before { content: counter(s) ". "; color: var(--s-muted); }

/* Screenshots row */
.s-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.s-shots figure { margin: 0; }
.s-shots img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; border: 1px solid var(--s-line); border-radius: 4px; }
.s-shots figcaption { margin-top: 0.8rem; font-size: 0.95rem; line-height: 1.5; color: var(--s-muted); }
.s-shots figcaption b { color: var(--s-ink); }

/* Comparison table */
.s-table-wrap { overflow-x: auto; margin-top: 2.5rem; }
.s-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.95rem; }
.s-table caption { caption-side: top; text-align: left; font: 600 1.15rem var(--s-head); color: var(--s-ink); padding-bottom: 0.8rem; }
.s-table th, .s-table td { text-align: left; vertical-align: top; padding: 0.65rem 0.9rem 0.65rem 0; border-bottom: 1px solid var(--s-line); }
.s-table thead th { font-size: 0.85rem; font-weight: 600; color: var(--s-muted); border-bottom-color: var(--s-ink); }
.s-table tbody th { font-weight: 400; color: var(--s-text); width: 36%; }
.s-table td { color: var(--s-muted); }
.s-table .s-us { color: var(--s-ink); font-weight: 600; }
.s-table td.s-us, .s-table th.s-us { padding-left: 0.9rem; background: var(--s-soft); }
.s-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2.2rem; margin-top: 2rem; color: var(--s-muted); font-size: 0.95rem; }
.s-facts b { font: 600 1.3rem var(--s-head); color: var(--s-ink); font-variant-numeric: tabular-nums; margin-right: 0.25rem; }

/* What's included: a link list */
.s-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.s-index li { border-top: 1px solid var(--s-line); padding-block: 1rem; }
.s-index a { font-weight: 600; text-decoration: none; }
.s-index a:hover { text-decoration: underline; text-underline-offset: 3px; }
.s-index p { color: var(--s-muted); font-size: 0.95rem; margin-top: 0.15rem !important; }

/* Pricing */
.s-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.s-price { border-top: 1px solid var(--s-ink); padding-top: 1rem; display: flex; flex-direction: column; }
.s-price.s-main { border-top-width: 3px; padding-top: calc(1rem - 2px); }
.s-price h3 { font-size: 1.15rem; }
.s-amt { font: 600 2rem/1.2 var(--s-head); color: var(--s-ink); margin-top: 0.4rem !important; font-variant-numeric: tabular-nums; }
.s-per { font-size: 0.9rem; color: var(--s-muted); }
.s-price ul { margin: 1rem 0 1.4rem; padding-left: 1.1rem; font-size: 0.95rem; flex: 1; }
.s-price li { margin-bottom: 0.35rem; }
.s-price .s-btn { align-self: flex-start; }

/* Quote */
.s-quote { font: 400 clamp(1.25rem, 2.4vw, 1.6rem)/1.45 var(--s-head); color: var(--s-ink); }
.s-quote-by { margin-top: 1rem !important; color: var(--s-muted); font-size: 0.95rem; }

/* Feature pages */
.s-pagehead { padding: 7.5rem 0 2.5rem; }
.s-crumb { font-size: 0.9rem; color: var(--s-muted); margin-bottom: 0.8rem !important; }
.s-crumb a { color: var(--s-muted); }
.s-pagehead h1 { font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.15; }
.s-pagehead .s-lede { max-width: 38em; }
.s-subnav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--s-line); font-size: 0.95rem; }
.s-subnav a { color: var(--s-text); text-decoration: none; padding-bottom: 0.2rem; }
.s-subnav a:hover { color: var(--s-green); }
.s-subnav a[aria-current="page"] { color: var(--s-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--s-green); }
.s-next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.s-next p { color: var(--s-muted); }
.s-next b { display: block; font: 600 1.25rem var(--s-head); color: var(--s-ink); }

@media (max-width: 900px) {
  .s-hero-grid, .s-split, .s-split.s-wide-pic { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .s-split.s-flip > :first-child { order: 0; }
  .s-points, .s-points.s-three, .s-steps, .s-shots, .s-index { grid-template-columns: minmax(0, 1fr); }
  .s-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-hero { padding-top: 6.5rem; }
  .s-pagehead { padding-top: 6rem; }
}
@media (max-width: 560px) {
  body.landing { font-size: 17px; }
  .s-prices { grid-template-columns: minmax(0, 1fr); }
  .s-sec { padding-block: 3.2rem; }
  .s-sample li { grid-template-columns: 44px minmax(0, 1fr); }
  .s-sample img { width: 44px; height: 44px; }
  .s-who { grid-column: 2; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* === Colour, taken from the family's china: tureen green, painted-rose red, gilt, celadon === */
body.landing {
  --s-green: #2F5A47; --s-green-dark: #234536; --s-deep: #1F3A2E;
  --s-celadon: #E1ECE0; --s-rose: #A3423C; --s-blush: #F7E9E3; --s-gold: #B08A3E; --s-cream: #FBF6EC;
  --s-soft: var(--s-blush);
}
.s-hero, .s-pagehead { background: var(--s-celadon); }
.s-pagehead .s-subnav { border-top-color: rgba(31, 58, 46, 0.18); }
.s-soft { background: var(--s-blush); }
.s-celadon { background: var(--s-celadon); border-top-color: transparent; }
.s-deep { background: var(--s-deep); border-top-color: transparent; color: #EDE7D9; }
body.landing .s-deep h2, body.landing .s-deep h3 { color: #fff; }
.s-deep .s-muted, .s-deep figcaption { color: #C9D3CB !important; }
.s-deep .s-shots figcaption b { color: #fff; }
.s-deep .s-shots img { border-color: rgba(255, 255, 255, 0.15); }
.s-deep a { color: #F1D9A0; }
.s-who.s-two { color: var(--s-rose); }
.s-steps h3::before { color: var(--s-rose); }
.s-points li { border-top-color: var(--s-gold); border-top-width: 2px; }
.s-price { border-top-color: var(--s-green); }
.s-price.s-main { border-top-color: var(--s-rose); }
.s-index li { border-top-color: rgba(176, 138, 62, 0.45); }
.s-crumb a, .s-crumb { color: var(--s-green) !important; }
body.landing .landing-footer { background: var(--s-deep); border-top: 0; }
body.landing .landing-footer .s-foot, body.landing .landing-footer .s-foot a { color: #E4DED0; }
body.landing .landing-footer .s-foot a:hover { color: #F1D9A0; }

/* The letter */
.s-letter-sec { background: var(--s-cream); border-top: 0; }
.s-letter { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 4rem; align-items: start; }
.s-letter-text { max-width: 36rem; font: 400 1.18rem/1.7 var(--s-head); color: var(--s-ink); }
.s-letter-text p + p { margin-top: 1.1rem; }
.s-letter-text h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 1.4rem; }
.s-sign { margin-top: 1.6rem !important; font-style: italic; color: var(--s-rose); }
.s-letter .s-pic img { border-radius: 2px; box-shadow: 0 0 0 8px #fff, 0 10px 30px rgba(60, 40, 20, 0.14); }
.s-letter .s-pic { margin-top: 0.6rem; transform: rotate(1.2deg); }
.s-letter .s-pic figcaption { transform: rotate(-1.2deg); margin-top: 1.1rem; font-style: italic; font-family: var(--s-head); }
.s-letter .s-pic + .s-pic { margin-top: 2.6rem; transform: rotate(-1.5deg); }
.s-letter .s-pic + .s-pic + .s-pic { transform: rotate(0.8deg); }
.s-close { background: var(--s-blush); border-top: 0; }
@media (max-width: 900px) { .s-letter { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } .s-letter .s-pic { max-width: 26rem; } }
body.landing .landing-footer p { color: #E4DED0; margin: 0; }
.s-signature { margin-top: 1.8rem; color: var(--s-deep); }
.s-signature svg { display: block; transform: rotate(-3deg); }
.s-signature .s-sign { margin-top: 0.3rem !important; }
.s-hand { font: 400 2rem/1.4 'Parisienne', 'Brush Script MT', cursive; color: var(--s-deep); transform: rotate(-2deg); transform-origin: left center; display: flex; align-items: center; gap: 0.6rem; }
.s-heart { color: var(--s-rose); flex: none; transform: rotate(8deg); }

/* Origin story: collapsible */
.s-more-story summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; font: 600 1rem var(--s-body); color: var(--s-green); padding: 0.35rem 0; }
.s-more-story summary::-webkit-details-marker { display: none; }
.s-more-story summary::after { content: ""; width: 0.5em; height: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
.s-more-story[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.s-more-story summary:hover { color: var(--s-green-dark); text-decoration: underline; }
.s-more-story summary:focus-visible { outline: 2px solid var(--s-green); outline-offset: 3px; border-radius: 2px; }
.s-more-story[open] summary { margin-bottom: 0.8rem; }
.s-letter:has(.s-more-story:not([open])) .s-pic + .s-pic { display: none; }
