/* Puli's brand on the home page alone (body.is-puli). Loaded after site.css.
   The Quiet Instrument direction (see /concepts/instrument/): mid-century, precise, quiet.
   Colors (Alan, Nov 18): by day the page is pale teal #CFE1DD with charcoal text and the app's amber as the one
   accent, and the menu bar is the app editor's cream (see /concepts/pop/, option 4, with the light screenshot).
   By night, a deep teal with warm white text. The rest is the app's (Puli's Cream theme, Look.swift).
   No metal, no sheen, no gradients: rules and edges are ink thinned into paper.
   Type (Alan, Nov 18): headings in IBM Plex Serif Light; text in Instrument Sans, the app's text face;
   IBM Plex Mono for typed notes.

   To do before this ships: convert the fonts to woff2 and subset them like the others, and add Plex's OFL
   beside the other licenses in assets/fonts. */

@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/IBMPlexSerif-Light.otf") format("opentype"); }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/IBMPlexSerif-LightItalic.otf") format("opentype"); }
/* Instrument Sans 400 to 600 comes from site.css; Bold, for "Puli" in the menu bar, from the app's own font file. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/app/InstrumentSans.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexMono-Regular.otf") format("opentype"); }

.is-puli {
  --walnut: #5C3A21;
  --mustard: #D4A017;
  --b-paper: #FBF8F3;                                                /* the app's warm white */
  --b-ink: #27282B;                                                  /* the app's graphite */
  --teal: #1F5F5B;                                                   /* the brand teal; the icon's is #25716E */

  --paper: #CFE1DD;                                                  /* the page: pale teal */
  --ink: #1F2023;                                                    /* text on it: charcoal */
  --glass: #FFFDF9;                                                  /* inside a drawn app window: the app's card */
  --tint: #F3EEE5;                                                   /* a recessed band: the app's sidebar */
  --leather: var(--b-ink);                                           /* the dark band */
  --on-leather: var(--b-paper);
  --muted: #44514E;
  --line: #B1C9C4;
  --hair: #8DACA6;
  --accent: #8A4B08;                                                 /* the app's amber */
  --on-accent: var(--b-paper);
  /* Tags, in the app's own pill colors (Look.swift, Cream): people blue, organizations plum, projects green. */
  --person: #27282B;       --person-pill: #D9E8F7;
  --organization: #27282B; --organization-pill: #EEDCEE;
  --project: #27282B;      --project-pill: #D5ECDF;

  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.6; font-weight: 400;
}
@media (prefers-color-scheme: dark) {
  .is-puli {
    /* By night: a deeper teal, warm white, light amber, and the app's night tag colors. */
    --paper: #153F3C;
    --ink: #FBF8F3;
    --glass: #1C4C48;
    --tint: #10322F;
    --leather: #1F2023;
    --on-leather: #FBF8F3;
    --muted: #B5CAC6;
    --line: #2C5C58;
    --hair: #4F7E79;
    --accent: #FAC775;
    --on-accent: #27282B;
    --person: #85B7EB;       --person-pill: #0C447C;
    --organization: #F99CFC; --organization-pill: #5F0363;
    --project: #52C98A;      --project-pill: #085041;
  }
}


/* One width for everything, so the header, the sections, and the footer share their edges. */
.is-puli { --max: 1160px; }
.q-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- header and footer: flat, a hairline, the name alone ---------- */

