/* JCW Solutions: shared styles, following the JCW Solutions brand guidelines v1.0 (Nov 2026).
   Ink, Paper and one Copper accent; Instrument Serif for headlines, Inter for everything else.
   Fonts are served from this site. No external fonts, scripts or trackers. */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* Brand palette (guidelines, page 5) */
  --brand-ink: #111A2B;   --brand-paper: #F5F1E8;  --brand-copper: #C65D3B;
  --brand-mist: #E7E1D4;  --brand-stone: #6B7280;  --brand-sage: #7E9A8C;

  /* Roles: roughly 60% paper, 30% ink, under 10% copper */
  --bg: var(--brand-paper);
  --surface: #FBF9F4;
  --ink: var(--brand-ink);
  --muted: #535B6A;            /* Stone, deepened for AA body contrast on Paper */
  --line: var(--brand-mist);
  --copper: var(--brand-copper);   /* the full stop and other marks */
  --accent: #A84B2E;           /* Copper for small text and links: AA on Paper */
  --accent-ink: var(--brand-paper);
  --accent-soft: #EFE9DD;
  --btn-bg: var(--brand-ink);  --btn-ink: var(--brand-paper);
  --mark-tile: var(--brand-ink); --mark-j: var(--brand-paper);
  --todo-bg: #fff1b8; --todo-ink: #5a4500;
  --radius: 10px;
  --max: 1120px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  /* The guidelines' reversed treatment: Paper on Ink */
  :root:not([data-theme="light"]) {
    --bg: var(--brand-ink);
    --surface: #18233A;
    --ink: var(--brand-paper);
    --muted: #AEB4C0;
    --line: #2A3550;
    --copper: #D46D4B;
    --accent: #E3896B;
    --accent-ink: var(--brand-ink);
    --accent-soft: #1C2741;
    --btn-bg: var(--brand-paper); --btn-ink: var(--brand-ink);
    --mark-tile: var(--brand-paper); --mark-j: var(--brand-ink);
    --todo-bg: #4a3b00; --todo-ink: #ffe68a;
  }
}
/* Freeday pages: the product keeps the app's own green for its accents */
body[data-section="freeday"] { --accent: #0B7A53; --accent-soft: #E2F0E8; }
@media (prefers-color-scheme: dark) { body[data-section="freeday"] { --accent: #3DDC97; --accent-soft: #10291F; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.62 var(--sans); font-feature-settings: "calt", "kern"; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--copper); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--copper) 28%, transparent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* The copper full stop: the brand's signature. "This is settled; we can move on." */
.dot { color: var(--copper); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 25px; line-height: 1; letter-spacing: 0.005em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark .tile { fill: var(--mark-tile); } .brand-mark .j { fill: var(--mark-j); } .brand-mark .stop { fill: var(--brand-copper); }
.brand em { font-style: italic; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 8px; }

/* Type: Instrument Serif for headlines, Inter for body and labels */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.04; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.2vw, 86px); }
h2 { font-size: clamp(34px, 4.4vw, 54px); }
h1 em, h2 em, h3.serif em { font-style: italic; }
h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -0.008em; line-height: 1.3; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 36em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.muted { color: var(--muted); }

/* Sections */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.hero { padding: 96px 0 84px; }
.hero h1 { max-width: 11.5em; }

.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: 15.5px; }

/* Ruled list: the editorial alternative to a grid of cards (services) */
.ruled { list-style: none; margin: 40px 0 0; padding: 0; display: grid; column-gap: 56px; border-top: 1px solid var(--ink); }
@media (min-width: 820px) { .ruled { grid-template-columns: 1fr 1fr; } }
.ruled li { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.ruled h3 { margin-bottom: 6px; }
.ruled p { margin: 0; color: var(--muted); font-size: 16px; max-width: 32em; }

/* How I work: a genuine sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; margin: 44px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--copper); margin-bottom: 14px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.01em; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

/* About */
.about { display: grid; gap: 28px 64px; }
@media (min-width: 900px) { .about { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.about blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

.product { display: grid; gap: 20px; align-items: start; }
@media (min-width: 720px) { .product { grid-template-columns: 72px 1fr; } }
.app-icon { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-weight: 700; font-size: 26px; color: #fff; }
.app-icon.fitness { background: linear-gradient(145deg, #3b4252, #1d222b); }

.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-right: 6px; }
.pill.neutral { background: var(--line); color: var(--muted); }

.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent; transition: background-color .2s ease, color .2s ease; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.btn.primary:hover { background: transparent; color: var(--ink); }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.contact-line { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin: 18px 0 10px; }
.contact-line a { text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Long-form legal pages */
.doc { max-width: 760px; padding: 64px 0 88px; }
.doc h1 { font-size: clamp(40px, 5.6vw, 60px); }
.doc h2 { font-size: 30px; margin-top: 1.9em; padding-top: 0.3em; }
.doc h3 { font-size: 18px; margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; font-size: 15.5px; }
.toc ol { margin: 6px 0 0; }
.summary { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; margin: 24px 0; }
.summary ul { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 140px; }
th { font-weight: 600; background: var(--surface); }

/* Real app icon */
.app-icon-img { width: 72px; height: 72px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0,0,0,.08); background: #fff; }
.app-icon-img.lg { width: 96px; height: 96px; }

/* iPhone frame around real screenshots (iPhone 17 Pro Max proportions).
   The figure is a size container, so cqw = 1% of the phone's width: bezel and corners scale together.
   The bezel is the image's own border; inner corner = outer radius minus bezel. */
.phone { container-type: inline-size; position: relative; margin: 0; width: 100%; max-width: 300px; }
.phone img { display: block; box-sizing: border-box; width: 100%; height: auto;
  border: 2.8cqw solid #15171b; border-radius: 15.4cqw; background: #15171b;
  box-shadow: 0 0 0 1px #3b3f46, 0 0 0 2.5px #0e1012,
              0 40px 70px -30px rgba(10,30,20,.45), 0 18px 30px -18px rgba(0,0,0,.30); }
/* Home hero with phone */
.hero-split { display: grid; gap: 40px; align-items: center; }
.hero-split .phone { max-width: 250px; margin: 0 auto; }
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1.35fr 1fr; }
  .hero-split .phone { max-width: 290px; }
}

/* Screenshot gallery */
.gallery { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; margin: 28px -4px 0; -webkit-overflow-scrolling: touch; }
.gallery figure.shot { flex: 0 0 auto; width: 220px; scroll-snap-align: start; margin: 0; }
.gallery figure.shot .phone { max-width: none; }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
@media (min-width: 900px) { .gallery { justify-content: center; gap: 48px; overflow: visible; } .gallery figure.shot { width: 26%; } }
.note { font-size: 13.5px; color: var(--muted); }

/* Placeholders that must be filled before going live */
mark.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: 0.92em; }

/* Footer */
.site-footer { background: var(--brand-ink); color: #C9CDD6; padding: 56px 0 64px; font-size: 14.5px; border-top: 0; }
.site-footer .cols { display: grid; gap: 28px; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { color: var(--brand-paper); font-size: 28px; margin-bottom: 14px; }
.site-footer .brand-mark .tile { fill: var(--brand-paper); } .site-footer .brand-mark .j { fill: var(--brand-ink); }
.site-footer .tagline { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--brand-paper); line-height: 1.25; margin-bottom: 18px; }
.site-footer .tagline .dot { color: var(--brand-copper); }
.site-footer h4 { color: var(--brand-paper); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 6px 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C9CDD6; text-decoration-color: color-mix(in srgb, var(--brand-copper) 70%, transparent); }
.site-footer a:hover { color: var(--brand-paper); }
.site-footer .legal { font-size: 13px; color: #9AA1AE; margin-top: 36px; padding-top: 18px; border-top: 1px solid #2A3550; }

/* ---------- Freeday scroll tour ----------
   The phone stays pinned while the steps scroll past; the active step swaps the screen.
   Behind the phone, Freeday's sunrise rises with progress through the tour (--rise, 0 to 1, set by site.js). */
.tour { padding-bottom: 24px; }
.tour-head { margin-bottom: 8px; }
.tour-body { position: relative; display: grid; }
.tour-stage { position: sticky; align-self: start; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 28px; isolation: isolate; }
.tour-phone { width: var(--phone-w); max-width: none; flex: none; z-index: 1; }
.tour-screens { position: relative; aspect-ratio: 1320 / 2868; box-sizing: content-box; overflow: hidden;
  border: 2.8cqw solid #15171b; border-radius: 15.4cqw; background: #15171b;
  box-shadow: 0 0 0 1px #3b3f46, 0 0 0 2.5px #0e1012, 0 50px 90px -40px rgba(10,40,25,.55), 0 20px 34px -20px rgba(0,0,0,.35); }
.tour-screen { position: absolute; inset: 0; }
.tour-screen img { width: 100%; height: 100%; border: 0; border-radius: 12.6cqw; box-shadow: none; object-fit: cover; }
html.js .tour-screen { opacity: 0; transform: translateY(7%) scale(.985); transition: opacity .55s ease, transform .7s cubic-bezier(.2,.75,.2,1); }
html.js .tour-screen.is-before { transform: translateY(-5%) scale(.985); }
html.js .tour-screen.is-active { opacity: 1; transform: none; }
html:not(.js) .tour-screen:not(.is-active) { display: none; }

.tour-sun { position: absolute; z-index: 0; left: 50%; bottom: 10%; width: min(680px, 96vw); pointer-events: none;
  transform: translate(-50%, calc((1 - var(--rise, 0)) * 62%)); opacity: calc(.3 + .7 * var(--rise, 0)); }
.sun-disc { display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0;
  background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--accent) 46%, transparent) 0%, color-mix(in srgb, var(--accent) 22%, transparent) 48%, color-mix(in srgb, var(--accent) 6%, transparent) 66%, transparent 72%); }
.sun-bar { display: block; height: 18px; margin: 24px auto 0; width: 104%; margin-left: -2%; border-radius: 999px; background: color-mix(in srgb, var(--accent) 26%, transparent); }
.sun-bar.short { width: 58%; margin: 18px auto 0; }

.tour-rail { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.tour-rail button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; border-radius: 6px; }
.tour-rail button::before { content: ""; width: 4px; height: 22px; border-radius: 4px; background: var(--line); transition: height .35s ease, background .35s ease; }
.tour-rail button[aria-current="step"] { color: var(--ink); }
.tour-rail button[aria-current="step"]::before { height: 40px; background: var(--accent); }
.tour-rail button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.tour-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -0.012em; margin: 6px 0 14px; max-width: 12em; }
.tour-step p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 26em; margin: 0; }
.tour-step .tour-where { color: var(--accent); font-size: 15px; font-weight: 650; }
html.js .tour-step { opacity: .22; transition: opacity .45s ease; }
html.js .tour-step.is-active { opacity: 1; }

/* Desktop: phone pinned on the left, one step per screen-height on the right. */
@media (min-width: 900px) {
  .tour-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 48px; }
  .tour-stage { --phone-w: min(330px, calc((100svh - var(--header-h, 64px) - 120px) / 2.25)); top: var(--header-h, 64px); height: calc(100svh - var(--header-h, 64px)); }
  .tour-rail { flex-direction: column; gap: 14px; }
  .tour-step { min-height: calc(100svh - var(--header-h, 64px)); display: flex; flex-direction: column; justify-content: center; }
  .tour-steps { padding-bottom: 30svh; }
}

/* Phones and tablets: phone, rail and caption are pinned together and fill the screen; the steps below are
   invisible scroll distance (still read by screen readers), and the caption crossfades with the screen. */
.tour-caps { display: none; }
@media (max-width: 899px) {
  .tour-stage { --phone-w: min(240px, calc((100svh - var(--header-h, 64px) - 250px) / 2.25));
    top: var(--header-h, 64px); height: calc(100svh - var(--header-h, 64px)); flex-direction: column; justify-content: flex-start; gap: 14px;
    margin: 0 -16px; padding: 16px 16px 0; overflow: hidden; background: var(--bg); }
  .tour-rail { gap: 8px; }
  .tour-rail button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tour-rail button::before { width: 18px; height: 4px; }
  .tour-rail button[aria-current="step"]::before { width: 34px; height: 4px; }
  .tour-sun { bottom: 34%; }
  html.js .tour-caps { display: grid; width: 100%; max-width: 30rem; position: relative; z-index: 1; background: var(--bg); box-shadow: 0 -14px 14px -4px var(--bg); padding-top: 4px; }
  .tour-sun .sun-bar { display: none; }
  .tour-rail { position: relative; z-index: 2; }
  .tour-cap { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.75,.2,1); }
  .tour-cap.is-active { opacity: 1; transform: none; }
  .tour-cap h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.06; letter-spacing: -0.01em; margin: 2px 0 8px; }
  .tour-cap p { color: var(--muted); font-size: 16px; margin: 0; }
  .tour-cap .tour-where { color: var(--accent); font-size: 14px; font-weight: 650; }
  html.js .tour-steps { position: relative; z-index: 1; margin-top: calc(-100svh + var(--header-h, 64px)); padding-bottom: 30svh; }
  html.js .tour-step { min-height: 65svh; opacity: 0; pointer-events: none; }
  html:not(.js) .tour-step { padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .tour-screen, html.js .tour-step, .tour-cap, .tour-rail button::before { transition: none; }
  html.js .tour-screen, html.js .tour-screen.is-before { transform: none; }
  .tour-sun { transform: translate(-50%, 12%); opacity: .8; }
}
