/* How far the list's window hangs over the hero band's lower edge. */
main { --hang: clamp(40px, 8vw, 120px); }

/* ═══════════════════════════════════════════════════════════════ hero ══
   A band across the whole screen, ruled like a cutting mat: the promise on
   the left, the scene on the right — sources stream into one product, and
   its adverts drop in as parcels, one per shop. The scene is the page's
   one moving moment; everything around it keeps still.                    */
.hero-wrap { padding-inline: clamp(8px, 1vw, 14px); }
.hero {
  position: relative;
  isolation: isolate;
  padding-bottom: var(--hang);
  background: var(--panel);
  border-radius: clamp(18px, 2vw, 28px);
  /* Teal on this panel is 4.4:1 in the light mode, so the panel gets a deeper one (4.9:1). */
  --grow: var(--grow-panel);
}
/* The ruling itself is site.css's, shared with the panel beside the account forms. */
.close::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 120% at 80% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 120% at 80% 50%, #000 20%, transparent 100%);
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(32px, 4vw, 56px);
}
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 3.4vw, 4.25rem); line-height: .98; letter-spacing: -.04em; }
/* The front page's two columns: sized to its text column, not the screen, which stops growing at
   503px while the screen goes on, so the words never set the hero's height over the scene. The
   heading is two lines since user testing found the hero too wordy. Front page only, since
   /pricing, /about, /waiting and the 404 share .hero. Before Danish's rule, which ties with it
   and so keeps its own size. */
@media (min-width: 1041px) {
  .front .hero-copy { container-type: inline-size; }
  .front .hero h1 { font-size: clamp(2.6rem, 12cqi, 3.75rem); }
}
/* Danish words run longer; a step smaller keeps the English shape up to 1040px. From there the
   English follows its column above and Danish keeps this, three lines already, so Danish is the
   larger of the two. */
:lang(da) .hero h1 { font-size: clamp(2.4rem, 1.1rem + 3.1vw, 3.9rem); }
.hero-lead { margin-top: 24px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-soft); max-width: 40ch; text-wrap: pretty; }
/* The journey in four short steps, two by two, numbered as the tour numbers them (.step-t,
   scene.css), with no pills or rules so nothing looks pressable. Two by two because three fit a
   row and left the fourth alone; the columns may shrink, so a long Danish step wraps rather than
   running off a narrow phone. */
.hero-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px clamp(16px, 4vw, 36px); font-size: 1.0625rem; }
.hero-steps .step-t { margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn { min-height: 48px; padding-inline: 24px; font-size: 1rem; }
.hero-fine { margin-top: 14px; font-size: var(--t-small); color: var(--ink-soft); }

@media (max-width: 1040px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
}
/* Phones: the buttons stacked and full width. */
@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  /* The front page's second way on, to the list, as a link under the join button, like the
     scene's "See it in the list": one thing to press, and the list a little sooner. Still 44px
     tall to tap. The 404 and /waiting keep their two buttons. */
  .front .hero-ctas { gap: 4px; }
  .front .hero-ctas .btn:not(.btn-primary) {
    align-self: flex-start;
    width: auto;
    min-height: 44px;
    padding-inline: 0;
    border-color: transparent;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: none;
  }
  .front .hero-ctas .btn:not(.btn-primary):hover { background: none; text-decoration-thickness: 2px; }
  /* A link does not press in like a button. */
  .front .hero-ctas .btn:not(.btn-primary):active { transform: none; }
}

/* The 404 (NotFound.razor): the band in one column with nothing hanging over it, and the logo
   drawn large, its pupils turned aside as if looking for the page. Placed, not animated. */
.lost { --hang: 0px; }
.lost .hero-in { grid-template-columns: minmax(0, 1fr); }
.lost .mark { display: block; height: clamp(4.5rem, 12vw, 7rem); width: auto; margin-bottom: clamp(24px, 3vw, 40px); }
.lost .mark-pupils { transform: translateX(-9px); }

/* CSS, not the script: the first thing anyone sees must never wait on a file that failed. */
.rise { animation: rise 640ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* The front page's stagger, here rather than in style attributes, which the policy refuses
   (ContentPolicy). /about, /pricing and /waiting set their own in their sheets. */
.front .hero-copy > h1 { --d: 40ms; }
.front .hero-copy > .hero-lead { --d: 120ms; }
.front .hero-copy > .hero-steps, .front .hero .stage-scene { --d: 160ms; }
.front .hero-copy > .hero-ctas { --d: 200ms; }

/* ═════════════════════════════════════════════════════════════ window ══
   A window that hangs over the band's lower edge: the plans on /pricing.
   The window itself is site.css's .board. The front page's list sits on
   the page instead (climb.css).                                           */
.board-wrap { position: relative; z-index: 1; margin-top: calc(-1 * var(--hang)); }

/* Opens smoothly where the browser can size to auto; elsewhere it simply opens. */
:root { interpolate-size: allow-keywords; }
.how-q::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 320ms var(--ease), content-visibility 320ms allow-discrete;
}
.how-q[open]::details-content { block-size: auto; }

/* ═════════════════════════════════════════════════════ how we count ══
   The questions show what is inside; each answer waits to be opened.    */
