/* =========================================================================
   Reverse Audio - brand overrides on top of the template (style.css).
   Loaded last. Purple palette mirrors the app's src/global.css.
   ========================================================================= */

:root {
  --ra-primary: #6750A4;
  --ra-primary-dark: #5B3FA0;
  --ra-record: #EF4444;
  --ra-play: #3B82F6;
  --ra-reverse: #10B981;
  --ra-amber: #F59E0B;
}

/* ---- Wordmark ---------------------------------------------------------- */
.ra-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ra-brand .mark { width: 38px; height: 38px; display: block; }
.ra-brand .name {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: #181a22;
  line-height: 1;
}
.ra-brand .name b { color: var(--ra-primary); font-weight: 800; }
footer .ra-brand .name, .white_text .ra-brand .name { color: #fff; }
footer .ra-brand .name b, .white_text .ra-brand .name b { color: #cbbdf0; }

/* ---- Store badges ------------------------------------------------------ */
.store_btns { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 24px 0 0; }
.store_btns li { margin: 0; }
.store_btns a { display: inline-block; transition: transform .2s ease; }
.store_btns a:hover { transform: translateY(-3px); }
.store_btns img { height: 54px; width: auto; display: block; }
.store_btns.center { justify-content: center; }
/* Footer "Get the app" buttons align right (under the right-aligned heading) */
footer .download_side .store_btns { justify-content: flex-end; }

/* ---- Hero preset cards ------------------------------------------------- */
.hero_presets { position: relative; }
.hero_presets .item { padding: 8px; }
.hero_presets .preset_card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(91, 63, 160, .28);
  background: linear-gradient(160deg, #2b2140, #4a3a73);
}
.hero_presets .preset_card img { width: 100%; height: auto; display: block; }
.hero_presets .preset_card .cap {
  display: block; text-align: center; color: #fff; font-weight: 700;
  padding: 12px 0 16px; font-size: 18px; letter-spacing: .3px;
}

/* ---- Effects showcase grid -------------------------------------------- */
.effects_section .effects_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.effects_section .effect_card {
  background: #fff;
  border: 1px solid #ece7f7;
  border-radius: 24px;
  padding: 18px 18px 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(103, 80, 164, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.effects_section .effect_card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(103, 80, 164, .18);
}
.effects_section .effect_card .thumb {
  border-radius: 18px; overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(160deg, #2b2140, #4a3a73);
}
.effects_section .effect_card .thumb img { width: 100%; height: auto; display: block; }
.effects_section .effect_card h3 { font-size: 18px; margin: 0 0 4px; color: #181a22; }
.effects_section .effect_card p { font-size: 14px; color: #7a7a7a; margin: 0; }

@media (max-width: 991px) { .effects_section .effects_grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .effects_section .effects_grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* ---- "Played in reverse" secret-message strip -------------------------- */
.reverse_strip { background: var(--ra-primary-dark); }
.reverse_strip .reverse_word { font-style: italic; }

/* ---- Misc -------------------------------------------------------------- */
.rating_inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #181a22; }
.rating_inline .stars { color: var(--ra-amber); letter-spacing: 2px; }
.feature_dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

/* ---- Contact page: center the single email card under the heading (RAL-67) - */
.contact_section .contact_listing--single { justify-content: center; }

/* ---- Legal pages ------------------------------------------------------- */
.legal_section { padding: 70px 0 90px; }
.legal_wrap { max-width: 820px; margin: 0 auto; }
.legal_wrap h1 { font-size: 38px; margin-bottom: 8px; color: #181a22; }
.legal_wrap .updated { color: #7a7a7a; font-size: 14px; margin-bottom: 36px; }
.legal_wrap h2 { font-size: 24px; margin: 34px 0 12px; color: var(--ra-primary-dark); }
.legal_wrap p, .legal_wrap li { color: #4a4a4a; line-height: 1.75; font-size: 16px; }
.legal_wrap ul { padding-left: 22px; margin-bottom: 16px; }
.legal_wrap a { color: var(--ra-primary); }
.legal_wrap .note {
  background: #f6f2fd; border: 1px solid #e6ddf8; border-radius: 14px;
  padding: 16px 18px; font-size: 14px; color: #5a5170; margin: 28px 0;
}

/* ---- Stats circles: keep the template's native 1/2/1 cluster.
   (Only nudge the label so longer words like "Voice effects" sit nicely;
   do NOT pad the <li>, that breaks the flex-wrap cluster.) -------------- */
.about_section .app_statstic li .text p:last-child { font-size: 15px; line-height: 1.25; padding: 0 12px; }

/* ---- Feature bento (replaces the generic 3 equal cards) ---------------- */
.ra_features {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  margin-top: 54px;
  align-items: stretch;
}
.ra_feature {
  position: relative;
  background: #fff;
  border: 1px solid #efeafb;
  border-radius: 30px;
  padding: 36px;
  box-shadow: 0 12px 34px rgba(103, 80, 164, 0.06);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.ra_feature:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(103, 80, 164, 0.16); }
.ra_feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: var(--accent, var(--ra-primary));
}
.ra_feature .f_icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent, var(--ra-primary));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent, var(--ra-primary)) 35%, transparent);
}
.ra_feature .f_icon i { font-size: 28px; color: #fff; }
.ra_feature .eyebrow {
  display: block; margin-top: 22px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: #a092c8;
}
.ra_feature h3 { font-size: 24px; margin: 8px 0 10px; color: #181a22; letter-spacing: -.4px; }
.ra_feature p { font-size: 15px; line-height: 1.7; color: #6a6a73; margin: 0; max-width: 46ch; }
.ra_feature--lead { grid-row: span 2; display: flex; flex-direction: column; }
.ra_feature--lead h3 { font-size: 34px; line-height: 1.1; }
.ra_feature--lead p { font-size: 16px; }
.ra_feature .lead_wave {
  margin-top: auto; padding-top: 30px; width: 100%; height: auto; display: block; color: var(--ra-primary);
}
@media (max-width: 900px) {
  .ra_features { grid-template-columns: 1fr; }
  .ra_feature--lead { grid-row: auto; }
}

/* ---- How it works: high-contrast step icons --------------------------- */
.how_it_section .steps .icon {
  width: 84px; height: 84px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
  background: linear-gradient(160deg, #7A63B8, #5B3FA0);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}
.how_it_section .steps .icon i { color: #fff; font-size: 38px; }

/* ---- Effects cards: uniform thumbnail size (incl. Custom) -------------- */
.effects_section .effect_card .thumb {
  aspect-ratio: 4 / 5; width: 100%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.effects_section .effect_card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.effects_section .effect_card .thumb--custom i { font-size: 60px; color: #fff; }

/* ---- Reviews: avatarless quote cards ---------------------------------- */
.review_block .coustomer_info .avtar .text h3 { margin: 0; }
.review_source { font-size: 13px; color: #9b8bc4; font-weight: 600; }

/* ---- Effects thumbnails: FIXED height so every card (incl Custom) matches */
.effects_section .effect_card .thumb {
  aspect-ratio: auto;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
}
.effects_section .effect_card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.effects_section .effect_card .thumb--custom {
  background: linear-gradient(160deg, #2b2140, #4a3a73);
  display: flex; align-items: center; justify-content: center;
}
.effects_section .effect_card .thumb--custom i { font-size: 58px; color: #fff; }
@media (max-width: 767px) { .effects_section .effect_card .thumb { height: 150px; } }

/* ---- About headline: icons integrated inline ------------------------- */
.about_section .section_title h2 i {
  color: var(--ra-primary); font-size: .82em; vertical-align: -1px; margin: 0 6px 0 2px;
}

/* ---- Spin divider: size the circular-text SVG to fill the badge ------- */
.spinBlock .spin-text img,
.spinBlock .spin-text svg { width: 100%; height: 100%; display: block; }

/* ---- Task feature icons: purple icofont on the template's white tile.
   The template already renders .icon as an 80px white box BELOW the badge
   (display:flex, margin:60px 0 35px). Do NOT override display, or it goes
   inline next to the badge. Only tint the glyph and add a soft shadow. -- */
.task_app_section .section_title .icon.ra_feature_icon { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28); }
.task_app_section .section_title .icon.ra_feature_icon i { color: var(--ra-primary); font-size: 38px; }

/* ---- Spin divider: keep the rotating text INSIDE the 155px black circle */
.spinBlock .spin_box .spin-text {
  position: absolute; top: 0; left: 0;
  width: 155px; height: 155px;
}
.spinBlock .spin_box .spin-text img,
.spinBlock .spin_box .spin-text svg { width: 100%; height: 100%; display: block; }

/* ---- Brand logo font: "Unica One" (same as the app's Record-tab logo) -- */
@font-face {
  font-family: "Unica One";
  src: url("../fonts/UnicaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.ra-brand .name {
  font-family: "Unica One", "Manrope", sans-serif;
  font-weight: 400;
  font-size: 25px;
  letter-spacing: 1px;
}
.ra-brand .name b { font-weight: 400; }

/* ---- Auto-hide header: hide on scroll down, show on scroll up --------- */
header { will-change: transform; }
header.header--hidden { transform: translateY(-100%); }

/* ---- League Spartan: the Fabulous Apps brand/logo font ---------------- */
@font-face {
  font-family: "League Spartan";
  src: url("../fonts/LeagueSpartan-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Footer "Made by Fabulous Apps." signature ------------------------ */
.footer_bottom .design_by p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.footer_bottom .design_by a {
  font-family: "League Spartan", "Manrope", sans-serif;
  letter-spacing: .4px; color: #fff;
}
.footer_bottom .design_by a:hover { color: #cbbdf0; }
/* Fabulous Apps brand-blue signature dot. Brand token is #0000ff (for light
   backgrounds); lifted to a vivid blue here so it stays legible on the dark
   footer. */
.footer_bottom .design_by .fab_dot {
  color: #4d6bff; font-style: normal;
  font-size: 1.15em; line-height: 0; margin-left: 1px; -webkit-text-stroke: 0;
}

/* ======================================================================
   Mobile (<=767px): center the rating displays (stars stacked on top)
   and the CTA button rows, per review feedback.
   ====================================================================== */
@media (max-width: 767px) {
  /* Hero rating: stars on top, everything centered */
  .banner_section .used_app { text-align: center; }
  .banner_section .rating_inline {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
  /* Hero CTAs centered */
  .banner_section .store_btns { justify-content: center; }

  /* About ("Why Reverse Audio") CTAs centered */
  .about_section .store_btns { justify-content: center; }

  /* Reviews: stars on top of the 4.5/5.0 line, whole block centered */
  .review_section .sidebar_text { text-align: center; }
  .review_section .sidebar_text .section_title.text-left { text-align: center; }
  .review_section .google_rating { flex-direction: column; align-items: center; }
  .review_section .user_review p { justify-content: center; }

  /* Footer "Get the app" CTAs centered (the element is <footer>, not .footer) */
  footer .download_side { text-align: center; }
  footer .download_side .store_btns { justify-content: center; }
  footer .logo_side .store_btns { justify-content: center; }
}

/* ======================================================================
   Desktop (>=768px): stack the rating stars ON TOP of the text (matches
   mobile), in the hero and the review section. Hero stays left-aligned.
   ====================================================================== */
@media (min-width: 768px) {
  .banner_section .rating_inline {
    flex-direction: column; align-items: flex-start; gap: 6px;
  }
  .review_section .google_rating {
    flex-direction: column; align-items: flex-start; gap: 4px;
  }
}

/* ---- Fractional star rating (e.g. 4.5 -> 4 full + 1 half) -------------- */
/* Gold fills the first --pct of a 5-star row; the rest is muted. Default
   90% = 4.5 stars. letter-spacing:0 so each star is exactly 20% of the row. */
.ra_stars {
  display: inline-block; line-height: 1; font-size: 18px; letter-spacing: 0;
}
.ra_stars::before {
  content: "\2605\2605\2605\2605\2605";
  background: linear-gradient(90deg, var(--ra-amber) var(--pct, 90%), #d4cbe8 var(--pct, 90%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.review_section .google_rating .ra_stars { font-size: 22px; }

/* ======================================================================
   Blog (hub + articles)
   ====================================================================== */
/* CTA + FAQ components, reused inside the template blog_detail layout. */
.article_cta { background: var(--ra-primary-dark); border-radius: 24px; padding: 34px; text-align: center; margin: 46px 0; }
.article_cta h2 { color: #fff; font-size: 24px; margin: 0 0 8px; border: 0; }
.article_cta p { color: #e7defb; margin: 0 0 18px; }
.article_faq { margin-top: 44px; }
.article_faq h2 { font-size: 26px; color: var(--ra-primary-dark); margin-bottom: 8px; }
.article_faq details { border-bottom: 1px solid #ece7f7; padding: 16px 0; }
.article_faq summary { font-weight: 700; color: #181a22; cursor: pointer; font-size: 17px; }
.article_faq details p { margin: 10px 0 0; color: #4a4a4a; line-height: 1.75; }

/* ---- Blog: reuse template .blog_post cards + .blog_detail layout ------ */
/* Crop the (portrait) preset art into a clean landscape card banner */
.blog_section .blog_listing .blog_post .img { display: block; border-radius: 15px; overflow: hidden; }
.blog_section .blog_listing .blog_post .img img { width: 100%; height: 240px; object-fit: cover; object-position: center top; display: block; }
/* Pin the tag + "Read more" row to the bottom so cards line up regardless of
   title length. Cards are already equal height (flex row). */
.blog_section .blog_listing .blog_post { display: flex; flex-direction: column; }
.blog_section .blog_listing .blog_post .text { display: flex; flex-direction: column; flex: 1 1 auto; }
.blog_section .blog_listing .blog_post .tag_more { margin-top: auto; }
/* Blog detail banner image */
.blog_detail_section .blog_body > .img { border-radius: 18px; overflow: hidden; margin-bottom: 30px; }
.blog_detail_section .blog_body > .img img { width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: center top; display: block; }

/* ======================================================================
   Tool landing pages (/reverse-audio-online, /voice-changer, /mp3-reverser)
   ====================================================================== */
.tool_hero { padding: 72px 0 44px; text-align: center; }
.tool_hero h1 { font-size: 44px; line-height: 1.12; color: #181a22; margin: 16px 0 14px; letter-spacing: -.5px; }
.tool_hero h1 span { color: var(--ra-primary); }
.tool_hero .lead { font-size: 18px; color: #5a5a64; max-width: 660px; margin: 0 auto; line-height: 1.7; }
.tool_hero .store_btns { justify-content: center; margin-top: 28px; }
.tool_hero .rating_inline { justify-content: center; margin-top: 22px; }
@media (max-width: 767px) { .tool_hero h1 { font-size: 32px; } }

.tool_points { padding: 26px 0 20px; }
.tool_point { text-align: center; padding: 18px; }
.tool_point .tp_icon {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #7A63B8, #5B3FA0);
  box-shadow: 0 12px 26px rgba(103, 80, 164, .25);
}
.tool_point .tp_icon i { color: #fff; font-size: 30px; }
.tool_point h2 { font-size: 19px; margin: 0 0 8px; color: #181a22; font-weight: 700; letter-spacing: 0; }
.tool_point p { color: #6a6a73; font-size: 15px; line-height: 1.7; margin: 0; }

.tool_body { max-width: 760px; margin: 0 auto; padding: 10px 0 20px; }
/* Direct-child only, so it never overrides the CTA's light-on-purple text. */
.tool_body > p { color: #4a4a4a; line-height: 1.8; font-size: 17px; }
.tool_body a { color: var(--ra-primary); font-weight: 600; }
.tool_related { text-align: center; margin: 10px 0 30px; color: #6a6a73; }
.tool_related a { color: var(--ra-primary); font-weight: 600; margin: 0 8px; }

/* ---- Footer bottom: links on their own centered row, a full-width divider,
   then copyright (left) and the Made-by credit (right). ----------------- */
.footer_bottom .ft_inner { flex-wrap: wrap; align-items: center; row-gap: 18px; }
.footer_bottom .ft_inner .links {
  order: -1; flex-basis: 100%; flex-wrap: wrap; align-items: center;
  padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer_bottom .ft_inner .design_by { margin-left: auto; }
@media (max-width: 767px) {
  .footer_bottom .ft_inner { justify-content: center; text-align: center; }
  .footer_bottom .ft_inner .design_by { margin-left: 0; }
}

/* Lift the go-top button above the footer bottom bar so it never covers the
   right-aligned "Made by" credit. */
.go_top { bottom: 30px; right: 30px; }
.go_top:hover { bottom: 34px; }

/* ---- Heading hierarchy fixes (RAL-35) --------------------------------- */
/* blog/index + contact use the .section_title block as the page H1.
   Mirror the .section_title h2 sizing (incl. responsive) onto h1. */
.section_title h1 { font-size: 55px; font-weight: 800; color: var(--black); letter-spacing: -2px; }
.section_title h1 span { color: var(--primery); }
@media screen and (max-width:1300px) { .section_title h1 { font-size: 45px; } }
@media screen and (max-width:992px)  { .section_title h1 { font-size: 35px; } }
@media screen and (max-width:767px)  { .section_title h1 { font-size: 35px; letter-spacing: -1px; } }
@media screen and (max-width:576px)  { .section_title h1 { font-size: 30px; } }
/* Blog index post titles are now H2; keep the template .blog_post h3 look. */
.blog_section .blog_listing .blog_post h2 { margin: 20px 0 25px 0; font-size: 26px; font-weight: 700; }
.blog_section .blog_listing .blog_post h2 a { transition: .4s all; }

/* ---- Blog listing grid (RAL-36): 3+ cards flow in 2 cols with even gaps;
   per-row equal height keeps the RAL-32 bottom-aligned tag/Read-more row. */
.blog_section .blog_listing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.blog_section .blog_listing .blog_post { width: auto; }
@media (max-width: 767px) { .blog_section .blog_listing { grid-template-columns: 1fr; gap: 24px; } }

/* ---- App screenshots gallery (RAL-47) --------------------------------- */
.screens_section .screens_grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.screens_section .screen_card { margin: 0; text-align: center; }
.screens_section .screen_card figcaption {
  margin-top: 16px; font-size: 14px; font-weight: 600; color: #4a4a4a;
}

/* iPhone 17 Pro bezel overlay (RAL-56): screenshot composited behind the
   transparent device frame; Dynamic Island is part of the frame. */
.ra_phone {
  display: block; position: relative;
  aspect-ratio: 700 / 1432;            /* iphone-frame.webp aspect */
  filter: drop-shadow(0 18px 30px rgba(103, 80, 164, .22));
}
.ra_phone .screen {
  position: absolute; inset: 2.2% 5.1%; /* matches the bezel window (measured), underlaps slightly */
  overflow: hidden;
  border-radius: 9% / 4%;
  background: #000;
  z-index: 1;
}
.ra_phone .screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.ra_phone::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: url(/images/iphone-frame.webp) center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Hero phone: demo video composited inside the iPhone 17 Pro bezel (RAL-48).
   The screen recording is a squared rectangle; the bezel's screen window
   (overflow:hidden + border-radius) clips the square corners, and the frame
   overlay sits on top. */
.banner_section .banner_slider {
  position: relative;
  width: 320px; max-width: 84%;
  margin: 0 auto;
  aspect-ratio: 700 / 1432;
}
.banner_section .banner_slider .hero_video {
  /* explicit w/h (not inset) because <video> is a replaced element and would
     otherwise render at its intrinsic size. 89.8% = 100 - 2*5.1, 95.6% = 100 - 2*2.2 */
  position: absolute; top: 2.2%; left: 5.1%;
  width: 89.8%; height: 95.6%; margin: 0;
  overflow: hidden; border-radius: 9% / 4%;
  background: #000; z-index: 1;
  object-fit: cover; object-position: center top;
}
.banner_section .banner_slider .slider_frame {
  position: absolute; inset: 0; left: auto; transform: none;
  width: 100%; z-index: 2; pointer-events: none;
}
.banner_section .banner_slider .slider_frame img { width: 100%; display: block; }
@media (max-width: 991px) { .screens_section .screens_grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (max-width: 575px) { .screens_section .screens_grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---- Framed screenshots in feature blocks / about / download (RAL-57) ---- */
.task_app_section .task_img .ra_phone { width: 280px; max-width: 80%; }
.about_section .abtImg .ra_phone { width: 220px; max-width: 72%; margin: 0 auto; }
.downaload_section .center_screen .img .ra_phone { width: 244px; max-width: 70%; margin: 0 auto; }

/* Keep the decorative sparkles around (not on top of) the resized hero phone (RAL-56 fix) */
.banner_section .banner_slider .right_icon { top: -3%; right: -8%; left: auto; bottom: auto; z-index: 5; }
.banner_section .banner_slider .left_icon  { bottom: 15%; left: -9%; top: auto; right: auto; z-index: 5; }
