/* Berry OS — free public tools (/free-tools, /free-*). Mobile-first; light + dark via html[data-theme] tokens. */
.ft-page{padding-bottom:72px}
.ft-hero{padding:118px 0 26px}
.ft-crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font:600 12px/1.4 "DM Sans",sans-serif;color:var(--berry-muted);margin-bottom:14px}
.ft-crumbs a{color:var(--berry-muted);text-decoration:none}
.ft-crumbs a:hover{color:var(--berry-brand)}
.ft-crumbs [aria-current]{color:var(--berry-text)}
.ft-h1{font-size:clamp(30px,5.4vw,52px);line-height:1.06;letter-spacing:-.035em;font-weight:900;margin:0 0 14px;color:var(--berry-text);max-width:880px}
.ft-lede{font-size:clamp(15px,1.6vw,18px);line-height:1.6;color:var(--berry-muted);max-width:760px;margin:0 0 18px}
.ft-pills{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.ft-pills li{font:700 11.5px/1 "DM Sans",sans-serif;padding:8px 12px;border-radius:999px;border:1px solid var(--berry-line);background:var(--berry-surface);color:var(--berry-muted)}
.ft-pills li:first-child{color:var(--berry-brand);border-color:rgba(255,122,26,.35);background:var(--berry-brand-soft)}

.ft-main{display:grid;gap:20px}
.ft-card{background:var(--berry-surface);border:1px solid var(--berry-line);border-radius:20px;padding:22px;box-shadow:0 10px 40px rgba(0,0,0,.06);min-width:0}
html[data-theme="dark"] .ft-card{box-shadow:0 18px 60px rgba(0,0,0,.3)}
.ft-tool{padding:24px}
.ft-tool-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.ft-tool-head h2{font-size:18px;font-weight:800;letter-spacing:-.01em;margin:0;color:var(--berry-text)}
.ft-badge{display:inline-flex;align-items:center;gap:6px;font:700 12px/1 "DM Sans",sans-serif;padding:7px 12px;border-radius:999px;background:var(--berry-surface-2);color:var(--berry-muted);border:1px solid var(--berry-line)}
.ft-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.ft-badge.is-ok{background:var(--berry-ok-soft,rgba(52,211,153,.13));color:var(--berry-ok,#34D399);border-color:transparent}
.ft-badge.is-warn{background:var(--berry-brand-soft);color:var(--berry-brand);border-color:transparent}
.ft-badge.is-bad{background:var(--berry-bad-soft,rgba(240,98,114,.13));color:var(--berry-bad,#F06272);border-color:transparent}

.ft-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:14px;margin-bottom:18px}
.ft-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.ft-field.is-wide{grid-column:1/-1}
.ft-field label{font:700 12px/1.3 "DM Sans",sans-serif;color:var(--berry-muted)}
.ft-field small{font-size:11.5px;color:var(--berry-dim);line-height:1.4}
.ft-input{width:100%;box-sizing:border-box;min-height:46px;padding:10px 13px;border-radius:12px;border:1px solid var(--berry-line-strong);background:var(--berry-surface-2);color:var(--berry-text);font:600 15px/1.3 "DM Sans",sans-serif;font-variant-numeric:tabular-nums;transition:border-color .15s,box-shadow .15s}
.ft-input:focus{outline:none;border-color:var(--berry-brand);box-shadow:0 0 0 3px var(--berry-brand-ring,rgba(255,122,26,.35))}
textarea.ft-input{min-height:120px;resize:vertical;line-height:1.55;font-weight:500}
select.ft-input{appearance:auto}

.ft-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:12px;padding:16px;border-radius:16px;background:var(--berry-surface-2);border:1px solid var(--berry-line)}
.ft-stat{display:flex;flex-direction:column;gap:4px;min-width:0}
.ft-stat-label{font:700 10.5px/1.3 "DM Sans",sans-serif;text-transform:uppercase;letter-spacing:.8px;color:var(--berry-muted)}
.ft-stat-value{font:800 clamp(22px,3vw,30px)/1.1 "JetBrains Mono",ui-monospace,monospace;color:var(--berry-text);letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ft-stat small{font-size:11.5px;color:var(--berry-muted);line-height:1.4}
.ft-stat.is-brand .ft-stat-value{color:var(--berry-brand)}
.ft-stat.is-ok .ft-stat-value{color:var(--berry-ok,#34D399)}
.ft-stat .ft-stat-value.is-neg,.ft-stat-value.is-neg{color:var(--berry-bad,#F06272)}
.ft-verdict{margin-top:14px;padding:14px 16px;border-radius:14px;border:1px solid var(--berry-line);background:var(--berry-surface);font-size:14px;line-height:1.6;color:var(--berry-text)}
.ft-verdict b{display:block;font:800 10.5px/1.3 "DM Sans",sans-serif;letter-spacing:1px;text-transform:uppercase;color:var(--berry-brand);margin-bottom:4px}
.ft-output{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px;border-radius:16px;background:var(--berry-surface-2);border:1px solid var(--berry-line)}
.ft-output code{flex:1 1 260px;min-width:0;font:600 13px/1.55 "JetBrains Mono",ui-monospace,monospace;color:var(--berry-brand);word-break:break-all}
.ft-output code.is-error{color:var(--berry-bad,#F06272)}
.ft-output small{flex-basis:100%;color:var(--berry-dim);font-size:11.5px}
.ft-bar{height:8px;border-radius:99px;background:var(--berry-surface-2);border:1px solid var(--berry-line);overflow:hidden;margin:4px 0 14px}
.ft-bar-fill{display:block;height:100%;width:0;background:var(--berry-ok,#34D399);transition:width .2s}
.ft-bar-fill.is-warn{background:var(--berry-brand)}.ft-bar-fill.is-bad{background:var(--berry-bad,#F06272)}
.ft-note{font-size:12px;color:var(--berry-dim);line-height:1.55;margin:12px 0 0}
.ft-serp{margin-top:16px;padding:16px 18px;border-radius:14px;background:#fff;border:1px solid #dadce0;font-family:Arial,Helvetica,sans-serif;max-width:640px;color:#202124}
.ft-serp-crumb{font-size:12px;color:#4d5156;margin-bottom:3px;overflow-wrap:anywhere}
.ft-serp-title{font-size:20px;color:#1a0dab;line-height:1.3;margin-bottom:3px;overflow-wrap:anywhere}
.ft-serp-desc{font-size:14px;color:#4d5156;line-height:1.58;overflow-wrap:anywhere}
.ft-serp-label{display:block;font:700 10.5px/1.3 "DM Sans",sans-serif;letter-spacing:.8px;text-transform:uppercase;color:var(--berry-muted);margin:18px 0 0}

.ft-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;border:1px solid var(--berry-line-strong);background:var(--berry-surface);color:var(--berry-text);font:800 13.5px/1 "DM Sans",sans-serif;cursor:pointer;transition:border-color .15s,transform .15s}
.ft-btn:hover{border-color:var(--berry-brand);color:var(--berry-brand)}
.ft-btn.is-primary{background:linear-gradient(135deg,#FF7A1A,#FF6A00);border-color:transparent;color:#171008}
.ft-btn.is-primary:hover{color:#171008;transform:translateY(-1px)}
.ft-share-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px;padding-top:16px;border-top:1px dashed var(--berry-line)}
.ft-share-row small{color:var(--berry-dim);font-size:12px}

.ft-cta{display:flex;align-items:center;justify-content:space-between;gap:18px 28px;flex-wrap:wrap;padding:26px;border-radius:22px;border:1px solid rgba(255,122,26,.3);background:radial-gradient(120% 140% at 0% 0%,rgba(255,122,26,.16),transparent 60%),var(--berry-surface)}
.ft-cta-copy{flex:1 1 380px;min-width:0}
.ft-eyebrow{display:block;font:800 11px/1.3 "Space Mono",monospace;letter-spacing:1.4px;text-transform:uppercase;color:var(--berry-brand);margin-bottom:6px}
.ft-cta h2{font-size:clamp(20px,2.6vw,26px);line-height:1.2;letter-spacing:-.02em;font-weight:900;margin:0 0 8px;color:var(--berry-text)}
.ft-cta p{margin:0;color:var(--berry-muted);line-height:1.6;font-size:14.5px}
.ft-cta-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.ft-cta-actions small{color:var(--berry-dim);font-size:11.5px}

.ft-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
.ft-prose h2,.ft-faq h2,.ft-more h2{font-size:19px;font-weight:850;letter-spacing:-.015em;margin:0 0 10px;color:var(--berry-text)}
.ft-prose h2:not(:first-child){margin-top:22px}
.ft-prose p{color:var(--berry-muted);line-height:1.72;font-size:14.5px;margin:0 0 12px}
.ft-faq details{border-top:1px solid var(--berry-line);padding:12px 0}
.ft-faq details:last-child{border-bottom:1px solid var(--berry-line)}
.ft-faq summary{cursor:pointer;font-weight:750;font-size:14.5px;color:var(--berry-text);list-style:none;display:flex;justify-content:space-between;gap:12px}
.ft-faq summary::-webkit-details-marker{display:none}
.ft-faq summary::after{content:"+";color:var(--berry-brand);font-weight:800;flex:none}
.ft-faq details[open] summary::after{content:"−"}
.ft-faq p{margin:8px 0 0;color:var(--berry-muted);line-height:1.68;font-size:14px}

.ft-more{margin-top:8px}
.ft-more-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}
.ft-tile{display:flex;flex-direction:column;gap:6px;text-decoration:none;transition:transform .2s,border-color .2s}
.ft-tile:hover{transform:translateY(-2px);border-color:rgba(255,122,26,.45)}
.ft-tile b{color:var(--berry-text);font-size:15.5px}
.ft-tile small{color:var(--berry-muted);font-size:13px;line-height:1.55}
.ft-tile-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:var(--berry-brand-soft);color:var(--berry-brand);font:800 15px/1 "DM Sans",sans-serif;margin-bottom:4px}
.ft-tile .ft-go{margin-top:auto;padding-top:8px;color:var(--berry-brand);font-weight:800;font-size:13px}
.ft-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.ft-hub-grid .ft-tile{padding:24px}

@media (max-width:900px){.ft-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){
  .ft-hero{padding:96px 0 18px}
  .ft-card,.ft-tool{padding:16px;border-radius:16px}
  .ft-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .ft-fields .ft-field.is-wide{grid-column:1/-1}
  .ft-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:12px 10px}
  .ft-stat-value{font-size:20px}
  .ft-cta{padding:18px}
  .ft-cta-actions,.ft-cta-actions .hero-btn{width:100%}
  .ft-share-row .ft-btn{flex:1 1 auto}
}
@media (max-width:380px){.ft-fields{grid-template-columns:minmax(0,1fr)}}
