/* Shared styles for Maram free tools. Complements styles.css; no global overrides. */
.mt-hero .lede { max-width: 760px; }
.mt-hero-note { margin-top: 20px; max-width: 720px; color: rgba(255,255,255,.74); font-size: .94rem; font-weight: 650; display: flex; gap: 10px; align-items: flex-start; }
.mt-hero-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: #7edcff; }
.mt-jump { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.mt-hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.mt-hero-visual { position: relative; min-height: 440px; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 30px 90px rgba(0,0,0,.2); overflow: hidden; padding: 28px; }
.mt-hero-visual::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(1,176,241,.42), transparent 70%); pointer-events: none; }
.mt-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(37,211,102,.14); color: #8ff0b5; font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.mt-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 4px rgba(37,211,102,.2); }

#how-to, #tool, #assumptions, #faq, #samples { scroll-margin-top: 120px; }
.howto-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.howto-grid article { padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: #fff; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.howto-grid article:hover { border-color: rgba(10,102,194,.3); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(6,17,31,.07); }
.howto-grid span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-weight: 900; font-size: .95rem; box-shadow: 0 10px 22px rgba(10,102,194,.25); }
.howto-grid h3 { font-size: 1.12rem; }
.howto-grid p { margin-top: 10px; font-size: .95rem; }

.mt-panel { padding: 32px; border: 1px solid var(--border); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.mt-panel + .mt-panel { margin-top: 28px; }
.mt-panel > h2, .mt-panel-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.mt-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.mt-panel-head p { margin-top: 10px; max-width: 680px; }
.mt-sub { font-size: 1.05rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.mt-sub em { font-style: normal; display: inline-flex; width: 26px; height: 26px; border-radius: 8px; align-items: center; justify-content: center; background: rgba(10,102,194,.09); color: var(--blue); font-size: .8rem; font-weight: 900; }
.mt-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.mt-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.mt-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.mt-grid-2 .field, .mt-grid-3 .field, .mt-grid-4 .field { margin-bottom: 0; }
.field small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.field .mt-input-affix { position: relative; }
.mt-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(10,102,194,.4); color: var(--blue); }
.btn-sm { padding: 9px 14px; font-size: .86rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.mt-privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: .88rem; font-weight: 700; }
.mt-privacy svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.mt-errors { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; font-weight: 700; }
.mt-errors p { margin: 0; color: inherit; }
.mt-errors p + p { margin-top: 6px; }
.mt-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--soft); }
.mt-seg button, .mt-seg label { border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font-weight: 800; font-size: .88rem; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mt-seg button[aria-pressed="true"], .mt-seg label:has(input:checked) { background: #fff; color: var(--blue); box-shadow: 0 6px 16px rgba(6,17,31,.08); }
.mt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.mt-kpi { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.mt-kpi span { display: block; color: var(--muted); font-size: .74rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.mt-kpi strong { display: block; margin-top: 8px; color: var(--ink); font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.2; font-weight: 900; }
.mt-kpi small { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.mt-kpi.is-hero { background: linear-gradient(135deg, var(--ink), var(--deep)); border-color: transparent; }
.mt-kpi.is-hero span, .mt-kpi.is-hero small { color: rgba(255,255,255,.7); }
.mt-kpi.is-hero strong { color: #fff; }
.mt-kpi.is-good strong { color: #15803d; }
.mt-assumptions { margin-top: 18px; }
.mt-assumptions li { position: relative; padding-left: 18px; margin-top: 10px; color: var(--muted); line-height: 1.7; }
.mt-assumptions li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.mt-share { margin-top: 26px; padding: 20px 22px; border-radius: 20px; background: linear-gradient(135deg, #f0f7ff, #effcf6); border: 1px solid #d6e8fb; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.mt-share strong { display: block; color: var(--ink); font-size: 1.02rem; }
.mt-share p { font-size: .88rem; margin-top: 2px; }
.mt-share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 12px 26px rgba(37,211,102,.25); }
.btn-wa:hover { background: #1fb457; }
.btn-wa svg { width: 18px; height: 18px; }
.mt-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); z-index: 2000; max-width: min(92vw, 560px); padding: 13px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 18px 40px rgba(6,17,31,.3); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.mt-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mt-toast.is-warn { background: #9a3412; }
.mt-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.noscript-banner { margin: 0; padding: 14px 16px; background: #fff7ed; color: #9a3412; font-weight: 700; text-align: center; }
.cta-section .btn-secondary { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.cta-section a { color: #7edcff; }
.cta-section .btn { color: inherit; }
.cta-section .btn-primary { color: #fff; }
.mt-cta-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -10px auto 28px; }
.mt-cta-points span { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: .84rem; font-weight: 750; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1040px) {
  .howto-grid, .mt-kpis, .mt-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mt-hero-visual { min-height: 0; }
}
@media (max-width: 720px) {
  .howto-grid, .mt-kpis, .mt-grid-2, .mt-grid-3, .mt-grid-4 { grid-template-columns: 1fr; }
  .mt-kpis.mt-kpis-2up { grid-template-columns: 1fr 1fr; }
  .mt-panel { padding: 22px 16px; border-radius: 22px; }
  .mt-share { padding: 18px; }
  .mt-share-actions, .mt-share-actions .btn { width: 100%; }
  .mt-actions .btn { flex: 1 1 auto; }
  .mt-hero-visual { display: none; }
  .mt-toast { bottom: 84px; }
}
