/* MetricPull product pages: fonts, color tokens, base elements, the evans.digital strip, the product masthead, the hero's
   intro and action, and the phone frame with its woodpecker. */
@font-face { font-family: Manrope; src: url('/assets/fonts/manrope-latin.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Newsreader; src: url('/assets/fonts/newsreader-latin.woff2') format('woff2'); font-style: normal; font-weight: 300 600; font-display: swap; }
@font-face { font-family: Newsreader; src: url('/assets/fonts/newsreader-italic-latin.woff2') format('woff2'); font-style: italic; font-weight: 300 600; font-display: swap; }
@font-face { font-family: 'Azeret Mono'; src: url('/assets/fonts/azeret-mono-latin.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }

/* Colors are tokens by role: a neutral light ground with graphite text and the teal accent, and a dark theme of charcoal
   surfaces, warm light text and a lighter teal. The dark theme follows the device unless the footer control has set Light
   or Dark on the root (data-mp-page, set by js/boot.js in the head before the first paint). Only tokens change between the
   themes, never layout, and nothing transitions. Dark is for the screen only, so print stays light. App screens are always
   shown as captured. */
:root {
  color-scheme: light;
  --page: #f5f5f3; --mist: #f3f3f1;
  --surface: #ffffff; --surface-2: #f9f9f8;  /* file cards, and their name rows */
  --graphite: #1b1d24;                       /* the phone */
  --mark: #1b1d24;                           /* woodpecker and wordmark */
  --ink: #2a2c32; --ink-2: #55585f; --ink-3: #676a72; --line: #e1e1dd; --line-2: #ececea; --line-strong: #c9c9c4;
  --lav: #efefec; --lav-line: #d9d9d4;       /* the frames and borders around app screens */
  --teal: #087e8b; --teal-ink: #007276;
  --wash: rgb(8 126 139 / 9%);
  --heading: #1b1d24; --btn: #1b1d24; --btn-text: #ffffff; --btn-hover: #087e8b;
  --veil: rgb(255 255 255 / 72%); --tint: rgb(255 255 255 / 46%);   /* the lighter bands */
  --shade: 27 29 36;                         /* shadows, as rgb() channels */
  --band: #1b1d24; --band-text: #eceaf0; --band-head: #f7f6f9; --band-muted: #c6c3cc; --band-fine: #aeabb5; --band-rule: rgb(255 255 255 / 12%);
  --ed-bg: #090909; --ed-text: #f3f3f3; --ed-muted: #a3a3a3; --ed-accent: #53c3cb;
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --sans: Manrope, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'Azeret Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --bezel: 11px;
}
@media screen and (prefers-color-scheme: dark) {
  :root.mp-theme:not([data-mp-page="light"]) { color-scheme: dark;
    --page: #141517; --mist: #141517; --surface: #1c1e21; --surface-2: #212327; --mark: #e4e2dc; --heading: #f1efea;
    --ink: #e2e0da; --ink-2: #b4b2ac; --ink-3: #9e9c96; --line: #2d3034; --line-2: #26292c; --line-strong: #4a4e54;
    --lav: #1c1e21; --lav-line: #383b40; --teal: #3fb3bb; --teal-ink: #6ccfd3; --wash: rgb(108 207 211 / 11%);
    --btn: #e9e7e2; --btn-text: #131416; --btn-hover: #6ccfd3;
    --veil: rgb(28 30 33 / 80%); --tint: rgb(255 255 255 / 2.5%); --shade: 0 0 0;
    --band: #1b1d20; --band-text: #e2e0da; --band-head: #f1efea; --band-muted: #b4b2ac; --band-fine: #a3a19b; --band-rule: rgb(255 255 255 / 9%); --phone-rim: rgb(255 255 255 / 13%); }
}
@media screen {
  :root.mp-theme[data-mp-page="dark"] { color-scheme: dark;
    --page: #141517; --mist: #141517; --surface: #1c1e21; --surface-2: #212327; --mark: #e4e2dc; --heading: #f1efea;
    --ink: #e2e0da; --ink-2: #b4b2ac; --ink-3: #9e9c96; --line: #2d3034; --line-2: #26292c; --line-strong: #4a4e54;
    --lav: #1c1e21; --lav-line: #383b40; --teal: #3fb3bb; --teal-ink: #6ccfd3; --wash: rgb(108 207 211 / 11%);
    --btn: #e9e7e2; --btn-text: #131416; --btn-hover: #6ccfd3;
    --veil: rgb(28 30 33 / 80%); --tint: rgb(255 255 255 / 2.5%); --shade: 0 0 0;
    --band: #1b1d20; --band-text: #e2e0da; --band-head: #f1efea; --band-muted: #b4b2ac; --band-fine: #a3a19b; --band-rule: rgb(255 255 255 / 9%); --phone-rim: rgb(255 255 255 / 13%); }
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 20; top: .5rem; left: var(--gutter); padding: .5rem 1rem; background: var(--btn); color: var(--btn-text); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(72rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* evans.digital family strip */
.ed-strip { position: relative; z-index: 3; background: var(--ed-bg); color: var(--ed-text); font-size: .8125rem; }
.ed-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 40px; }
.ed-strip a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.ed-strip a:hover { color: var(--ed-accent); }
.ed-strip :focus-visible { outline-color: var(--ed-accent); }
.ed-trail { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.ed-brand { gap: 0; font-weight: 500; letter-spacing: -.065em; font-size: .95rem; }
.ed-brand svg { flex: none; width: 26px; height: 23px; }
/* As on the evans.digital homepage: the wordmark starts just under the branch's tip, so the branch reads as its slash */
.ed-brand span { margin-left: -.117em; transform: translateY(.075em); }
.ed-dim { color: var(--ed-muted); }
.ed-all { font-family: var(--mono); font-size: .7rem; color: var(--ed-muted); }

/* Product masthead: the wordmark, then Privacy, Support and App Store as one right-aligned group. Where the row cannot hold
   the group, the row's own wrap moves the whole group under the wordmark, still right-aligned and in reading order; the row
   gap applies only then. The App Store link is an outlined companion to the hero's button, so the two never compete. */
.mast { position: relative; z-index: 3; }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; min-height: 72px; }
.mast__id { display: inline-flex; align-items: center; min-height: 44px; }
.mast__id img { height: 30px; width: auto; }
.mast__mark--dark { display: none; }
.mast__end { display: flex; align-items: center; gap: 0 2.25rem; margin-left: auto; }
.mast__nav { display: flex; gap: 0 1.6rem; font-size: .9375rem; color: var(--ink-2); }
.mast__nav a { display: inline-flex; flex: none; align-items: center; min-height: 44px; text-decoration: none; }
.mast__nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.4rem; border-radius: 12px; background: var(--btn); color: var(--btn-text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--btn-hover); }
.btn svg { width: .8em; height: .8em; }
.btn--small { min-height: 40px; padding: .4rem .95rem; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--ink); font-size: .875rem; }
.btn--small:hover { background: transparent; border-color: var(--teal-ink); color: var(--teal-ink); }
/* Small labels: one quiet sans style; the monospace face is kept for files and code */
.eyebrow { font-family: var(--sans); font-size: .8125rem; font-weight: 500; line-height: 1.3; letter-spacing: .01em; color: var(--ink-2); }

/* Hero: the intro and its action */
.hero { position: relative; overflow-x: clip; padding-block: clamp(1.25rem, 3.2vw, 3rem) clamp(2.5rem, 5vw, 4rem); }
.hero__intro { grid-area: intro; position: relative; z-index: 2; display: grid; gap: .9rem; max-width: 38rem; padding-top: clamp(.5rem, 3vh, 2.5rem); }
.hero h1 { font-family: var(--serif); font-weight: 420; font-size: clamp(2.6rem, 3.8vw, 3.35rem); line-height: 1.02; letter-spacing: -.028em; color: var(--heading); font-optical-sizing: auto; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--teal-ink); }
.lede { text-wrap: pretty; max-width: 36rem; font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.55; color: var(--ink-2); }
.lede__s { display: block; }
.lede__s:first-child { font-size: 1.12em; font-weight: 500; line-height: 1.35; color: var(--ink); text-wrap: balance; }   /* the lead */
.lede__s + .lede__s { margin-top: .4em; }   /* its explanation, a step smaller, after a short gap */
.hero__act { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-top: 1.4rem; }
.hero__fine { font-size: .8125rem; color: var(--ink-3); }
.demo-note { font-size: .8125rem; color: var(--ink-3); }
.device { position: relative; }

/* A clean, recognizable phone frame drawn in CSS. It never moves; only the screen's contents change. */
.phone { position: relative; width: calc(var(--screen) + 2 * var(--bezel)); padding: var(--bezel); border-radius: calc(var(--screen) * .165); background: var(--graphite);
  box-shadow: inset 0 0 0 1.5px #3c404b, inset 0 0 0 3px #15171c, 0 0 0 1px var(--phone-rim, transparent), 0 2px 4px rgb(var(--shade) / 18%), 0 40px 80px -40px rgb(var(--shade) / 50%), 0 16px 32px -24px rgb(var(--shade) / 30%); }
.phone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #2a2d36; right: -3px; top: 27%; height: 13%; }   /* side button; the bird grips the left edge */
.phone__screen { position: relative; overflow: hidden; border-radius: calc(var(--screen) * .13); aspect-ratio: 1170 / 2532; background: var(--lav); }
.phone__island { position: absolute; z-index: 3; top: calc(var(--bezel) + var(--screen) * .026); left: 50%; width: calc(var(--screen) * .3); height: calc(var(--screen) * .084); border-radius: 999px; background: #0c0d10; transform: translateX(-50%); }

/* The woodpecker clings to the phone's left edge. The SVG's right edge is that edge line; claw tips, the tail tip
   and the bill at each strike pass just behind it, and the frame (painted later) covers them. */
.bird { position: absolute; top: calc(var(--screen) * .34); right: 100%; width: calc(var(--vb-w) * var(--bird-h) / 373.59); height: calc(var(--vb-h) * var(--bird-h) / 373.59); pointer-events: none; }
.bird svg { width: 100%; height: 100%; overflow: visible; }
.bird path[fill="#1B1D24"] { fill: var(--mark); }   /* the woodpecker follows the wordmark in each theme */

/* Background — smooth neutral matte with very fine generated grain (one texel per device pixel at 2×). Static. In the dark
   theme the ground is plain charcoal. */
.bg-mist, .bg-mist body { background-color: var(--mist); }
.bg-mist body { background: url('../media/mist-grain.png') 0 0 / 128px 128px, var(--mist); background-blend-mode: multiply; }
@media screen and (prefers-color-scheme: dark) { .mp-theme:not([data-mp-page="light"]) body { background: var(--mist); } }
@media screen { .mp-theme[data-mp-page="dark"] body { background: var(--mist); } }
.mast__mark--light { display: block; }
@media screen and (prefers-color-scheme: dark) { .mp-theme:not([data-mp-page="light"]) .mast__mark--light { display: none; } .mp-theme:not([data-mp-page="light"]) .mast__mark--dark { display: block; } }
@media screen { .mp-theme[data-mp-page="dark"] .mast__mark--light { display: none; } .mp-theme[data-mp-page="dark"] .mast__mark--dark { display: block; } }

@media (max-width: 999px) {
  .hero__intro { order: 1; max-width: 40rem; text-align: center; justify-items: center; }
  .hero__act { order: 3; justify-content: center; margin-top: 2.25rem; }
}
/* Phones: tighter top, left-aligned copy */
@media (max-width: 640px) {
  :root { --bezel: 9px; }
  .ed-strip .ed-all { display: none; }
  .mast .wrap { min-height: 60px; padding-block: .5rem; }
  .mast__id img { height: 26px; }
  .mast__end { gap: 0 1.5rem; }
  .mast__nav { gap: 0 1.25rem; font-size: .875rem; }
  .hero { padding-top: .5rem; }
  .hero__intro { text-align: left; justify-items: start; gap: .7rem; }
  .hero__act { justify-content: flex-start; }
  .hero h1 { font-size: clamp(2.05rem, 9.6vw, 2.5rem); }
  /* The action is centred under the centred phone */
  .hero__act { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; margin-top: 1.75rem; }
  .hero__act .btn { justify-self: center; width: 100%; max-width: 22rem; }
  .hero__fine { text-align: center; text-wrap: balance; }
}
/* Phones: the masthead is the product's name, the whole wordmark, right above the page's title, with Privacy and Support as quiet
   links at the end of its row. The App Store link leaves the masthead here: on the product page the hero's button is the one
   action, Support keeps App Store in its Availability line, and Privacy shows it as a quiet footer link (hidden from 641 px, where
   the masthead has it). The woodpecker's tail, not the file's empty margin (67 of its 220 units), lines up with the title's left
   edge. From 641 px the masthead is the wide one again. */
.foot .foot__store { display: none; }
@media (max-width: 640px) {
  .mast .wrap { flex-wrap: nowrap; column-gap: 1rem; }
  .mast__id { --mark: 28px; margin-left: calc(-67 / 220 * var(--mark)); }
  .mast__id img { height: var(--mark); }
  .mast .btn--small { display: none; }
  .foot .foot__store { display: inline-flex; }
  .mast__nav { gap: 0 1.1rem; }
  .landing-hero { padding-top: 0; }
  .landing-hero .hero__intro { padding-top: 0; }
}
@media (max-width: 360px) {
  .ed-trail > :not(.ed-brand) { display: none; }
  /* Narrowest phones: the wordmark and the two links keep one row */
  .mast__id { --mark: 26px; }
  .mast__nav { gap: 0 .9rem; font-size: .8125rem; }
}
@media (max-width: 374px) {
  .hero__fine-sep { display: none; }
  .hero__fine-req { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
