/* ================================================================
   RIYO STUDIO — Home (studio site)
   Layered on top of style.css and scoped to body.home so the tool
   pages keep their own look.
   ================================================================ */

@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/instrument-serif-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/instrument-serif-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

body.home {
  --ink: #050608;
  --ink-2: #0A0C10;
  --ink-3: #101318;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --ivory: #F3EFE6;
  --mist: #A9AEB6;
  --dim: #80868F;
  --em: #10B981;
  --em-2: #34D399;
  --em-soft: rgba(16, 185, 129, 0.12);
  --gold: #D9B86C;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -40px rgba(0, 0, 0, 0.8);

  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  padding-bottom: 0;
}

body.home::before {
  background:
    radial-gradient(900px circle at 85% -10%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(700px circle at -10% 40%, rgba(16, 185, 129, 0.04), transparent 60%);
  animation: none;
}

body.home::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.home main,
body.home .rs-footer { position: relative; z-index: 1; }

body.home ::selection { background: rgba(16, 185, 129, 0.35); color: #fff; }

body.home a:focus-visible,
body.home button:focus-visible {
  outline: 2px solid var(--em-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.rs-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ---------- Navigation (home skin) ---------- */

body.home .nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
body.home .nav.scrolled {
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: none;
}
body.home .nav-inner { max-width: 1240px; }
body.home .nav-brand-icon-img { width: 32px; height: 32px; border-radius: 8px; filter: none; }
body.home .nav-brand-name { font-size: 18px; letter-spacing: -0.3px; }
body.home .nav-brand-tag { color: var(--dim); letter-spacing: 1.6px; }
body.home .nav-links { gap: 30px; margin-left: auto; margin-right: 28px; }
body.home .nav-link { color: var(--mist); font-size: 14px; font-weight: 500; }
body.home .nav-link:hover { color: var(--ivory); }
body.home .nav-link::after { background: var(--em-2); box-shadow: none; height: 1px; bottom: 0; }
body.home .nav-cta-btn {
  background: var(--ivory);
  color: #07080A;
  border: 0;
  box-shadow: 0 8px 24px -12px rgba(243, 239, 230, 0.5);
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
}
body.home .nav-cta-btn:hover { background: #fff; box-shadow: 0 12px 30px -12px rgba(243, 239, 230, 0.6); }

@media (max-width: 960px) {
  body.home .nav-links { gap: 20px; margin-right: 18px; }
  body.home .nav-brand-tag { display: none; }
}

@media (max-width: 768px) {
  body.home .nav {
    background: rgba(5, 6, 8, 0.92) !important;
    border-bottom: 1px solid var(--line) !important;
  }
}

/* ---------- Shared type ---------- */

.rs-display {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ivory);
}
.rs-display em,
.rs-h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--em-2) 0%, #A7F3D0 55%, var(--ivory) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

.rs-h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ivory);
  max-width: 16ch;
}

.rs-h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ivory);
}

.rs-lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 52ch;
}

.rs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.rs-kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: var(--em-soft);
  color: var(--em-2);
  letter-spacing: 0.06em;
}

/* ---------- Buttons & links ---------- */

.rs-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.rs-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.rs-btn:hover svg { transform: translateX(3px); }

.rs-btn--solid {
  background: var(--ivory);
  color: #07080A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -18px rgba(243, 239, 230, 0.55);
}
.rs-btn--solid:hover { background: #fff; transform: translateY(-1px); }

.rs-btn--line {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-2);
}
.rs-btn--line:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }

.rs-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ivory);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.25s, color 0.25s;
}
.rs-link svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.rs-link:hover { border-color: var(--em-2); color: #fff; }
.rs-link:hover svg { transform: translate(2px, -2px); }

.rs-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--em-2);
  background: var(--em-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  vertical-align: middle;
}
.rs-tag--client { color: var(--gold); background: rgba(217, 184, 108, 0.1); border-color: rgba(217, 184, 108, 0.28); }

/* ---------- Cards ---------- */

.rs-card {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.6s var(--ease), border-color 0.35s var(--ease), background 0.35s;
}
.rs-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(600px circle at 0% 0%, rgba(16, 185, 129, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.rs-card:hover { border-color: var(--line-2); }
.rs-card:hover::before { opacity: 1; }

.rs-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--em-2);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.04);
  flex-shrink: 0;
}
.rs-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.rs-list { display: grid; gap: 11px; }
.rs-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mist);
}
.rs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--em-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ---------- Hero ---------- */

