/* Free photo tools. Uses the site's tokens from style.css. */
.tl-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.tl-narrow{max-width:820px}
.tl-eyebrow{display:block;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-secondary);margin-bottom:14px}
.tl-dark .tl-eyebrow{color:var(--yellow)}

/* hero */
.tl-hero{padding:132px 0 34px;text-align:center;background:linear-gradient(180deg,#f2f2f7 0%,#fff 100%)}
.tl-hero .breadcrumb{justify-content:center;margin-bottom:20px}
.tl-h1{font-size:clamp(2.3rem,5.2vw,4rem);font-weight:800;letter-spacing:-.045em;line-height:1.04;margin:0}
.tl-intro{font-size:clamp(1.05rem,1.6vw,1.25rem);line-height:1.55;color:var(--text-secondary);max-width:660px;margin:18px auto 0}
.tl-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:22px}
.tl-badge{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;background:#fff;border:1px solid var(--border);border-radius:999px;padding:8px 14px}
.tl-badge svg{flex:none}

/* tool card */
.tl-app-sec{padding:18px 0 96px}
.tl-card{background:#fff;border:1px solid var(--border);border-radius:28px;box-shadow:0 30px 80px rgba(0,0,0,.08);display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);overflow:hidden}
.tl-card.tl-wide{grid-template-columns:1fr}
.tl-panel{padding:28px;border-right:1px solid var(--border);display:flex;flex-direction:column;gap:22px}
.tl-stage{background:var(--bg-soft);padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:460px;position:relative}
.tl-group{display:flex;flex-direction:column;gap:10px}
.tl-label{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary)}
.tl-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tl-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.tl-field small{font-weight:500;color:var(--text-secondary)}
.tl-input,.tl-select{width:100%;font:inherit;font-size:16px;font-weight:600;color:var(--text);background:var(--bg-soft);border:1px solid transparent;border-radius:12px;padding:11px 12px;outline:none;transition:border-color .2s,background .2s;font-variant-numeric:tabular-nums}
.tl-input:focus,.tl-select:focus{border-color:var(--text);background:#fff}
.tl-seg{display:flex;flex-wrap:wrap;gap:6px}
.tl-chip{font-size:14px;font-weight:600;color:var(--text);background:var(--bg-soft);border-radius:999px;padding:8px 13px;transition:background .2s,color .2s}
.tl-chip:hover{background:#e5e5ea}
.tl-chip[aria-pressed="true"],.tl-chip[aria-checked="true"]{background:#000;color:#fff}
.tl-range{width:100%;accent-color:#000}
.tl-swatches{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tl-swatch{width:32px;height:32px;border-radius:50%;border:1px solid rgba(0,0,0,.12);cursor:pointer;position:relative}
.tl-swatch[aria-pressed="true"]{box-shadow:0 0 0 3px #fff,0 0 0 5px #000}
.tl-color{-webkit-appearance:none;appearance:none;width:32px;height:32px;border:1px solid rgba(0,0,0,.12);padding:0;border-radius:50%;overflow:hidden;cursor:pointer;background:none;flex:none}
.tl-color::-webkit-color-swatch-wrapper{padding:0}
.tl-color::-webkit-color-swatch{border:0;border-radius:50%}
.tl-color::-moz-color-swatch{border:0;border-radius:50%}
.tl-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}
.tl-actions .btn{flex:1 1 auto;justify-content:center;text-align:center}
.tl-note{font-size:13px;color:var(--text-secondary);margin:0;line-height:1.5}
.tl-msg{font-size:14px;font-weight:600;background:#e9f9ee;border-radius:12px;padding:10px 14px;margin:0}
.tl-msg[hidden]{display:none}

/* results */
.tl-result{width:100%;max-width:560px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.tl-stat{background:#fff;border-radius:18px;padding:16px 18px}
.tl-stat span{display:block;font-size:13px;font-weight:600;color:var(--text-secondary)}
.tl-stat b{display:block;font-size:clamp(1.4rem,2.4vw,1.9rem);font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin-top:4px}
.tl-stat.hl{background:#000;color:#fff}
.tl-stat.hl span{color:rgba(255,255,255,.6)}
.tl-stat.hl b{color:var(--yellow)}

/* upload drop zone */
.tl-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;width:100%;max-width:520px;min-height:300px;border:2px dashed #c7c7cc;border-radius:22px;padding:28px;background:#fff;cursor:pointer;transition:border-color .2s,background .2s}
.tl-drop:hover,.tl-drop.over{border-color:#000;background:#fafafa}
.tl-drop strong{font-size:18px}
.tl-drop span{font-size:14px;color:var(--text-secondary)}
.tl-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tl-canvas{max-width:100%;max-height:560px;border-radius:12px;box-shadow:0 18px 44px rgba(0,0,0,.16);background:#fff}
.tl-preview-label{font-size:14px;font-weight:600;color:var(--text-secondary);font-variant-numeric:tabular-nums}

/* sections */
.tl-sec{padding:100px 0}
.tl-soft{background:var(--bg-soft)}
.tl-dark{background:#000;color:#fff}
.tl-sec h2{font-size:clamp(1.9rem,4vw,3rem);font-weight:800;letter-spacing:-.04em;line-height:1.06;margin:0 0 26px}
.tl-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;padding:0;margin:0;counter-reset:s}
.tl-steps li{counter-increment:s;background:#fff;border-radius:22px;padding:26px}
.tl-steps li::before{content:counter(s);display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--yellow);font-weight:800;margin-bottom:16px}
.tl-steps strong{display:block;font-size:18px;margin-bottom:6px}
.tl-steps p{margin:0;color:var(--text-secondary);line-height:1.6}
.tl-about p{font-size:1.1rem;line-height:1.7;color:rgba(255,255,255,.75);margin:0 0 16px}
.tl-about p b{color:#fff}
.tl-formula{display:block;font:600 clamp(1rem,1.8vw,1.2rem)/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;background:#1c1c1e;color:var(--yellow);border-radius:16px;padding:18px 20px;margin:6px 0 22px;overflow-x:auto;white-space:pre-wrap}
.tl-rel{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.tl-rel a{display:block;background:#fff;border:1px solid var(--border);border-radius:18px;padding:18px 20px;color:var(--text);text-decoration:none;transition:border-color .2s,transform .2s}
.tl-rel a:hover{border-color:var(--text);transform:translateY(-2px)}
.tl-rel strong{display:block;font-size:16px}
.tl-rel span{display:block;font-size:14px;color:var(--text-secondary);margin-top:4px;line-height:1.45}
.tl-appcta{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:center}
.tl-appcta .tl-lead{font-size:clamp(1.05rem,1.6vw,1.25rem);line-height:1.55;color:var(--text-secondary);margin:0 0 30px}
.tl-appcta .sl-rating{margin:0 0 0 auto!important}

/* hub */
.tl-hub{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
.tl-hub a{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--border);border-radius:24px;padding:24px;color:var(--text);text-decoration:none;transition:transform .2s,box-shadow .2s}
.tl-hub a:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,.08)}
.tl-hub i{width:46px;height:46px;border-radius:14px;background:var(--yellow);display:flex;align-items:center;justify-content:center;font-style:normal}
.tl-hub strong{font-size:18px;letter-spacing:-.01em}
.tl-hub span{font-size:15px;color:var(--text-secondary);line-height:1.5}

@media(max-width:900px){
  .tl-card{grid-template-columns:1fr}
  .tl-panel{border-right:0;border-bottom:1px solid var(--border)}
  .tl-steps{grid-template-columns:1fr}
  .tl-appcta{grid-template-columns:1fr;gap:40px}
  .tl-appcta .sl-rating{margin:0 auto!important}
}
@media(max-width:640px){
  .tl-wrap{padding:0 16px}
  .tl-hero{padding:108px 0 24px}
  .tl-card{border-radius:22px}
  .tl-panel,.tl-stage{padding:18px}
  .tl-stage{min-height:340px}
  .tl-sec{padding:72px 0}
}
.csc-preview{width:100%;display:flex;justify-content:center;align-items:center;min-height:300px}
/* never let a display rule override the hidden attribute */
.tl-card [hidden]{display:none!important}
.tl-result{grid-template-columns:repeat(2,minmax(0,1fr))}
.tl-result .tl-stat.hl{grid-column:1/-1}
.tl-stat b{font-size:clamp(1.2rem,2vw,1.55rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-stat.hl b{font-size:clamp(1.6rem,3vw,2.2rem)}
.tl-stat b.tl-small{font-size:1rem;letter-spacing:-.01em;white-space:normal}
@media(max-width:640px){.tl-stat b{white-space:normal;font-size:1.25rem}.tl-stat.hl b{font-size:1.7rem}}
/* closest format row with a mini shape icon */
.tl-fmt{grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:14px 16px}
.tl-fmt-ico{flex:none;width:44px;height:44px;border-radius:12px;background:var(--bg-soft);display:flex;align-items:center;justify-content:center}
.tl-fmt-ico i{display:block;border:2px solid #000;border-radius:3px;transition:width .25s,height .25s}
.tl-fmt-txt{flex:1;min-width:0}
.tl-fmt-txt b{font-size:1.05rem!important;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.tl-pill{flex:none;font-style:normal;font-size:13px;font-weight:700;border-radius:999px;padding:6px 11px;background:var(--bg-soft);color:var(--text-secondary);white-space:nowrap}
.tl-pill.ok{background:#e3f8e9;color:#1a7f37}
@media(max-width:640px){.tl-fmt{flex-wrap:wrap}.tl-pill{margin-left:58px}}
/* breadcrumb: wrap whole items on phones instead of squeezing them into columns */
.tl-hero .breadcrumb{flex-wrap:wrap;row-gap:4px}
.tl-hero .breadcrumb>*{white-space:nowrap;flex:none}
