/* Inimitable's website: the landing starter, set in a type system, plus the parts only this page has
   (the before and after, the install lines, the results bars, the questions).
   Loaded after landing.css, so everything here either sets type or adds a part. */

/* ---------- Type ----------
   Two faces: Instrument Serif for the statements, Geist for everything that is read or pressed.
   Roles, not sizes: each role is one size, one line-height and one tracking, so no screen invents a fourth.
   Display 1.1, headings 1.2 to 1.3, body 1.6. Tracking is -0.01em to -0.02em from 24 px up, 0 below.
   Nothing under 18 px is lighter than 400. Every size is in rem, so the reader's browser setting still applies. */
:root {
  --fs-display: clamp(3.25rem, 8vw, 7.5rem);
  --fs-h2: clamp(2.5rem, 5vw, 4rem);
  --fs-proof: clamp(6rem, 16vw, 12rem);
  --fs-mark: clamp(5rem, 24vw, 22rem);
  --fs-lede: 1.25rem;
  --fs-h3: 1.5rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.8125rem;
  --measure: 65ch;
}
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font: 400 var(--fs-body)/1.6 var(--sans); }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }

.display, .h2, .big, .step .n, .proof b, .bar-value, .shot-meta b { font-family: var(--serif); font-weight: 400; }
.display { font-size: var(--fs-display); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.h2 { max-width: 20ch; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.lede { max-width: 34rem; font-size: var(--fs-lede); line-height: 1.5; text-wrap: pretty; }
h3 { text-wrap: balance; }
.cell h3 { font: 500 var(--fs-h3)/1.25 var(--sans); letter-spacing: -0.01em; }
.step h3 { font: 500 var(--fs-lede)/1.3 var(--sans); letter-spacing: 0; }
.head p, .cell p, .step p, .faq p, .note, .install-box p { max-width: var(--measure); font-size: var(--fs-body); line-height: 1.6; text-wrap: pretty; }
.cell p, .step p { font-size: var(--fs-small); line-height: 1.6; }
.head p { max-width: 34rem; }
p, li { overflow-wrap: break-word; }
code { overflow-wrap: anywhere; }
.m-btn, .tag, .eyebrow, .copy, .links a { white-space: nowrap; }

/* Working sizes: 13, 14, 16, 20 and 24 px. The starter's 15 and 17 fold into 14 and 16. */
.m-btn, .links a, .nav-menu summary, .nav-menu li a, .foot li a, .brand, .bars-title { font-size: var(--fs-body); }
.links a { padding: 0 0.75rem; }
.brand, .eyebrow { gap: 0.75rem; }
.foot li a, .foot-cols p, .cell p, .step p { font-size: var(--fs-small); }
.faq summary { font-size: var(--fs-lede); }
.ticker .m-track, .ticks li { font-size: var(--fs-small); }
.ticker .m-track { font-size: var(--fs-body); }
.cell h3 { margin-bottom: 0.5rem; }
.ticks { gap: 0.75rem; }
.window-bar { padding: 0.75rem 1.25rem; }

/* Radii: 999 and 50% for pills and dots, 28 for the big containers, 12 and 8 for controls, 6 for the mark. */
.window, .pic, .nav-menu ul { border-radius: 1.75rem; }
.cell .art, .nav-menu li a, .install-line { border-radius: 0.75rem; }
.copy { border-radius: 0.5rem; }

/* Figures keep one width, so a counting number never shifts what is beside it. */
.stats dd, .proof b, .bar-value, .big, .step .n, .receipt, .shot-meta b { font-variant-numeric: tabular-nums; }
.stats dd { font: 400 var(--fs-h2)/1 var(--sans); letter-spacing: -0.02em; }
.stats dt { font-size: var(--fs-small); line-height: 1.4; max-width: 12ch; }
.cell .big { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.015em; }
.step .n { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.015em; color: var(--ink-3); margin-bottom: 1rem; transition: color 180ms var(--m-ease); }
.step:hover .n { color: var(--accent); }
.proof b { font-size: var(--fs-proof); line-height: 1; letter-spacing: -0.02em; }
.proof p { font: 400 var(--fs-h3)/1.3 var(--sans); letter-spacing: -0.01em; text-wrap: balance; }
.foot .wordmark { font: 400 var(--fs-mark)/1 var(--serif); letter-spacing: -0.02em; }

/* Small mono labels: sentence case, 13 px, no tracking. Uppercase would need tracking and shouts at this size. */
.eyebrow, .tag, .window-bar span, .note, .legal, .foot h4, .receipt { font: 400 var(--fs-caption)/1.5 var(--mono); letter-spacing: 0; }
.note { color: var(--ink-3); max-width: var(--measure); }
/* The honest limits are a paragraph to read, not a caption: set in the reading face at body size. */
.limits { max-width: var(--measure); margin: 3rem 0 0; color: var(--ink-2); font: 400 var(--fs-body)/1.6 var(--sans); text-wrap: pretty; }
.tag { color: var(--ink-3); }
.legal { align-items: baseline; }
.legal > span:first-child { max-width: 46ch; }
.receipt { max-width: 58ch; color: var(--ink-3); }
.receipt b { font-weight: 500; color: var(--ink); }
.receipt code { font: inherit; color: var(--ink-2); }

/* Links in running text: the rule comes from the font, sits clear of the descenders and thickens on hover. */
p a, .note a { text-decoration-line: underline; text-decoration-thickness: from-font; text-underline-position: from-font; text-underline-offset: 0.2em; transition: color 180ms var(--m-ease), text-decoration-thickness 180ms var(--m-ease); }
p a:hover, .note a:hover { color: var(--accent); text-decoration-thickness: 2px; }

/* ---------- Install lines ---------- */
.install-line { display: flex; align-items: center; gap: 0.75rem; max-width: 100%; min-width: 0; min-height: 3.75rem; margin-top: 1.5rem; padding: 0.5rem 0.5rem 0.5rem 1rem; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.install-line code { flex: 1; min-width: 0; font: 400 var(--fs-small)/1.5 var(--mono); color: var(--ink); }
.copy { flex: none; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 0.75rem; background: transparent; color: var(--ink-2); font: 500 var(--fs-caption)/1 var(--sans); cursor: pointer; transition: background-color 180ms var(--m-ease), color 180ms var(--m-ease), transform 110ms var(--m-ease); }
.copy:hover, .copy:focus-visible { background: var(--ink); color: var(--bg); }
.copy:active { transform: scale(0.97); }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.install-box { display: flex; flex-direction: column; gap: 1rem; min-width: 0; padding: 1.75rem; border-radius: 1.75rem; border: 1px solid var(--line); background: var(--surface); }
.install-box .install-line { margin-top: 0; min-height: 4rem; background: var(--bg); }
.install-box p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.install-box .tag { margin: 0; }

/* ---------- The before and after ---------- */
.window-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The screenshot is 1440 by 900 and its table runs past the fold. A frame 24 px shorter crops between two rows,
   which reads as the screen continuing instead of text cut through the middle. */
.compare { position: relative; aspect-ratio: 1440 / 876; overflow: hidden; --pos: 50%; touch-action: pan-y; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.compare .c-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.c-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--accent); pointer-events: none; }
.c-knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); color: var(--accent); transition: transform 180ms var(--m-ease), background-color 180ms var(--m-ease), color 180ms var(--m-ease); }
.compare:hover .c-knob { transform: scale(1.12); background: var(--accent); color: var(--on-accent); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within .c-knob { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Bento: this page's cells ---------- */
.c1 { min-height: 26rem; }
.c1 .art { display: grid; place-items: center; padding: 1.5rem; }
.c1 .art svg { position: static; width: 100%; height: 100%; max-height: 13rem; }
.c4, .c5, .c6 { min-height: 12rem; }

/* ---------- The run: nine, in a grid ---------- */
.steps { margin: 0; padding: 0; list-style: none; padding-top: 0; row-gap: 0; gap: 0 2rem; }
.step { padding: 1.5rem 0 2.25rem; border-top: 1px solid var(--line); }
.step p { max-width: 24rem; }

/* ---------- Examples ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem 1rem; }
.shot { display: flex; flex-direction: column; gap: 1rem; color: inherit; text-decoration: none; }
.shot:nth-child(1), .shot:nth-child(4) { grid-column: span 7; }
.shot:nth-child(2), .shot:nth-child(3) { grid-column: span 5; }
.pic { display: block; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: var(--surface); }
.pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 600ms var(--m-ease); }
.shot:hover .pic img, .shot:focus-visible .pic img { transform: scale(1.03); }
.shot-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.shot-meta b { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; transition: color 180ms var(--m-ease); }
.shot:hover .shot-meta b, .shot:focus-visible .shot-meta b { color: var(--accent); }
.shot-line { max-width: 52ch; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; text-wrap: pretty; }

/* ---------- Results ---------- */
.proof { margin-bottom: 3rem; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bars { display: grid; gap: 1.25rem; }
.bars-title { margin: 0; font: 500 var(--fs-body)/1.3 var(--sans); }
.bar-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr) 3rem; gap: 1rem; align-items: center; }
.bar-label { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.3; }
.bar-track { display: block; height: 0.75rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--m-ease) 120ms; }
.bar-fill-quiet { background: var(--ink-3); }
.bars.in .bar-fill { transform: scaleX(var(--v)); }
.m-js .bars:not(.in) .bar-fill { transform: scaleX(0); }
.bar-value { font-size: var(--fs-h3); line-height: 1; text-align: right; }
.bar-note { margin: 0; color: var(--ink-3); font-size: var(--fs-small); line-height: 1.5; }