.rs-hero {
  position: relative;
  padding: clamp(130px, 16vh, 180px) 0 clamp(70px, 9vh, 110px);
  overflow: hidden;
}

.rs-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rs-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 25%, transparent 75%);
}
.rs-hero-bg::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 80%;
  height: 110%;
  background:
    radial-gradient(closest-side, rgba(16, 185, 129, 0.20), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(45, 212, 191, 0.07), transparent 70%);
  filter: blur(20px);
}

.rs-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.rs-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--mist);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rs-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--em-2);
  box-shadow: 0 0 12px var(--em);
}
.rs-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--em-2);
  animation: rs-ping 2.4s var(--ease) infinite;
}
@keyframes rs-ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.rs-hero-lede {
  margin: 30px 0 38px;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--mist);
  max-width: 50ch;
}

.rs-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.rs-hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--mist);
}
.rs-hero-facts svg { fill: none; stroke: var(--em-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.rs-stage-glow {
  position: absolute;
  inset: 10% 5% 0 15%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.28), transparent);
  filter: blur(40px);
}
@keyframes rs-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.rs-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ivory);
  background: rgba(14, 17, 22, 0.78);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  white-space: nowrap;
}

.rs-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--em-2);
  box-shadow: 0 0 10px var(--em);
}

/* ---------- Device frames ---------- */