.how {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 6vw, 96px);
  padding-block: var(--bay-lg);
}
.how-head h2 { font-size: var(--t-h2); }
.how-head p { margin-top: 12px; color: var(--ink-soft); max-width: 30ch; text-wrap: pretty; }
/* The totals behind the picture, in small print: the hero shows the sources by name only. */
.how-head .how-src { margin-top: 16px; font-size: var(--t-small); max-width: 36ch; }
.how-list { border-bottom: 1px solid var(--line); }
.how-q { border-top: 1px solid var(--line); }
.how-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
}
.how-q summary::-webkit-details-marker { display: none; }
.how-q summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 260ms var(--ease);
}
.how-q[open] summary::after { transform: translateY(2px) rotate(225deg); }
.how-q summary:hover::after { border-color: var(--ink); }
.how-q p { padding-bottom: 24px; color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }
.how-q strong { color: var(--ink); font-weight: 650; }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); } }
/* /about's paragraphs beside a heading, in the questions' two columns. */
.team-text { color: var(--ink-soft); font-size: var(--t-lead); max-width: 62ch; text-wrap: pretty; }
.team-text p + p { margin-top: 1em; }

/* ═══════════════════════════════════════════════════════════ closing ══
   The page's one dark band, ruled like the hero's, so the page ends on
   the decision rather than trailing off into small print.                */
.close-wrap { padding-inline: clamp(8px, 1vw, 14px); }
.close {
  position: relative;
  isolation: isolate;
  background: var(--band);
  color: var(--band-ink);
  border-radius: clamp(18px, 2vw, 28px);
  --rule: var(--band-rule);
  --rule-hi: var(--band-rule);
}
.close-in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 104px) var(--gutter);
}
.close h2 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -.035em; }
.close p { margin-top: 16px; max-width: 48ch; font-size: var(--t-lead); color: var(--band-soft); text-wrap: pretty; }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.close .btn { min-height: 48px; padding-inline: 24px; font-size: 1rem; border-color: var(--band-ink); color: var(--band-ink); }
.close .btn:not(.btn-primary):hover { background: color-mix(in srgb, var(--band-ink) 10%, transparent); }
.close .btn-primary { background: var(--band-ink); color: var(--band); }
.close .btn-primary:hover { background: color-mix(in srgb, var(--band-ink) 86%, var(--band)); }
.close :focus-visible { outline-color: var(--band-ink); }

/* ════════════════════════════════════════════════════════════ footer ══
   SiteFooter: who we are and how to reach us, then the company's line
   under a hairline. Every link is at least 44px tall to tap; they measured
   17–21px. The address is underlined, because a link inside text needs
   more than a colour to be seen as one.                                  */
.foot { padding-block: 40px; font-size: var(--t-small); color: var(--ink-soft); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 48px; }
.foot-about { display: grid; justify-items: start; gap: 4px; max-width: 52ch; }
/* As tall as the nav's links, so the wordmark and the links share a centre line. */
.foot-about .brand { min-height: 44px; }
.foot-mail { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
.foot-mail:hover { text-decoration-thickness: 2px; }
.foot-nav { display: flex; flex-wrap: wrap; column-gap: 28px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
/* Privacy and terms: the footer's own size, since a review found them too small at 13px, and a
   shade darker than the line they sit in to read as links. */
.foot-legal a { color: var(--ink-soft); text-decoration: underline; text-decoration-thickness: 1px; }
.foot-legal a:hover { color: var(--ink); }
/* NVIDIA's trademark line, wherever its badge is: its own line under the company's, and the only
   small print left. */
.foot-tm { flex-basis: 100%; font-size: var(--t-micro); }
/* A phone: the address and the small print's links are tap targets too. */
@media (max-width: 900px) {
  .foot-mail, .foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ══════════════════════════════════════════════════════════ members ══
   Memberships: DI's logo and NVIDIA's badge on one line, a hairline
   between, each in its owner's colours — their light-ground files or their
   dark-ground ones. The theme switch's two values (ground.css) already say
   which mode is on, following the device until the reader presses the
   switch, so the logos borrow them rather than restating the selectors.
   One height sizes the row; DI's logo is a bare wordmark beside NVIDIA's
   boxed one, so it stands three fifths as tall to weigh the same, and
   the row shrinks with a phone rather than wrapping the line away; at
   320px wide it still fits. 56px at most, the footer's size near enough,
   so the band below stays low.                                           */
.members { --h: clamp(40px, 11vw, 56px); display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.members img { width: auto; }
.members .inception { height: var(--h); }
.members .di { height: calc(var(--h) * .6); }
.members .for-light { display: var(--moon); }
.members .for-dark { display: var(--sun); }
.members-rule { width: 1px; height: var(--h); background: var(--line-hi); }
/* The footer's row (SiteFooter), a step smaller. After .members, whose height it overrides: placed
   before it, the footer's logos drew at the band's size. */
.foot-members { --h: clamp(40px, 11vw, 52px); margin-top: 16px; }
/* The band between the hero and the list, between two hairlines: seen by
   everyone who lands, never inside the hero itself. On a wide screen the
   logos and then the sentence, as one centred group, so the sentence stays
   beside NVIDIA's badge; narrower, the logos over the sentence. A phone
   keeps the logos and drops the sentence, so the list is not pushed down.
   Kept low, about 120px on a desktop: under the three-line headline it sits
   whole on a 1440×900 first screen, and the list follows close behind.    */
.members-band { padding-top: clamp(16px, 2vw, 24px); }
.members-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px 56px;
  padding-block: clamp(16px, 1.5vw, 20px);
  border-block: 1px solid var(--line);
}
.members-in p { font-size: var(--t-lead); color: var(--ink-soft); text-wrap: pretty; }
@media (max-width: 1040px) {
  .members-in { flex-direction: column; }
  .members-in p { text-align: center; }
}
@media (max-width: 560px) { .members-in p { display: none; } }
