/* Why Lessonsmith: what Lessonsmith adds next to general AI assistants.
   Home page: a "Why us?" button under the school plan opens it in a large pane.
   Partners page: shown as a section. Kept in its own file (not styles.css). */

.why-ls { padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: var(--surface); }
.why-ls.why-partners { padding: clamp(22px, 4vw, 40px); margin: 44px 0 0; border: 1px solid var(--line); border-top: 6px solid var(--accent); box-shadow: 0 8px 26px rgb(14 77 62 / .06); }
.why-ls h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 10px 0 10px; line-height: 1.15; }
.why-lead { font-size: 1.12rem; max-width: 820px; margin: 0 0 20px; }
.why-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why-grid li { background: var(--soft); border-radius: 18px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.why-grid li > span { font-size: 2rem; }
.why-grid li b { font-size: 1.1rem; color: var(--accent); }
.why-grid li p { margin: 0; line-height: 1.5; }
.why-with { margin: 20px 0 0; padding: 14px 18px; border-radius: 16px; border-left: 4px solid var(--mint); background: var(--bg); line-height: 1.55; }

/* The button under the school plan */
.why-open-row { display: flex; justify-content: center; margin: 22px 0 0; }
.why-open { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 24px 10px 12px; border-radius: 999px;
  border: 2px solid var(--chalk); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 8px 22px rgb(14 77 62 / .1); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.why-open b { color: var(--accent); }
.why-open-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--chalk); font-size: 1.2rem; }
.why-open:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgb(14 77 62 / .16); background: color-mix(in srgb, var(--chalk) 10%, var(--surface)); }
.why-open:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }

/* The large pane */
.why-dialog { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-top: 6px solid var(--chalk);
  border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .35); overflow: auto; }
.why-dialog::backdrop { background: rgb(8 32 26 / .55); backdrop-filter: blur(3px); }
.why-dialog[open] { animation: why-in .2s ease-out; }
@keyframes why-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.why-dialog .why-ls { padding-top: clamp(26px, 4vw, 44px); }
.why-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 1.2rem; cursor: pointer; z-index: 1; }
.why-close:hover { background: var(--soft); }
.why-close:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; }
body.why-lock { overflow: hidden; }

@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .why-open { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .why-dialog[open] { animation: none; } .why-open { transition: none; } .why-open:hover { transform: none; } }