/* The menu bar is the app's editor: its cream with charcoal text by day, its graphite with warm white by night. */
.is-puli .site-header {
  --paper: #FBF9F4; --ink: #27282B; --muted: #5C5D61; --line: #DCD7CF; --hair: #BDB9B2; --accent: #8A4B08; --on-accent: #FBF8F3;
  background: var(--paper);  /* solid (Alan, Nov 19) */
  color: var(--ink); border-bottom: 1px solid var(--edge, #323537); }  /* a graphite line along its foot (Alan, Nov 19) */
@media (prefers-color-scheme: dark) {
  .is-puli .site-header { --paper: #323537; --ink: #FBF8F3; --muted: #BDB9B2; --line: #45474D; --hair: #6A6B70; --accent: #FAC775; --on-accent: #27282B;
    --edge: #6A6B70; }  /* by night the bar is graphite itself, so its line is a lighter graphite */
}
/* Once the page scrolls, a slight shadow under the menu bar (Alan, Nov 18), so content reads as passing beneath it. */
/* The shadow shows from the start, before any scrolling (Alan, Nov 19). */
.is-puli .site-header, .is-puli .site-header.is-stuck { box-shadow: 0 4px 14px -6px rgba(39, 40, 43, 0.22); }
@media (prefers-color-scheme: dark) { .is-puli .site-header, .is-puli .site-header.is-stuck { box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.55); } }
/* One fixed height (Alan, Nov 18): 81px on a desktop, halfway between the 97px it had at the top and the 65px it
   slimmed to on scrolling, so it no longer moves. */
.is-puli .nav, .is-puli .site-header.is-stuck .nav { padding-top: 14px; padding-bottom: 14px; transition: none; }
.is-puli .site-header.is-stuck { margin-bottom: 0; }
.is-puli .nav .brand, .is-puli .footer__name { font-family: var(--sans); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
/* The title bar lockup: the app icon, and the name large beside it. */
.is-puli .nav .brand { top: 0; gap: 14px; font-size: 22px; letter-spacing: -0.02em; }
.is-puli .brand__name { font-weight: 700; }
.is-puli .brand__for { font-weight: 300; }  /* "Puli" in Bold, "for Mac" in Light */
.is-puli .brand__icon { flex: none; width: 52px; height: 52px; filter: drop-shadow(0 1px 2px rgba(28, 28, 28, 0.18)); }  /* the icon's own rounded square */
.is-puli .nav .brand .mark, .is-puli .footer__brand .mark { display: none; }  /* no D mark: the name stands alone */
.is-puli .nav__link { font-size: 16px; color: var(--muted); }
/* The App Store badge at the right end of the menu bar (Alan, Nov 18). On a phone it stays out beside the menu
   button, and the links open below both. */
.is-puli .nav__links { margin-left: auto; }
.is-puli .nav__badge .q-badge img { height: 40px; }
/* One baseline across the menu bar: "Puli for Mac" sets it. The links' text sits 2.2px above it, so they drop to meet it.
   The badge centers on the app icon instead (Alan, Nov 18): its wrapper hugs it, so the menu bar centers both alike. */
.is-puli .nav__badge { display: flex; }
/* The call to action is golden yellow (Alan, Nov 19), a richer cousin of the amber that labels the dark bands, with
   charcoal text; a deeper gold on hover. */
.is-puli { --cta: #F2B544; --cta-hover: #E3A02C; --cta-ink: #27282B; }
/* "Keep me posted": the mailing list form's button, in the menu bar, 40px tall like the badge it replaces. */
.nav__cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 8px; background: var(--cta); color: var(--cta-ink);
  font-size: 15px; font-weight: 500; white-space: nowrap; transition: background 150ms ease; }
.nav__cta:hover { background: var(--cta-hover); }
@media (max-width: 480px) { .nav__cta { height: 34px; padding: 0 12px; font-size: 14px; } }
@media (max-width: 360px) { .nav__cta { height: 30px; padding: 0 10px; font-size: 13px; } }
#download { scroll-margin-top: calc(var(--menu-h) - 80px); }
#download:focus { outline: none; }  /* focused only to start the tab order there */  /* "Keep me posted" lands on the closing section's top edge, just under the menu bar (the page already scrolls 80px clear of it), the icon below its own whitespace */
@media (min-width: 1001px) {
  .is-puli .nav__links { position: relative; top: 2.2px; }
}
@media (max-width: 1000px) {
  .is-puli .nav__badge { margin-left: auto; order: 1; }
  .is-puli .nav__toggle { order: 2; }
  .is-puli .nav__links { order: 3; }
}
@media (max-width: 480px) {  /* icon, name, badge and menu button on one line */
  .is-puli .nav { gap: 10px; }
  .is-puli .nav .brand { gap: 10px; font-size: 19px; }
  .is-puli .brand__icon { width: 40px; height: 40px; }
  .is-puli .nav__badge .q-badge img { height: 30px; }
}
@media (max-width: 360px) {  /* the smallest phones */
  .is-puli .nav { gap: 6px; }
  .is-puli .nav .brand { gap: 8px; font-size: 17px; }
  .js .is-puli .nav__toggle { width: 38px; }
  .is-puli .brand__icon { width: 34px; height: 34px; }
  .is-puli .nav__badge .q-badge img { height: 26px; }
}
.is-puli .nav__link:hover { color: var(--ink); }
.is-puli .nav .button, .is-puli .js .nav.is-open .nav__links .button {
  border-radius: 8px; min-height: 40px; font-size: 14px; font-weight: 500;
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.is-puli .nav .button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.is-puli .footer__tagline { font-family: var(--sans); }

/* ---------- shared parts ---------- */

.q-caps { display: flex; align-items: baseline; gap: 14px; font-family: var(--sans); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.q-num { font-variant-numeric: tabular-nums; color: var(--accent); }

.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* Apple's badge, at the height of the buttons beside it. */
.q-badge { display: inline-flex; border-radius: 8px; }
.q-badge img { display: block; height: 46px; width: auto; }
.waitlist .q-badge img { height: 56px; }
.q-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 8px; background: var(--ink); color: var(--paper);  /* the app's button corners */
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.q-btn:hover { background: var(--accent); color: var(--on-accent); }
.q-btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.q-btn--line:hover { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.q-btn:active { transform: translateY(1px); }

/* An app window: paper framed by a single ink hairline. The glass holds the screenshot. */
.q-window { display: block; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--glass); }
.q-window__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.q-window__bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--hair); }
.q-window__glass { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); }

.q-section { padding: 96px 0; }  /* tightened from 128px (Alan, Nov 19) */
.q-section + .q-section { border-top: 1px solid var(--line); }
.q-head { max-width: 760px; margin-bottom: 56px; }
.q-h2 { margin-top: 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
/* Section 02's title (Alan, Nov 18): on one line at full width, so its header drops the usual 760px cap; it wraps as the
   window narrows, and on a phone its second sentence starts its own line. */
.q-head--wide { max-width: none; }
@media (max-width: 600px) { .q-h2--oneline span { display: block; } }
.q-lede { margin-top: 28px; max-width: 32em; font-size: 19px; color: var(--muted); }  /* the same room under a title as section 01's points */
.q-caps--body { font-size: 18px; }  /* Why Puli's label, at body size (Alan, Nov 18) */
/* Why Puli's two points, side by side. */
.q-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 72px; margin-top: 32px; }
.q-point .q-h2 { margin-top: 0; font-size: clamp(32px, 3.2vw, 44px); }  /* sized for half the page */
.q-point .q-lede { margin-top: 28px; }  /* room under each point's title */
/* Why Puli on dark teal (Alan, Nov 18), with warm white text and light amber; a deeper teal by night. */
.q-section--teal { --paper: #173F3C; --ink: #FBF8F3; --muted: #C3D3CF; --line: #2E5754; --hair: #4F7773; --accent: #FAC775; --on-accent: #27282B;
  background: var(--paper); color: var(--ink); }
.q-section.q-section--teal, .q-section--teal + .q-section { border-top: 0; }  /* the color change is the edge */
/* A sheep in the icon's painted style on the bottom edge of Why, How, Pricing and Questions, each centered in a margin and
   facing the text (Alan, Nov 18–19). --gutter is that margin; a sheep is up to 150px wide, never wider than the margin
   less 40px, and stands just above the edge while the flowers and grass stay pinned to it. Only where the margin is wide
   enough. Full color, so the same by night. (/concepts/line/ swaps in the pen-and-ink sheep, with its own styles.) */
.q-section--teal { position: relative; --gutter: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); }
.q-section--teal > .q-wrap { position: relative; z-index: 1; }
.q-ewe { display: none; }
@media (min-width: 1380px) {
  .q-ewe { --w: min(150px, calc(var(--gutter) - 40px)); display: block; position: absolute; bottom: 12px; width: var(--w); height: auto;
    right: calc(var(--gutter) / 2 - var(--w) / 2); pointer-events: none; }
}
@media (prefers-color-scheme: dark) { .q-section--teal { --paper: #0E2826; --line: #24433F; } }
/* The left margin's sheep: the same margin and size, mirrored. */
.q-section--pasture { position: relative; --gutter: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); }
.q-section--pasture > .q-wrap { position: relative; z-index: 1; }
@media (min-width: 1380px) {
  .q-ewe--left { right: auto; left: calc(var(--gutter) / 2 - var(--w) / 2); }
}
.q-nibble, .q-ewe-shadow, .q-tuft-at { display: none; }
@media (min-width: 1380px) {
  /* a little short grass under the grazing sheep's muzzle, pinned to the edge like the other grass (Alan, Nov 19) */
  .q-nibble { --w: min(150px, calc(var(--gutter) - 40px)); display: block; position: absolute; bottom: 0; width: 48px; height: auto;
    left: calc(var(--gutter) / 2 - var(--w) / 2 + var(--w) * 0.90 - 24px); pointer-events: none; }
  /* how high each sheep stands: the grazer a little lower, its face in front of the grass it's eating */
  .q-ewe--grazing { bottom: 5px; z-index: 1; }
  .q-ewe--low { bottom: 8px; }
  .q-ewe--lower { bottom: 6px; }  /* the sheep in 01 and 03, behind their walls of grass along the border */
  .q-ewe--lowest { bottom: 3px; }  /* section 05's sheep */
  /* tufts of short grass by each sheep (Alan, Nov 19), cut flat along their bases, in front of the hooves: walls along
     the border in 01, 03 and 05, tufts at the grazer's hooves. --f is where a tuft stands along the sheep, from the
     sheep's left; --tw is its width; --b how far above the section's edge it stands. */
  .q-tuft-at { --w: min(150px, calc(var(--gutter) - 40px)); display: block; position: absolute; bottom: var(--b, 0px); width: var(--tw); height: auto;
    z-index: 1; right: calc(var(--gutter) / 2 - var(--w) / 2 + var(--w) * (1 - var(--f)) - var(--tw) / 2); pointer-events: none; }
  .q-tuft-at--left { right: auto; left: calc(var(--gutter) / 2 - var(--w) / 2 + var(--w) * var(--f) - var(--tw) / 2); }
  .q-tuft-at--flip { transform: scaleX(-1); }
  /* a soft ground shadow under the sheep on the pale band (Alan, Nov 19): an oval where its hooves meet the grass,
     darkest beneath the body and fading out, in the page's own dark teal */
  .q-ewe-shadow { --w: min(150px, calc(var(--gutter) - 40px)); display: block; position: absolute; bottom: 0; height: 12px;
    width: calc(var(--w) * 0.86); left: calc(var(--gutter) / 2 - var(--w) / 2 + var(--w) * 0.04);
    background: radial-gradient(closest-side, rgba(23, 63, 60, 0.38), rgba(23, 63, 60, 0.18) 55%, rgba(23, 63, 60, 0) 100%);
    pointer-events: none; }
}
/* Clumps of painted golden poppies (Alan, Nov 19), on the pale bands' bottom edges, centered in a margin where it's wide
   enough. Full color, so the same by night. */
.q-poppy { display: none; position: absolute; bottom: 0; width: var(--pw); pointer-events: none; }
.q-poppy img { display: block; width: 100%; height: auto; }
@media (min-width: 1380px) {
  .q-poppy--left, .q-poppy--right { display: block; --w: min(var(--pw), calc(var(--gutter) - 20px)); width: var(--w); }
  .q-poppy--left { left: calc(var(--gutter) / 2 - var(--w) / 2); }
  .q-poppy--right { right: calc(var(--gutter) / 2 - var(--w) / 2); }
}
/* Tufts of painted grass, five different ones, scattered along the bottom edge of Promises (Alan, Nov 19). Each sets its
   own place and size in index.html. Full color, so the same by night. */
.q-tufts { position: absolute; inset: auto 0 0; height: 0; pointer-events: none; }
.q-tufts > img { position: absolute; bottom: 0; height: auto; transform: translateX(-50%); }
@media (max-width: 600px) { .q-tufts > img:nth-of-type(even) { display: none; } }
.q-lede a, .q-faq a, .q-col a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.q-lede a:hover, .q-faq a:hover { text-decoration-color: var(--accent); }
.q-link { display: inline-block; margin-top: 24px; font-size: 15px; font-weight: 500; color: var(--accent); }
.q-link span { display: inline-block; transition: transform 150ms ease; }
.q-link:hover span { transform: translateX(3px); }

/* ---------- hero: the headline, then the screenshot, which starts above the fold ---------- */

.q-hero { padding: 96px 0; }  /* the same room above and below as every section (Alan, Nov 19) */
/* The hero fills one screen under the menu bar (Alan, Nov 18): title and lede at their size, the screenshot scaled to
   the room left. --menu-h is the menu bar's fixed height (81px, or 73px on phones); never shorter than 560px. */
.is-puli { --menu-h: 81px; }
@media (max-width: 480px) { .is-puli { --menu-h: 73px; } }
.q-hero { display: flex; flex-direction: column; box-sizing: border-box; height: max(560px, calc(100svh - var(--menu-h))); }
/* Spare room, as on a phone where the screenshot runs out of width first, splits evenly above and below. */
.q-hero > .q-wrap { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; justify-content: center; }
/* Painted poppies on the left and a tuft of grass on the right, on the hero's bottom edge, each centered between the
   page's edge and the screenshot (Alan, Nov 18–19; a script in index.html does the centering). Only where there's room. */
.q-hero { position: relative; overflow: hidden; }
.q-hero > .q-wrap { position: relative; z-index: 1; }
.q-pasture { display: none; }
@media (min-width: 1100px) {
  .q-pasture { display: block; position: absolute; inset: 0; pointer-events: none; }
  .q-pasture img { position: absolute; bottom: 0; height: auto; }
  .q-pasture__left  { left: 20px;  width: 170px; }
  .q-pasture__right { right: 20px; width: 150px; }
}
.q-hero .q-shot { flex: 0 1 auto; min-height: 0; display: flex; justify-content: center; align-items: flex-start; margin-top: 40px; }
.q-hero .q-shot picture { display: contents; }
.q-hero .q-shot img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.q-hero__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px 64px; align-items: end; }
.q-hero__title { grid-column: 1 / -1; text-align: center; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.q-hero__aside { grid-column: 1 / -1; }
.q-hero__sub { margin: 0 auto; text-align: center; max-width: 46em; font-size: 19px; line-height: 1.5; color: var(--muted); }
.q-hero__actions { justify-content: center; margin-top: 40px; }  /* under the screenshot */

/* The stand-in screenshot: a note, and the page of the person it mentions. */
.q-app { margin-top: 48px; }
.q-shot { margin: 48px 0 0; }
.q-shot img { display: block; width: 100%; height: auto; border-radius: 1.3% / 2.1%;
  box-shadow: 0 0 0 1px var(--hair), 0 2px 4px rgba(39, 40, 43, 0.06), 0 12px 24px rgba(39, 40, 43, 0.10), 0 32px 64px rgba(39, 40, 43, 0.14); }
@media (prefers-color-scheme: dark) { .q-shot img { box-shadow: 0 0 0 1px var(--hair), 0 12px 24px rgba(0, 0, 0, 0.30), 0 32px 64px rgba(0, 0, 0, 0.40); } }
.q-app__body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.q-pane { padding: 26px 28px 30px; border-left: 1px solid var(--line); background: var(--tint); font-size: 15px; line-height: 1.5; }
.q-pane__name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.q-pane__role { color: var(--muted); }
.q-pane dl { margin: 18px 0 0; }
.q-pane dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.q-pane dt { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.q-pane dd { margin: 4px 0 0; }

/* Why I built Puli sits on the page's own pale teal (Alan, Nov 19), no longer the walnut panel. */
.q-founder { color: var(--ink); }

/* ---------- the typed note ---------- */

.q-typed { padding: 26px 28px 30px; font-family: var(--mono); font-size: 15px; line-height: 2; color: var(--ink); }
.q-typed p { min-height: 2em; white-space: pre-wrap; }
.q-typed b { font-weight: 400; }
.q-typed__title { color: var(--muted); }
/* A tag is a pill, as in the app. */
.q-person, .q-organization, .q-project { padding: 0.05em 0.5em; border-radius: 999px; }
.q-person { color: var(--person); background: var(--person-pill); }
.q-organization { color: var(--organization); background: var(--organization-pill); }
.q-project { color: var(--project); background: var(--project-pill); }
.q-typed .is-typing::after {
  content: ""; display: inline-block; width: 0.55em; height: 1.15em; margin-left: 1px; vertical-align: -0.22em;
  background: var(--accent); animation: q-blink 1s steps(1) infinite;
}
@keyframes q-blink { 50% { opacity: 0; } }

/* ---------- the statement: black leather ---------- */

.q-statement { padding: 104px 0; border-top: 1px solid var(--line); }
.q-statement + .q-section { border-top: 1px solid var(--line); }
.q-section + .q-statement { border-top: 0; padding-top: 0; }
.q-statement__text { max-width: 20em; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 54px); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.q-statement__text span { color: var(--accent); }

/* ---------- purpose: three tailored columns ---------- */

.q-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.q-col { padding: 24px 28px 8px 0; }
.q-col + .q-col { padding-left: 28px; border-left: 1px solid var(--line); }
.q-col h3 { font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: 0; }
.q-col p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 26em; }

/* ---------- where your notes end up: People, Projects, Promises, from The Field mock ---------- */

.q-pens { display: flex; flex-direction: column; gap: 80px; margin-top: 80px; }
.q-head + .q-pens { margin-top: 80px; }  /* the same distance from the heading as between the screenshots */
.q-pen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.q-pen:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.q-pen:nth-child(even) .q-pen__copy { order: 2; }  /* the screenshot changes sides each row, and keeps the wide column */
.q-pen__kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.q-pen__title { margin: 12px 0 18px; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.q-pen__copy p:not(.q-pen__kicker) { color: var(--muted); }
.q-pen .q-shot { margin: 0; }
.q-code { font-family: var(--mono); font-size: 0.85em; padding: 1px 6px; border-radius: 5px; background: var(--glass); color: var(--ink); }
.q-pen__stand-in {
  aspect-ratio: 16 / 10; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  display: grid; place-items: center; padding: 24px; text-align: center; font-size: 14px; color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--ink) 4%, transparent) 12px 13px), var(--glass);
}

