/* site-ellie: the shared look of every page (owner request, 17 Nov 2026: the layout and feel of a calm planner site,
   in AgentDesign's own words and pictures). Loaded after site.css on every page; the home page adds home-ellie.css.
   Serif headlines (Young Serif), the system font for everything else, an ink pill for the one call to action,
   big soft panels. Colours come from tokens.css only, in Light and Dark. */

body { background: var(--win); }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.012em; }
h1 { line-height: 1.06; }
h2 { line-height: 1.1; }
/* The highlight sits under the words without moving them: the side padding is cancelled by an equal negative margin, so
   a space before the mark and punctuation after it keep their usual distance. */
mark { padding: .1em .12em; margin: 0 -.12em; border-radius: 4px; background: var(--mark); color: var(--on-mark); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nowrap { white-space: nowrap; }
@media (max-width: 400px) { .nowrap { white-space: normal; } }

/* Buttons: pills. The primary is ink on the page (near-black in Light, near-white in Dark); a ghost pill beside it. */
.btn { border-radius: 999px; }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.btn.primary:hover { background: var(--ink-hover); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--control-line); }
.btn.ghost:hover { background: var(--hover); }
.btn.cta { min-height: 52px; padding: 0 28px; font-size: 17px; font-weight: 600; }
.btn.primary:focus-visible, .btn.ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* An eyebrow over a headline, in the accent. */
.kicker { margin: 0 0 12px; color: var(--accent); font-size: 15px; line-height: 20px; font-weight: 600; }
.kicker span { margin-right: 6px; font-variant-numeric: tabular-nums; opacity: .7; }

/* Top bar: the page's own colour, the links in the middle, Buy and the pill on the right. */
.topbar { height: 68px; background: color-mix(in srgb, var(--win) 92%, transparent); border-bottom: 1px solid transparent; -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.topbar-in { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; height: 67px; gap: 16px; }
.topbar-in > .brand { justify-self: start; }
.topnav { justify-self: center; margin: 0; gap: 2px; }
.topnav a { min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--text); font-size: 15px; }
/* The page you are on: the marketing yellow (site.js currentPage() sets aria-current from the address). */
.topnav a[aria-current="page"] { background: var(--mark); color: var(--on-mark); }
.top-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.top-buy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 500; }
.top-buy:hover { background: var(--hover); text-decoration: none; }
.top-buy { white-space: nowrap; }
.topbar .btn.primary.top-try { margin: 0; min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.try-short { display: none; }
@media (max-width: 1080px) and (min-width: 721px) { .topnav a { padding: 0 10px; font-size: 14px; } .top-buy { display: none; } }
@media (max-width: 900px) and (min-width: 721px) {
  .topbar-in { gap: 8px; }
  .topnav a { padding-inline: 8px; }
  .try-long { display: none; }
  .try-short { display: inline; }
}
@media (max-width: 720px) {
  .topbar { height: 60px; }
  .topbar-in { display: flex; height: 59px; gap: 8px; }
  .topbar-in > .brand { margin-right: auto; }
  .top-buy { display: none; }
  .topbar .btn.primary.top-try { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .try-long { display: none; }
  .try-short { display: inline; }
  .menu-btn { border-radius: 999px; }
  .topnav { top: 60px; justify-self: stretch; inset-inline: var(--gutter); width: auto; padding: 8px; border: 1px solid var(--line); border-radius: 16px; }
  .topnav a { min-height: 44px; }
}
@media (max-width: 360px) {
  .topbar .brand .mk { display: block; }
  .topbar .brand .wm { display: none; }
}

/* Panels and cards: soft, big corners, no outline. */
.panel { border-radius: 28px; background: var(--card-bg); }
.card { border-radius: 20px; }

/* Tab rows everywhere: a pill switch, the open tab in ink. */
:root .stagetabs > .tablist, :root .tablist:not(.demo-stage *) { padding: 4px; border-radius: 999px; }
:root .stagetabs > .tablist > .tab, :root .tablist:not(.demo-stage *) > .tab { min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--text); }
:root .stagetabs > .tablist > .tab[aria-selected="true"], :root .tablist:not(.demo-stage *) > .tab[aria-selected="true"] { background: var(--mark); color: var(--on-mark); box-shadow: inset 0 0 0 1px var(--mark-edge); font-weight: 600; }
@media (max-width: 720px) { :root .stagetabs > .tablist > .tab, :root .tablist:not(.demo-stage *) > .tab { min-height: 44px; } }

/* Cards on the inner pages: soft, rounder, no outline where they sit on the page. */
:root .get-card { padding: 36px; border: 0; border-radius: 28px; background: var(--card-bg); }
:root .get-card.get-licence { background: var(--win); border: 1px solid var(--line); box-shadow: var(--lift); }
:root .get-card h2 { font-family: var(--display); font-weight: 400; }
:root .get-price b { font-family: var(--display); font-weight: 400; }
/* The choice block sits in the middle of the page (owner 17 Nov: the pair sat left with empty space at 1440). */
:root .get > h1, :root .get > .lead, :root .get > .caption { margin-inline: auto; text-align: center; }
:root .get-cards { margin-inline: auto; }
:root .cards .card { border: 0; border-radius: 20px; background: var(--card-bg); }
:root .node { border: 0; border-radius: 20px; background: var(--card-bg); }
:root .theme-index a { border-radius: 999px; }

/* Inner pages: serif titles. */
.page h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; }
.page h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }

