/*
Theme Name: Typing Tool Works
Version: 0.1.0
Requires PHP: 7.4
Text Domain: typingtoolworks
*/

:root{
  --bg:#f6f8fc;
  --surface:#ffffff;
  --surface2:#f0f4ff;
  --text:#12213a;
  --muted:#65738a;
  --line:#dfe6f1;
  --brand:#3157d5;
  --brand2:#1e40af;
  --accent:#0ea5a8;
  --good:#15803d;
  --bad:#c2413b;
  --warn:#b45309;
  --shadow:0 20px 60px rgba(25,43,78,.10);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
button,select,textarea,input{font:inherit}
button{cursor:pointer}
.container{width:min(1160px,calc(100% - 32px));margin:auto}
.site-header{position:sticky;top:0;z-index:20;background:rgba(246,248,252,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(223,230,241,.8)}
.navbar{height:72px;display:flex;align-items:center;gap:28px}
.logo{display:flex;align-items:center;gap:10px;font-weight:850;letter-spacing:-.02em}
.logo-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--brand),#6d7cf0);display:grid;place-items:center;color:white;font-weight:900;box-shadow:0 8px 24px rgba(49,87,213,.25)}
.navlinks{margin-left:auto;display:flex;gap:24px;align-items:center;font-size:14px;font-weight:650;color:#33425c}
.navlinks a:hover{color:var(--brand)}
.nav-cta{background:var(--brand);color:white;border-radius:12px;padding:11px 17px;font-size:14px;font-weight:750}
.menu-btn{display:none;margin-left:auto;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:9px 12px}
.hero{text-align:center;padding:54px 0 22px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #cdd8ff;border-radius:999px;background:#edf2ff;color:#2545a7;font-size:13px;font-weight:800}
.eyebrow .dot{width:8px;height:8px;background:var(--accent);border-radius:99px}
h1{font-size:clamp(38px,6vw,66px);letter-spacing:-.045em;line-height:1.02;margin:18px auto 16px;max-width:850px}
.hero-copy{font-size:clamp(17px,2vw,21px);color:var(--muted);max-width:780px;margin:0 auto}
.trustline{display:flex;justify-content:center;gap:11px;flex-wrap:wrap;margin:22px auto 0;color:#45536a;font-size:13px;font-weight:720}
.trustline span{display:flex;align-items:center;gap:7px}
.check{color:var(--good);font-weight:900}
.test-shell{margin:28px auto 0;max-width:970px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:28px;padding:20px;text-align:left}
.tool-top{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:10px;align-items:end}
.control label{display:block;font-size:12px;font-weight:800;color:#5d6b82;margin:0 0 6px}
.segmented{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:#f8faff;padding:9px 11px;border-radius:10px;color:#42516a;font-size:13px;font-weight:720}
.chip.active{background:#e9efff;color:#2448b3;border-color:#bfcdfc}
select{width:100%;border:1px solid var(--line);background:#f8faff;color:var(--text);padding:10px 12px;border-radius:10px;font-weight:700}
.restart{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:10px 13px;font-weight:800;color:#45536a}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}
.stat{background:#f8faff;border:1px solid #e6ebf5;border-radius:16px;padding:13px 14px}
.stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#748097;font-weight:850}
.stat-value{font-size:24px;font-weight:900;letter-spacing:-.03em;margin-top:2px}
.typing-box{border:1px solid #dfe6f1;background:#fbfcff;border-radius:18px;padding:19px}
.prompt{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:20px;line-height:1.7;color:#718096;min-height:108px}
.prompt .done{color:#18233a}
.prompt .bad{color:var(--bad);background:#fff1f0;border-radius:3px}
.prompt .current{color:var(--text);background:#dce6ff;border-bottom:2px solid var(--brand)}
.type-input{width:100%;margin-top:14px;min-height:76px;resize:none;border:2px solid #cad5ea;border-radius:14px;padding:14px 15px;outline:none;color:var(--text);background:white}
.type-input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(49,87,213,.11)}
.tool-hint{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:9px;color:#7a879b;font-size:12px}
.result-card{display:none;margin-top:16px;padding:18px;border-radius:18px;background:#eef5ff;border:1px solid #cbdcff}
.result-card.show{display:block}
.result-title{font-size:14px;color:#46608b;font-weight:800}
.result-main{font-size:34px;font-weight:900;letter-spacing:-.04em}
.result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.result-mini{background:white;border:1px solid #d9e4f8;border-radius:12px;padding:10px}
.result-mini b{display:block;font-size:18px}
.section{padding:66px 0}
.section.tight{padding:34px 0}
.section-head{text-align:center;max-width:720px;margin:0 auto 28px}
.kicker{color:var(--brand);text-transform:uppercase;font-size:12px;letter-spacing:.12em;font-weight:900}
h2{font-size:clamp(28px,4vw,42px);line-height:1.1;letter-spacing:-.035em;margin:8px 0 10px}
.section-head p{color:var(--muted);margin:0}
.reassurance{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.reassure{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;text-align:center;font-size:13px;font-weight:800}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px;transition:.18s transform,.18s box-shadow}
.card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(35,55,90,.08)}
.icon{width:42px;height:42px;border-radius:12px;background:#edf2ff;color:var(--brand);display:grid;place-items:center;font-weight:900;margin-bottom:14px}
.card h3{font-size:18px;margin:0 0 7px}
.card p{color:var(--muted);font-size:14px;margin:0 0 12px}
.card .micro{color:var(--good);font-size:12px;font-weight:850}
.arrow{color:var(--brand);font-weight:850;font-size:13px;margin-top:12px;display:inline-block}
.split{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:center}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:28px}
.panel p{color:var(--muted)}
.practice-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.practice-item{padding:13px;border:1px solid var(--line);background:#f9fbff;border-radius:13px;font-weight:780}
.benchmark{background:linear-gradient(135deg,#1f3ea0,#345fd6);color:white}
.benchmark .section-head p{color:#dce5ff}
.benchmark-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.benchmark-card{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:20px}
.benchmark-card p{color:#dbe5ff;margin:6px 0 0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.step{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px}
.step-num{width:32px;height:32px;border-radius:10px;background:#e9efff;color:var(--brand);font-weight:900;display:grid;place-items:center;margin-bottom:12px}
.faq{max-width:820px;margin:auto}
details{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 16px;margin:9px 0}
summary{cursor:pointer;font-weight:800;padding:16px 2px}
details p{color:var(--muted);margin:0 0 16px}
.site-footer{background:#0e1930;color:#d9e2f3;padding:48px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:26px}
.footer-brand p{color:#aab7cd;max-width:280px}
.site-footer h4{color:white;margin:0 0 12px}
.site-footer a{display:block;color:#aebbd0;font-size:14px;margin:8px 0}
.site-footer a:hover{color:white}
.footer-bottom{margin-top:34px;padding-top:20px;border-top:1px solid #26344f;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#8797b3;font-size:12px}
.mobile-menu{display:none;padding:0 16px 14px}
.mobile-menu.open{display:block}
.mobile-menu a{display:block;padding:10px 4px;border-top:1px solid var(--line);font-weight:750}
@media(max-width:900px){
  .navlinks,.nav-cta{display:none}
  .menu-btn{display:block}
  .hero{padding-top:42px}
  .tool-top{grid-template-columns:1fr 1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .reassurance{grid-template-columns:repeat(2,1fr)}
  .reassurance .reassure:last-child{grid-column:1/-1}
  .cards{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
  .footer-brand{grid-column:1/-1}
}
@media(max-width:620px){
  .container{width:min(100% - 20px,1160px)}
  .navbar{height:64px}
  .logo{font-size:15px}
  .logo-mark{width:34px;height:34px}
  .hero{padding-top:30px}
  h1{font-size:40px}
  .hero-copy{font-size:16px}
  .trustline{font-size:12px}
  .test-shell{padding:12px;border-radius:20px}
  .tool-top{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .stat-value{font-size:20px}
  .typing-box{padding:14px}
  .prompt{font-size:17px;min-height:128px}
  .cards,.steps,.benchmark-cards{grid-template-columns:1fr}
  .reassurance{grid-template-columns:1fr}
  .reassurance .reassure:last-child{grid-column:auto}
  .practice-list{grid-template-columns:1fr}
  .section{padding:48px 0}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
  .result-grid{grid-template-columns:repeat(2,1fr)}
}

#prompt{max-height:9em;overflow:auto;} #customText{width:100%;}
