/* Make It Right landing page. Black-and-white like the extension, heavy italic like its wordmark. */
:root {
  --ink: #111111;
  --paper: #f7f6f2;
  --white: #ffffff;
  --muted: #5d5d63;
  --line: rgba(17, 17, 17, .12);
  --signal: #ff4f1f;
  --font: 'Rubik', 'Noto Sans Arabic', -apple-system, system-ui, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
[lang="ar"] { font-family: 'Noto Sans Arabic', var(--font); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.lines { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.lines.inline { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin: 0 2px; }
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 900; font-style: italic; font-size: 19px; text-transform: uppercase; letter-spacing: -.01em; text-decoration: none; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; font-style: italic; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px; }
.h2 em, .headline em { font-style: italic; color: var(--signal); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .2s; white-space: nowrap; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--signal); }
.btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--signal); }
.btn-line { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-paper { background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--signal); margin-top: 28px; }
.btn-paper:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--signal); }
.btn-sm.btn-ink { box-shadow: 3px 3px 0 var(--signal); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 66px; }
.nav-links { display: none; gap: 26px; font-size: 15px; font-weight: 500; margin-left: auto; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--signal); }
.nav .btn { margin-left: auto; }
@media (min-width: 860px) { .nav-links { display: flex; } .nav .btn { margin-left: 0; } }
@media (max-width: 400px) { .nav .logo { font-size: 16px; } .nav .btn-sm { padding: 0 14px; } }