/* ---------- pricing: a price list ---------- */

/* Pricing fills one screen under the menu bar, its heading and both plans together (Alan, Nov 19); taller content
   simply grows it. */
.q-pricing { box-sizing: border-box; min-height: calc(100svh - var(--menu-h) + 2px); display: flex; flex-direction: column; justify-content: center; }
.q-pricing > .q-wrap { width: 100%; }
.q-pricing .q-head { margin-bottom: 40px; }  /* a little closer to the plans, so the whole section fits a laptop screen */
.q-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.q-plan__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.q-plan__head h3 { font-family: var(--sans); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.q-plan__price { font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.q-plan--lessons .q-plan__price { color: var(--accent); }
.q-plan ul { list-style: none; margin: 0; padding: 0; }
.q-plan li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.q-plan--lessons li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; }  /* just past "Suggestions", the longest name (Alan, Nov 19) */
.q-plan li strong { font-weight: 500; }
.q-plan--lessons li { color: var(--muted); }
.q-plan--lessons li strong { color: var(--ink); }

/* ---------- founder: the one serif voice ---------- */

.q-founder { padding: 96px 0; }
.q-founder__inner { max-width: 860px; }
.q-founder__quote { margin: 28px 0 0; }
.q-founder__quote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.q-founder__quote p + p { margin-top: 0.75em; }
.q-founder__sign { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 32px; }  /* name and title under the signature (Alan, Nov 19) */
.q-founder__sign .signature { margin: 0 0 0 4px; width: 96px; background-color: var(--ink); }  /* indented 4px (Alan, Nov 19) */
.q-founder__sign p { font-size: 15px; line-height: 1.4; }
.q-founder__sign p span { color: var(--muted); }

/* ---------- questions ---------- */

.q-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.q-faq .q-head { margin-bottom: 0; }
.q-faq__list { border-top: 1px solid var(--ink); }
.q-faq__list details { border-bottom: 1px solid var(--line); }
/* Each question reaches 12px past the list on both sides, its text staying put, so a focus ring can sit around it with
   room to breathe instead of hugging the first letter. */
.q-faq__list summary { position: relative; margin: 0 -12px; padding: 20px 52px 20px 12px; list-style: none; cursor: pointer; font-size: 18px; font-weight: 500; border-radius: 10px; }
.q-faq__list summary::-webkit-details-marker { display: none; }
.q-faq__list summary::before, .q-faq__list summary::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 13px; height: 1px; background: var(--ink); transition: transform 150ms ease;
}
.q-faq__list summary::after { transform: rotate(90deg); }
.q-faq__list details[open] summary::after { transform: rotate(0); }
.q-faq__list summary:hover { color: var(--accent); }
/* Keyboard focus (Alan, Nov 19): a soft amber wash inside a rounded amber ring, inset so it never touches the row lines. */
.q-faq__list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.q-faq__list details p { padding: 0 40px 22px 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- waitlist: centered, squared, quiet ---------- */

/* The last section wears the menu bar's colors (Alan, Nov 19): its cream with charcoal by day, its graphite with warm
   white by night, so the page ends as it begins. The color change is its edge. */
.is-puli .waitlist {
  --paper: #FBF9F4; --ink: #27282B; --muted: #5C5D61; --line: #DCD7CF; --hair: #BDB9B2; --accent: #8A4B08; --on-accent: #FBF8F3; --glass: #FFFFFF;
  background: var(--paper); color: var(--ink); border-top: 0; }
@media (prefers-color-scheme: dark) {
  .is-puli .waitlist { --paper: #323537; --ink: #FBF8F3; --muted: #BDB9B2; --line: #45474D; --hair: #6A6B70; --accent: #FAC775; --on-accent: #27282B; --glass: #27282B; }
}
.is-puli .waitlist__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 72px; padding-bottom: 128px; }
.waitlist__icon { display: block; width: 200px; height: auto; margin-bottom: 32px; border-radius: 22.37%; box-shadow: 0 10px 24px rgba(23, 63, 60, 0.28); }  /* the app icon, as the Dock shows it: a square image, its corners rounded here, Apple's 22.37% (Alan, Nov 19) */
@media (max-width: 480px) { .waitlist__icon { width: 160px; } }
.waitlist__dog { display: block; width: min(300px, 70%); height: auto; border-radius: 6px; margin-bottom: 24px; }  /* its cream ground, framed, on the teal */
.is-puli .waitlist__copy { align-items: center; gap: 28px; }
.is-puli .waitlist__heading { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.is-puli .waitlist__intro p, .is-puli .waitlist label { color: var(--muted); }
.is-puli .waitlist__intro p { max-width: 30em; font-size: 18px; }
.is-puli .waitlist__form { width: 100%; max-width: 480px; }
.is-puli .waitlist .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.is-puli .field__row { gap: 8px; }
.is-puli .field__row input { flex: 1 1 220px; min-height: 46px; border: 1px solid var(--ink); border-radius: 3px; background: var(--glass); color: var(--ink); }
.is-puli .field__row input::placeholder { color: var(--muted); }
.is-puli .waitlist .button--inverse { border-radius: 8px; min-height: 46px; background: var(--cta); color: var(--cta-ink); border-color: var(--cta); font-weight: 500; }
.is-puli .waitlist .button--inverse:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.q-coming { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 10px;
  font-size: 16px; font-weight: 500; color: var(--ink); }  /* stands where the App Store badge will */
.waitlist__form--list { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }  /* the mailing list, under the badge */
.waitlist__lead { font-size: 18px; font-weight: 500; }
.is-puli .waitlist__form--list .waitlist__note { font-size: 13px; line-height: 1.5; }
.is-puli .waitlist__note { color: var(--muted); }
.is-puli .waitlist__note a { color: var(--ink); }
.is-puli .waitlist :focus-visible { outline-color: var(--ink); }
@media (max-width: 480px) { .is-puli .field__row .button { flex: 1 1 100%; } }

/* The meadow along the foot of the closing section (Alan, Nov 19): painted grass, poppies and three sheep, each placed by
   its center along the section's width; fewer on phones. With it, the section fills the screen under the menu bar less
   the footer's top row, so after "Keep me posted" the footer's name, links and copyright show at the bottom.
   --footer-top, measured by a script in index.html, is the footer's height down to its notice. The space between the
   form and the meadow gives and takes; it never drops below 15px (the meadow stands 133px tall). */
.is-puli .waitlist:has(.q-meadow) { position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: calc(100svh - var(--menu-h) - var(--footer-top, 0px)); }
.is-puli .waitlist:has(.q-meadow) .waitlist__inner { flex: 1; padding-bottom: 148px; }
@media (max-width: 760px) { .is-puli .waitlist:has(.q-meadow) { min-height: 0; } .is-puli .waitlist:has(.q-meadow) .waitlist__inner { padding-bottom: 136px; } }
.q-meadow { position: absolute; inset: auto 0 0; height: 0; pointer-events: none; }
.q-meadow img { position: absolute; bottom: 0; height: auto; transform: translateX(-50%); }
.q-meadow img.q-meadow__flip { transform: translateX(-50%) scaleX(-1); }
@media (max-width: 760px) { .q-meadow .q-meadow__wide { display: none; } }

/* A graphite line along the top of the footer (Alan, Nov 19), matching the menu bar's foot; lighter graphite by night.
   Shown even after the closing section, where site.css otherwise drops it. */
.is-puli .site-footer, .is-puli main:has(> .waitlist:last-child) + .site-footer { border-top: 1px solid #323537; }
@media (prefers-color-scheme: dark) { .is-puli .site-footer, .is-puli main:has(> .waitlist:last-child) + .site-footer { border-top-color: #6A6B70; } }

/* ---------- phones and tablets ---------- */

@media (max-width: 900px) {
  .q-section { padding: 64px 0; }
  .q-head { margin-bottom: 40px; }
  .q-hero { padding: 64px 0; }
  .q-hero .q-shot { margin-top: 28px; }
  .q-hero__head { grid-template-columns: minmax(0, 1fr); }
  .q-hero__title { grid-column: 1 / -1; text-align: center; font-size: clamp(42px, 12vw, 64px); }
  .q-hero__sub { font-size: 18px; }
  .q-app { margin-top: 48px; }
  .q-app__body { grid-template-columns: minmax(0, 1fr); }
  .q-pane { border-left: 0; border-top: 1px solid var(--line); padding: 20px; }
  .q-typed { padding: 20px; font-size: 13px; }
  .q-statement { padding: 80px 0; }
  .q-cols { grid-template-columns: minmax(0, 1fr); }
  .q-col, .q-col + .q-col { padding: 22px 0 24px; border-left: 0; }
  .q-col + .q-col { border-top: 1px solid var(--line); }
  .q-pair { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .q-pens { margin-top: 56px; gap: 56px; }
  .q-head + .q-pens { margin-top: 56px; }
  .q-pen, .q-pen:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .q-pen:nth-child(even) .q-pen__copy { order: 0; }
  .q-plans { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .q-founder { padding: 64px 0; }
  .q-faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .q-btn, .q-link span, .q-faq__list summary::after { transition: none; }
}

/* ---------- the concept pages (/concepts/) still lean on these ---------- */

.is-puli { --surface: var(--glass); }
.p-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 560px) { .p-wrap { padding: 0 20px; } }
.p-tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--glass); }
.p-tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 500; }
.p-btn--solid { background: var(--accent); color: var(--on-accent); }
.p-btn--ghost { padding: 0 4px; color: var(--ink); }

/* The short pages (404, confirm, thanks): their button in the golden yellow of every call to action, and the footer
   held to the bottom of the window, with no band of background beneath it (Nov 19). */
.is-puli .hero__actions .button { background: var(--cta); color: var(--cta-ink); border-color: transparent; }
.is-puli .hero__actions .button:hover { background: var(--cta-hover); }
body.is-puli { display: flex; flex-direction: column; min-height: 100svh; }
body.is-puli > main { flex: 1 0 auto; }
