/* The DeinfluenceMe page: the app's Blush theme inside the Poni Apps site (colours from src/ui/theme.ts). */
.dm {
  --dm-bg: #faf6f2;
  --dm-surface: #ffffff;
  --dm-soft: #f7e2e5;
  --dm-ink: #2b2421;
  --dm-muted: #76695f;
  --dm-primary: #a9475f;
  --dm-line: #eadfd8;
  --dm-plus-bg: #7f2f46;
  --dm-plus-card: #93405a;
  --dm-gold: #f4c95d;
  --dm-on-primary: #ffffff;
  --dm-serif: "Fraunces", Georgia, "Noto Serif SC", "Songti SC", serif;
  background: var(--dm-bg);
  color: var(--dm-ink);
}
@media (prefers-color-scheme: dark) {
  .dm {
    --dm-bg: #1e1719;
    --dm-surface: #2a2023;
    --dm-soft: #3a262d;
    --dm-ink: #f7efea;
    --dm-muted: #c5b5ad;
    --dm-primary: #f0a3b5;
    --dm-on-primary: #2b2421;
    --dm-line: #43323a;
    --dm-plus-bg: #4d1c2c;
    --dm-plus-card: #64293c;
  }
}
.dm section { padding: 88px 0; }
.dm h1, .dm h2, .dm .dm-logo, .dm .price { font-family: var(--dm-serif); }
.dm h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 700; }
.dm h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.01em; }
.dm p { margin: 0; }

/* Hero */
.dm-hero { background: var(--dm-soft); overflow: hidden; }
.dm .dm-hero { padding: 64px 0 80px; }
.dm-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.dm-logo { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 700; margin-bottom: 26px; }
.dm-logo img { border-radius: 15px; box-shadow: 0 8px 20px -8px rgba(169, 71, 95, 0.6); }
.dm-logo em { font-style: normal; color: var(--dm-primary); }
.dm-eyebrow { font-weight: 700; color: var(--dm-primary); font-size: 1rem; margin-bottom: 8px !important; }
.dm h1 { font-size: clamp(2.7rem, 6.6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 700; }
.dm h1 .eyes { display: inline-block; font-size: 0.8em; }
html[lang="zh-Hans"] .dm h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.12; }
.dm-lead { font-size: 1.18rem; color: var(--dm-muted); max-width: 540px; margin-bottom: 26px !important; }
.dm-soon, .dm-btn {
  display: inline-flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline;
  padding: 14px 26px; border-radius: 999px;
  background: var(--dm-primary); color: var(--dm-on-primary); font-weight: 500; text-decoration: none;
}
.dm-soon strong { font-weight: 800; }
.dm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 22px; }
.dm-chips li { background: var(--dm-surface); padding: 6px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 700; }
.dm-jumps { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.dm-jumps a, .dm-link { color: var(--dm-primary); font-weight: 700; text-decoration: none; }
.dm-jumps a:hover, .dm-link:hover { text-decoration: underline; }
.dm-hero-phone { position: relative; display: flex; justify-content: center; }
.dm-hero-phone .puff { position: absolute; left: calc(50% - 212px); bottom: 34px; z-index: 2; }
.dm-hero-phone .phone-frame { width: min(300px, 78vw); transform: rotate(2deg); }

/* Phones */
.phone-frame {
  position: relative; width: 100%; max-width: 280px; aspect-ratio: 1 / 2;
  border: 9px solid #231c1e; border-radius: 40px; background: #231c1e; overflow: hidden;
  box-shadow: 0 34px 60px -28px rgba(127, 47, 70, 0.65);
}
.phone-frame video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: var(--dm-bg); }
.vid-toggle {
  position: absolute; right: 10px; bottom: 12px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(35, 28, 30, 0.5); cursor: pointer; display: grid; place-items: center;
}
.vid-toggle:focus-visible { outline: 3px solid var(--dm-gold); outline-offset: 2px; }
.vid-toggle span { display: block; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.is-playing .vid-toggle span { width: 12px; height: 15px; margin: 0; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }

/* Steps */
.dm-steps h2 { text-align: center; margin-bottom: 40px; }
.dm-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dm-steps li { background: var(--dm-surface); border: 1px solid var(--dm-line); border-radius: 26px; padding: 28px; }
.dm-steps p { color: var(--dm-muted); }
.num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--dm-soft); color: var(--dm-primary); font-family: var(--dm-serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }

