/* DevTowers on devdelight.com: the page /devtowers and the short block on the home page.
   Loaded after site.css and built on its tokens (--sans, --mono, --gutter, --maxw, .wrap, the .mbp laptop frame, the nav, the footer).
   Everything is scoped to .dt. Each theme sets its own tokens here, never blended. The buttons match the site's own pill in each theme.
   Text colours are chosen against the WORST spot of each theme's background (Nagai's sky and Paper's vignette are fixed gradients,
   so any line can sit over any part of them): 4.5 to 1 for body text, 3 to 1 for large type and field borders. */
.dt { --dt-bg: #050605; --dt-ink: #f5f5f7; --dt-muted: rgba(245,245,247,.78); --dt-dim: rgba(245,245,247,.66); --dt-line: rgba(255,255,255,.14);
  --dt-accent: #37f08a; --dt-on: #050605; --dt-accent-ink: #37f08a; --dt-focus: #37f08a; --dt-err: #ffb4a8; --dt-err-ring: #ff8a80;
  --dt-field: rgba(255,255,255,.1); --dt-field-ink: #f5f5f7; --dt-field-line: rgba(255,255,255,.44); --dt-ph: rgba(245,245,247,.66);
  background: var(--dt-bg); color: var(--dt-ink); }
:root[data-theme="light"] .dt { --dt-bg: #f5f5f7; --dt-ink: #1d1d1f; --dt-muted: #424245; --dt-dim: #5c5c61; --dt-line: rgba(0,0,0,.14);
  --dt-accent: #0a7a3d; --dt-on: #ffffff; --dt-accent-ink: #0a6b36; --dt-focus: #0a7a3d; --dt-err: #b3261e; --dt-err-ring: #b3261e;
  --dt-field: #ffffff; --dt-field-ink: #1d1d1f; --dt-field-line: #86868b; --dt-ph: #5c5c61; }
:root[data-theme="nagai"] .dt { --dt-bg: transparent; --dt-ink: #1b2a4a; --dt-muted: #1b2a4a; --dt-dim: #1b2a4a; --dt-line: rgba(27,42,74,.38);
  --dt-accent: #ff7a59; --dt-on: #1b2a4a; --dt-accent-ink: #1b2a4a; --dt-focus: #1b2a4a; --dt-err: #6a0f0d; --dt-err-ring: #b3261e;
  --dt-field: #fbfbf7; --dt-field-ink: #1b2a4a; --dt-field-line: #1b2a4a; --dt-ph: #34496e; }
:root[data-theme="paper"] .dt { --dt-bg: transparent; --dt-ink: #222222; --dt-muted: #33291a; --dt-dim: #3f321d; --dt-line: rgba(60,45,20,.36);
  --dt-accent: #8f3320; --dt-on: #ffffff; --dt-accent-ink: #6f2718; --dt-focus: #8f3320; --dt-err: #7a1512; --dt-err-ring: #b3261e;
  --dt-field: #fffdf6; --dt-field-ink: #222222; --dt-field-line: #222222; --dt-ph: #5a4a30; }
:root[data-theme="marquee"] .dt { --dt-bg: transparent; --dt-ink: #f3ece2; --dt-muted: rgba(243,236,226,.82); --dt-dim: #b5a4a6; --dt-line: #3b2a31;
  --dt-accent: #ffb02e; --dt-on: #1c1608; --dt-accent-ink: #6cc5ff; --dt-focus: #6cc5ff; --dt-err: #ffb4a8; --dt-err-ring: #ff8a80;
  --dt-field: rgba(243,236,226,.1); --dt-field-ink: #f3ece2; --dt-field-line: rgba(243,236,226,.46); --dt-ph: #b5a4a6; }

.dt :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }   /* :where keeps this reset weaker than every rule below */ .dt ul { list-style: none; }
.dt .wrap { position: relative; }
.dt :focus-visible { outline: 2px solid var(--dt-focus); outline-offset: 3px; border-radius: 6px; }
.dt :is(a, button, input) { scroll-margin-top: 72px; }   /* a focused control never lands under the fixed menu bar */
.dt-eyebrow { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--dt-dim); }
.dt-status { display: inline-flex; align-items: center; gap: 7px; color: var(--dt-accent-ink); }
.dt-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dt-h1 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(44px, 13.5vw, 116px); margin-top: 14px; text-wrap: balance; }
/* the app's own headline, as text, between the name and the line that says what it is. Each sentence stays whole when the line wraps. */
.dt-claim { margin-top: 18px; font-size: clamp(25px, 3.5vw, 42px); line-height: 1.12; letter-spacing: -0.026em; font-weight: 600; color: var(--dt-ink); }
.dt-claim span { display: inline-block; }
.dt-sub { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.22; letter-spacing: -0.015em; color: var(--dt-muted); margin-top: 16px; text-wrap: balance; }
.dt-h2 { font-weight: 600; letter-spacing: -0.028em; line-height: 1.05; font-size: clamp(34px, 4.6vw, 60px); text-wrap: balance; }
.dt-lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.4; letter-spacing: -0.012em; color: var(--dt-muted); max-width: 40ch; }

