/* Kloora teaching tools, light theme. Loaded after base.css (the tool layouts) and each tool's own styles. */
:root{
  --navy:#24323a; --blue:#2f7d6d; --cyan:#f2a65a; --bg:#fffaf3; --ink:#2b353b; --card:#fff;
  --line:#eadfd0; --muted:#6b7479;
  --grad:linear-gradient(135deg,#2f7d6d,#47a08c);
  --soft:#f3ede3;
}
body{font-family:Nunito,system-ui,"Segoe UI",sans-serif;background:var(--bg);font-size:16px}
h1,h2,h3,.brand{font-family:Fraunces,Georgia,serif}
.wrap{max-width:1080px;margin:0 auto;padding:0 16px}
[hidden]{display:none!important}

.top{background:rgba(255,250,243,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.top .wrap{display:flex;align-items:center;justify-content:space-between;min-height:62px}
.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;color:var(--navy);text-decoration:none}
.top nav a{margin-left:20px;color:var(--navy);text-decoration:none;font-weight:700;font-size:15px}
.top nav a:hover{color:var(--blue)}

.hero{background:radial-gradient(600px 260px at 12% 10%,#ffe9d2 0,transparent 70%),radial-gradient(560px 280px at 88% 30%,#dff1ea 0,transparent 70%),radial-gradient(420px 220px at 55% 100%,#ece7fb 0,transparent 70%);color:var(--navy);text-align:center;padding:64px 0 48px}
.hero .kicker{display:inline-block;margin:0 0 14px;padding:5px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:700;font-size:13px;color:var(--blue)}
.hero h1{font-size:clamp(34px,6.4vw,62px);line-height:1.08;margin:0 0 14px;font-weight:700}
.hero h1 em{font-style:normal;color:var(--blue)}
.hero .lead{max-width:600px;margin:0 auto 26px;color:var(--muted);font-size:18px}
.hero input{width:min(520px,100%);padding:16px 22px;border-radius:999px;border:1px solid var(--line);font:inherit;background:#fff;box-shadow:0 12px 30px rgba(90,70,40,.09)}

.group{margin:44px 0 0;scroll-margin-top:80px}
.group>h2,.more h2{margin:0 0 2px;font-size:26px;color:var(--navy)}
.group>p{margin:0 0 14px;color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(238px,1fr));gap:16px}
.card{display:block;text-decoration:none;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;transition:transform .18s,box-shadow .18s}
.card:hover,.card:focus-visible{transform:translateY(-4px);box-shadow:0 16px 32px rgba(90,70,40,.12)}
.card .ic{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;font-size:26px}
.card.c0 .ic{background:#dff1ea}.card.c1 .ic{background:#ffe9d2}.card.c2 .ic{background:#ece7fb}.card.c3 .ic{background:#dcedf8}.card.c4 .ic{background:#fde3e6}
.card h3{margin:14px 0 4px;font-size:18px;color:var(--navy)}
.card p{margin:0;color:var(--muted);font-size:14px}

.path{margin:20px 0 0;font-size:14px;color:var(--muted)}
.intro{padding:8px 0 4px}
.intro h1{margin:0 0 4px;font-size:clamp(27px,4.4vw,40px);color:var(--navy)}
.intro p{margin:0;color:var(--muted);font-size:17px}

.video{margin:18px auto 8px;max-width:820px;aspect-ratio:16/9;border-radius:22px;overflow:hidden;background:#fff;border:1px solid var(--line);box-shadow:0 16px 36px rgba(90,70,40,.10)}
.video video,.video iframe{display:block;width:100%;height:100%;border:0;background:#f3ede3;object-fit:contain}
.video.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;aspect-ratio:auto;min-height:190px;background:linear-gradient(135deg,#eef8f4,#fff4e6);box-shadow:none;border-style:dashed;border-width:2px;text-align:center;padding:20px}
.video .play{width:58px;height:58px;border-radius:50%;background:#fff;box-shadow:0 8px 20px rgba(47,125,109,.2);position:relative}
.video .play::after{content:"";position:absolute;left:23px;top:17px;border-left:18px solid var(--blue);border-top:12px solid transparent;border-bottom:12px solid transparent}
.video figcaption b{display:block;font-family:Fraunces,Georgia,serif;font-size:19px;color:var(--navy)}
.video figcaption span{color:var(--muted);font-size:14px}

.panel{border-radius:20px;border-color:var(--line);box-shadow:0 6px 20px rgba(90,70,40,.05)}
input[type=text],input[type=number],input[type=date],input[type=search],input[type=time],select,textarea{border-color:#ded2c0;border-radius:12px}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.btn{border-radius:999px;background:var(--blue);font-weight:800}
.btn.ghost{background:#fff;color:var(--blue);border:1.5px solid #bcd9d1}
.calc-btn{background:var(--blue)!important;border-radius:999px!important}
.tabs button{border-radius:999px}
.tabs button.on{background:var(--blue);color:#fff}
.result{background:linear-gradient(135deg,#eef8f4,#fff4e6);border-radius:16px}
.panel #o .stat:first-child{background:linear-gradient(135deg,#eef8f4,#fff4e6);border:2px solid var(--blue)}
.panel #o .stat:first-child b{color:#1d5d50}
.tpl.on{border-color:var(--blue);box-shadow:0 0 0 3px rgba(47,125,109,.18)}
.paperwrap{background:var(--soft)}
.grd th,.drop{background:var(--soft)}

.help{margin:34px 0;background:#fff;border:1px solid var(--line);border-radius:22px;padding:8px 24px 18px}
.help h2{font-size:22px;color:var(--navy)}
.help li{margin-bottom:6px}
.help details{border-top:1px solid var(--line);padding:11px 0}
.help summary{cursor:pointer;font-weight:700}
.more{margin:34px 0}
.more h2{margin-bottom:14px}
.bottom{margin-top:56px;background:#f6efe3;border-top:1px solid var(--line);padding:22px 0;font-size:14px;color:var(--muted)}
.bottom p{margin:4px 0}

/* the file picker must not push a phone screen sideways */
.row>*{min-width:0}
input[type=file]{width:100%;max-width:100%;min-width:0}

/* home: split hero, featured tool, picture cards */
.hero{text-align:left;padding:56px 0 52px;overflow:hidden}
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center}
.split>*,.spot>*{min-width:0}
.hero .lead{margin:0 0 24px}
.cta{display:flex;gap:12px;flex-wrap:wrap;margin:0}
.cta .btn{text-decoration:none;padding:13px 24px}
.facts{display:flex;gap:30px;list-style:none;margin:30px 0 0;padding:0;color:var(--muted);font-size:14px}
.facts b{display:block;font-family:Fraunces,Georgia,serif;font-size:32px;color:var(--navy);line-height:1.1}
.stack{position:relative;height:390px}
.stack img{position:absolute;width:82%;height:auto;border-radius:16px;border:1px solid var(--line);box-shadow:0 24px 50px rgba(90,70,40,.18);background:#fff;transition:transform .3s}
.stack .s2{left:0;top:0;transform:rotate(-6deg)}
.stack .s3{right:0;top:54px;transform:rotate(5deg)}
.stack .s1{left:9%;top:122px;transform:rotate(-1deg)}
.stack:hover .s2{transform:rotate(-9deg) translate(-8px,-6px)}
.stack:hover .s3{transform:rotate(8deg) translate(8px,-6px)}
.stack:hover .s1{transform:translateY(6px)}
.spot{display:grid;grid-template-columns:.85fr 1.15fr;gap:30px;align-items:center;margin:42px 0 0;background:#fff;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:0 14px 40px rgba(90,70,40,.08)}
.spot .kicker{margin:0 0 4px;font-weight:800;color:var(--blue);font-size:13px;text-transform:uppercase;letter-spacing:.06em}
.spot h2{margin:0 0 10px;font-size:30px;color:var(--navy)}
.spot ol{padding-left:20px;margin:0 0 20px}
.spot li{margin-bottom:8px}
.spot .video{margin:0}
.finder{text-align:center;margin:44px 0 -14px}
.finder input{width:min(520px,100%);padding:15px 22px;border-radius:999px;border:1px solid var(--line);font:inherit;background:#fff;box-shadow:0 10px 26px rgba(90,70,40,.08)}
.cards{grid-template-columns:repeat(auto-fill,minmax(min(290px,100%),1fr))}
.card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.card .thumb{display:block;background:var(--soft);border-bottom:1px solid var(--line);aspect-ratio:16/10;overflow:hidden}
.card .thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s}
.card:hover .thumb img{transform:scale(1.05)}
.card .in{display:flex;flex-direction:column;flex:1;padding:16px 18px 18px}
.card .ic{width:44px;height:44px;border-radius:14px;font-size:22px}
.card h3{margin:12px 0 4px}
.card .go{margin-top:auto;padding-top:12px;font-weight:800;font-size:14px;color:var(--blue)}
.card .go::after{content:" \2192"}
.steps{margin:56px 0 0;text-align:center}
.steps h2{font-size:28px;color:var(--navy)}
.steps>div{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.steps article{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px}
.steps article span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--blue);color:#fff;font-weight:800}
.steps h3{margin:12px 0 4px;color:var(--navy)}
.steps p{margin:0;color:var(--muted)}

/* tool page: reasons and example button */
.try{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0 4px;padding:14px 18px;border-radius:18px;background:#fff;border:1px solid var(--line)}
.try ul{display:flex;gap:8px 20px;flex-wrap:wrap;list-style:none;margin:0;padding:0;font-weight:700;font-size:14px;color:var(--navy)}
.try li::before{content:"\2713";color:var(--blue);margin-right:7px;font-weight:800}
#work{scroll-margin-top:80px}

@media(max-width:860px){.split,.spot{grid-template-columns:1fr}.stack{height:300px;max-width:520px;width:100%;margin:0 auto}.stack .s1{top:92px}.spot{padding:18px}.steps>div{grid-template-columns:1fr}}
@media(max-width:480px){.stack{height:230px}.stack .s1{top:70px}.try .btn{width:100%}.facts{gap:20px}}
@media print{.try{display:none!important}}

@media(max-width:640px){.hero{padding:40px 0 32px}.help{padding:4px 16px 12px}}
@media(prefers-reduced-motion:reduce){.card{transition:none}.card:hover{transform:none}}
@media print{.top,.bottom,.video,.help,.more,.path,.intro{display:none!important}}