.rs-browser {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0C0F13;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 30px 70px -40px var(--glow, rgba(16, 185, 129, 0.4));
}
.rs-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  background: #14181D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rs-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #F26B5B; flex-shrink: 0; }
.rs-browser-bar i:nth-child(2) { background: #F5BF4F; }
.rs-browser-bar i:nth-child(3) { background: #3EC46D; }
.rs-browser-bar span {
  flex: 0 1 260px;
  margin-left: 12px;
  height: 20px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-browser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 756;
  object-fit: cover;
  object-position: top;
}

.rs-phone {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 19.5;
  border-radius: 14% / 6.5%;
  background: linear-gradient(160deg, #2C3037, #0E1014 40%, #1B1E23);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.rs-phone img {
  position: absolute;
  top: 1.6%;
  left: 3.6%;
  width: 92.8%;
  height: 96.8%;
  border-radius: 11% / 5.1%;
  object-fit: cover;
  object-position: top;
}
.rs-phone-island {
  position: absolute;
  top: 2.9%;
  left: 50%;
  z-index: 2;
  width: 30%;
  height: 3.3%;
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}

.rs-devices { position: relative; width: 100%; padding: 0 9% 7% 0; transition: transform 0.6s var(--ease); }
.rs-devices .rs-phone { position: absolute; right: 0; bottom: 0; width: 24%; }
.rs-case:hover .rs-devices { transform: translateY(-6px); }


/* ---------- Hero: monthly report email ---------- */

.rs-hero-visual { position: relative; padding: 56px 0 10px; }
.rs-hero-visual .rs-stage-glow { inset: 5% -5% -5% 10%; }
.rs-mail {
  position: relative;
  max-width: 480px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #FCFBF8;
  color: #16181D;
  font-family: var(--sans);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 40px 90px -30px rgba(0, 0, 0, 0.85);
  animation: rs-float 10s ease-in-out infinite;
}
.rs-mail-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #EEECE7;
  border-bottom: 1px solid #DEDBD3;
}
.rs-mail-bar i { width: 10px; height: 10px; border-radius: 50%; background: #F26B5B; }
.rs-mail-bar i:nth-child(2) { background: #F5BF4F; }
.rs-mail-bar i:nth-child(3) { background: #3EC46D; }
.rs-mail-bar span { margin-left: 10px; font-size: 12px; font-weight: 600; color: #6B6F76; }
.rs-mail-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px 0; }
.rs-mail-head img { width: 40px; height: 40px; border-radius: 10px; }
.rs-mail-from { display: flex; flex-direction: column; line-height: 1.3; }
.rs-mail-from b { font-size: 14.5px; font-weight: 600; color: #16181D; }
.rs-mail-from span { font-size: 12.5px; color: #7A7E85; }
.rs-mail-head time { margin-left: auto; font-size: 12px; color: #8A8E95; }
.rs-mail-subject { padding: 16px 22px 2px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: #16181D; }
.rs-mail-body { padding: 6px 22px 18px; }
.rs-mail-body > p { font-size: 14px; line-height: 1.6; color: #41454C; }
.rs-mail-checks { margin: 14px 0 0; border: 1px solid #E6E3DC; border-radius: 10px; background: #fff; }
.rs-mail-checks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 13.5px; color: #24272D; }
.rs-mail-checks li + li { border-top: 1px solid #EFECE6; }
.rs-mail-checks i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #047857; background: #DDF3EA; }
.rs-mail-checks svg { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.rs-mail-label { margin: 16px 0 6px; font-size: 11.5px !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A8E95 !important; }
.rs-mail-changes li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; color: #24272D; }
.rs-mail-changes li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #10B981; }
.rs-mail-changes li.wip::before { background: #D97706; }
.rs-mail-changes time { margin-left: auto; font-size: 12.5px; color: #8A8E95; white-space: nowrap; }
.rs-mail-changes li.wip time { padding: 2px 8px; border-radius: 999px; color: #92400E; background: #FEF3C7; }
.rs-mail-sign { margin-top: 14px; font-size: 14px !important; }
.rs-mail-actions { display: flex; gap: 8px; padding: 12px 22px 16px; border-top: 1px solid #ECE9E3; }
.rs-mail-actions span { padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid #DEDBD3; color: #41454C; background: #fff; }
.rs-mail-actions .rs-mail-reply { color: #fff; background: #16181D; border-color: #16181D; }
.rs-hero-visual .rs-float--a { top: 6px; right: 0; left: auto; }

@media (max-width: 1080px) {
  .rs-hero-visual { max-width: 520px; margin: 24px auto 0; width: 100%; }
  .rs-mail { margin: 0 auto; }
}
@media (max-width: 768px) {
  .rs-mail-head, .rs-mail-subject, .rs-mail-body, .rs-mail-actions { padding-left: 16px; padding-right: 16px; }
  .rs-mail-subject { font-size: 16.5px; }
  .rs-hero-visual .rs-float--a { left: 50%; right: auto; translate: -50% 0; top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-mail { animation: none; }
}

/* ---------- Sections ---------- */

.rs-sec { padding: clamp(72px, 8vw, 116px) 0; }

.rs-head { margin-bottom: clamp(44px, 6vw, 72px); }
.rs-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 64px;
}
.rs-head--split .rs-lede { justify-self: end; }
.rs-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.rs-head--center .rs-h2 { max-width: 18ch; }
.rs-head--center .rs-lede { margin-top: 22px; }

/* Services */
.rs-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rs-service { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3.4vw, 44px); }
.rs-service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rs-index { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--dim); letter-spacing: 0.1em; }
.rs-service > p { color: var(--mist); font-size: 16px; line-height: 1.65; max-width: 44ch; }
.rs-service .rs-list { margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.rs-service .rs-h3 { font-size: 26px; }

/* Work */
.rs-cases { display: grid; gap: clamp(28px, 4vw, 40px); }
.rs-case {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
}
.rs-case--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.rs-case--flip .rs-case-visual { order: 2; }

.rs-case-visual {
  --glow: rgba(16, 185, 129, 0.22);
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(36px, 4.5vw, 64px) clamp(18px, 2.4vw, 32px);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 110%, var(--glow), transparent 70%),
    linear-gradient(180deg, #0D1014, #08090C);
  border: 1px solid var(--line);
}
.rs-case-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.rs-case-visual--blue { --glow: rgba(37, 99, 235, 0.32); }
.rs-case-visual--green { --glow: rgba(34, 197, 94, 0.26); }
.rs-case-visual--gold { --glow: rgba(217, 168, 92, 0.28); }


.rs-case-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(8px, 2vw, 24px) clamp(8px, 2vw, 32px) clamp(8px, 2vw, 24px) 0; }
.rs-case--flip .rs-case-copy { padding: clamp(8px, 2vw, 24px) 0 clamp(8px, 2vw, 24px) clamp(8px, 2vw, 32px); }
.rs-case-brand { display: flex; align-items: center; gap: 14px; }
.rs-case-brand > img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.9); }
.rs-case-emblem { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #1A140C; border: 1px solid rgba(217, 184, 108, 0.3); }
.rs-case-emblem img { width: auto; height: 34px; }
.rs-case-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--dim); }
.rs-case-title { font-size: clamp(34px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ivory); }
.rs-case-quote { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.3; color: var(--ivory); opacity: 0.85; }
.rs-case-copy > p:not([class]) { font-size: 16px; line-height: 1.7; color: var(--mist); max-width: 48ch; }
.rs-case-copy .rs-list { margin: 4px 0 10px; }

.rs-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 48px);
  border-radius: 36px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  transition: border-color 0.35s, background 0.35s;
}
.rs-next:hover { border-color: rgba(52, 211, 153, 0.5); background: rgba(16, 185, 129, 0.04); }
.rs-next-label { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 44px); color: var(--ivory); line-height: 1.1; }
.rs-next-cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--em-2); }
.rs-next-cta svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.rs-next:hover .rs-next-cta svg { transform: translateX(4px); }

/* Process */
.rs-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}
.rs-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.6), rgba(255, 255, 255, 0.08) 70%);
}
.rs-step { position: relative; display: flex; flex-direction: column; gap: 14px; padding-right: 12px; }
.rs-step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--em-2);
  background: var(--ink);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 0 6px var(--ink), 0 0 30px -6px rgba(16, 185, 129, 0.5);
}
.rs-step p { font-size: 15.5px; line-height: 1.7; color: var(--mist); }

/* Studio */
.rs-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.rs-studio-statement { position: sticky; top: 120px; }
.rs-studio-statement .rs-h2 { max-width: 15ch; }
.rs-founder {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding: 14px 24px 14px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.rs-founder-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: #04140d;
  background: linear-gradient(135deg, var(--em-2), #059669);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12), 0 10px 30px -10px rgba(16, 185, 129, 0.6);
}
.rs-founder-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ivory); line-height: 1.3; }
.rs-founder-role { font-size: 13.5px; color: var(--mist); }
.rs-studio-body { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.rs-studio-body > p { font-size: 18px; line-height: 1.75; color: var(--mist); }
.rs-studio-body > p:first-child { color: var(--ivory); font-size: 20px; line-height: 1.6; }

.rs-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.rs-facts > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rs-facts > div:nth-child(odd) { padding-right: 20px; }
.rs-facts dt { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.rs-facts dd { font-size: 16px; font-weight: 500; color: var(--ivory); }
.rs-facts dd a { border-bottom: 1px solid var(--line-2); transition: border-color 0.25s; }
.rs-facts dd a:hover { border-color: var(--em-2); }

.rs-standards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rs-standard { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-md); }
.rs-standard .rs-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; }
.rs-standard .rs-h3 { font-size: 18px; }
.rs-standard p { font-size: 14.5px; line-height: 1.65; color: var(--mist); }

/* Tools */
.rs-tools-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; justify-self: end; }
.rs-link--reviews { font-size: 14px; }
.rs-star { color: #FBBF24; }

.rs-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rs-tool {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border-radius: var(--r-md);
  color: inherit;
}
.rs-tool:hover { transform: translateY(-3px); }
.rs-tool .rs-icon { margin-bottom: 8px; }
.rs-tool .rs-h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 19px; }
.rs-tool p { font-size: 14.5px; line-height: 1.65; color: var(--mist); flex: 1; }
.rs-tool-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--em-2);
}
.rs-tool-go svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.rs-tool:hover .rs-tool-go svg { transform: translateX(4px); }

