/* fitur-template: page-local styles (templates) */

/* hero: stations sitting on the line (same pattern as the approvals page) */
.stations-wrap { position: relative; }
.stations { position: absolute; left: 0; right: calc(100% / 12 + 40px); top: 50%; z-index: 4; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.stations .pill { background: var(--paper); }
.stations .pill:first-child { margin-left: 26%; }
.stations .pill--ink { background: var(--ink); }

/* (01) */
.copies { margin-top: 32px; }
.copies .pill { color: var(--muted); }

/* (02) how it works: signature moment */
.how-sub { margin-top: calc(-1 * clamp(24px, 4vw, 64px)); margin-bottom: clamp(72px, 8vw, 120px); color: var(--muted); }
.how { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.how__steps { grid-column: 1 / 6; border-top: 1px solid var(--ink); }
.how__steps li { padding: 24px 0 28px; border-bottom: 1px solid var(--hair); }
.how__steps .h3 { margin: 10px 0 10px; }
.how__steps p { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; max-width: 30em; }
.page { grid-column: 7 / 12; margin: 0; }
.page__sheet { background: var(--paper-2); border: 1px solid var(--hair-2); padding: 26px 30px 34px 34px; box-shadow: 0 24px 48px -32px rgba(20, 20, 19, .35); }
.page__head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); font: 500 11px/1 var(--f-mono); letter-spacing: .14em; }
.page__kind { margin-left: auto; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.page__f { margin: 28px 0 30px; display: grid; gap: 4px; }
.fld { display: grid; grid-template-columns: 6em 1fr; align-items: center; gap: 12px; min-height: 40px; }
.fld dt { font: 400 11px/1.2 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.fld dd { font-size: 16px; letter-spacing: -.01em; }
.slot { display: inline-grid; }
.slot > * { grid-area: 1 / 1; white-space: nowrap; }
.slot__k { font: 400 13px/1.6 var(--f-mono); color: var(--accent); padding: 0 6px; outline: 1px dashed var(--accent); outline-offset: 1px; opacity: 0; justify-self: start; }
.slot__v { font-weight: 500; }
.page__body { display: grid; gap: 10px; }
.page__body i { display: block; height: 7px; background: #E6E2D9; border-radius: 1px; }
.page__body i.s { width: 72%; }
.page__body i.s2 { width: 46%; }
.page__filed { margin-top: 34px; padding-left: 28px; }
.page .tag { margin-top: 22px; padding-left: 28px; }
/* the moment: each blank shows its {{KEY}} until the line reaches its row, then the value comes into focus */
.js:not(.reduce) .slot__k { opacity: 1; transition: opacity .5s var(--ease), color .7s var(--ease), text-shadow .7s var(--ease); }
.js:not(.reduce) .slot__v { opacity: 0; color: transparent; text-shadow: 0 0 14px var(--ink); transition: opacity .8s var(--ease) .15s, color 1s var(--ease) .15s, text-shadow 1s var(--ease) .15s; }
.js:not(.reduce) .fld.is-on .slot__k { opacity: 0; color: transparent; text-shadow: 0 0 10px var(--accent); }
.js:not(.reduce) .fld.is-on .slot__v { opacity: 1; color: var(--ink); text-shadow: 0 0 0 rgba(20, 20, 19, 0); }
.js:not(.reduce) .page__filed .pill { opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js:not(.reduce) .page__filed.is-on .pill { opacity: 1; transform: none; }
.how-frame { margin-top: clamp(110px, 11vw, 170px); }

/* (03) rules */
.rules { border-top: 1px solid var(--ink); margin-top: clamp(48px, 5vw, 72px); }
.rules > div { display: grid; grid-template-columns: 3fr 7fr; gap: var(--gap); padding: 16px 0 17px; border-bottom: 1px solid var(--hair); align-items: baseline; }
.rules dd { font: 400 15px/1.4 var(--f-mono); letter-spacing: 0; }
.ill-tag { margin-top: 20px; }

/* (04) letterhead + body */
.lh { grid-column: 8 / 12; align-self: start; margin: 0; }
.lh-text { align-self: start; }
.lh__band { position: relative; display: flex; align-items: center; gap: 10px; padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--accent); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.lh__band::after { content: ""; position: absolute; inset: -28px; z-index: -1; border-radius: 40px; background: radial-gradient(ellipse at center, rgba(194, 73, 46, .18), rgba(194, 73, 46, 0) 70%); opacity: 0; transition: opacity 1.2s var(--ease); }
.lh__band.is-on::after, .reduce .lh__band::after, .no-js .lh__band::after { opacity: 1; }
.lh__plus { font: 400 14px/1 var(--f-mono); color: var(--muted); text-align: center; padding: 14px 0; }
.lh__body { display: grid; gap: 10px; padding: 18px 20px 24px; background: var(--paper-2); border: 1px solid var(--hair-2); }
.lh__body i { display: block; height: 7px; background: #E6E2D9; }
.lh__body i.s { width: 60%; }

/* (05) revisions */
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(56px, 6vw, 88px); border-top: 1px solid var(--hair-2); }
.revs__i { position: relative; padding-top: 30px; display: grid; gap: 8px; }
.revs__i .gnode { position: absolute; left: 0; top: -6px; }
.revs__i .num { font-size: 14px; color: var(--ink); }
.revs__m { font-size: 16px; line-height: 1.4; }
.revs__i.is-old { opacity: .55; }
.revs__i:nth-child(2) .gnode { transition-delay: .35s; }
.revs__i:nth-child(3) .gnode { transition-delay: .7s; }
.revs__i:nth-child(2) .gnode::after { transition-delay: .35s; }
.revs__i:nth-child(3) .gnode::after { transition-delay: .7s; }

/* (06) */
.auth-frame { margin-top: clamp(56px, 6vw, 88px); }

@media (max-width: 1100px) {
  .lh { grid-column: 8 / 12; }
}
@media (max-width: 760px) {
  .stations { position: static; transform: none; flex-wrap: wrap; justify-content: flex-start; gap: 6px; margin: -6px 0 30px 32px; }
  .stations .pill { font-size: 11px; padding: 5px 8px; }
  .stations .pill:first-child { margin-left: 0; }
  .how-sub { margin-top: -16px; margin-bottom: 48px; }
  .how { display: block; }
  .page { margin-top: 48px; }
  .page__sheet { padding: 20px 16px 24px 18px; }
  .fld { grid-template-columns: 4.6em 1fr; }
  .fld dd { font-size: 14px; }
  .slot__k { font-size: 11.5px; }
  .rules > div { grid-template-columns: 1fr; gap: 4px; }
  .lh { margin-top: 48px; max-width: 280px; }
  .revs { grid-template-columns: 1fr; border-top: 0; gap: 0; }
  .revs__i { padding: 0 0 22px 24px; }
  .revs__i .gnode { top: 4px; }
}