/* Free and Plus labels */
.tier { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 12px; }
.tier-free { background: #d9efdf; color: #1d5b34; }
.tier-plus { background: #fff; color: #7f2f46; }
.tier-head { max-width: 720px; margin-bottom: 56px; }
.tier-head p { font-size: 1.15rem; }
.dm-free .tier-head p, .feature-words p, .feature-small p { color: var(--dm-muted); }

/* Features */
.feature-big { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: center; max-width: 880px; margin: 0 auto 72px; }
.feature-big:nth-of-type(even) { grid-template-columns: 1fr 280px; }
.feature-big:nth-of-type(even) .phone-frame { order: 2; }
.feature-words h3 { font-family: var(--dm-serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 12px; }
.feature-words p { font-size: 1.14rem; max-width: 460px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 44px 28px; align-items: start; }
.feature-small .phone-frame { margin-bottom: 18px; max-width: 232px; border-width: 8px; border-radius: 34px; }
.feature-small video { border-radius: 26px; }
.also-free { background: var(--dm-soft); border-radius: 28px; padding: 26px; }
.also-free h3 { font-family: var(--dm-serif); font-size: 1.5rem; }
.also-free ul { margin: 0; padding: 0; list-style: none; }
.also-free li { padding: 8px 0 8px 28px; position: relative; font-weight: 500; font-size: 0.95rem; }
.also-free li::before { content: "✓"; position: absolute; left: 2px; color: var(--dm-primary); font-weight: 800; }

/* Plus */
.dm-plus { background: var(--dm-plus-bg); color: #fff; }
.dm-plus .tier-head p, .dm-plus .feature-words p, .dm-plus .feature-small p { color: #f6dfe4; }
.price-card { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 28px; padding: 22px 28px; border-radius: 26px; background: var(--dm-plus-card); }
.price { font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--dm-gold); }
.price-words { flex: 1; min-width: 240px; display: grid; gap: 4px; font-size: 0.95rem; color: #f6dfe4; }
.price-words strong { font-size: 1.1rem; color: #fff; }
.all-plus-title { font-family: var(--dm-serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 80px 0 28px !important; }
.all-plus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.all-plus li { display: flex; gap: 14px; padding: 18px; border-radius: 20px; background: var(--dm-plus-card); }
.all-plus .emoji { font-size: 1.6rem; line-height: 1.2; }
.all-plus strong { display: block; margin-bottom: 2px; }
.all-plus p { font-size: 0.9rem; line-height: 1.45; color: #f6dfe4; }

/* Comparison */
.dm-compare h2 { text-align: center; margin-bottom: 36px; }
.table-wrap { max-width: 780px; margin: 0 auto; background: var(--dm-surface); border: 1px solid var(--dm-line); border-radius: 26px; overflow: hidden; }
.dm-compare table { width: 100%; border-collapse: collapse; }
.dm-compare th, .dm-compare td { padding: 13px 16px; border-bottom: 1px solid var(--dm-line); text-align: center; }
.dm-compare th:first-child { text-align: left; font-weight: 500; }
.dm-compare thead th { font-weight: 800; background: var(--dm-soft); }
.dm-compare thead th:first-child { font-weight: 800; }
.dm-compare tbody tr:last-child > * { border-bottom: 0; }
.dm-compare td { width: 84px; }
.yes { color: #1f8a4c; font-weight: 800; font-size: 1.15rem; }
.no { color: var(--dm-muted); }
@media (prefers-color-scheme: dark) { .yes { color: #7ddc9f; } }

/* Privacy */
.dm-privacy { background: var(--dm-soft); text-align: center; }
.dm-privacy .puff { margin: 0 auto 8px; }
.dm-privacy ul { list-style: none; margin: 34px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.dm-privacy li { background: var(--dm-surface); border-radius: 24px; padding: 26px; }
.dm-privacy li p { color: var(--dm-muted); }

/* Ending */
.dm-cta { text-align: center; }
.dm-cta .puff { margin: 0 auto 8px; }
.dm-cta > .container > p { color: var(--dm-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 18px; }
.dm-cta .video-note { font-size: 0.86rem !important; }
.lang-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.lang-switch a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--dm-muted); font-size: 0.92rem; }
.lang-switch a:hover { background: var(--dm-soft); }
.lang-switch a[aria-current] { background: var(--dm-primary); color: var(--dm-on-primary); }

/* A little life, for people who don't mind motion */
@media (prefers-reduced-motion: no-preference) {
  .dm-hero-phone .puff { animation: dm-bob 2.6s ease-in-out infinite; }
  .puff-cheer { animation: dm-hop 0.9s ease-in-out infinite; }
  .dm h1 .eyes { animation: dm-peek 3.6s ease-in-out infinite; }
}
@keyframes dm-bob { 50% { transform: translateY(-8px); } }
@keyframes dm-hop { 50% { transform: translateY(-12px); } }
@keyframes dm-peek { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(-5px); } 90% { transform: translateX(5px); } }

@media (max-width: 860px) {
  .dm section { padding: 64px 0; }
  .dm-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .dm-hero-phone .puff { left: 2%; }
  .dm-steps ol, .dm-privacy ul { grid-template-columns: 1fr; }
  .feature-big, .feature-big:nth-of-type(even) { grid-template-columns: 1fr; gap: 26px; margin-bottom: 56px; justify-items: center; }
  .feature-big:nth-of-type(even) .phone-frame { order: 0; }
  .feature-words { width: 100%; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; justify-items: center; }
  .feature-small { width: 100%; max-width: 320px; }
  .feature-small .phone-frame { max-width: 100%; }
  .also-free { width: 100%; }
  .dm-compare th, .dm-compare td { padding: 11px 10px; font-size: 0.92rem; }
  .dm-compare td { width: 60px; }
}