/* Hero: everything sits right, like the extension makes text do */
.hero { padding: 72px 0 80px; border-bottom: 2px solid var(--ink); }
.hero .wrap { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; margin-bottom: 28px; background: var(--white); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.headline { font-size: clamp(44px, 8vw, 104px); font-weight: 900; font-style: italic; line-height: .98; letter-spacing: -.035em; text-transform: uppercase; margin-bottom: 28px; }
.lede { font-size: clamp(18px, 2vw, 22px); max-width: 34em; color: #2a2a2e; margin-bottom: 22px; }
.tri { margin-bottom: 34px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
@media (max-width: 640px) {
  .hero .wrap { align-items: stretch; }
  .hero .badge { align-self: flex-end; }
  .cta-row .btn { justify-content: center; }
}

/* Demo */
.demo-section { padding: 88px 0; background: var(--white); border-bottom: 2px solid var(--ink); }
.demo-head { max-width: 720px; margin-bottom: 36px; }
.demo-head p { color: var(--muted); font-size: 18px; }
.demo { border: 2px solid var(--ink); border-radius: 10px; background: #fff; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; max-width: 860px; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.tabs { display: flex; gap: 6px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border: 1.5px solid transparent; border-radius: 6px; background: none; cursor: pointer; font-weight: 600; font-size: 15px; }
.tab[aria-selected="true"] { border-color: var(--ink); background: var(--white); }
.switch { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; cursor: pointer; padding: 4px; font-weight: 700; }
.switch-track { position: relative; width: 56px; height: 30px; border-radius: 15px; background: #cfcfd4; border: 2px solid var(--ink); transition: background-color .25s; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); transition: transform .25s cubic-bezier(.3,.7,.4,1.3); }
.switch[aria-checked="true"] .switch-track { background: var(--signal); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(26px); }
.switch .on, .switch[aria-checked="true"] .off { display: none; }
.switch[aria-checked="true"] .on { display: inline; color: var(--signal); }
.switch .off { color: var(--muted); }

.panel { padding: 22px 24px 8px; }
.panel[hidden] { display: none; }
.yt-video { display: grid; grid-template-columns: 168px 1fr; gap: 4px 16px; align-items: start; margin-bottom: 16px; }
.yt-thumb { grid-row: span 2; position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: linear-gradient(135deg, #1c1c1f, #3a3a40 60%, #ff4f1f 160%); display: grid; place-items: center; }
@media (max-width: 520px) { .yt-video { grid-template-columns: 112px 1fr; } .yt-title { font-size: 16px; } }
.yt-play { width: 42px; height: 30px; border-radius: 9px; background: #ff0033; position: relative; }
.yt-play::after { content: ""; position: absolute; left: 16px; top: 8px; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.yt-title { font-size: 19px; font-weight: 700; line-height: 1.35; }
.yt-meta, .yt-count { font-size: 14px; color: var(--muted); }
.yt-count { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.dc-channel { font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.feed { list-style: none; margin: 0; padding: 0; }
.msg { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.msg > div { flex: 1; min-width: 0; }
.msg b { font-size: 14px; }
.msg small { font-size: 12px; color: var(--muted); margin-left: 6px; }
.msg.reply { margin-inline-start: 44px; }
.avatar { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; }
.post { margin-top: 2px; direction: ltr; text-align: left; transition: color .2s; }
/* What Make It Right does: posts in Hebrew/Arabic get their own direction */
.post.rtl { direction: rtl; text-align: right; }
.post.flash { animation: slide .45s ease-out; }
@keyframes slide { from { opacity: .3; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.composer { display: block; margin: 8px 24px 24px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.composer-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.composer input { width: 100%; border: 0; background: none; outline: none; font: 18px/1.5 var(--font); color: var(--ink); text-align: left; }
.composer input[dir="rtl"] { text-align: right; }

/* Sections */
.section { padding: 96px 0; border-bottom: 2px solid var(--ink); }
.features { display: grid; gap: 0; margin-top: 40px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 30px 28px 34px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--white); transition: background-color .2s; }
.feature:hover { background: var(--paper); }
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; font-style: italic; margin-bottom: 10px; }
.feature p { color: #3a3a3f; }

.section-ink { background: var(--ink); color: var(--white); }
.section-ink .big { font-size: 22px; line-height: 1.5; color: #e9e9ec; margin-bottom: 12px; }
.tri-small { color: #a9a9b0; margin-bottom: 36px; }
.split { display: grid; gap: 64px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 18px; color: #e9e9ec; }
.steps b { color: var(--white); }
.steps .n { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--signal); color: var(--white); display: grid; place-items: center; font-weight: 900; font-style: italic; }

/* Popup replica (Discord + YouTube, as in v3.9) */
.popup-fig { margin: 0; }
.popup { width: 300px; max-width: 100%; background: #fff; color: #111; border-radius: 6px; padding: 18px 20px 14px; box-shadow: 8px 8px 0 var(--signal); }
.popup-word { width: 100%; margin-bottom: 14px; }
.popup-row { display: flex; align-items: center; gap: 14px; padding: 6px 0; font-size: 17px; }
.popup-row span { flex: 1; }
.tick { width: 22px; height: 22px; border-radius: 3px; background: #8a8a8f; display: grid; place-items: center; }
.tick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.popup-fig figcaption { font-size: 14px; color: #a9a9b0; margin-top: 18px; }

/* FAQ */
details { border-bottom: 2px solid var(--ink); padding: 18px 0; }
details:first-of-type { border-top: 2px solid var(--ink); }
summary { cursor: pointer; font-size: 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; color: #3a3a3f; max-width: 40em; }
details a, .final a:not(.btn) { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Final */
.final { padding: 96px 0; text-align: center; background: var(--white); border-bottom: 2px solid var(--ink); }
.final-word { width: min(520px, 90%); margin: 0 auto 22px; }
.final p { font-size: 19px; margin-bottom: 30px; }
.final .small { font-size: 15px; color: var(--muted); margin: 30px 0 0; }

/* Footer */
.footer { padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.footer-links a { text-decoration: none; cursor: pointer; }
.footer-links a:hover { color: var(--signal); }
.copy { width: 100%; font-size: 13px; color: var(--muted); }

/* Privacy page */
.policy { padding: 64px 0 96px; }
.policy h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; margin-bottom: 12px; }
.policy .updated { color: var(--muted); margin-bottom: 36px; }
.policy h2 { font-size: 22px; font-weight: 800; font-style: italic; margin: 36px 0 10px; }
.policy p + p { margin-top: 10px; }
.policy li { margin-bottom: 8px; }
.policy code { font-size: .88em; background: var(--white); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post.flash { animation: none; }
  .btn, .switch-knob, .switch-track { transition: none; }
}