/* Contact */
.rs-contact { padding-top: clamp(40px, 6vw, 80px); }
.rs-contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  padding: clamp(32px, 6vw, 80px);
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(160deg, #0E1A16 0%, #0A0D10 45%, #08090B 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 60px 120px -60px rgba(16, 185, 129, 0.35);
}
.rs-contact-glow {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.22), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.rs-contact-main,
.rs-contact-aside { position: relative; }
.rs-contact-main .rs-h2 { max-width: 14ch; }
.rs-contact-main .rs-lede { margin: 24px 0 34px; }

.rs-email {
  display: inline-block;
  margin-bottom: 34px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.05;
  color: var(--ivory);
  border-bottom: 1px solid rgba(52, 211, 153, 0.35);
  word-break: break-word;
  transition: color 0.3s, border-color 0.3s;
}
.rs-email:hover { color: var(--em-2); border-color: var(--em-2); }

.rs-contact-aside {
  align-self: end;
  padding: 32px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.rs-contact-aside .rs-h3 { font-size: 17px; margin-bottom: 20px; }
.rs-brief { display: grid; gap: 16px; }
.rs-brief li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--mist); }
.rs-brief span { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--em-2); padding-top: 2px; }

/* Reviews strip spacing on home */
body.home .rv-sec { padding: 0 0 clamp(60px, 8vw, 110px); }