/* the sign-up: one field and the site's filled pill (no outlined pill). The status line under it is filled in by signup.js. */
.dt-form { position: relative; display: flex; gap: 8px; width: min(100%, 480px); margin: 26px auto 0; }
.dt-form input[type="email"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--dt-field-line); background: var(--dt-field); color: var(--dt-field-ink); font: inherit; font-size: 16px; letter-spacing: 0; }
:root:is([data-theme="nagai"],[data-theme="paper"]) .dt-form input[type="email"] { border-width: 2px; }
.dt-form input::placeholder { color: var(--dt-ph); opacity: 1; }
.dt-form input[type="email"]:focus-visible { outline-offset: 2px; border-radius: 12px; }
.dt-form input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--dt-err-ring); }
.dt-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 980px; background: var(--dt-accent); color: var(--dt-on); font: inherit; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; text-decoration: none; transition: transform 120ms var(--ease-ui, ease-out), filter 160ms var(--ease-ui, ease-out); }
.dt-pill:hover { filter: brightness(1.06); }
.dt-pill:active { transform: scale(.97); }
.dt-pill:focus-visible { border-radius: 980px; }
.dt-pill[disabled] { opacity: .7; cursor: default; }
.dt-form .dt-pill { min-width: 212px; }   /* the button keeps its width when its words change to Sending… and Sent, so the field does not jump */
:root[data-theme="paper"] .dt-pill { box-shadow: 3px 3px 0 rgba(40,30,10,.35); }
.dt-form.is-done input, .dt-form.is-done button { opacity: .55; pointer-events: none; }
.dt .nl-status { min-height: 22px; margin: 10px auto 0; max-width: 480px; font-family: var(--sans); font-size: 15px; line-height: 22px; letter-spacing: -0.01em; color: var(--dt-accent-ink); text-wrap: balance; }
.dt .nl-status:empty { min-height: 0; margin-top: 0; }
.dt .nl-status.err { color: var(--dt-err); }
/* site.css colours .nl-status per theme with heavier selectors (and Marquee with an id-weight one); these keep the status line on this block's own tokens */
:root:root .dt .nl-status { color: var(--dt-accent-ink); }
:root:root .dt .nl-status.err { color: var(--dt-err); }
:root[data-theme="marquee"]:not(#mq) .dt .nl-status { color: var(--dt-accent-ink); }
:root[data-theme="marquee"]:not(#mq) .dt .nl-status.err { color: var(--dt-err); }
:root[data-theme="marquee"]:not(#mq) .dt .nl-fix:focus-visible { outline: 2px solid var(--dt-focus); }
.dt .nl-fix { min-height: 24px; color: inherit; }
.dt .nl-fix:focus-visible { outline: 2px solid var(--dt-focus); outline-offset: 2px; }
.dt-fine { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--dt-dim); }
.dt-fine span { display: inline-block; }   /* on a phone the line breaks between its two sentences */
.dt-link { color: var(--dt-accent-ink); font-size: 17px; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.dt-link::after { content: "›"; margin-left: 6px; }
.dt-link:hover { text-decoration-color: currentColor; }
:root:is([data-theme="nagai"],[data-theme="paper"]) .dt-link { text-decoration-color: currentColor; }
/* Marquee resets every link to "inherit, no underline" with an id-weight selector; these two put the button and the link back */
:root[data-theme="marquee"]:not(#mq) .dt a.dt-pill { color: var(--dt-on); }
:root[data-theme="marquee"]:not(#mq) .dt a.dt-link { color: var(--dt-accent-ink); text-decoration: underline; text-decoration-color: transparent; }
:root[data-theme="marquee"]:not(#mq) .dt a.dt-link:hover { text-decoration-color: currentColor; }

/* the page: top */
.dt-hero { padding: 132px 0 0; text-align: center; }
.dt-hero .mbp { margin: 56px auto 0; width: min(940px, calc(84vw - 16px)); }   /* the laptop's base is 16% wider than its lid: this keeps the base on screen at every width */
.dt-hero .mbp-lid, .dt-teaser .mbp-lid { transform: none; }
.dt .mbp-still { object-fit: cover; object-position: top center; }

/* the trailer in the laptop. The video is the story's site window (900 by 776), so it sits whole in the wide screen with the screen's own dark at both sides.
   Hidden until devtowers.js turns it on; the still underneath is the fallback. */
.dt-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0f14; opacity: 0; transition: opacity 240ms ease-out; }
.dt-video.is-on { opacity: 1; }
.dt-video[hidden], .dt-vctl[hidden] { display: none; }
.dt-video::cue { font-family: var(--sans); font-size: 0.9em; background: rgba(0,0,0,.78); color: #fff; }
/* the two controls sit above the laptop, so they are in the first screen and next in line after the sign-up for a keyboard */
.dt-vctl { --dt-chip: rgba(255,255,255,.12); --dt-chip-ink: #f5f5f7; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: center; margin: 30px auto 0; padding: 0 var(--gutter); }
.dt-hero .dt-vctl:not([hidden]) + .mbp { margin-top: 20px; }
:root[data-theme="light"] .dt-vctl { --dt-chip: rgba(0,0,0,.08); --dt-chip-ink: #1d1d1f; }
:root[data-theme="nagai"] .dt-vctl { --dt-chip: #fbfbf7; --dt-chip-ink: #1b2a4a; }
:root[data-theme="paper"] .dt-vctl { --dt-chip: #fffdf6; --dt-chip-ink: #222222; }
:root[data-theme="marquee"] .dt-vctl { --dt-chip: rgba(243,236,226,.12); --dt-chip-ink: #f3ece2; }
.dt-vbtn { min-height: 44px; min-width: 96px; padding: 0 18px; border: 0; border-radius: 980px; background: var(--dt-chip); color: var(--dt-chip-ink); font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; transition: transform 120ms var(--ease-ui, ease-out); }
.dt-vbtn:active { transform: scale(.97); }
.dt-vbtn:focus-visible { border-radius: 980px; }
:root[data-theme="nagai"] .dt-vbtn { box-shadow: 3px 3px 0 #1b2a4a; }
:root[data-theme="paper"] .dt-vbtn { box-shadow: 3px 3px 0 rgba(40,30,10,.35); }
.dt-cap { margin-left: 8px; font-size: 14px; line-height: 20px; color: var(--dt-dim); }
@media (max-width: 600px) { .dt-cap { flex: 0 0 100%; margin: 2px 0 0; } }
/* Local copies only (the script ignores it on the live site): /devtowers/?frame=window shows the trailer in a plain window of its own shape instead of the laptop, for Alex to compare */
.dt-media.is-window { width: min(720px, 100% - 2 * var(--gutter)); perspective: none; }
.dt-media.is-window .mbp-lid { aspect-ratio: 900 / 776; padding: 0; border-radius: 16px; background: #0b0f14; overflow: hidden; }
.dt-media.is-window .mbp-lid::before, .dt-media.is-window .mbp-base { display: none; }
.dt-media.is-window .mbp-screen { border-radius: 0; }

/* the page: what you do in it */
.dt-what { padding: 112px 0 0; }
.dt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 36px; border-top: 1px solid var(--dt-line); }
.dt-item { padding: 26px 0 28px; border-bottom: 1px solid var(--dt-line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; }
.dt-n { font-family: var(--mono); font-size: 14px; line-height: 30px; color: var(--dt-accent-ink); }
.dt-item h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.02em; font-weight: 600; }
.dt-item p { grid-column: 2; margin-top: 6px; font-size: 17px; line-height: 25px; color: var(--dt-muted); max-width: 36ch; }
.dt-also { margin-top: 22px; font-size: 15px; line-height: 22px; color: var(--dt-dim); }
.dt-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.dt-shot { margin: 0; }
.dt-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: 14px; border: 1px solid var(--dt-line); background: #0b100d; }
:root[data-theme="nagai"] .dt-shot img { border: 2px solid #1b2a4a; box-shadow: 8px 8px 0 #1b2a4a; }
:root[data-theme="paper"] .dt-shot img { border: 2px solid #222222; box-shadow: 4px 5px 0 rgba(40,30,10,.3); }
.dt-shot figcaption { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--dt-dim); }
:root[data-theme="nagai"] .dt-shot figcaption { margin-top: 18px; }

/* the page: where it is today */
.dt-now { padding: 112px 0 120px; text-align: center; }
.dt-now .dt-lead { margin: 14px auto 0; max-width: 44ch; }

/* the home page: the short block, third on the page */
.dt-teaser { padding: 96px 0; border-top: 1px solid var(--dt-line); overflow: hidden; }
.dt-teaser .dt-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.dt-teaser .dt-eyebrow { justify-content: flex-start; }
.dt-teaser .dt-h2 { margin-top: 12px; }
.dt-teaser .dt-lead { margin-top: 14px; }
.dt-teaser .dt-acts { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; margin-top: 24px; }
.dt-teaser .mbp { width: 84%; margin: 0 auto; }   /* the laptop's base is wider than its lid, so it needs room on both sides */

/* ---------- where DevTowers sits in the menu bar ----------
   One attribute on <nav class="gn"> in index.html and devtowers.html decides it:
     data-dt="right"   a small filled chip at the right, beside YouTube (the pick)
     data-dt="first"   the first word of the row
     data-dt="brand"   beside the site name
   The link is in the markup three times and two of them are display:none, so a keyboard and a screen reader meet it once.
   Under 375 px the bar has no room for it, so it is the first row of the Menu list again. */
.gn { --gn-chip: #37f08a; --gn-chip-on: #050605; }
:root[data-theme="light"] .gn { --gn-chip: #0a7a3d; --gn-chip-on: #ffffff; }
:root[data-theme="nagai"] .gn { --gn-chip: #ff7a59; --gn-chip-on: #1b2a4a; }
:root[data-theme="paper"] .gn { --gn-chip: #8f3320; --gn-chip-on: #ffffff; }
:root[data-theme="marquee"] .gn { --gn-chip: #ffb02e; --gn-chip-on: #1c1608; }
.gn .gn-right .gn-link.gn-dt-right, .gn .wrap > .gn-link.gn-dt-brand { display: none; }
.gn[data-dt="right"] .gn-right .gn-link.gn-dt-right { display: inline-flex; opacity: 1; }
.gn[data-dt="brand"] .wrap > .gn-link.gn-dt-brand { display: inline-flex; opacity: 1; position: relative; margin-left: 14px; padding-left: 15px; font-size: 13px; }
.gn[data-dt="brand"] .wrap { justify-content: flex-start; }
.gn[data-dt="brand"] .gn-right { margin-left: auto; }
.gn .gn-dt-brand::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: currentColor; opacity: .4; }
.gn:is([data-dt="right"], [data-dt="brand"]) .gn-sec li.gn-dt-first { display: none; }
.gn-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 980px; background: var(--gn-chip); color: var(--gn-chip-on); font-size: 12px; font-weight: 500; white-space: nowrap; transition: transform 120ms ease, filter 160ms ease; }   /* weight 500 as the site's own pill; no ring in any theme (a ring reads as an outlined button) */
/* the tower on the button: the 3D tower from the app's art, white with a dark outline, 18 px, 6 px before the word */
.gn-ico { flex: none; width: 18px; height: 18px; margin-right: 6px; }
.gn .gn-sec .gn-dt-first .gn-ico { margin-right: 8px; vertical-align: -4px; }
@media (max-width: 600px) { .gn[data-dt="right"] .gn-right { gap: 8px; } .gn-chip { padding: 0 9px; } }   /* phones: the icon needs the room the wider gaps had */
@media (max-width: 389px) { .gn-chip .gn-ico { display: none; } }   /* under 390 px the button keeps its word and drops the icon, so it still fits in the bar */
  /* phones: the same 14 px on both sides of the chip */
@media (max-width: 389px) { .gn-chip { padding: 0 8px; } }   /* 375 px phones: the longer name "devdelight.com" leaves the chip this much */
@media (min-width: 820px) and (max-width: 899px) { .gn .gn-long { display: none; } }   /* small tablets: the row is inline from 820 px and the longer name needs the room, so the link reads "YouTube" as it does on phones */
@media (hover: hover) and (pointer: fine) { .gn-dt-right:hover .gn-chip { filter: brightness(1.08); } }
.gn-dt-right:active .gn-chip { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .gn-chip { transition: none; } }
/* on the DevTowers page itself the word is the "you are here" mark: no fill, underlined like the row's current word. The chip keeps its size, so nothing in the bar moves between the two pages. */
.gn .gn-dt[aria-current="page"] .gn-chip { background: transparent; box-shadow: none; color: inherit; }
.gn .gn-dt[aria-current="page"], :root[data-theme="marquee"]:not(#mq) .gn .gn-dt[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (max-width: 374px) {
  .gn[data-dt] .gn-right .gn-link.gn-dt-right, .gn[data-dt] .wrap > .gn-link.gn-dt-brand { display: none; }
  .gn:is([data-dt="right"], [data-dt="brand"]) .gn-sec li.gn-dt-first { display: block; }
}
/* the same fallback whenever the bar would push its last item off screen (large text spacing, text-only zoom): the scripts set data-tight on the bar */
.gn[data-tight] .gn-right .gn-link.gn-dt-right, .gn[data-tight] .wrap > .gn-link.gn-dt-brand { display: none; }
.gn[data-tight]:is([data-dt="right"], [data-dt="brand"]) .gn-sec li.gn-dt-first { display: contents; }
@media (max-width: 819px) { .gn[data-tight]:is([data-dt="right"], [data-dt="brand"]) .gn-sec li.gn-dt-first { display: block; } }
.gn[data-tight] .gn-long, .gn[data-tight] .gn-pr, .gn[data-tight] .gn-ico { display: none; }   /* a full bar (wide text spacing on small laptops) also drops "Watch on", the >_ mark and the tower icon */   /* a full bar also drops "Watch on" and the >_ mark (wide text spacing on small laptops) */
/* the chip's focus ring is drawn on the chip itself, so the 44 px bar does not clip it */
.gn .gn-dt-right:focus-visible, :root[data-theme="marquee"]:not(#mq) .gn .gn-dt-right:focus-visible { outline: none; }
.gn .gn-dt-right:focus-visible .gn-chip { outline: 2px solid var(--focus, var(--green)); outline-offset: 3px; }
/* the bar slides away on the way down the page; it comes back while a keyboard is inside it */
.gn:has(:focus-visible) { transform: none; }

/* the menu: this page's own word is marked */
.gn .gn-sec .gn-link[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
:root[data-theme="marquee"]:not(#mq) .gn .gn-sec .gn-link[aria-current="page"] { text-decoration: underline; }

/* draft marker: shown only while the words are not approved (tools/copy_gate.py refuses a production deploy while one is on a page) */
.dt-draft { position: absolute; z-index: 3; top: 12px; right: 0; margin: 0; padding: 4px 10px; border-radius: 6px; background: #ffd60a; color: #1d1d1f; font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; }
.dt-hero .dt-draft { top: -72px; }
.dt-teaser .dt-draft { position: static; display: inline-block; margin-bottom: 18px; }   /* in the flow, so it can never sit on the block's own words */
.dt-draft-inline { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: #ffd60a; color: #1d1d1f; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }

@media (max-width: 820px) {
  .dt-hero { padding-top: 96px; }
  .dt-hero .dt-draft { top: -44px; }
  .dt-hero .mbp { margin-top: 40px; }
  .dt-form { flex-direction: column; }
  .dt-form .dt-pill { width: 100%; }
  .dt-grid { grid-template-columns: 1fr; }
  .dt-shots { grid-template-columns: 1fr; margin-top: 40px; gap: 28px; }
  .dt-what { padding-top: 80px; } .dt-now { padding: 80px 0 88px; }
  .dt-teaser { padding: 64px 0; } .dt-teaser .dt-two { grid-template-columns: 1fr; gap: 36px; }
  .dt-teaser .mbp { width: 80%; }
}
@media (max-width: 360px) { .dt-pill { padding: 0 16px; font-size: 16px; } .dt-item { grid-template-columns: 36px minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .dt-pill, .dt-vbtn, .dt-video { transition: none; } .dt-pill:active, .dt-vbtn:active { transform: none; } }

/* ---------- version 2 of the page (2026-11-15): one statement, six feature tiles on real pictures of the app, the three steps, the five looks ----------
   Built on the per-theme --dt-* tokens above. No new motion. Each picture box has the shape that ends its picture on a full row of the app. */
.dt { --dt-tile: #101311; --dt-tile-line: rgba(255,255,255,.12); --dt-tile-shadow: none; --dt-shot-line: rgba(255,255,255,.14); }
:root[data-theme="light"] .dt { --dt-tile: #ffffff; --dt-tile-line: rgba(0,0,0,.1); --dt-shot-line: rgba(0,0,0,.16); }
:root[data-theme="nagai"] .dt { --dt-tile: #fbfbf7; --dt-tile-line: #1b2a4a; --dt-tile-shadow: 4px 4px 0 #1b2a4a; --dt-shot-line: #1b2a4a; }
:root[data-theme="paper"] .dt { --dt-tile: #fffdf6; --dt-tile-line: #222222; --dt-tile-shadow: 4px 5px 0 rgba(40,30,10,.3); --dt-shot-line: #222222; }
:root[data-theme="marquee"] .dt { --dt-tile: #1b1217; --dt-tile-line: #3b2a31; --dt-shot-line: #3b2a31; }

/* 1 · the features, under one statement: uneven tiles on a 12-column grid; each holds a claim and a picture of the app that proves it.
   The headline itself ("Watching doesn't count. Prove it in code.") is in the hero since version 7.16, so this section opens with the app's other line. */
.dt2-in { padding: 112px 0 24px; }
.dt2-in > .wrap > h2 { font-size: clamp(30px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.032em; font-weight: 600; color: var(--dt-ink); text-wrap: balance; }
.dt2-nw { white-space: nowrap; }   /* the quoted button name never breaks across lines */
.dt2-lede { max-width: 31em; margin-top: 18px; font-size: clamp(19px, 2vw, 23px); line-height: 1.4; letter-spacing: -0.012em; color: var(--dt-muted); }
.dt2-also { margin-top: 22px; font-size: 17px; line-height: 1.45; color: var(--dt-dim); }
.dt2-steps > .wrap > h2, .dt2-looks > .wrap > h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 600; color: var(--dt-ink); }
.dt2-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.dt2-tile { grid-column: span 6; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 24px; background: var(--dt-tile); border: 1px solid var(--dt-tile-line); box-shadow: var(--dt-tile-shadow); }
:root:is([data-theme="nagai"], [data-theme="paper"]) .dt2-tile { border-width: 2px; }
.dt2-tile .dt2-t { padding: 30px 30px 26px; }
.dt2-tile h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.14; letter-spacing: -0.022em; font-weight: 600; color: var(--dt-ink); }
.dt2-tile p { max-width: 30em; margin-top: 10px; font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; color: var(--dt-muted); }
.dt2-tile .dt2-p { margin-top: auto; padding: 0 30px; line-height: 0; }
.dt2-tile .dt2-p img { display: block; width: 100%; height: auto; border-radius: 12px 12px 0 0; border: 1px solid var(--dt-shot-line); border-bottom: 0; background: #0b100d; }
.dt2-w8 { grid-column: span 8; } .dt2-w7 { grid-column: span 7; } .dt2-w5 { grid-column: span 5; } .dt2-w4 { grid-column: span 4; } .dt2-w3 { grid-column: span 3; }
/* the tower tile: the ladder of floors beside the drawing of the tower */
.dt2-pair { display: grid; grid-template-columns: minmax(0, 728fr) minmax(0, 477fr); gap: 14px; align-items: end; }   /* the ladder is 728 by 477 and the tower square, so both end at the same height */
/* the judge tile: the test count above the "Room cleared" card */
.dt2-stack { display: grid; gap: 12px; }
.dt2-stack > img:first-child { border-radius: 10px; border-bottom: 1px solid var(--dt-shot-line); }
.dt2-stack > img:first-child { width: 62%; }   /* the result lines are short; shown near their real size */
/* pictures that are cut to the part that matters instead of shrunk whole */
.dt2-crop { overflow: hidden; border-radius: 12px 12px 0 0; border: 1px solid var(--dt-shot-line); border-bottom: 0; background: #0b100d; }
.dt2-tile .dt2-crop img { border: 0; border-radius: 0; }
/* each box has the shape that ends its picture on a row of the app, at any width: never through a line of text */
.dt2-crop.is-room { aspect-ratio: 744 / 606; } .dt2-crop.is-list { aspect-ratio: 728 / 552; } .dt2-crop.is-videos { aspect-ratio: 450 / 290; }
.dt2-crop.is-rings { max-width: 620px; }
.dt2-crop.is-card { aspect-ratio: 568 / 334; }   /* the card down to its points bar; the buttons under it are left out */

/* 3 · the three steps: a real sequence, so they are numbered */
.dt2-steps { padding: 72px 0 24px; }
.dt2-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--dt-line); }
.dt2-steps li { padding: 26px 28px 8px 0; }
.dt2-steps li + li { padding-left: 28px; border-left: 1px solid var(--dt-line); }
.dt2-steps .dt2-n { display: block; font-family: var(--mono); font-size: 30px; line-height: 1; color: var(--dt-accent-ink); }
.dt2-steps h3 { margin-top: 10px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; color: var(--dt-ink); }
.dt2-steps p { margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--dt-muted); }

/* 4 · the five looks: the same screen five times */
.dt2-looks { padding: 104px 0 8px; }
.dt2-looks > .wrap > p { max-width: 31em; margin-top: 14px; font-size: 17px; line-height: 1.42; color: var(--dt-muted); }
.dt2-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.dt2-strip figure { margin: 0; }
.dt2-strip img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 1050; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--dt-shot-line); }
.dt2-strip figcaption { margin-top: 10px; font-size: 15px; color: var(--dt-muted); }

@media (max-width: 1000px) {
  .dt2-tile, .dt2-w8, .dt2-w7, .dt2-w5, .dt2-w4, .dt2-w3 { grid-column: span 6; }
  .dt2-w8 { grid-column: span 12; }
}
@media (max-width: 700px) {
  .dt2-in { padding-top: 76px; } .dt2-steps { padding-top: 56px; } .dt2-looks { padding-top: 76px; }
  .dt2-grid { gap: 16px; margin-top: 28px; }
  .dt2-tile, .dt2-w8, .dt2-w7, .dt2-w5, .dt2-w4, .dt2-w3 { grid-column: span 12; border-radius: 20px; }
  .dt2-tile .dt2-t { padding: 24px 22px 20px; } .dt2-tile .dt2-p { padding: 0 22px; }
  .dt2-pair { grid-template-columns: minmax(0, 1fr); } .dt2-tile .dt2-pair img + img { display: none; }     /* phones: the ladder alone; the tower is in the video above */
  .dt2-steps ol { grid-template-columns: minmax(0, 1fr); }
  .dt2-steps li, .dt2-steps li + li { padding: 22px 0 14px; border-left: 0; } .dt2-steps li + li { border-top: 1px solid var(--dt-line); }
  /* the five looks become a row to swipe; the list can be focused and scrolled with the keyboard */
  .dt2-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px 0; -webkit-overflow-scrolling: touch; }
  .dt2-strip li { flex: 0 0 64%; scroll-snap-align: start; }
}
