/* Home-only product scene: the real app at its Windows and Android layouts. */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 36px; }
.hero h1 { font-size: clamp(38px, 4.4vw, 54px); }
.hero .lead { font-size: 18px; line-height: 1.6; }
.hero .platforms { gap: 8px; }
.hero .platform { padding: 5px 11px; font-size: 13px; }
.hero .platform-note { flex-basis: 100%; margin-top: 3px; font-size: 13px; }
.product-showcase { min-width: 0; margin: 0; }
.product-scene { position: relative; direction: ltr; padding: 12px 38px 68px 0; }
.desktop-preview { overflow: hidden; border: 1px solid #393d47; border-radius: 11px; background: #111215; box-shadow: 0 20px 54px #0005, 0 1px 0 #ffffff0a inset; }
.desktop-preview img { width: 100%; height: auto; aspect-ratio: 1440 / 940; }
.device-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 25px; padding: 0 10px; border-bottom: 1px solid #30333c; background: #1b1d23; }
.desktop-app-label { display: inline-flex; align-items: center; gap: 5px; color: #c7ccd5; font-size: 9px; font-weight: 500; letter-spacing: .01em; }
.desktop-mark { width: 10px; height: 10px; color: var(--accent); }
.window-controls { display: flex; align-items: center; gap: 14px; color: #9aa1ad; }
.window-controls svg { width: 8px; height: 8px; }
.android-preview { position: absolute; right: 0; bottom: 0; width: 28%; padding: 5px; border: 1px solid #424751; border-radius: 20px; background: linear-gradient(145deg, #31353f, #15171c); box-shadow: 0 15px 32px #0007; }
.android-preview img { width: 100%; height: auto; aspect-ratio: 430 / 820; overflow: hidden; border-radius: 14px; }
.android-label { position: absolute; inset: auto 0 -27px; color: var(--muted); font-size: 11px; text-align: center; }
.product-caption { margin: 25px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
html[lang="ar"] .hero h1 { font-size: clamp(36px, 4vw, 50px); }
html[lang="ar"] .product-caption { text-align: start; }

/* Short demos lead with the real output shown in each existing video. */
.demo-intro { max-width: 720px; margin-bottom: 30px; }
.demo-intro h2 { margin-bottom: 14px; }
.demo-intro .section-lead { margin-bottom: 10px; }
.demo-note { margin: 0; color: var(--muted); font-size: 13px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.demo-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); transition: border-color .18s ease; }
.demo-card:hover { border-color: #97713a; text-decoration: none; }
.demo-card:focus-visible { outline-offset: 5px; }
.demo-art { position: relative; height: 270px; display: grid; place-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.book-demo-art { background: #eeece6; }
.cover-demo-art { background: #302c27; }
.demo-art img { display: block; width: auto; height: auto; max-width: 100%; max-height: 222px; object-fit: contain; filter: drop-shadow(0 6px 10px #0003); }
.demo-time { position: absolute; inset-inline-end: 14px; bottom: 14px; padding: 3px 7px; border-radius: 5px; background: #15171ce8; color: white; font-size: 12px; font-weight: 650; }
.demo-copy { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.demo-copy h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
.demo-copy p { margin: 0 0 24px; color: var(--soft); font-size: 15px; line-height: 1.65; }
.demo-play { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 650; }
.demo-play svg { width: 25px; height: 25px; flex: 0 0 auto; }

/* Keep the app's pricing and purchase actions usable on narrow screens. */
#pricing > .wrap { max-width: 920px; }
#pricing .plan { min-width: 0; border-width: 2px; }
#pricing .plan-checkout > .btn { min-height: 48px; }
.download-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; text-align: start; }
.download-callout h2 { margin-bottom: 12px; }
.download-callout .section-lead { margin-bottom: 0; font-size: 17px; }
.download-callout-actions { text-align: center; }
.download-callout-actions .btn { min-width: 210px; }
.download-callout-actions p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

/* Free tools: the cover editor leads, with useful artwork from the other tools below. */
.free-tools-heading { max-width: 730px; margin-bottom: 42px; scroll-margin-top: 90px; }
.free-tools-heading h2 { margin: 16px 0; }
.free-tools-heading .section-lead { margin: 0; }
.featured-cover-tool { padding: 30px; border: 1px solid #6b4c20; border-radius: 18px; background: var(--panel); }
.cover-featured-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--accent); font-size: 13px; font-weight: 650; }
.cover-featured-label svg { width: 15px; height: 15px; }
.free-cover-promo .cover-promo-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 32px; }
.cover-promo-intro h3 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.18; letter-spacing: -.025em; }
.free-cover-promo .section-lead { font-size: 17px; line-height: 1.65; margin: 0 0 22px; }
.cover-promo-cta { min-height: 48px; }
.cover-promo-cta svg { width: 18px; height: 18px; flex: 0 0 auto; }
html[dir="rtl"] .cover-promo-cta svg { transform: rotate(180deg); }
.cover-promo-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.cover-promo-preview { margin: 0; overflow: hidden; border: 1px solid #383d47; border-radius: 14px; background: var(--bg); box-shadow: 0 22px 60px #0003; }
.cover-promo-preview img { width: 100%; height: auto; aspect-ratio: 1440 / 895; }
.cover-promo-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--soft); font-size: 14px; }
.cover-promo-features li { display: flex; align-items: center; gap: 9px; }
.cover-promo-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.free-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.free-tool-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); transition: border-color .18s ease, background .18s ease; }
.free-tool-card:hover { border-color: #977039; background: #1c2027; text-decoration: none; }
.free-tool-card:focus-visible { outline-offset: 5px; }
.free-tool-art { height: 210px; display: grid; place-items: center; overflow: hidden; padding: 24px; border-bottom: 1px solid var(--line); background-color: #242830; background-image: radial-gradient(#434851 .75px, transparent .75px); background-size: 12px 12px; }
.free-tool-art img { width: auto; max-width: 100%; height: 164px; object-fit: contain; background: white; border: 6px solid white; box-shadow: 0 8px 18px #0003; }
.free-tool-art.calculator-art { background-color: #272723; }
.calculator-art > svg { display: block; width: 100%; height: auto; max-height: 164px; filter: drop-shadow(0 8px 9px #0003); }
.free-tool-copy { display: flex; flex-direction: column; flex: 1; padding: 23px; }
.free-tool-copy h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.free-tool-copy p { margin: 0 0 22px; color: var(--soft); font-size: 15px; line-height: 1.65; }
.free-tool-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 650; }
.free-tool-link svg { width: 19px; height: 19px; flex: 0 0 auto; }
html[dir="rtl"] .free-tool-link svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .free-tool-card, .demo-card { transition: none; } }
@media (max-width: 760px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .download-callout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .download-callout-actions { text-align: start; }
  .download-callout-actions .btn { width: auto; }
  .free-tools-heading { margin-bottom: 30px; }
  .featured-cover-tool { padding: 24px; }
  .free-cover-promo .cover-promo-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .free-cover-promo .section-lead { max-width: 38em; }
  .cover-promo-features { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .free-tools-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .free-tool-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .free-tool-art { height: auto; min-height: 210px; border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .free-tool-art img { max-width: 100%; height: auto; max-height: 164px; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero h1 { max-width: 13em; }
  .hero .lead { max-width: 36em; }
  .hero .platform-note { flex-basis: auto; margin-top: 0; }
  .product-showcase { width: 100%; max-width: 720px; justify-self: center; }
  .product-caption { text-align: center; }
  html[lang="ar"] .product-caption { text-align: center; }
}
@media (max-width: 540px) {
  .hero { padding: 38px 0 48px; }
  .hero .wrap { gap: 28px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 16px; }
  .hero .cta .btn { padding: 11px 17px; font-size: 14px; }
  .demo-art { height: 210px; padding: 18px 22px; }
  .demo-art img { max-height: 174px; }
  .demo-copy { padding: 22px; }
  .demo-copy h3 { font-size: 21px; }
  .download-callout-actions .btn { width: 100%; min-width: 0; }
  .hero .platform-note { flex-basis: 100%; }
  .product-scene { padding: 8px 26px 48px 0; }
  .desktop-preview { border-radius: 8px; }
  .device-bar { height: 18px; padding-inline: 7px; }
  .desktop-app-label { font-size: 7px; }
  .desktop-mark { width: 8px; height: 8px; }
  .window-controls { gap: 10px; }
  .window-controls svg { width: 6px; height: 6px; }
  .android-preview { width: 29%; padding: 3px; border-radius: 12px; }
  .android-preview img { border-radius: 9px; }
  .android-label { bottom: -23px; font-size: 10px; }
  .product-caption { margin-top: 22px; font-size: 11px; }
  .free-cover-promo .section-lead { font-size: 16px; }
  .featured-cover-tool { padding: 20px; border-radius: 14px; }
  .cover-promo-cta { width: 100%; padding-inline: 14px; font-size: 14px; }
  .cover-promo-preview { border-radius: 9px; }
  .cover-promo-features { margin-top: 18px; font-size: 13px; }
  .free-tool-card { display: flex; }
  .free-tool-art { height: 210px; min-height: 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .free-tool-art img { width: auto; height: 164px; }
  .free-tool-copy { padding: 22px; }
}
