/* ═══════════════════════════════════════════════
   MORPHOME — learn.css
   ═══════════════════════════════════════════════ */

/* Wider than the marketing-text default — Learn now hosts grids
   (5-up Inputs, 4-up Subjects, 6-up Presets) that need horizontal
   room to breathe. Still narrower than the rest of the marketing
   site so paragraph copy stays readable. */
.page-wrap { max-width: 1080px; }

.sec       { margin-bottom: 56px; }
.sec-title { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.sec-lede  { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0 0 22px; max-width: 720px; }
.sec-foot  { font-size: 13px; color: var(--muted); margin: 18px 0 0; text-align: center; }
.sec-link  { color: var(--accent); text-decoration: none; font-weight: 500; }
.sec-link:hover { text-decoration: underline; }

/* ── HOW IT WORKS STEPS ── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.step {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 18px; padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}
.step-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(53,96,240,.13);
  font-size: 19px; margin-bottom: 14px;
}
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step-desc  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── INPUT TYPES GRID (What you can upload) ── */
.input-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.input-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.input-thumb {
  aspect-ratio: 4 / 3;
  background: #e8eaf2;
  overflow: hidden;
}
.input-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.input-thumb-plain {
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(53,96,240,.08), rgba(104,64,245,.06));
}
.input-thumb-glyph {
  font-size: 32px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
  font-family: 'DM Sans', sans-serif;
}
.input-body { padding: 14px 14px 16px; }
.input-title { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.input-desc  { font-size: 11.5px; color: var(--muted); line-height: 1.55; }

/* ── SUBJECT GRID (What you can create) ── */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.subject-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 200px 1fr;
}
.subject-thumb {
  background: #e8eaf2;
  overflow: hidden;
}
.subject-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.subject-meta { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.subject-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.subject-title { font-size: 15px; font-weight: 600; }
.subject-desc  { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── MODE PAIR (Visual vs Free) ── */
.mode-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}
.mode-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mode-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 8px;
}
.mode-badge-visual {
  background: rgba(53,96,240,.12);
  color: var(--accent);
  border: 1px solid rgba(53,96,240,.22);
}
.mode-badge-free {
  background: rgba(104,64,245,.10);
  color: #6840f5;
  border: 1px solid rgba(104,64,245,.22);
}
.mode-tag {
  font-size: 11px; color: var(--muted);
  font-weight: 500;
}
.mode-desc { font-size: 13px; color: var(--text); line-height: 1.62; margin-bottom: 18px; }
.mode-good-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 8px;
}
.mode-good ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.mode-good li {
  font-size: 12.5px; color: var(--text); line-height: 1.55;
  position: relative; padding-left: 16px;
}
.mode-good li::before {
  content: "›";
  position: absolute; left: 2px; top: -1px;
  color: var(--accent); font-weight: 600;
}

/* ── PRESET GRID ── */
.preset-grid {
  /* preset-grid 2col v1 */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.preset-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.preset-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(10,20,40,.12);
}
.preset-thumb {
  aspect-ratio: 16 / 9;
  background: #e8eaf2;
  overflow: hidden;
}
.preset-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.preset-body { padding: 14px 16px 16px; }
.preset-name { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.preset-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ── BEST PRACTICES (preserved + expanded to 6) ── */
.practices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.practice {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px;
  display: flex; gap: 13px; align-items: flex-start;
}
.p-icon  { font-size: 20px; flex-shrink: 0; }
.p-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.p-desc  { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ── TIPS BOX ── */
.tips-box {
  background: linear-gradient(135deg, rgba(53,96,240,.07), rgba(104,64,245,.06));
  border: 1px solid rgba(53,96,240,.16);
  border-radius: 20px; padding: 26px;
}
.tips-list { display: flex; flex-direction: column; gap: 13px; }
.tip       { display: flex; gap: 11px; }
.tip-dot   { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }
.tip-text  { font-size: 13px; color: var(--text); line-height: 1.62; }
.tip-link  { color: var(--accent); text-decoration: none; font-weight: 500; }
.tip-link:hover { text-decoration: underline; }

/* ── CTA ── */
.sec-cta { margin-bottom: 32px; }
.cta-box {
  background: linear-gradient(135deg, var(--accent), #6840f5);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  box-shadow: 0 18px 42px rgba(53,96,240,.22);
}
.cta-text { color: #fff; }
.cta-title { font-size: 19px; font-weight: 600; margin-bottom: 5px; }
.cta-sub   { font-size: 13.5px; opacity: 0.92; }
.cta-btn {
  background: rgba(255,255,255,.95);
  color: var(--accent);
  font-weight: 600; font-size: 14px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s, box-shadow .18s;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .input-grid    { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .preset-grid   { grid-template-columns: 1fr; }
  .sec-title     { font-size: 19px; }
  .steps         { grid-template-columns: 1fr; }
  .input-grid    { grid-template-columns: repeat(2, 1fr); }
  .subject-grid  { grid-template-columns: 1fr; }
  .subject-card  { grid-template-columns: 1fr; }
  .subject-thumb { aspect-ratio: 16 / 9; }
  .mode-pair     { grid-template-columns: 1fr; }
  .practices     { grid-template-columns: 1fr; }
  .cta-box       { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 480px) {
  .input-grid    { grid-template-columns: 1fr; }
}