/* Footer: a soft band, the brand and the pill on the left, two columns of links and a separate legal row. */
.footer { margin-top: clamp(96px, 12vw, 160px); padding: 40px 0; background: var(--side); border-top: 0; }
.foot-cols { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot-lead { display: grid; justify-items: start; align-content: start; gap: 12px; }
.foot-brand { font-size: 17px; }
.foot-brand .mk { width: 28px; height: 28px; }
.foot-brand .mk rect { fill: var(--text); }
.foot-brand .mk g { stroke: var(--side); }
.foot-brand .mk .dot { fill: var(--side); }
.foot-made { margin-top: 8px; }
.foot-made [role="img"] { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji; }
.foot-line { max-width: 30ch; color: var(--text2); font-size: 15px; line-height: 22px; }
.foot-try { margin-top: 8px; min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.foot-h { color: var(--text); }
.foot-cols nav a { color: var(--text2); }
.foot-lines { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.foot-lines nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.foot-lines .foot-h { margin: 0; }
.foot-lines nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--text2); }
.foot-cols nav a:hover { color: var(--text); }
@media (max-width: 720px) {
  .footer { padding-top: 32px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-lead { grid-column: 1 / -1; }
}

/* Selected step in a scene's step row: the marketing yellow, dark number (the focus ring stays the accent). */
.stepgroup button[aria-current="step"] { color: var(--on-mark); }
.stepgroup button[aria-current="step"]::before { background: var(--mark); border-color: var(--mark-edge); }

/* Three real quotes from people using AgentDesign (owner, 17 Nov), word for word, labelled only "AgentDesign user". */
.voice-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 40px auto 0; }
.voice { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--card-bg); }
.voice blockquote { margin: 0; }
.voice blockquote p { max-width: none; font-size: 19px; line-height: 1.5; font-weight: 500; color: var(--text); }
.voice-by { margin-top: auto; color: var(--text2); font-size: 14px; line-height: 20px; font-weight: 600; }
.voice-about { display: inline-flex; align-items: center; align-self: flex-start; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--win); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; }
.voice-about:hover { background: var(--hover); text-decoration: none; }
.voice-about::after { content: "\00a0\2192"; }
.page .voices { margin-top: 96px; }
.page .voices .voice-list { margin-left: 0; }
@media (max-width: 960px) { .voice-list { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }
@media (max-width: 720px) { .voice { padding: 22px; } .voice blockquote p { font-size: 17px; } .voice-about { min-height: 44px; } }

.revision-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 36px); max-width: 760px; margin: 48px auto 0; padding: clamp(16px, 2.5vw, 28px); border-radius: 24px; background: var(--card-bg); }
.revision-example img { display: block; width: 100%; height: auto; border-radius: 12px; }
:is(.hero-guide, .revision-example figcaption, .video-slot figcaption, .fit-card p, .qs details p) a {
  text-decoration: underline 1px color-mix(in srgb, currentColor 55%, transparent);
  text-underline-offset: .18em;
}
:is(.hero-guide, .revision-example figcaption, .video-slot figcaption, .fit-card p, .qs details p) a:hover { text-decoration-color: currentColor; }
.revision-example figcaption { color: var(--text2); }
@media (max-width: 600px) { .revision-example { grid-template-columns: minmax(0, 1fr); } }