/* Who we work with */
.rs-audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rs-aud { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 36px); border-radius: var(--r-md); }
.rs-aud .rs-icon { margin-bottom: 6px; }
.rs-aud p { font-size: 15.5px; line-height: 1.65; color: var(--mist); max-width: 46ch; }
.rs-aud--ar {
  background:
    radial-gradient(500px circle at 100% 0%, rgba(217, 184, 108, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border-color: rgba(217, 184, 108, 0.24);
}
.rs-aud--ar .rs-icon { color: var(--gold); background: linear-gradient(180deg, rgba(217, 184, 108, 0.18), rgba(217, 184, 108, 0.05)); border-color: rgba(217, 184, 108, 0.3); box-shadow: 0 0 0 4px rgba(217, 184, 108, 0.05); }
.rs-aud-ar {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 184, 108, 0.18);
  font-family: 'Amiri', 'Traditional Arabic', 'Geeza Pro', 'Noto Naskh Arabic', serif;
  font-size: 20px !important;
  line-height: 1.6 !important;
  color: var(--gold) !important;
  text-align: right;
  max-width: none !important;
}

/* Monthly plans */
.rs-plans {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 36px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(700px circle at 0% 100%, rgba(16, 185, 129, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.rs-plans-copy .rs-lede { margin: 22px 0 32px; }
.rs-plans-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rs-plans-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 18px 50px;
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--mist);
}
.rs-plans-list li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 19px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--em-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.rs-plans-list b { font-size: 15px; font-weight: 600; color: var(--ivory); }

/* FAQ */
.rs-faq-wrap { max-width: 900px; }
.rs-faq { border-top: 1px solid var(--line); }
.rs-faq details { border-bottom: 1px solid var(--line); }
.rs-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ivory);
  transition: color 0.2s;
}
.rs-faq summary::-webkit-details-marker { display: none; }
.rs-faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3EFE6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s var(--ease), border-color 0.2s;
}
.rs-faq summary:hover { color: #fff; }
.rs-faq summary:hover::after { border-color: var(--em-2); }
.rs-faq details[open] summary::after { transform: rotate(45deg); border-color: var(--em-2); }
.rs-faq details p { padding: 0 60px 26px 4px; font-size: 16px; line-height: 1.7; color: var(--mist); }

/* Free website check */
.rs-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 520px;
  margin: -8px 0 32px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.06);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mist);
  transition: border-color 0.25s, background 0.25s;
}
.rs-check:hover { border-color: var(--em-2); background: rgba(16, 185, 129, 0.1); }
.rs-check b { color: var(--ivory); font-weight: 600; }
.rs-check-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #04140d;
  background: var(--em-2);
}