/* ---------- Questions ---------- */
.faq details { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; min-height: 3.75rem; padding: 0.5rem 0; font: 500 var(--fs-lede)/1.3 var(--sans); cursor: pointer; list-style: none; transition: color 180ms var(--m-ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 400 var(--fs-lede)/1 var(--mono); color: var(--ink-3); transition: transform 180ms var(--m-ease), color 180ms var(--m-ease); }
.faq details[open] summary::after { content: "\2212"; color: var(--accent); }
.faq summary:hover, .faq summary:focus-visible { color: var(--accent); }
.faq summary:hover::after { color: var(--accent); transform: scale(1.25); }
.faq p { margin: 0 0 1.5rem; color: var(--ink-2); }
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 280ms var(--m-ease), content-visibility 280ms var(--m-ease); transition-behavior: allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.faq details[open] > p { animation: faq-in 320ms var(--m-ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-0.4rem); } }
@media (prefers-reduced-motion: reduce) { .faq details[open] > p { animation: none; } .faq details::details-content { transition: none; } }

/* ---------- Small screens ---------- */
@media (max-width: 62rem) {
  .c1, .c4, .c5, .c6 { min-height: 0; }
  .results, .install-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery .shot { grid-column: span 12; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 6.5rem minmax(0, 1fr) 2.75rem; gap: 0.75rem; }
  .install-line { flex-wrap: wrap; }
  .install-line code { flex-basis: 100%; }
  .copy { width: 100%; }
  .legal { flex-direction: column; }
  .stats dt { max-width: none; }
}