.guide > .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.guide h1 + .caption { margin-top: var(--s3); }
.guide blockquote { margin: var(--s3) 0; padding: var(--s3) var(--s4); border-inline-start: 3px solid var(--accent); background: var(--card-bg); }

/* The offer in config.js (js/site.js offer()): hidden in the HTML, shown by the script only while it runs; after `ends`,
   or with scripts off, the pages read as without it. The banner is the marketing yellow with ink words. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.offer-pending .topbar:not(:has(+ .offer-float)) { margin-bottom: 52px; }
@media (max-width: 720px) { .offer-pending .topbar:not(:has(+ .offer-float)) { margin-bottom: 54px; } }
.offer-float { position: relative; z-index: 45; display: flex; justify-content: center; padding: 8px var(--gutter) 0; pointer-events: none; }
.offer-pill { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; max-width: 100%; padding: 6px 6px 6px 18px; background: var(--mark); color: var(--on-mark); border: 1px solid var(--mark-edge); border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; line-height: 20px; text-align: center; animation: offer-in 240ms var(--ease-out) both; }
.offer-pill p, .offer-card p { margin: 0; max-width: none; }
.offer-pill .btn.small { min-height: 30px; background: var(--win); border-color: var(--mark-edge); color: var(--text); }
.offer-link { color: var(--on-mark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.offer-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--on-mark); cursor: pointer; }
.offer-x:hover { background: rgba(0,0,0,0.08); }
.offer-pill code, .offer-card code { padding: 1px 6px; border: 1px dashed var(--control-line); border-radius: 4px; background: var(--win); color: var(--text); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
@keyframes offer-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .offer-pill { animation: none; } }
@media (min-width: 721px) {
  .offer-float { position: sticky; top: 68px; height: 52px; }
  .offer-pill { flex-wrap: nowrap; white-space: nowrap; }
  html.offer-on { --offer-h: 52px; scroll-padding-top: calc(72px + 52px); }
}
.offer-narrow, .bf-short { display: none; }
/* A phone: one row about 46 px tall. The words (the link to pricing), the code chip that copies itself, the x on the right. */
@media (max-width: 720px) {
  .offer-float { padding: 8px 16px 0; }
  .offer-pill { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 0 0 0 14px; border-radius: 16px; min-height: 46px; white-space: nowrap; }
  .offer-wide { display: none; }
  .offer-narrow { display: inline-flex; }
  .offer-lead { align-items: center; min-height: 44px; color: var(--on-mark); text-decoration: underline; text-underline-offset: 3px; }
  .offer-chip { align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
  .offer-chip span { min-width: 9.5ch; padding: 2px 8px; border: 1px dashed var(--control-line); border-radius: 4px; background: var(--win); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-align: center; }
  .offer-x { width: 44px; height: 44px; margin-left: auto; flex: none; }
}
@media (max-width: 360px) { .bf-long { display: none; } .bf-short { display: inline; } .offer-pill { padding-left: 12px; gap: 6px; } }
.get-price s, .plan-price s { align-self: center; margin-right: 6px; color: var(--text2); font-size: 28px; line-height: 32px; font-weight: 500; text-decoration-thickness: 2px; }
.offer-card { margin-top: var(--s4); padding: 14px 16px; background: color-mix(in srgb, var(--mark) 55%, var(--win)); border: 1px solid var(--mark-edge); border-radius: 14px; color: var(--on-mark); font-size: 15px; line-height: 22px; }
.offer-card .offer-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.offer-card .btn.small { background: var(--win); }
.offer-card .caption { margin-top: 8px; color: var(--on-mark); }
[data-offer-until] { white-space: nowrap; }
@media (min-width: 1100px) { :root .theme-index { top: calc(88px + var(--offer-h, 0px)); } }

/* The All features page: each stage shows the whole app window (main[data-whole]) under the pain, heading and line, as
   wide as the column allows (owner, 18 Nov: bigger, never cropped). */
:root .theme > .stagetabs { width: 100%; max-width: 1040px; }
/* A whole window on a narrow screen: the parts drawn over the pictures (the agent window, labels) shrink with the
   window instead of stopping at 11 px, so they never cover what the picture shows. */
[data-whole] .scene.sf { font-size: clamp(5px, 1.55cqw, 13.5px); }

.legal .wrap { overflow-wrap: anywhere; }
