/* Key Changer — conversion sub-landings (/assets/sublanding.css).
   Extends /assets/site.css tokens (--paper, --white, --ink, --text, --muted, --line, --line-2, --accent, --red).
   Contains layout rules for authentic screenshots, editorial reference tables, and step sections only — zero synthetic UI widgets. */

/* ---------- Sticky conversion header: brand + single Add to Chrome CTA ---------- */
.sl-header{
  position:sticky;
  top:0;
  z-index:40;
  background:linear-gradient(135deg,#CE363F 0%,#C62932 54%,#B6232C 100%);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.16);
  box-shadow:0 4px 18px -10px rgba(40,4,8,.36);
}
.sl-header-in{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:72px;
}
.sl-header .brand{
  margin-inline-end:0;
}
.sl-header :focus-visible{
  outline-color:#fff;
}
.sl-header .button.btn-sm{
  min-height:42px;
  padding:0 18px;
  font-size:15px;
  font-weight:700;
}

/* ---------- Sub-landing Hero ---------- */
.hero.sl-hero{
  padding-top:clamp(36px,4.8vw,68px);
  padding-bottom:clamp(52px,6vw,84px);
}
.sl-hero .hero-in{
  grid-template-columns:minmax(0,11fr) minmax(0,13fr);
  column-gap:clamp(28px,4vw,56px);
  align-items:center;
}
.sl-hero h1{
  font-size:clamp(36px,4.1vw,58px);
  line-height:1.03;
  letter-spacing:-.04em;
}
.sl-hero .hero-sub{
  max-width:540px;
  margin-top:22px;
  color:rgba(255,255,255,.95);
}
.sl-hero .hero-actions{
  margin-top:30px;
}
.sl-cta-main{
  min-width:228px;
  min-height:56px;
  padding-inline:28px;
  font-size:17px;
  font-weight:700;
}
.sl-hero .hero-access{
  color:rgba(255,255,255,.92);
  font-weight:500;
}

/* Authentic Hero Screenshot Frames (real v1.2.0 popup & real Spotify Web + Fine tune capture) */
.sl-hero-popup{
  justify-self:center;
  margin:0;
  direction:ltr;
}
.sl-hero-popup img{
  width:min(356px,100%);
  border-radius:18px;
  background:var(--paper);
  box-shadow:0 0 0 1px rgba(40,4,8,.24),var(--on-red);
}
.sl-hero-shot{
  margin:0;
  overflow:hidden;
  border-radius:20px;
  background:#F0F1F4;
  box-shadow:0 0 0 1px rgba(40,4,8,.24),var(--on-red);
  direction:ltr;
}
.sl-hero-shot img{
  width:100%;
  height:auto;
}

/* ---------- Sub-landing Paper Sections ---------- */
.sl-band{
  padding-block:clamp(60px,7vw,96px);
}
.sl-band--alt{
  background:#fff;
  border-block:1px solid var(--line-2);
}

/* 3-Card Benefit / Use-Case Grid */
.sl-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.sl-card{
  display:grid;
  align-content:start;
  gap:14px;
  padding:28px 26px 30px;
  border:1px solid var(--line-2);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
}
.sl-ico{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border-radius:14px;
  background:var(--tint);
  color:var(--accent);
}
.sl-ico svg{
  width:26px;
  height:26px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sl-card h3{
  font-size:20px;
  font-weight:750;
  line-height:1.28;
  letter-spacing:-.015em;
  color:var(--ink);
}
.sl-card p{
  color:var(--text);
  font-size:16px;
  line-height:1.6;
}

/* How-It-Works 2-Column Layout */
.sl-how-grid{
  display:grid;
  grid-template-columns:minmax(0,7fr) minmax(0,5fr);
  gap:clamp(32px,5vw,64px);
  align-items:center;
}
.sl-how-grid--wide{
  grid-template-columns:minmax(0,6fr) minmax(0,6fr);
}
.sl-steps{
  display:grid;
  gap:20px;
}
.sl-step{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:18px;
  align-items:start;
  padding:22px 24px;
  border:1px solid var(--line-2);
  border-radius:18px;
  background:var(--paper);
}
.sl-step-n{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:2.5px solid var(--accent);
  border-radius:50%;
  background:#fff;
  color:var(--accent);
  font-size:19px;
  font-weight:800;
  line-height:1;
}
.sl-step h3{
  font-size:19px;
  font-weight:750;
  line-height:1.3;
  color:var(--ink);
}
.sl-step p{
  margin-top:6px;
  color:var(--text);
  font-size:16px;
  line-height:1.6;
}
.sl-keys-box{
  margin-top:20px;
  padding:18px 22px;
  border:1px solid var(--line-2);
  border-radius:16px;
  background:var(--paper);
}
.sl-keys-title{
  font-size:14px;
  font-weight:700;
  color:var(--ink);
  margin-bottom:10px;
}

/* Authentic Popup & Browser Capture Figures */
.sl-popup-showcase{
  display:grid;
  justify-items:center;
  gap:16px;
  padding:28px 24px;
  border:1px solid var(--line-2);
  border-radius:24px;
  background:var(--paper);
}
.sl-popup-showcase img{
  width:min(300px,100%);
  border-radius:16px;
  box-shadow:0 0 0 1px var(--line),var(--lift);
}
.sl-popup-caption{
  max-width:340px;
  text-align:center;
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
}
.sl-shot-figure{
  display:grid;
  gap:14px;
  margin:0;
}
.sl-shot-frame{
  overflow:hidden;
  border-radius:20px;
  border:1px solid var(--line);
  background:#16181C;
  box-shadow:var(--lift);
  direction:ltr;
}
.sl-shot-frame img{
  width:100%;
  height:auto;
}
.sl-shot-caption{
  font-size:14.5px;
  line-height:1.55;
  color:var(--muted);
}

/* Editorial Semitone Reference Table (purely typographic, never an app card) */
.sl-table-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.sl-ref-table{
  width:100%;
  border-collapse:collapse;
  text-align:start;
  font-size:16px;
  line-height:1.55;
}
.sl-ref-table caption{
  margin-bottom:14px;
  text-align:start;
  font-size:15px;
  color:var(--muted);
}
.sl-ref-table th{
  padding:14px 18px;
  border-bottom:2px solid var(--line);
  color:var(--ink);
  font-size:13px;
  font-weight:750;
  letter-spacing:.05em;
  text-transform:uppercase;
  white-space:nowrap;
}
.sl-ref-table td{
  padding:16px 18px;
  border-bottom:1px solid var(--line-2);
  color:var(--text);
  vertical-align:top;
}
.sl-ref-table tbody tr:last-child td{
  border-bottom:1px solid var(--line);
}
.sl-ref-table td:first-child{
  color:var(--ink);
  font:700 15px/1.4 var(--mono);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.sl-ref-table td:nth-child(2){
  color:var(--ink);
  font-weight:600;
  white-space:nowrap;
}

/* Scope & Compatibility 2-Column Honest Comparison */
.sl-scope-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.sl-scope{
  padding:28px 28px 30px;
  border:1px solid var(--line-2);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
}
.sl-scope--yes{
  border-color:var(--tint-line);
  background:linear-gradient(180deg,var(--tint) 0%,#fff 88px);
}
.sl-scope h3{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
  font-weight:750;
  color:var(--ink);
  margin-bottom:16px;
}
.sl-scope-badge{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:8px;
  background:var(--accent);
  color:#fff;
  font:800 14px/1 var(--mono);
}
.sl-scope--no .sl-scope-badge{
  background:var(--rail);
  color:var(--ink);
  border:1px solid var(--ctl-border);
}
.sl-scope .list{
  gap:12px;
}
.sl-scope .list li{
  font-size:16px;
  line-height:1.58;
}
.sl-scope--no .list li::before{
  background:var(--tick);
}

/* Closing CTA sub-caption */
.cta-subnote{
  margin-top:12px;
  font-size:14px;
  color:rgba(255,255,255,.9);
}

/* Footer subpage crawl links inside ui-product-footer */
.sl-foot-guides{
  padding-block:14px;
  border-bottom:1px solid var(--line-2);
  gap:2px 18px;
}
.sl-foot-guides a{
  min-height:36px;
  font-size:13.5px;
  font-weight:550;
  color:var(--text);
}
.sl-foot-guides a[aria-current="page"]{
  color:var(--accent);
  font-weight:700;
}

/* ---------- Responsive ---------- */
@media(max-width:960px){
  .sl-cards{
    grid-template-columns:minmax(0,1fr);
    gap:16px;
  }
  .sl-how-grid,
  .sl-how-grid--wide{
    grid-template-columns:minmax(0,1fr);
  }
  .sl-scope-grid{
    grid-template-columns:minmax(0,1fr);
  }
}
@media(max-width:900px){
  .sl-hero .hero-in{
    grid-template-columns:minmax(0,1fr);
    row-gap:36px;
  }
  .sl-hero .scene{
    margin-top:8px;
  }
  .sl-hero-popup{
    justify-self:start;
  }
}
@media(max-width:620px){
  .sl-header-in{
    min-height:64px;
    gap:10px;
  }
  .sl-header .install{
    display:inline-flex;
    min-height:38px;
    padding:0 13px;
    font-size:13.5px;
  }
  .sl-hero-popup{
    justify-self:center;
    width:100%;
    display:grid;
    justify-items:center;
  }
  .sl-hero-popup img{
    width:min(320px,100%);
  }
  .sl-step{
    grid-template-columns:38px minmax(0,1fr);
    gap:14px;
    padding:18px 16px;
  }
  .sl-step-n{
    width:38px;
    height:38px;
    font-size:17px;
  }
  .sl-scope,.sl-card{
    padding:22px 20px;
  }
  .sl-ref-table th,
  .sl-ref-table td{
    padding:12px 12px;
    font-size:14.5px;
  }
  .sl-ref-table td:nth-child(2){
    white-space:normal;
  }
}
