/* Arvanu homepage, redesign of 13 Nov 2026 (owner-answers.md): the first screen is a labelled sample proposal.
   Loaded only by the homepage, on top of site.css (build.mjs, newDesign). site.css holds the shared system, including the
   proposal sheet (.sheet, .sheet-head, .terms, .term); this file holds the homepage's own sections and where they sit on the grid. */

/* ---------- Hero: who it is for, the price to start, who you talk to, and a sample of the written proposal ---------- */
.hero { padding-top: var(--s3); row-gap: 0; }
.hero h1 {
  grid-column: 1 / 10;
  grid-row: 1;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 12.5em;
}
.hero h1 .l { display: block; text-wrap: balance; }
.pitch { grid-column: 1 / 5; grid-row: 2; display: flex; flex-direction: column; align-items: flex-start; margin-top: var(--s4); }
.offer { font-size: var(--t-lead); line-height: 1.5; }
.pitch .btn { margin-top: var(--s3); }
.price-cue { margin-top: 12px; font-size: 15px; line-height: 1.45; max-width: 22em; }
/* the link sits in the sentence: padding with an equal negative margin gives it a 44px tap target without opening the line */
.price-cue .text-link { display: inline-block; min-height: 0; padding-block: 12px; margin-block: -12px; }
.cta-note { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
/* The founder strip: named and pictured in the first screen. On desktop it sits at the foot of the column, level with the sheet's end. */
.who { margin-top: auto; padding-top: var(--s2); align-self: stretch; max-width: 360px; display: flex; align-items: center; gap: var(--s2); border-top: 1px solid var(--rule); }
.who img { flex: none; width: 64px; height: 76px; object-fit: cover; border-radius: 2px; }
.who figcaption { font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
.who .who-name { font-size: var(--t-body); font-weight: 600; color: var(--ink); }

/* The path switch: three radio buttons drawn as buttons. Changing one swaps the sheet's row texts in place (below), with or
   without JavaScript; app.js only reports which sample was shown. */
.sample { grid-column: 5 / 13; grid-row: 2; margin-top: var(--s4); }
.sample-switch { margin: 0 0 10px; padding: 0; border: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.sample-switch legend { padding: 0; margin-bottom: 4px; font-size: var(--t-small); color: var(--muted); }
.sample-switch label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--control-border); border-radius: 6px; background: var(--paper); font-size: 15px; line-height: 1.2; cursor: pointer; }
.sample-switch label:hover { border-color: var(--ink); }
.sample-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sample-switch label:has(:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sample-switch label:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Every sample's text is in the page. The three versions of a row share one cell, so each row is as tall as its longest
   version and the sheet never changes height when the sample changes. Only the chosen one is visible (and read out). */
.hero .term { position: relative; grid-template-columns: 112px minmax(0, 1fr); }
.vary { display: grid; }
.vary > p { grid-area: 1 / 1; }
.vary > p:not([data-path="task"]) { visibility: hidden; }
.sample:has(input[value="idea"]:checked) .vary > [data-path="task"], .sample:has(input[value="lead"]:checked) .vary > [data-path="task"] { visibility: hidden; }
.sample:has(input[value="idea"]:checked) .vary > [data-path="idea"], .sample:has(input[value="lead"]:checked) .vary > [data-path="lead"] { visibility: visible; }
.hero .term[data-n="start"] { border-bottom: 0; }
.hero .sheet { padding-bottom: 12px; }

/* The margin notes: one quiet ruled group under the sheet (phones, medium widths, and browsers without subgrid) */
.sheet-notes { margin-top: var(--s2); display: grid; gap: var(--s1); padding-left: var(--s2); border-left: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
.sheet-notes li { text-wrap: pretty; }

/* Medium widths and up: the pitch on the left, the sample beside it */
@media (min-width: 900px) and (max-width: 1179px) {
  .hero h1 { font-size: 56px; }
  .pitch { grid-column: 1 / 6; }
  .sample { grid-column: 6 / 13; }
  /* the sheet runs below the first screen here, so the founder strip follows the actions instead of waiting at its foot */
  .who { margin-top: var(--s4); }
}

/* Desktop: the sheet in columns 5 to 9 and its notes in the margin, each note on the row it explains. The sheet's rows are
   the sample's own grid rows (subgrid), so the notes line up by layout alone, with no measuring script. Thin ink leaders leave
   the sheet's edge and cross the gutter: one bracket joins Fee and Timeline. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1180px) {
    .sample { display: grid; grid-template-columns: subgrid; row-gap: 0; align-content: start; }
    .sample-switch { grid-column: 1 / 6; grid-row: 1; }
    .hero .sheet { grid-column: 1 / 6; grid-row: 2 / span 9; display: grid; grid-template-rows: subgrid; }
    .hero .sheet-head { grid-row: 1; }
    .hero .terms { grid-row: 2 / span 8; display: grid; grid-template-rows: subgrid; }
    .sheet-notes { grid-column: 6 / 9; grid-row: 3 / span 8; display: grid; grid-template-rows: subgrid; gap: 0; margin: 0; padding: 0; border: 0; }
    /* size containment: a note never makes its row taller, it may run on beside the next row */
    .sheet-notes li { padding-top: 12px; contain: size; }
    .n-fee { grid-row: 3 / span 2; }
    .n-who { grid-row: 6; }
    .n-own { grid-row: 7; }
    /* Leaders start at the sheet's outer edge: the row's edge plus the sheet's 24px padding and 1px border */
    .hero .term[data-n="who"]::after, .hero .term[data-n="own"]::after { content: ""; position: absolute; top: 22px; left: calc(100% + 25px); width: calc(var(--gap) - 6px); border-top: 1.25px solid var(--ink); }
    .hero .term[data-n="fee"]::after { content: ""; position: absolute; top: 22px; bottom: -1px; left: calc(100% + 25px); width: 10px; border-top: 1.25px solid var(--ink); border-right: 1.25px solid var(--ink); }
    .hero .term[data-n="time"]::after { content: ""; position: absolute; top: 0; height: 23px; left: calc(100% + 25px); width: 10px; border-bottom: 1.25px solid var(--ink); border-right: 1.25px solid var(--ink); }
    .hero .term[data-n="fee"]::before { content: ""; position: absolute; top: calc(100% + 0.5px); left: calc(100% + 35px); width: calc(var(--gap) - 16px); border-top: 1.25px solid var(--ink); }
  }
}

/* ---------- Built and delivered for a client: the screenshot with its margin notes, the first proof under the hero ----------
   The bench, notes and leader lines are the case study's (work.css, .showcase): the same rules, here for the homepage's notes.
   The screenshot is no longer in the first screen, so it loads lazily and the page has no image preload. */
.showcase { padding-top: var(--s6); }
.showcase .lead { margin-top: var(--s3); }
.showcase .note-word { display: block; font-size: var(--t-small); color: var(--muted); }
.showcase .caption { grid-column: 1 / 10; grid-row: 2; margin-top: var(--s2); }
@media (min-width: 1180px) {
  .showcase .bench { margin-top: var(--s5); }
  .showcase .note-word { display: none; }
  .showcase .notes li::before { display: none; }
  .showcase .leaders-up { display: block; }
  .showcase .leaders-up path { stroke-linejoin: round; stroke-linecap: round; }
  .showcase .leaders-up .line path, .showcase .leaders-up .ink path { stroke-width: 1px; }
  .showcase .leaders-up .halo path { stroke-width: 2.5px; }
  .showcase .leaders-up .ink path { shape-rendering: crispEdges; }
  .showcase .note-fleet { --y: 6; }
  .showcase .note-sale { --y: 77; }
  .showcase .note-lang { --y: 186; }
  .showcase .caption { grid-column: 10 / 13; grid-row: 1; align-self: start; margin-top: 0; position: relative; top: calc(285 / 870 * 100%); }
}
@media (max-width: 1179px) {
  .showcase .leaders-mid { display: block; }
  .showcase .art { align-self: start; }
  .showcase .notes { grid-row: 1; margin-top: 0; }
  .showcase .notes li { position: static; top: auto; transform: none; }
  .showcase .notes .note-lang { transform: none; }
}
@media (max-width: 899px) {
  .showcase .leaders-mid { display: none; }
  .showcase .art { margin-right: var(--s1); }
  /* stretched, the box has its final width before the image arrives, and the image's aspect ratio sets its height (no shift) */
  .showcase .art { align-self: stretch; }
  .showcase .caption { order: 2; align-self: stretch; margin-top: var(--s1); position: relative; }
  .showcase .notes { order: 3; display: grid; gap: var(--s1); margin-top: 4px; }
  .showcase .notes li { position: relative; }
  .showcase .notes .note-lang { order: -1; display: flex; align-items: flex-start; }
  .showcase .note-word { display: block; }
  .showcase .leaders-phone { display: block; }
  .showcase .leaders-phone path { stroke-linejoin: round; }
  .showcase .leaders-phone .line path { stroke-width: 1.25px; }
  .showcase .leaders-phone .halo path { stroke-width: 3px; stroke: rgb(31 51 41 / 0.75); }
  .showcase .art::after { content: ""; position: absolute; left: 100%; top: calc(79 / 650 * 100% - 0.625px); bottom: 0; width: 8px; border-top: 1.25px solid var(--ink); border-right: 1.25px solid var(--ink); }
  .showcase .caption::after { content: ""; position: absolute; top: -8px; bottom: -4px; left: calc(100% - 1.25px); border-left: 1.25px solid var(--ink); }
  .showcase .notes .note-lang::before { display: block; content: ""; position: absolute; top: 0; left: calc(100% - 1.25px); width: 0; height: 0.75em; border: 0; border-left: 1.25px solid var(--ink); }
  .showcase .notes .note-lang::after { content: ""; flex: 1 0 16px; margin: calc(0.75em - 0.625px) 0 0 var(--s1); border-top: 1.25px solid var(--ink); }
  .showcase .art img { aspect-ratio: 1440 / 650; object-fit: cover; object-position: top; }
  .showcase .leaders-phone { height: auto; aspect-ratio: 1440 / 870; }
}

.rec-link { margin-top: var(--s1); }
/* The client's words and the second count share one ruled band */
.proof-quote { grid-column: 1 / 6; margin-top: var(--s4); }
.proof-quote blockquote p { font-size: var(--t-lead); line-height: 1.45; max-width: 24em; }
.proof-quote figcaption { margin-top: var(--s1); font-size: var(--t-small); }
.proof-fact { grid-column: 6 / 10; margin-top: var(--s4); align-self: start; padding-left: 15px; border-left: 1px solid var(--rule); }
.proof-fact b { display: block; font-size: var(--t-lead); line-height: 1.3; }
.proof-fact .text-link { display: flex; width: max-content; }

/* ---------- What do you need help with? Three rows, each with where it starts in the margin ---------- */
.row-sub { display: block; margin-top: 4px; font-size: var(--t-small); font-weight: 400; line-height: 1.4; color: var(--muted); }
.path-rows .row-body { font-size: var(--t-body); }
.path-price { display: grid; gap: 2px; align-content: start; }
.path-price .label { font-size: var(--t-small); color: var(--muted); }
.price-big { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.price-big .from { font-size: 0.7em; font-weight: 400; letter-spacing: 0; }
.price-month { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.path-price .then { margin-top: 4px; font-size: var(--t-small); color: var(--muted); }

/* ---------- Who you'll work with ---------- */
.portrait { grid-column: 1 / 4; grid-row: 1 / span 3; }
.portrait img { width: 100%; border-radius: 2px; }
.about-text { grid-column: 4 / 10; grid-row: 1; }
.about-text .lead { margin-top: var(--s3); }
.promises { margin-top: var(--s3); display: grid; gap: var(--s1); }
.promises li { padding-left: 15px; border-left: 1px solid var(--rule); }
.about-links { margin-top: var(--s2); display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.about-before { grid-column: 10 / 13; grid-row: 1; padding-top: 6px; }

/* ---------- What owners ask before they book: six questions, shown open ---------- */
.qa { margin-top: var(--s3); }
.qa .row { padding-block: var(--s3); }
.qa dt { font-size: var(--t-lead); line-height: 1.3; }
.qa dd { margin: 0; }
.qa dd p + p { margin-top: var(--s1); }
/* the questions end on their own last rule, so "Not ready to talk yet?" needs none */
#not-ready::before { display: none; }
.not-ready h2 { font-size: var(--t-h3); }
.not-ready h2 + p { margin-top: var(--s1); }
.nr-links { margin-top: var(--s1); display: flex; flex-wrap: wrap; gap: 0 var(--s3); }

/* ---------- Close ---------- */
.close-facts { grid-row: 2 / span 2; margin-top: calc(var(--s3) + 3px); gap: var(--s1); }
.close-facts .text-link { margin-block: -12px -10px; }  /* keeps its 44px tap target, aligned with the line's tick */
.close .cta-row { grid-row: 3; }
/* The close builds to something: a larger heading (still smaller than the H1) and a taller button */
.close h2 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.02em; }
.close .btn { min-height: 56px; }

/* ---------- Phones and small tablets: one column ---------- */
@media (max-width: 899px) {
  .hero h1, .pitch, .sample, .proof-quote, .proof-fact, .portrait, .about-text, .about-before, .close-facts, .close .cta-row {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero { padding-top: var(--s2); }
  .hero h1 { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.06; }
  .hero h1 .l { text-wrap: wrap; }
  .pitch { margin-top: var(--s2); }
  .offer { font-size: var(--t-lead); }
  .pitch .btn { margin-top: 20px; align-self: stretch; }
  .price-cue { margin-top: var(--s1); max-width: none; }
  .cta-note { margin-top: var(--s1); }
  .who { margin-top: 20px; max-width: none; }
  .sample { margin-top: var(--s4); }
  .sample-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sample-switch legend { margin-bottom: 6px; }
  .sample-switch label { justify-content: center; min-height: 52px; padding: 4px 6px; font-size: var(--t-small); text-align: center; }
  .hero .term { grid-template-columns: 92px minmax(0, 1fr); }

  .showcase { padding-top: var(--s5); }
  .showcase .lead { margin-top: var(--s2); }

  .proof-quote, .proof-fact { margin-top: var(--s3); }
  .proof-fact { padding-left: var(--s2); }

  .path-rows .row { display: flex; flex-direction: column; gap: var(--s1); }
  .price-big { font-size: 22px; }

  #about { grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--s2); }
  .portrait { grid-column: 1; grid-row: 1; }
  .about-text { display: contents; }
  .about-text h2 { grid-column: 2; grid-row: 1; align-self: end; }
  .about-text .lead, .promises, .about-links, .about-before { grid-column: 1 / -1; }
  .about-text .lead { margin-top: var(--s2); }
  .promises { margin-top: var(--s2); }
  .about-links { margin-top: var(--s1); }
  .about-before { margin-top: var(--s2); padding-top: 0; }

  .qa .row { padding-block: var(--s2); }
  .qa dt { font-size: var(--t-body); font-weight: 600; }

  .close-facts { margin-top: var(--s2); }
}

/* The AI section (14 Nov 2026): the lab page's chart with the release list under it. lab.css styles both; only the placement
   is set here. app.js hides the section when the data API is empty or failing. */
.home-pulse[hidden] { display: none; }
.home-pulse-body { grid-column: 1 / 10; min-width: 0; margin-top: var(--s4); }
.home-pulse-body .hero-feed { margin-top: var(--s4); }
@media (max-width: 1179px) {
  .home-pulse-body { grid-column: 1 / -1; margin-top: var(--s3); }
}
/* The chart adds its row of controls under itself when it starts. Their room is held from the start, so nothing below moves. */
.home-pulse .stage:not(:has(+ .pulse-tools)) { margin-bottom: 56px; }
