/* ================= EMAIL PAGE (/features/email): 9 section =================
   Email đang phát triển: mọi mockup đều gắn nhãn Coming soon.
   Dùng lại .pp-sec/.pp-head/.pp-card; mockup riêng, tiền tố .em-. */

.em-soon { font-style: normal; margin-left: 6px; padding: 2px 6px; border-radius: 5px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #0d2d22; background: #5eead4; vertical-align: 1px; }

/* ---- 1. hero ---- */
.em-hero { padding-bottom: 0; }
.em-hero .pp-hero-in { padding-top: 54px; }
.em-hero .pp-pill { gap: 2px; }
.em-stage { position: relative; height: 470px; max-width: 1180px; margin: 4px auto 0; }
.em-hero-mascot { position: absolute; left: 1%; bottom: 0; height: 330px; width: auto; z-index: 2;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.55)); }
.em-window { position: absolute; left: 27%; top: 26px; width: 350px; padding: 14px; border-radius: 18px;
  background: rgba(23,21,16,.95); border: 1px solid #3a362c; box-shadow: 0 40px 80px rgba(0,0,0,.5); color: #f5f5f6; z-index: 3; }
.em-win-top { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #2c2921; }
.em-win-title { font: 700 8.5px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase;
  color: #ffb36b; }
.em-win-top b { font-size: 12.5px; }
.em-win-top em { margin-left: auto; font-style: normal; font-size: 10px; color: #8f8b80; }
.em-seq { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.em-seq li { display: grid; grid-template-columns: 8px 1fr 52px 62px; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.03); font-size: 11px; }
.em-dot { width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; }
.em-seq b { font-weight: 600; }
.em-seq small { font-size: 9.5px; color: #8f8b80; }
.em-seq em { font-style: normal; padding: 2px 5px; border-radius: 4px; font-size: 8px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #ffb020; background: rgba(255,176,32,.14); }
.em-preview { position: absolute; right: 4%; top: 44px; width: 306px; padding: 12px; border-radius: 18px;
  background: rgba(255,255,255,.05); border: 1px solid #3a362c; box-shadow: 0 40px 80px rgba(0,0,0,.45); z-index: 3; }
.em-pv-tag { display: inline-block; margin-bottom: 8px; padding: 2px 7px; border-radius: 5px; font: 700 8.5px/1.4 ui-monospace, monospace;
  letter-spacing: .1em; text-transform: uppercase; color: #cfcabb; background: rgba(255,255,255,.07); }
.em-mail { padding: 16px; border-radius: 14px; text-align: center; background: #fdf7ee; color: #2a1d0e; }
.em-mail-logo { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%;
  font: 700 11px/1 Inter, sans-serif; color: #fdf7ee; background: #b4500a; }
.em-mail > b { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8a7350; }
.em-mail h3 { margin: 8px 0 0; font-size: 16px; letter-spacing: -.01em; color: #241708; }
.em-mail p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.55; color: #56452f; }
.em-mail-btn { display: inline-block; margin-top: 12px; padding: 7px 16px; border-radius: 999px; font-size: 10.5px;
  font-weight: 700; color: #fff8ee; background: #b4500a; }
.em-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 14px; padding-top: 10px;
  border-top: 1px dashed #dcc9a8; }
.em-stats small { display: block; font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a7350; }
.em-stats b { display: block; font-size: 13px; color: #2a1d0e; font-variant-numeric: tabular-nums; }

/* ---- 2. campaign becomes emails ---- */
.em-idea { display: flex; align-items: center; gap: 10px; max-width: 900px; margin: 0 auto 26px; padding: 12px 16px;
  border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--pp-line); }
.em-idea-tag { padding: 3px 8px; border-radius: 5px; font: 700 8.5px/1 ui-monospace, monospace; letter-spacing: .12em;
  text-transform: uppercase; color: #16210a; background: #c8f751; }
.em-idea b { font-size: 13.5px; color: var(--pp-ink); }
.em-idea small { margin-left: auto; font-size: 11px; color: var(--pp-mute); }
.em-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.em-step { position: relative; display: grid; align-content: start; gap: 5px; padding: 20px 18px; border-radius: 14px;
  background: var(--pp-card); border: 1px solid var(--pp-line); }
.em-step::after { content: ""; position: absolute; right: -8px; top: 34px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--pp-line); }
.em-step:last-child::after { display: none; }
.em-step-n { font: 700 10px/1 ui-monospace, monospace; letter-spacing: .1em; color: #ffb36b; }
.em-step small { font-size: 9.5px; color: var(--pp-mute); }
.em-step b { font-size: 13.5px; line-height: 1.3; color: var(--pp-ink); }
.em-step em { justify-self: start; margin-top: 2px; padding: 2px 7px; border-radius: 4px; font-style: normal;
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5eead4;
  background: rgba(45,212,191,.14); }
.em-step p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--pp-mute); }
.em-note { max-width: 720px; margin: 26px auto 0; text-align: center; font-size: 12.5px; line-height: 1.6;
  color: var(--pp-mute); }

/* ---- 3. every send ---- */
.em-launch-top { align-items: center; }
.em-launch-card { padding: 24px; border-radius: 18px; background: var(--pp-card); border: 1px dashed var(--pp-line); }
.em-launch-card b { display: block; margin-top: 8px; font-size: 17px; color: var(--pp-ink); }
.em-launch-card p { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--pp-mute); }
.em-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.em-card { padding: 22px; min-height: 220px; }
.em-ic { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px;
  color: #ffb36b; background: rgba(255,122,26,.16); }
.em-ic .ic { width: 17px; height: 17px; }

/* ---- 4. replies ---- */
.em-inbox { padding: 16px; background: #101a22; border-color: #2b3a44; color: #f5f5f6; }
.em-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid #24323b; }
.em-tabs span { padding: 5px 9px; border-radius: 7px; font-size: 10.5px; color: #8fa0a8; }
.em-tabs span.on, .em-tabs span:first-child { color: #062a26; background: #5eead4; font-weight: 600; }
.em-tab-soon { display: inline-flex; align-items: center; }
.em-tab-soon .em-soon { background: #24323b; color: #8fa0a8; }
.em-im-list { display: grid; gap: 6px; margin-top: 10px; }
.em-im { display: flex; gap: 9px; padding: 9px 10px; border-radius: 9px; background: #16232b; }
.em-iav { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
  font: 700 10px/1 Inter, sans-serif; font-style: normal; background: #0f766e; color: #eafbf8; }
.em-im > div { min-width: 0; }
.em-im b { display: flex; justify-content: space-between; font-size: 11px; color: #f5f5f6; }
.em-im b small { font-weight: 400; color: #8fa0a8; }
.em-im span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.45; color: #cfd8dc; }
.em-im em { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-style: normal; font-size: 9.5px; color: #8fa0a8; }
.em-im em .pp-ic { width: 15px; height: 15px; border-radius: 4px; font-size: 7px; }
.em-reply { margin-top: 10px; padding: 12px; border-radius: 11px; background: rgba(94,234,212,.08);
  border: 1px solid rgba(94,234,212,.28); }
.em-rtag { font: 700 8.5px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #5eead4; }
.em-reply p { margin: 7px 0 0; font-size: 11.5px; line-height: 1.55; color: #e9f5f2; }
.em-rfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; font-size: 10.5px; color: #8fa0a8; }
.em-rfoot > span { padding: 4px 10px; border-radius: 7px; border: 1px solid #2b3a44; }
.em-send { color: #062a26 !important; background: #5eead4; border-color: #5eead4 !important; font-weight: 700; }

/* ---- 5. brand voice ---- */
.em-voice { display: grid; gap: 12px; }
.em-settings { padding: 18px; }
.em-tones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.em-tones button { padding: 6px 11px; border-radius: 999px; font-size: 11.5px; cursor: pointer; color: var(--pp-ink);
  background: rgba(255,255,255,.05); border: 1px solid var(--pp-line); }
.em-tones button.on { color: #141311; background: #ffb36b; border-color: #ffb36b; font-weight: 700; }
.em-rule { margin: 12px 0 0; font-size: 12px; line-height: 1.55; color: var(--pp-mute); font-style: italic; }
.em-arrow { justify-self: center; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  color: #141311; background: #ffb36b; transform: rotate(90deg); }
.em-arrow .ic { width: 14px; height: 14px; }
.em-mail-wide { text-align: left; }
.em-mail-wide .em-mail-logo { margin: 0 0 6px; }
.em-mail-wide .em-pv-tag { margin-bottom: 12px; color: #7a6242; background: #f0e2cc; }
.em-mail-wide .em-mail-btn { margin-top: 14px; }

/* ---- 6. one mission control ---- */
.em-week { max-width: 980px; margin: 0 auto; border-radius: 18px; padding: 16px;
  background: #17150f; border: 1px solid #34312a; color: #f5f5f6; }
html[data-theme="light"] .em-week { background: #fff; border-color: #e1e1e6; color: #141418; }
.em-week-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px;
  border-bottom: 1px solid #2c2921; font-size: 12px; font-weight: 600; }
html[data-theme="light"] .em-week-head { border-color: #ececf0; }
.em-legend { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 400; color: #8f8b80; }
.em-legend i { width: 7px; height: 7px; border-radius: 2px; margin-left: 6px; }
.em-legend i.post { background: #ff7a1a; } .em-legend i.article { background: #c8f751; }
.em-legend i.email { background: #5eead4; }
.em-week-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.em-day { display: grid; align-content: start; gap: 6px; min-height: 168px; padding: 8px; border-radius: 10px;
  background: #201e17; border: 1px solid #2c2921; }
html[data-theme="light"] .em-day { background: #f5f5f8; border-color: #e6e6ea; }
.em-day > span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #8f8b80; }
.em-ev { display: grid; gap: 2px; padding: 7px 8px; border-radius: 8px; font-style: normal; font-size: 9px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; }
.em-ev b { font-size: 10.5px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.em-ev-post { color: #ffcda6; background: rgba(255,122,26,.14); border-color: rgba(255,122,26,.3); }
.em-ev-article { color: #dff8a8; background: rgba(200,247,81,.12); border-color: rgba(200,247,81,.28); }
.em-ev-email { color: #a7f3e8; background: rgba(45,212,191,.13); border-color: rgba(45,212,191,.3); }
.em-minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.em-mini { padding: 18px; }
.em-mini b { font-size: 14px; color: var(--pp-ink); }
.em-mini p { margin: 5px 0 0; }

/* ---- 7. works with everything ---- */
.em-withs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.em-with { display: grid; align-content: start; padding: 22px; transition: transform .16s var(--ease), border-color .16s; }
.em-with:hover { transform: translateY(-3px); border-color: rgba(255,122,26,.5); }
.em-with-ic { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 10px;
  color: #ffb36b; background: rgba(255,122,26,.16); }
.em-with-ic .ic { width: 16px; height: 16px; }
.em-art { height: 116px; margin-bottom: 16px; border-radius: 10px; padding: 12px; overflow: hidden;
  background: rgba(0,0,0,.28); border: 1px solid var(--pp-line); }
.em-art-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.em-art-social u { display: block; border-radius: 6px; background: linear-gradient(135deg, #44382a, #26211a); }
.em-art-social u:nth-child(2) { background: linear-gradient(135deg, #27423d, #172825); }
.em-art-seo { display: grid; align-content: center; gap: 6px; }
.em-art-seo i { display: block; height: 7px; border-radius: 3px; background: rgba(255,255,255,.12); }
.em-art-seo i:first-child { width: 70%; background: rgba(200,247,81,.35); }
.em-art-seo i:nth-child(3) { width: 82%; }
.em-art-api { font: 500 9.5px/1.7 ui-monospace, monospace; color: #8fa0a8; white-space: pre-wrap; }
.em-art-api span { color: #ffb36b; }
.em-with h3 { font-size: 16px; }
.em-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 12px; font-weight: 600;
  color: var(--orange-2); }
.em-more .ic { width: 12px; height: 12px; }

/* ---- light theme: the week grid and mail art ---- */
html[data-theme="light"] .em-ev-post { color: #a33f00; }
html[data-theme="light"] .em-ev-article { color: #3f5c00; }
html[data-theme="light"] .em-ev-email { color: #0a5b52; }
html[data-theme="light"] .em-ev b { color: inherit; }
html[data-theme="light"] .em-mail h3 { color: #241708; }
html[data-theme="light"] .em-week-head, html[data-theme="light"] .em-week .em-legend { color: #3c3c44; }
html[data-theme="light"] .em-art { background: rgba(0,0,0,.06); }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .em-stage { height: 560px; }
  .em-hero-mascot { height: 240px; left: 0; }
  .em-window { left: 20%; }
  .em-preview { right: 2%; }
  .em-cards { grid-template-columns: 1fr 1fr; }
  .em-timeline { grid-template-columns: repeat(2, 1fr); }
  .em-step::after { display: none; }
  .em-minis { grid-template-columns: 1fr 1fr; }
  .em-withs { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .em-stage { height: 760px; }
  .em-hero-mascot { position: relative; left: 50%; transform: translateX(-50%); height: 180px; display: block; margin: 0 auto; }
  .em-window { position: relative; left: auto; top: auto; width: min(360px, 92%); margin: 4px auto 0; }
  .em-preview { position: relative; right: auto; top: auto; width: min(320px, 88%); margin: 12px auto 0; }
  .em-idea { flex-wrap: wrap; }
  .em-idea small { margin-left: 0; }
  .em-cards, .em-minis { grid-template-columns: 1fr; }
  .em-week-grid { grid-template-columns: 1fr 1fr; }
  .em-day { min-height: 120px; }
}
@media (max-width: 720px) {
  .em-timeline { grid-template-columns: 1fr; }
  .em-card, .em-mini { min-height: 0; }
  .em-week-grid { grid-template-columns: 1fr; }
  .em-day { min-height: 0; }
}