@media (max-width: 900px) {
  .rs-plans { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .rs-audience,
  .rs-plans-list { grid-template-columns: 1fr; }
  .rs-plans { border-radius: 28px; padding: 30px 22px; }
  .rs-faq summary { font-size: 16.5px; padding: 20px 2px; }
  .rs-faq details p { padding-right: 8px; font-size: 15px; }
}

/* ---------- Footer ---------- */

.rs-footer {
  padding: clamp(64px, 8vw, 100px) 0 calc(36px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
}
.rs-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
}
.rs-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.rs-footer-brand p { font-size: 15px; line-height: 1.7; color: var(--mist); max-width: 36ch; }
.rs-footer-mail { font-size: 15px; font-weight: 600; color: var(--ivory); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color 0.25s; }
.rs-footer-mail:hover { border-color: var(--em-2); }

.rs-footer-col { display: flex; flex-direction: column; gap: 12px; }
.rs-footer-col h2 {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.rs-footer-col a { font-size: 14.5px; color: var(--mist); transition: color 0.2s; width: fit-content; }
.rs-footer-col a:hover { color: var(--ivory); }

.rs-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.rs-footer-bottom a { color: var(--mist); border-bottom: 1px solid var(--line-2); transition: color 0.2s, border-color 0.2s; }
.rs-footer-bottom a:hover { color: var(--ivory); border-color: var(--em-2); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .rs-hero-grid { grid-template-columns: 1fr; }
  .rs-hero-copy { max-width: 720px; }
  .rs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
  .rs-steps::before { display: none; }
  .rs-standards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .rs-head--split { grid-template-columns: 1fr; }
  .rs-head--split .rs-lede,
  .rs-tools-intro { justify-self: start; }
  .rs-services { grid-template-columns: 1fr; }
  .rs-case,
  .rs-case--flip { grid-template-columns: 1fr; gap: 28px; }
  .rs-case--flip .rs-case-visual { order: 0; }
  .rs-case-copy,
  .rs-case--flip .rs-case-copy { padding: 0 clamp(6px, 2vw, 16px) clamp(10px, 2vw, 16px); }
  .rs-studio { grid-template-columns: 1fr; }
  .rs-studio-statement { position: static; }
  .rs-contact-panel { grid-template-columns: 1fr; }
  .rs-contact-aside { align-self: stretch; }
}

@media (max-width: 768px) {
  body.home { padding-bottom: 0 !important; }
  body.home .rs-display { font-size: clamp(42px, 11.5vw, 60px) !important; line-height: 1.02 !important; }
  body.home .rs-h2 { font-size: clamp(32px, 8.6vw, 44px) !important; line-height: 1.06 !important; }
  body.home .rs-h3 { font-size: 20px !important; }
  body.home .rs-case-title { font-size: 36px !important; }
  body.home .rs-service .rs-h3 { font-size: 22px !important; }
  body.home .rs-sec { padding: 72px 0; }
  .rs-hero { padding: 116px 0 56px; }
  .rs-pill { font-size: 12px; margin-bottom: 24px; }
  .rs-hero-lede { margin: 22px 0 30px; }
  .rs-float { font-size: 11px; padding: 7px 11px; }
  .rs-case { border-radius: 28px; padding: 12px; }
  .rs-case-visual { border-radius: 20px; }
  .rs-standards,
  .rs-tools { grid-template-columns: 1fr; }
  .rs-steps { grid-template-columns: 1fr; gap: 0; }
  .rs-step { padding: 0 0 36px 76px; }
  .rs-step:last-child { padding-bottom: 0; }
  .rs-step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .rs-step::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.5), rgba(255, 255, 255, 0.06));
  }
  .rs-step:last-child::before { display: none; }
  .rs-contact-panel { border-radius: 28px; padding: 30px 22px; }
  .rs-contact-aside { padding: 24px; }
  .rs-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}

@media (max-width: 480px) {
  .rs-actions { flex-direction: column; align-items: stretch; }
  .rs-btn { width: 100%; }
  .rs-hero-facts { flex-direction: column; gap: 10px; }
  .rs-facts { grid-template-columns: 1fr; }
  .rs-facts > div:nth-child(odd) { padding-right: 0; }
  .rs-footer-bottom { flex-direction: column; }
}

/* Installed app: open straight onto the tools, with the app tab bar */
@media (display-mode: standalone) {
  body.home .rs-hide-app { display: none !important; }
  body.home #tools { padding-top: 104px; }
  body.home #tools .rs-kicker span { display: none; }
}
@media (display-mode: standalone) and (max-width: 768px) {
  body.home { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }
  body.home #tools { padding-top: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-pulse::after { animation: none; }
  .rs-card,
  .rs-devices { transition: none; }
}

/* Tools header links: reviews + install */
.rs-tools-links { display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; }
.rs-link--install { font: inherit; font-size: 14px; font-weight: 600; background: none; cursor: pointer; }

/* Language switch (English <-> Arabic) */
.nav-lang {
  flex-shrink: 0;
  margin-inline-end: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ivory);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.2s, background 0.2s;
}
.nav-lang:hover { border-color: rgba(52, 211, 153, 0.55); background: rgba(255, 255, 255, 0.04); }
@media (max-width: 768px) { .nav-lang { display: none; } }
